"; //echo "o=", $offset, "
"; //echo "1=", $gofirst, "
"; //echo "9=", $golast, "
"; //echo "<=", $goleft, "
"; //echo ">=", $goright, "
"; //echo "p=", $gopage, "
"; //print_r ($HTTP_SERVER_VARS); include('config.inc.php'); include('connect.inc.php'); include('functions.inc.php'); if ($kategorie != 'm' && $kategorie != 'f') { // keine kategorie gewŠhlt.. sollte ja eigentlich nicht vorkommen.. $titel = "Polyball - Ballkleiderbörse"; include('header.inc.php'); echo "Kleid für sie - Anzug für ihn"; include('footer.inc.php'); exit; } $sql = "SELECT COUNT(ID) FROM {$config['table']} WHERE kategorie = '$kategorie' AND status = 'aktiv';"; $result = mysql_query($sql); $temp = mysql_fetch_row($result); $numrows = $temp[0]; // anzahl aktiver eintrŠge in dieser kategorie $anzahl = $config['anzahlproseite']; // siehe config.inc.php if (!$offset) $offset = 0; //default else { $offset = (integer)addslashes(trim($offset)); if ($offset > ($numrows - 1)) $offset = $numrows - $offset; // nicht Ÿber's ende der Liste hinausspringen.. if ($offset < 0) $offset = 0; } if ($gofirst) { $offset = 0; // piece 'o cake.. } if ($golast) { $offset = $numrows - (($numrows - ($offset % $anzahl)) % $anzahl); } if ($goleft) { $offset = $offset - $anzahl; if ($offset < 0) $offset = 0; } if ($goright) { $offset = $offset + $anzahl; if ($offset > ($numrows - 1)) $offset = $numrows - $anzahl; } if ($gopage) { if ($gopage == 1) $offset = 0; else { if ($offset % $anzahl) $offset = ($offset % $anzahl) + ($anzahl * ($gopage - 2)); else $offset = ($anzahl * ($gopage - 1)); } } $title = "Polyball - Ballkleiderbörse Kleider für ".($kategorie == 'f' ? "Sie" : "Ihn"); include('header.inc.php'); // 2005.10.27 ML Unten stehender HTML-Teil eingefügt; nicht möglich, dies in den gemeinsamen // header 'header.inc.php' zu packen, da seitliche Navigation sich mit der Page ändert ?>
Keine Einträge"; } else { buildgotopagebuttons(); echo ""; while ($row = mysql_fetch_array($result)) { echo "\n"; echo "\n"; echo ""; } echo "
".stripslashes($row['name'])."".unix2str(ts2unix($row['datum']))."
".stripslashes($row['text'])."
"; buildgotopagebuttons(); } include('footer.inc.php'); ?>