Файл: Luxe-Shop v6.0/application/views/templates/Mac_3.3/item/item.php
Строк: 106
<? echo $modals; ?>
<style>
.paytable > tbody > tr > td{border: 1px solid #797360;padding: 5px 10px;vertical-align: middle;}
.paytable{color: #000000;}
</style>
<table class="table table-bordered">
<thead>
</thead>
<tbody>
<div class="product-info">
<? if(count($items)): foreach($items as $item): ?>
<div class="wrapper indent-bot">
<div class="fleft left spacing"style="background: <? echo config_item('Mac_3_3_colorpanel'); ?>; padding-left: 9px;padding-top: 9px;height: 280px;padding-right: 0px;margin-right: 0px;width: 800px;">
<div rel='<? echo $item->id; ?>' title="<? echo $item->name; ?>">
<div class="image" data-target="#myModal_<? echo $item->id;?>">
<div class="poster">
<center>
<? echo empty($item->iconurl) ? '' : '<img style="display: block; width: 324px; height: 262px;" src="'.$item->iconurl.'" />'; ?>
</center>
</div>
<div class="infor">
<div class="item-top"style="
padding-top: 5px;
">
<span><? echo $item->name; ?></span>
</div>
<div class="buy-item">
<div class="coast">В наличии: <? echo $item->count; ?> шт.</div> <div class="coast"><? echo round($item->price_rub*100)/100;?> руб.</div>
<input type="text" style='display:none;' class="form-control input-micro" id="number-of-items-<? echo $item->id;?>" style="width:30px; height:20px;display:inline;padding:0; " value="<? echo $item->min_order;?>">
<a class="macpay-buyButton2" data-toggle="modal" data-target="#setWayForMoney" style="display:inline;cursor:pointer;" onclick="BuyButtonClick(<? echo $item->id;?>)">Купить товар</a>
</div>
</div>
</div>
</div>
</div>
<div class="full-content">
<div class="lcol"style="
padding-left: 1px;
">
<ul class="full-nav"style="
padding-top: 7px;
">
<li class="cur">Краткое описание</li>
</ul>
<div class="tab-box cur"style="padding-left: 1px;">
<p><?php echo $item->descr; ?></p>
</div> <? if(1 == config_item('reviews')):?><div class="tab-box">
<table class="table table-bordered" style="background-color: black;"><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");
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><?endif;?></div>
</div></div></div></div>
<? endforeach; ?>
<? else: ?>
<tr>
<td colspan="3">Товар не найден...Приходите позже!</td>
</tr>
<? endif; ?>
</tbody>
</table>
<? if(count($items)) : ?>
<? endif; ?>
<div class="">
<? echo config_item('sogl'); ?>
</div>
<style>
.full-nav {
display: inline-block;
margin-bottom: -10px;
}
.full-nav li.cur {
background: <? echo config_item('Mac_3_3_colorblock'); ?>;
}
.coast {
text-shadow: 0 1px 0 #bd0606;
background: <? echo config_item('Mac_3_3_colorblock'); ?>;
margin-right: 8px;
line-height: 28px;
padding: 0 8px;
height: 29px;
color: #fff;
float: left;
}
a.macpay-buyButton2 {
-webkit-transition: All .4s ease;
-moz-transition: All .4s ease;
-o-transition: All .4s ease;
padding: 5px 10px;
display: block;
-moz-border-radius: 0px;
-webkit-border-radius: 0px;
border-radius: 0px;
background: <? echo config_item('Mac_3_3_colorblock'); ?>;
font-size: 14px;
cursor: pointer;
line-height: 2;
padding-bottom: 7px;
border: 0 none;
color: #fff;
font-family: 'Calibri',sans-serif;
}
</style>