// $l = $_COOKIE['language']; require("admin/config.php"); $db = mysql_connect($host,$user,$pwd) or die("Kan server niet vinden!"); mysql_select_db($database) or die("Kan database niet vinden!"); $l = $_GET["l"]; $cat = $_GET["cat"]; $page = $_GET["page"]; ?>
if ($l=="EN") { include("./script/logo/logo_en.php"); } else { include ("./script/logo/logo.php"); } ?> |
if ($l=="EN") { include("./script/menu/menu2_en.php"); } else { include ("./script/menu/menu2.php"); } ?> |
if ($l=="EN") { $order = "order by TITLE_EN ASC"; } else { $order = "order by TITLE_NL ASC"; }
$result = mysql_query("select * from categories ".$order."");
$num = mysql_num_rows($result)-1;
$i=0;
while ($row = mysql_fetch_assoc($result)) {
if ($l=="EN") {
if ($cat==$row["ID"]) { echo ""; $style=""; } else { $style= "style=\"text-decoration:none\""; }
echo "".$row["TITLE_EN"]."";
if ($cat==$row["ID"]) { echo ""; }
if ($cat==$row["ID"]) { $titlepage=$row["TITLE_EN"]; }
} else {
if ($cat==$row["ID"]) { echo ""; $style=""; } else { $style= "style=\"text-decoration:none\""; }
echo "".$row["TITLE_NL"]."";
if ($cat==$row["ID"]) { echo ""; }
if ($cat==$row["ID"]) { $titlepage=$row["TITLE_NL"]; }
}
if ($i<$num) { echo " - "; }
$i++;
} ?>
"; $result = mysql_query("select * from objects where CAT=".$cat." order by POS DESC, DATUM DESC LIMIT ".$offset.",".$aantal.""); $i = 1; while($row = mysql_fetch_assoc($result)) { if ($l=="EN") { $title = $row["TITLE_EN"]; $desc = $row["DESC_EN"]; } else { $title = $row["TITLE_NL"]; $desc = $row["DESC_NL"]; } $desc = nl2br($desc); echo " "; } echo " "; ?>
|