| 1 |
lars |
1 |
<table width="662" border="1" cellspacing="0" cellpadding="3">
|
|
|
2 |
<tr>
|
|
|
3 |
<td bgcolor="#<? echo $webs[bgcolor_links] ?>"><font color="#<? echo $webs[font_color_links] ?>"><strong>Wochenkarte: Bearbeiten</strong></font></td>
|
|
|
4 |
</tr>
|
|
|
5 |
<?php
|
|
|
6 |
$sql = "SELECT id, gueltig_von, gueltig_bis FROM woche";
|
|
|
7 |
$result = mysql_query($sql,$remoteServer_dbh) OR die(mysql_error()."<hr />".$sql);
|
|
|
8 |
while($row = mysql_fetch_assoc($result)) {
|
|
|
9 |
$wert[] = $row['id'];
|
|
|
10 |
$von[] = date("d.m.Y", ($row['gueltig_von'])+(60*60*59));
|
|
|
11 |
$bis[] = date("d.m.Y", ($row['gueltig_bis']));
|
|
|
12 |
}
|
|
|
13 |
?>
|
|
|
14 |
|
|
|
15 |
<?php
|
|
|
16 |
for($i = 0; $i < sizeof($wert); $i++) {
|
|
|
17 |
?>
|
|
|
18 |
<tr>
|
|
|
19 |
<td>
|
|
|
20 |
<a href="<?= "index.php?action=wochen_uebersicht&id=$wert[$i]" ?>"><?php echo "Woche: ".$von[$i]." bis ".$bis[$i] ?></a>
|
|
|
21 |
|
|
|
22 |
</td>
|
|
|
23 |
</tr>
|
|
|
24 |
<?php
|
|
|
25 |
}
|
|
|
26 |
?>
|
|
|
27 |
<tr>
|
|
|
28 |
<td bgcolor="#<? echo $webs[bgcolor_links] ?>"> </td>
|
|
|
29 |
</tr>
|
|
|
30 |
</table>
|