Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div id="preisliste">
- <?php
- if(!isset($_GET['detail'])) {
- $query = "SELECT `id`, `name`, `beschreibung`, `img`, `cat` FROM `iv_pricelist_furni` WHERE `cat` = 'Ultra'"; $result = mysql_query($select_all_furni) or die ("MySQL-Error: " . mysql_error());
- if(mysql_num_rows($query) != 0) {
- ?><div width="100%" style="align: center"><?php
- foreach($db->get($prefix."pricelist_furni") as $furni) {
- $price = $db->get($prefix."pricelist_price", "furni_id = '".$furni['id']."'");
- $price = $price[0]['price'];
- ?>
- <div id="miniBox" style="height:175px;">
- <div class="title_green">
- <?= $furni['name'] ?> <!-- Möbel Name -->
- </div>
- <div class="content">
- <table border="0">
- <colgroup>
- <col width="250">
- <col width="120">
- </colgroup>
- <tr>
- <td><div style="background:url(<?= $furni['img'] ?>)no-repeat; width:100px; margin:0 auto; height:93px;"></div>
- </td>
- <td>» <?= $furni['name'] ?></td>
- </tr>
- </table>
- <table border="0">
- <colgroup>
- <col width="150">
- <col width="150">
- </colgroup>
- <tr>
- <td><img src="web_layout/images/file_15.gif" alt="" style="position:relative; margin-top:2px;" /> <?= $price ?> Taler</td>
- <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>
- </tr>
- </table>
- </div>
- </div>
- <?php
- }
- echo "</div>";
- } else {
- echo "<center>Leider sind keine Möbel verfügbar!</center>";
- }
- } else {
- $furni_id = (int) $_GET['detail'];
- $furni = $db->id_get($prefix."pricelist_furni", $furni_id);
- $latest_price = $db->get($prefix."pricelist_price", "furni_id = '".$furni['id']."'");
- $latest_price = $latest_price[0];
- $update_day = date("d.m.Y", $latest_price['time']);
- $update_time = date("H:i", $latest_price['time']);
- ?>
- <div id="content" style="margin-left:10px; height:190px;">
- <div id="mobel_detail">
- <img src="<?= $furni['img'] ?>" alt="<?php echo $furni['name']; ?>" style="margin-top:20px;margin-left:-30px;position:absolute;"/>
- <div class="furni_name">
- » <?php echo $furni['name']; ?>
- </div>
- </div>
- <div id="mobel_describtion">
- <h4><?php echo $furni['name']; ?></h4>
- <i><?php echo $furni['beschreibung']; ?></i>
- <div class="mobe_wert">
- <a onmouseover="tooltip.show('Wert: <?php echo $latest_price['price']; ?> Taler');" onmouseout="tooltip.hide();" />
- <img src="web_layout/images/file_15.gif" alt="" />
- </a> <?php echo $latest_price['price']; ?> Taler
-
- <a onmouseover="tooltip.show('Kategorie: <?php echo $furni['cat'] ?>');" onmouseout="tooltip.hide();" />
- <img src="web_layout/images/file_20.gif" alt="" />
- </a> <?php echo $furni['cat'] ?>
-
- <a onmouseover="tooltip.show('Letztes Update');" onmouseout="tooltip.hide();" />
- <img src="web_layout/images/file_22.gif" alt="" />
- </a> am <?php echo $update_day." um ".$update_time; ?>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <?php
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment