header.php 969 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. <?php
  18. if(isset($_SESSION["username"]))
  19. {
  20. ?>
  21. <td align="right" valign="top" class="shopping_cart" colspan="2">
  22. <table border="0">
  23. <tr>
  24. <td>
  25. <a href="shoppingcart.php" style="color: #121519;">
  26. <img src="basket.png" valign="middle" border="0">
  27. </a>
  28. </td>
  29. <td>
  30. <a href="shoppingcart.php" style="color: #121519;">
  31. Warenkorb: <?php echo number_format($shopping_cart->getPriceSum(), 2); ?> EUR<br>
  32. Produkte: <?php echo $shopping_cart->getItemCount(); ?>
  33. </a>
  34. </td>
  35. </tr>
  36. </table>
  37. </td>
  38. <?php
  39. }
  40. ?>
  41. </tr>
  42. </table>