프리샵 추가
This commit is contained in:
38
shop/boxcart.inc.php
Normal file
38
shop/boxcart.inc.php
Normal file
@ -0,0 +1,38 @@
|
||||
<?
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
?>
|
||||
|
||||
<table cellpadding=0 cellspacing=0 bgcolor=#FFFFFF>
|
||||
<tr><td><a href='<?=$g4['shop_path']?>/cart.php'><img src='<?=$g4['shop_img_path']?>/bar_cart.gif' border=0></a></td></tr>
|
||||
<?
|
||||
if($is_member)
|
||||
$hsql_where = " ( a.uq_id = '".get_session('ss_uniqid')."' or a.mb_id = '{$member['mb_id']}' ) ";
|
||||
else
|
||||
$hsql_where = " a.uq_id = '".get_session('ss_uniqid')."' ";
|
||||
|
||||
if($sw_direct != 1)
|
||||
$hsw_direct = 0;
|
||||
else
|
||||
$hsw_direct = 1;
|
||||
|
||||
$hsql = " select a.it_id, b.it_name, a.ct_qty from {$g4['yc4_cart_table']} a left join {$g4['yc4_item_table']} b on ( a.it_id = b.it_id )
|
||||
where $hsql_where
|
||||
and a.it_id = b.it_id
|
||||
and a.ct_direct = '$hsw_direct'
|
||||
and a.ct_status = '쇼핑'
|
||||
group by a.it_id
|
||||
order by a.ct_id ";
|
||||
$hresult = sql_query($hsql);
|
||||
for ($i=0; $row=sql_fetch_array($hresult); $i++)
|
||||
{
|
||||
echo "<tr><td height=22><nobr style='display:block; overflow:hidden; width:170px;'> · ";
|
||||
$it_name = get_text($row['it_name']);
|
||||
// 이미지로 할 경우
|
||||
//$it_name = get_it_image($row[it_id]."_s", 50, 50, $row[it_id]);
|
||||
echo "<a href=\"{$g4['shop_path']}/cart.php\">$it_name</a></nobr></td></tr>\n";
|
||||
}
|
||||
|
||||
if ($i==0)
|
||||
echo "<tr><td><img src='{$g4['shop_img_path']}/nocart.gif'></td></tr>\n";
|
||||
?>
|
||||
</table>
|
||||
Reference in New Issue
Block a user