";
echo "
\n";
$mainlink = 0;
menu($mainlink);
echo "
";
OpenTable();
echo "
"._CSF_ADDSMAINCAT."
";
$result = sql_query("select cid, title, cdescription from ".$prefix."_produkte_categories where parentid=0 order by title", $dbi);
while(list($cid, $title, $cdescription) = sql_fetch_row($result, $dbi)) {
echo "
· $title";
addnum($cid);
categorynewaddgrafik($cid);
if ($cdescription) {
echo "
$cdescription";
}
echo "
";
//$numcat=sql_num_rows(sql_query("select cid, title from ".$prefix."_produkte_categories where parentid=$cid", $dbi),$dbi);
$result2 = sql_query("select cid, title from ".$prefix."_produkte_categories where parentid=$cid order by title", $dbi);
while(list($cid, $stitle) = sql_fetch_row($result2, $dbi)) {
echo "
· $stitle";
addnum($cid);
categorynewaddgrafik($cid);
}
echo "
";
}
$nowdate=time();
// $result=sql_query("select * from ".$prefix."_produkte_pages where '$nowdate' < enddate", $dbi); Beschraenkung auf neue Inhalte
$result=sql_query("select * from ".$prefix."_produkte_pages", $dbi);
$numrows = sql_num_rows($result, $dbi);
$result=sql_query("select * from ".$prefix."_produkte_categories", $dbi);
$catnum = sql_num_rows($result, $dbi);
echo "
"._CSF_THEREARE." $numrows "._CSF_ADDS." "._CSF_AND." $catnum "._CSF_CATEGORIES." "._CSF_INDB."";
echo "