Вход Регистрация
Файл: Luxe-Shop v6.0/application/views/templates/explicit/item/item.php
Строк: 151
<? if(count($items)): foreach($items as $item): ?>
<div style="margin-left:5px;"id='upproduction'>
                <div id='imgproduct' data-target="#myModal_<? echo $item->id;?>">
                <? echo empty($item->iconurl) ? '' '<img style="display: block; width: 300px; height: 150px;border-radius:3px;" src="'.$item->iconurl.'" />'?>
                </div>
                <div id='infoproduct'>
                <? $query mysql_query("SELECT * FROM `goods` WHERE `id` = '$item->id'");
while (
$array mysql_fetch_array($query)) {
if(
$array['goodspeople'] >= 1) {
$buygoods $array['goodspeople'];
}
else {
$buygoods '0';
}
}                
?>
                    <br><div id='greeproduct'><span><b>Название товара:</b></span>  <span ><?php echo $item->name?></span><br></div>
                        <div id='greeproduct'><span><b>Есть в наличии</b></span></div>
                        <div id='greeproduct'><span><b>Цена:</b></span> <span class="price"><? echo round($item->price_rub*100)/100;?></span> <span>RUB</span></div>
                    
                    
        <div id='oplataproduction'>
<a class="newabuy-buyButton" style="display:inline;cursor:pointer;margin-right:3px;" data-toggle="modal" data-target="#setWayForMoney" style="display:inline;cursor:pointer;" onclick="BuyButtonClick(<? echo $item->id;?>)" type="button">КУПИТЬ</a>
</div>
                        </div></div>
                        <br><div id='descreptionproduct'>Описание товара:</div>
                        <div id='opisproduction'><?php echo $item->descr;  ?></div>
                        
                        <style>
                        #comment {
                        width:640px;
                        min-height:50px;
                        margin-top:15px;
                        border-radius:2px;
                        color: #313e51;
                        }
                        #comment_name {
                        padding:5px;
                        float:left;
                        color:#111111;
                        font-size:12px;
                        }
                        #comment_time {
                        float:right;
                        color:#111111;
                        font-size:12px;
                        padding:5px;
                        }
                        #comment_text {
                        width:630px;
                        padding:5px;
                        font-size:13px;
                        color:#333333;
                        margin-top:-10px;
                        }
                        </style>
                        

                        
                        <? if(== config_item('reviews')):?>
                        
  <table class="table table-bordered" style="width: 630px;margin-top: 20px;margin-left: 10px;"><tbody>
<tr title=""><td style="width: 100px;">Отзывы</td><td></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(
== $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><?endif;?>
                    
<style type="text/css">
#imgproduct {
float: left;
height: 200px;
}
#infoproduct {
margin-left:210px;
}
#greeproduct {
background: <? echo config_item('head_color'); ?>;
padding: 4px;
margin-top: 3px;
border-radius:3px;
color: <? echo config_item('main_color'); ?>;
margin-left: 100px;
}
#greeproduct2 {
padding: 4px;
margin-top: 3px;
border-radius:3px;
color: <? echo config_item('head_color'); ?>;
}
#clearleftpr {
clear:left;
}
#descreptionproduct {
background: <? echo config_item('head_color'); ?>;
font-size: 14px;
margin-top: 130px;
margin-left: 10px;
color: white;
padding: 7px;
}
#opisproduction{margin-left:10px;margin-top:10px;padding: 10px;background: #EEE;}
#vkproduction2 {
margin-top: 50px;
displ<? echo config_item('vkv'); ?>y: none;
}
a.newabuy-buyButton {
    float: right;
    margin-top:5px;
    border: 2px solid <? echo config_item('head_color'); ?>;
    border-radius: 5px;
    color: <? echo config_item('head_color'); ?>;
    cursor: pointer;
    display: block;
    font-family: Tahoma,Arial;
    font-size: 14px;
    width:100px;
    text-align:center;
    line-height: 1.3em;
    padding: 5px 7px;
    transition: all 0.4s ease 0s;
}
a.newabuy-buyButton-empty {
    background: none repeat scroll 0 0 #CCCCCC;
    border: 0 none;
    border-radius: 3px;
    color: #FFFFFF;
    cursor: pointer;
    display: block;
    font-size: 14px;
    line-height: 1.3em;
    padding: 5px 7px;
    transition: all 0.4s ease 0s;
}
a.newabuy-buyButton:hover {
    background: none repeat scroll 0 0 <? echo config_item('head_color'); ?>;
    text-decoration: none;
    color: white;
}
a.newabuy-buyButton-empty:hover {
    cursor: default;
}
#oplataproduction {
margin-top: 30px;
height: 38px;
border-radius:3px;
width: 420px;
}
#upproduction {
height: 88px;
}
#item {
clear:left;
}
#note {
    border-radius: 0 0 3px;
    color: #FFFFFF;
    float: right;
    font-size: 11px;
    height: 17px;
    margin-top: -17px;
    position: relative;
    text-align: center;
    width: 120px;
}
</style>


        <? endforeach; ?>
<? 
else: ?>
    <tr>
        <td colspan="3">Товар не найден. Зайдите пожалуйста позже</td>
    </tr>
<? endif; ?>
Онлайн: 0
Реклама