1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
|
<html>
<head>
<meta http-equiv="Content-Language" content="de">
<Coded by dd>
<title>dd</title>
<link rel=stylesheet href=../style.css type=text/css>
<base target="home">
</head>
<body>
<?php
include("header.php");
include("db.php");
include("functions.inc.php");
$proseite = 30; // Wieviele Einträge pro Seite
if(isset($_REQUEST["seite"])) { // Wenn Seite angegeben is dann..
$seite = zahl($_REQUEST["seite"]);
} else { // ansonsten
$seite = 0;
}
?>
<center><table cellpadding="3" width="80%" cellspacing="1" border="0" class="table3">
<tr>
<td class="table2" width="20%"> <b>ID</b> </td>
<td class="table2" width="20%"> <b>Name</b> </td>
<td class="table2" width="20%"> <b>Email</b> </td>
<td class="table2" width="20%"> <b>Beruf</b> </td>
</tr>
<?php
$abfrage = "SELECT id, name, email, beruf FROM mitglieder ORDER BY id LIMIT ".$seite.",".$proseite; // Datenabfrage
$ergebnis = mysql_query($abfrage);
while($row = mysql_fetch_object($ergebnis))
{
?>
<tr>
<td class="table1" width="20%"><b><?= $row->id ?></b></td>
<td class="table1" width="20%"><b><a href=profil.php?user=<?= $row->id ?>><?= $row->name ?></b></td>
<td class="table1" width="20%"><a href=mailto:<?= $row->email ?>><img border="0" src='../Style/eMail.gif></a></td>
<td class="table1" width="20%"><b><?= $row->beruf ?></b></td>
</tr>
</table></center>
<?php
}
?>
</table>
<?php
// Seitenfunktion Start
for($i=0;$i<=anzahl("mitglieder");$i++) {
if($i%$proseite == 0) {
if($i == $seite) {
echo ($i+1)." ";
} else {
echo "<a href=?seite=".$i.">".($i/$proseite+1)."</a> ";
}
}
}
// Seitenfunktion Ende
?>
</body>
</html> |