Guest User

Untitled

a guest
Apr 12th, 2014
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.48 KB | None | 0 0
  1. <div id="preisliste">
  2. <?php
  3. if(!isset($_GET['detail'])) {
  4. $select_all_furni = "SELECT `id`, `name`, `beschreibung`, `img`, `cat` FROM `iv_pricelist_furni` WHERE `cat` = 'Ultra'"; $result = mysql_query($select_all_furni);
  5.  
  6. if(mysql_num_rows($select_all_furni) != 0) {
  7. ?><div width="100%" style="align: center"><?php
  8. foreach($db->get($prefix."pricelist_furni") as $furni) {
  9. $price = $db->get($prefix."pricelist_price", "furni_id = '".$furni['id']."'");
  10. $price = $price[0]['price'];
  11.  
  12. ?>
  13.  
  14. <div id="miniBox" style="height:175px;">
  15. <div class="title_green">
  16. <?= $furni['name'] ?> <!-- Möbel Name -->
  17. </div>
  18. <div class="content">
  19. <table border="0">
  20. <colgroup>
  21. <col width="250">
  22. <col width="120">
  23. </colgroup>
  24. <tr>
  25. <td><div style="background:url(<?= $furni['img'] ?>)no-repeat; width:100px; margin:0 auto; height:93px;"></div>
  26. </td>
  27. <td>&raquo; <?= $furni['name'] ?></td>
  28. </tr>
  29. </table>
  30. <table border="0">
  31. <colgroup>
  32. <col width="150">
  33. <col width="150">
  34. </colgroup>
  35. <tr>
  36. <td><img src="web_layout/images/file_15.gif" alt="" style="position:relative; margin-top:2px;" /> <?= $price ?> Taler</td>
  37. <td><div id="bwr" style=" margin-bottom:0px; position:absolute;float:right;padding-left:40px;"><a href="?page=<?= $_GET['page'] ?>&detail=<?= $furni['id'] ?>">Diskutieren...</a></div></td>
  38. </tr>
  39. </table>
  40. </div>
  41.  
  42. </div>
  43. <?php
  44.  
  45. }
  46. echo "</div>";
  47. } else {
  48. echo "<center>Leider sind keine Möbel verfügbar!</center>";
  49. }
  50. } else {
  51. $furni_id = (int) $_GET['detail'];
  52. $furni = $db->id_get($prefix."pricelist_furni", $furni_id);
  53. $latest_price = $db->get($prefix."pricelist_price", "furni_id = '".$furni['id']."'");
  54. $latest_price = $latest_price[0];
  55.  
  56. $update_day = date("d.m.Y", $latest_price['time']);
  57. $update_time = date("H:i", $latest_price['time']);
  58. ?>
  59. <div id="content" style="margin-left:10px; height:190px;">
  60. <div id="mobel_detail">
  61. <img src="<?= $furni['img'] ?>" alt="<?php echo $furni['name']; ?>" style="margin-top:20px;margin-left:-30px;position:absolute;"/>
  62. <div class="furni_name">
  63. &raquo; <?php echo $furni['name']; ?>
  64. </div>
  65. </div>
  66. <div id="mobel_describtion">
  67. <h4><?php echo $furni['name']; ?></h4>
  68. <i><?php echo $furni['beschreibung']; ?></i>
  69. <div class="mobe_wert">
  70. <a onmouseover="tooltip.show('Wert: <?php echo $latest_price['price']; ?> Taler');" onmouseout="tooltip.hide();" />
  71. <img src="web_layout/images/file_15.gif" alt="" />
  72. </a> <?php echo $latest_price['price']; ?> Taler
  73. &nbsp; &nbsp;
  74. <a onmouseover="tooltip.show('Kategorie: <?php echo $furni['cat'] ?>');" onmouseout="tooltip.hide();" />
  75. <img src="web_layout/images/file_20.gif" alt="" />
  76. </a> <?php echo $furni['cat'] ?>
  77. &nbsp; &nbsp;
  78. <a onmouseover="tooltip.show('Letztes Update');" onmouseout="tooltip.hide();" />
  79. <img src="web_layout/images/file_22.gif" alt="" />
  80. </a> am <?php echo $update_day." um ".$update_time; ?>
  81. </div>
  82. </div>
  83. </div>
  84. </div>
  85. </div>
  86. </div>
  87. <?php
  88. }
  89. ?>
Advertisement
Add Comment
Please, Sign In to add comment