Файл: modules/shop/basket.php
Строк: 16
<?php
$title = 'Моя корзина';
include_once($_SERVER["DOCUMENT_ROOT"].'/style/head.php');
mode('user');
?>
<div class="title"><a href="/shop">Магазин</a> | Моя корзина</div>
<?
$nav=new navig("SELECT * FROM `basket` WHERE `id_us`='".$user['id']."'");
$q = $db->query("SELECT * FROM `basket` WHERE `id_us`='".$user['id']."' ORDER BY `id` DESC LIMIT ".$nav->start.", ".$nav->nstr);
while($f = $q->fetch_assoc()){
$w = $db->query("SELECT * FROM `shop_goods` WHERE `id`='".$f['id_good']."'")->fetch_assoc();
?>
<div class="textq">
<a href="/shop/good/<?=$w['id']?>"><?=htmlspecialchars($w['name'])?></a>
</div>
<?
}
?>
<div class="nvgstr">
<?
$nav->panel();
?>
</div>
<?
if($db->query("SELECT * FROM `basket` WHERE `id_us`='".$user['id']."'")->num_rows==0){
?>
<div class="error">Вы не добавляли товары в корзину.</div>
<?
}
include_once($_SERVER["DOCUMENT_ROOT"].'/style/foot.php');
?>