Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- echo"<th>";
- echo date("H:i");
- echo"</th>";
- ?>
- <th text align =right>Abfahrt </th>
- <?php
- for ($i=0; $i<6; $i++) {
- $linie = $rubik_class->GetLinie($i);
- echo "<tr>";
- echo "<td bgcolor = #FCCE4C text align =center>";
- echo $linie->Nummer;
- echo "</td>";
- echo "<td text align =left>";
- echo $linie->Endhalt;
- echo "</td>";
- if ($linie->Abfahrtszeit<30)
- {
- echo "<td text align =right>";
- echo $linie->Abfahrtszeit;
- }
- else {
- $uhrzeit = date("H:i");
- $teile = explode(':', $uhrzeit);
- $uhr = date("H:i", mktime(date("$teile[0]"), date("$teile[1]")+$linie->Abfahrtszeit));
- echo "<td text align =right>";
- echo $uhr;
- }
- echo "</td>";
- echo "</tr>";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement