Subversion-Projekte lars-tiefland.content-management

Revision

Blame | Letzte Änderung | Log anzeigen | RSS feed

<table width="662" border="1" cellspacing="0" cellpadding="3">
        <tr>
                <td bgcolor="#<? echo $webs[bgcolor_links] ?>"><font color="#<? echo $webs[font_color_links] ?>"><strong>Wochenkarte: Bearbeiten</strong></font></td>
        </tr>
<?php
        $sql = "SELECT id, gueltig_von, gueltig_bis FROM woche";
        $result = mysql_query($sql,$remoteServer_dbh) OR die(mysql_error()."<hr />".$sql);
        while($row = mysql_fetch_assoc($result)) {
                $wert[] = $row['id'];
                $von[]  = date("d.m.Y", ($row['gueltig_von'])+(60*60*59));
                $bis[]  = date("d.m.Y", ($row['gueltig_bis']));
        }
?>          
    
<?php
                for($i = 0; $i < sizeof($wert); $i++) {
?>
                <tr>
                        <td>
                    <a href="<?= "index.php?action=wochen_uebersicht&id=$wert[$i]" ?>"><?php echo "Woche: ".$von[$i]." bis ".$bis[$i] ?></a>
                     &nbsp;
                        </td>
                </tr>
<?php
                }
?>
        <tr>
                <td bgcolor="#<? echo $webs[bgcolor_links] ?>">&nbsp;</td>
        </tr>
</table>