Guest User

Untitled

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