Location: PHPKode > scripts > Encaps Gallery > encaps-2.3.22s/admin/catalog.php
<?php 
include("common.ini.php");
if(isset($postget["id"]))
{
	$html["item"] = $catalog->items->get_by_id((int)@$postget["id"]);
	$html["id"] = $catalog->items->_get_id_next($html["item"]);
	$html["head_title"] = "- ".$html["categ"]["title"]." - ".$html["item"]["title"];;
	$html["meta_description"] = $html["item"]["comment"];	
	include("catalog_head.html");
	include("catalog_item.html");
} 
else 
{
	$html_temp = $catalog->items_gets_by_categ((int)@$postget["categ_id"]);
	$html['count_total'] = $html_temp['count_total'] ;
	$html["pagination"] = $html_temp["pagination"];
	$html["items"] = $html_temp["items"];
	$html["head_title"] = "- ".$html["categ"]["title"];
	$html["meta_description"] = $html["categ"]["description"];
		
	if(isset($_GET["search"]))
	{
		$_GET["search"] = htmlspecialchars($_GET["search"]);
		$result = $catalog->search($_GET["search"]);
		$html['items'] = $result['items'];
		$html['pagination'] = $result['pagination'];
		$html["head_title"] = "- search - ".$_GET["search"];
	} 

	include("catalog_head.html");
	include("catalog_items.html");
}


include("catalog_foot.html");
?>

Return current item: Encaps Gallery