Файл: Luxe-Shop v6.0/application/views/templates/slimline/item/item.php
Строк: 88
<? if(count($items)): foreach($items as $item): ?>
<div class="information"><div class="section">
<h1 style="margin-top: 8px; margin-left: 13px; color: #45b29d; font-size: 18px; line-height: 29px; font-weight: bold;">Купить <? echo $item->name; ?></h1>
<div style="margin-right: 0px;" class="center2">
<div class="cont">
<div style="
height: 270px;
">
<div class="gamepic"><img alt="" src="<? echo $item->iconurl; ?>" style="
width: 450px;
height: 255px;
"></div>
<div style="
background: rgba(69, 178, 157, 0.09);
padding: 4px 7px;
color: #59545E;
"><div style="
font-weight: bold;
color: #309380;
font-size: 15px;
">Способы оплаты</div>
Вы можете оплатить данный товар наиболее подходящей для Вас платежной системой.
</div><div style="
background: rgba(69, 178, 157, 0.09);
color: #59545E;
margin-top: 15px;
padding: 4px 7px;"><div style="font-weight: bold; color: #309380; font-size: 15px;
">Моментальная доставка</div>Данные придут через несколько секунд после покупки, на Ваш почтовый ящик!
</div>
<div class="cont" style="margin-top: 15px; ">
<div class="value"><span><? echo round($item->price_rub*100)/100;?><i class="fa fa-rub" style="margin-left: 5px;background: url(/011/rur1.png) no-repeat; width: 14px; height: 16px;"></i></span></div>
<a data-toggle="modal" data-target="#setWayForMoney" style="cursor:pointer;" onclick="BuyButtonClick(<? echo $item->id;?>)" style="color:#fff;" class="add">Купить</a>
</div>
</div> </div>
</div>
</div>
<script>
(function ($) {
$(function () {
$('ul.tabs').on('click', 'li:not(.current)', function () {
$(this).addClass('current').siblings().removeClass('current').parents('div.section').find('div.list_box').eq($(this).index()).fadeIn(0).siblings('div.list_box').hide();
})
})
})(jQuery)
</script><div class="section">
<ul class="tabs tabs2" style="width: 100%;">
<li class="current" style="font-size: 15px;width: 68px;text-transform: none;">Описание</li>
<li style="font-size: 15px;width: 68px;text-transform: none;">Отзывы</li>
</ul>
<div class="list_box visible">
<?php echo $item->descr; ?>
</div>
<div class="list_box">
<table class="table table-bordered" style="background-color: white;"><tbody>
<tr title=""><td style="width: 100px;">Отзывы</td><td>Посмотреть на <a href="/reviews">все отзывы</a></td></tr><tr title=""><td><span>Дата:</span></td><td><span>Отзыв: <img src="http://www.wmcentre.net/i/gd.gif" alt=""> - положительный <img src="http://www.wmcentre.net/i/bd.gif" alt=""> - отрицательный</span></td>
</tr>
<?
$query = mysql_query("SELECT * FROM `jobs` WHERE `domen` = 'domen'");
$query = mysql_query("SELECT * FROM `review` WHERE `item_id` = '".$item->id."' ORDER BY `id` DESC limit 30");
if(!mysql_num_rows($query))
echo "<tr><td colspan='3'>Для данного товара отзывы отсутствуют. Посмотреть на <a href='/reviews'>все отзывы</a></td></tr>";
else {
while($arr = mysql_fetch_array($query)) {
if(1 == $arr['review']) {
$style = 'style="background: rgb(196, 242, 186);margin-top:15px;padding: 10px;"';
}
else {
$style = 'style="background: rgb(242, 186, 186);margin-top:15px;padding: 10px;"';
}
echo '<tr title="">';
echo '<td>'.$arr['date'].' Имя:'.$arr['name'].'';
echo '</td>';
echo '<td '.$style.'>'.$arr['text'].'';
echo '</td>';
echo '</tr>';
}}
?>
</tbody></table>
</div> </div>
</div>
</div>
<? endforeach; ?>
<? else: ?>
<tr>
<td colspan="3">Товар не найден...Приходите позже!</td>
</tr>
<? endif; ?>