header.php 1.0 KB

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