header.php 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <?php
  2. require_once("shoppingcart_action.php");
  3. ?>
  4. <!DOCTYPE html>
  5. <html>
  6. <head>
  7. <title> Nat&uuml;rlich Grobi </title>
  8. <meta http-equiv="refresh" content="0; url=/index.html" />
  9. </head>
  10. <link rel="stylesheet" type="text/css" href="style.css"></link>
  11. <body onload="">
  12. <table border="0" width="100%" class="header">
  13. <tr>
  14. <td>
  15. <font size="24"> Nat&uuml;rlich Grobi </font>
  16. <small>Waren für Mensch und Natur</small><br>
  17. <td>
  18. <?php
  19. if(isset($_SESSION["username"]))
  20. {
  21. ?>
  22. <td align="right" valign="top" class="shopping_cart" colspan="2">
  23. <table border="0">
  24. <tr>
  25. <td>
  26. <a href="shoppingcart.php" style="color: #121519;">
  27. <img src="basket.png" valign="middle" border="0">
  28. </a>
  29. </td>
  30. <td>
  31. <a href="shoppingcart.php" style="color: #121519;">
  32. Warenkorb: <?php echo number_format($shopping_cart->getPriceSum(), 2); ?> EUR<br>
  33. Produkte: <?php echo $shopping_cart->getItemCount(); ?>
  34. </a>
  35. </td>
  36. </tr>
  37. </table>
  38. </td>
  39. <?php
  40. }
  41. ?>
  42. </tr>
  43. </table>