{TITLE}

{TITLE}
"; if(file_exists($DOCUMENT_ROOT."/".$site_template_url."category.tpl")) { $category_box=file_get_contents($DOCUMENT_ROOT."/".$site_template_url."category.tpl"); } $sql="select title,url,photo,description from category where published=1 order by title"; $rs->open($sql); if(!$rs->eof) { $n=0; $category_list=""; while(!$rs->eof) { $category_current=$category_box; $photo=site_root."/images/icon_photo.gif"; $width=120; $height=90; if($rs->row["photo"]!="") { $photo=$rs->row["photo"]; if(file_exists($_SERVER["DOCUMENT_ROOT"].$rs->row["photo"])) { $size = getimagesize($_SERVER["DOCUMENT_ROOT"].$rs->row["photo"]); $width=$size[0]; $height=$size[1]; } } $category_current=str_replace("{TITLE}",$rs->row["title"],$category_current); $category_current=str_replace("{URL}",site_root.$rs->row["url"],$category_current); $category_current=str_replace("{PHOTO}",$photo,$category_current); $category_current=str_replace("{DESCRIPTION}",$rs->row["description"],$category_current); $category_current=str_replace("{WIDTH}",$width,$category_current); $category_current=str_replace("{HEIGHT}",$height,$category_current); $category_list.=$category_current; $n++; $rs->movenext(); } echo($category_list); } ?> open($sql); if(!$rs->eof) { ?> eof) { if($n%4==0 and $n!=0){echo("");} $sql="select a.id,a.id_parent,b.id_parent,b.title,b.priority,b.published,b.url from structure a,category b where a.id=b.id_parent and a.id_parent=".$rs->row["id"]." and b.published=1 order by b.priority,b.title"; $ds->open($sql); ?> movenext(); } ?>
eof) { ?> movenext(); } ?>
open($sql); while(!$rs->eof) { echo("".$rs->row["title"]." "); $rs->movenext(); } } //End. Show tag clouds /* ?>