Advertisement
Guest User

Untitled

a guest
Oct 24th, 2014
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1. <?php
  2. echo"<th>";
  3. echo date("H:i");
  4. echo"</th>";
  5. ?>
  6. <th text align =right>Abfahrt&nbsp;</th>
  7. <?php
  8.  
  9. for ($i=0; $i<6; $i++) {
  10. $linie = $rubik_class->GetLinie($i);
  11. echo "<tr>";
  12. echo "<td bgcolor = #FCCE4C text align =center>";
  13. echo $linie->Nummer;
  14. echo "</td>";
  15. echo "<td text align =left>";
  16. echo $linie->Endhalt;
  17. echo "</td>";
  18. if ($linie->Abfahrtszeit<30)
  19. {
  20. echo "<td text align =right>";
  21. echo $linie->Abfahrtszeit;
  22. }
  23. else {
  24. $uhrzeit = date("H:i");
  25. $teile = explode(':', $uhrzeit);
  26.  
  27. $uhr = date("H:i", mktime(date("$teile[0]"), date("$teile[1]")+$linie->Abfahrtszeit));
  28. echo "<td text align =right>";
  29. echo $uhr;
  30. }
  31. echo "</td>";
  32. echo "</tr>";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement