menu.php 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <table border="0" width="100%" class="menu">
  2. <tr>
  3. <?php
  4. if(isset($_SESSION["username"]))
  5. {
  6. ?>
  7. <td width="12%" align="center"><a href="index.php">Start</a></td>
  8. <td width="12%" align="center"><a href="product_list.php">Produkte</a></td>
  9. <td width="12%" align="center"><a href="category.php">Kategorien</a></td>
  10. <td width="12%" align="center"><a href="contact.php">Kontakt</a></td>
  11. <td width="40%" align="right"><a href=""><!-- Kundenmen&uuml; --></a></td>
  12. <td width="12%" align="right"><a href="session_logout.php">Abmelden</a></td>
  13. <?php
  14. }
  15. else
  16. {
  17. ?>
  18. <td width="100%" align="right"><a href="session_login.php">Anmelden</a></td>
  19. <?php
  20. }
  21. ?>
  22. </tr>
  23. </table>
  24. <br>
  25. <?php
  26. if(isset($_SESSION["username"]))
  27. {
  28. ?>
  29. <div width="100%" align="right">
  30. <form method="post" action="product_list.php" name="search_form">
  31. <input type="text" id="search_form_text" name="search_product" style="border-style: solid; border-width: 2px; border-color: #f6ce18;">
  32. <a href="javascript: document.forms['search_form'].submit();">suchen</a>
  33. <input type="submit" value="" class="invisible_submit">
  34. </form>
  35. <!-- set the focus to searchbar -->
  36. <script>
  37. document.getElementById('search_form_text').focus();
  38. </script>
  39. </div>
  40. <?php
  41. }
  42. ?>