'.$Beschreibung.'
' ); if(($arow["homepage"]!=="") and !($Secus & 64)) { print('Homepage: '.$arow["homepage"].''.'
'); } if(($arow["email"]!=="") and !($Secus & 32)) { print('eMail: '.InsMail($arow["email"]).'
'); } if(($arow["TelFest"]!=="") and !($Secus & 8)) { print('Telefon Festnetz: '.$arow["TelFest"].'
'); } if(($arow["TelFunk"]!=="") and !($Secus & 16)) { print('Telefon mobil: '.$arow["TelFunk"].'
'); } print('keine Einträge
"); }else { print(''); } $query = "SELECT * FROM FotoPerso WHERE Perso=".$numbr." order by eid desc;"; $arowid = mysql_query($query); $entriesCount = mysql_num_rows($arowid); // are there any entries? if (($arowid == 0) || (mysql_num_rows($arowid) == 0)) { // print("keine Einträge
"); }else { print(''); } $query = "SELECT * FROM avperso WHERE Perso=".$numbr." order by eid desc;"; $arowid = mysql_query($query); $entriesCount = mysql_num_rows($arowid); // are there any entries? if (($arowid == 0) || (mysql_num_rows($arowid) == 0)) { // print("keine Einträge
"); }else { print(''); } } else die("Ooops! Datenbankfehler !"); //print(''); } /*------------------------ View Personen Entries ------------------------*/ function viewP() { // import global variables global $from, $entriesPerPage, $act, $Kat, $Arc, $Nombre, $scriptname, $entriesCount; // query the database if($Kat==0){ $query = "SELECT * FROM Personen WHERE NOT(Secu & 1) AND (Archiv = $Arc) order by Nachname;";} else{ $query = "SELECT * FROM Personen WHERE (NOT(Secu & 1)) AND (Archiv = $Arc) AND (Funktion & $Kat) order by Nachname;";} $arowid = mysql_query($query); $entriesCount = mysql_num_rows($arowid); //print($mysql_error); //print($query); // are there any entries? if (($arowid == 0) || (mysql_num_rows($arowid) == 0)) { print("keine Einträge
"); } else { // calculate the entries from and to which we want to view $from = ($from) ? $from : 0; $to = min($from+$entriesPerPage-1, mysql_num_rows($arowid)-1); // Tell visitor which entries he is seeing $d_from = $from+1; $d_to = $to+1; //print("".$Nombre." Einträge ".($entriesCount-$d_to+1).' - '.($entriesCount-$d_from+1)."
"); /////////////////////// // Next and Last Page Links print(''.$Nombre.' Eintrag: '); // make sure we can selected newer entries $newfrom=0; while ( $newfrom < $from ) { $newto = min($newfrom+$entriesPerPage-1,$from-1); // print the link $d_newfrom = $newfrom+1; $d_newto = $newto+1; print("[ ".($d_newfrom)." - ".($d_newto)." ] "); $newfrom = $newto+1; } print("[ ".($d_from)." - ".($d_to)." ] "); // are there any older entries? $newto=$to; while ($newto < mysql_num_rows($arowid)-1) { // start and end? $newfrom = $newto+1; $newto = min(mysql_num_rows($arowid), $newfrom+$entriesPerPage)-1; // print the link $d_newfrom = $newfrom+1; $d_newto = $newto+1; print("[ ".($d_newfrom)." - ".($d_newto)." ] "); } print("
"); // Bogus request? This really should not happen - anyway. Don't want php3 errors on screen. if ($from < 0 || $from > mysql_num_rows($arowid)-1) { die('Fehler
'); } // Seek to the first entry to be viewed mysql_data_seek($arowid, $from); $nr = 0; // read $entriesPerPage entries while ($nr < $entriesPerPage) { // is there such an entry? If not -> out of this loop (Well, this really should not happen... if (!$arow = mysql_fetch_array($arowid)) break; $currentNr = $entriesCount-$from-$nr; // Display entry with data from database viewSingleEntry($arow["Nachname"], $arow["Vorname"], $arow["URLSmall"], $arow["eid"], $arow["Secu"]); $nr++; } print(' '); } } /*------------------------ View Single Entry -------------------*/ function viewSingleEntry($Nachname, $Vorname, $URLSmall, $eid, $Secus) { global $scriptname, $Kat; $Nachname = htmlentities($Nachname,NULL, ""); $Vorname = htmlentities($Vorname,NULL, ""); ///////////////////////if(!($Secus & 2)){ // output data print('