"._CSF_MAIN."/$title"; include("header.php"); if (!isset($min)) $min=0; if (!isset($max)) $max=$min+$perpage; if(isset($orderby)) { $orderby = convertorderbyin($orderby); } else { $orderby = "datum ASC"; } if ($show!="") { $perpage = $show; } else { $show=$perpage; } menu(1); echo "
"; OpenTable(); echo "
"._CSF_CATEGORY.": $title
$description

"; echo ""; $result2 = sql_query("select cid, title, cdescription from ".$prefix."_add_categories where parentid=$cid order by title", $dbi); $count = 0; while(list($cid2, $title2, $cdescription2) = sql_fetch_row($result2, $dbi)) { if ($count==0){echo "";} if ($colorswitch == $addcolor) { $colorswitch = $addcolor2; } else { $colorswitch = $addcolor; } echo ""; $count = 0; $dum = 0; }else{echo "";} } if ($dum == 1) { echo "
· $title2"; addnum($cid2); categorynewaddgrafik($cid2); if ($cdescription2) { echo "
$cdescription2
"; } else { echo "
"; } //$numcat=sql_num_rows(sql_query("select cid, title from ".$prefix."_add_categories where parentid=$cid", $dbi),$dbi); $result3 = sql_query("select cid, title from ".$prefix."_add_categories where parentid=$cid2 order by title", $dbi); while(list($cid3, $stitle) = sql_fetch_row($result3, $dbi)) { echo "
·$stitle"; addnum($cid3); categorynewaddgrafik($cid3); } /*if ($numcat > 3){ echo "
·..."; }*/ $count++; if ($count==2) { echo "
"; } elseif ($dum == 0) { echo ""; } //end new if ($adds){ echo "
"; $orderbyTrans = convertorderbytrans($orderby); echo "
"._CSF_SORTADDSBY.": " .""._CSF_TITLE." (A\D) " .""._CSF_DATE." (A\D) " ."
"._CSF_SITESSORTED.": $orderbyTrans


"; $nowdate=time(); $result=sql_query("select lid, title, description, datum, hits, pic, contacter from ".$prefix."_add_adds where cid=$cid AND isValidated = 'Yes' AND isChanged = 'No' order by $orderby limit $min,$perpage", $dbi); $fullcountresult=sql_query("select lid, title, datum, hits, pic from ".$prefix."_add_adds where cid=$cid and isValidated='Yes' and isChanged = 'No'", $dbi); $totalselectedlinks = sql_num_rows($fullcountresult, $dbi); if ( $adfree == "No" ) { echo "
\n"; echo " " ."
"; } echo "
\n"; $x=0; while(list($lid, $title, $description, $time, $hits, $pic, $contacter)=sql_fetch_row($result, $dbi)) { $cnewsline_light = "cataddsline_light"; $cnewsline = "cataddsline"; if ($newsline == $cnewsline) { $newsline = $cnewsline_light; } else { $newsline = $cnewsline; } echo "
\n"; $title = stripslashes($title); $description = stripslashes($description); $datetime=date("d.m.Y",$time); $descshort = ($description) ? substr(htmlentities(strip_tags(stripslashes($description))),0,300).' ...' : ""; echo "
$title
"; echo "${descshort} [SOS Meldung lesen]

"; echo "
\n"; echo "
$datetime
(${hits} gelesen)
\n"; echo "
\n"; /* Ende cataddsline */ $pagedescription = "$title, $description"; $pagetitle = "$title"; $x++; } echo "
\n"; /* Ende catadds */ $orderby = convertorderbyout($orderby); /* Calculates how many pages exist. Which page one should be on, etc... */ $linkpagesint = ($totalselectedlinks / $perpage); $linkpageremainder = ($totalselectedlinks % $perpage); if ($linkpageremainder != 0) { $linkpages = ceil($linkpagesint); if ($totalselectedlinks < $perpage) { $linkpageremainder = 0; } } else { $linkpages = $linkpagesint; } /* Page Numbering */ if ($linkpages!=1 && $linkpages!=0) { echo "

"; echo ""._CSF_SELECTPAGE.": "; $prev=$min-$perpage; if ($prev>=0) { if ($prev == 0) $prev=1; // echo "  [ "; echo "  [ "; echo " << "._CSF_PREVIOUS." ] "; } $counter = 1; $currentpage = ($max / $perpage); while ($counter<=$linkpages ) { $cpage = $counter; $mintemp = ($perpage * $counter) - $perpage + 1; if ($counter == $currentpage) { echo "$counter "; } else { // echo "$counter "; echo "$counter "; } $counter++; } $next=$min+$perpage; if ($x>=$perpage) { // echo "  [ "; echo "  [ "; echo " "._CSF_NEXT." >> ] "; } } if ( $adfree == "No" ) { echo "
\n"; echo "

" ."
"; } } CloseTable(); copyright(); include("footer.php"); ?>