|
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17 System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64 User : nobody ( 99) PHP Version : 5.2.17 Disable Function : NONE Directory : /proc/21571/root/home/queenjbs/www/store/ |
Upload File : |
<?
if($HTTP_SESSION_VARS[S_IDX]){
//$hit_query = "update shop_$tableName set hit = hit+1 where no='$idx'";
//$results = mysql_query($hit_query,$db_con);
$qry = "select a.uid,a.product_cnt,b.name,b.price,b.upfiles from shop_cart as a join shop_product as b on a.product = b.uid where a.mbruid = '$HTTP_SESSION_VARS[S_IDX]'";
$result= mysql_query($qry,$db_con);
$total = mysql_affected_rows();
//$imgName = get_db("select file_name from files where module_no = '$row[uid]' and module_name='shop' and module_type='C'");
//$regDate = substr($row[reg_date],0,10);
}
?>
<script type="text/javascript">
<!--
function cartDel(vTabNo){
}
-->
</script>
<link href="/css/store/base.css" type=text/css rel=stylesheet>
<link href="/css/store/layout_personal.css" type=text/css rel=stylesheet>
<link href="/css/store/shopping2.css" type=text/css rel=stylesheet>
<div id="right_contents">
<div class="title_area">
<p><img src="/images/store/store_title.gif" /></p>
<ul>
<li class="no_on"><img src="/images/store/no_01_on.gif" /> <span class="location">カート</span></li>
<li><img src="/images/store/icon_arrow.gif" /></li>
<li><img src="/images/store/no_02.gif" /> <span>注文書作成</span></li>
<li><img src="/images/store/icon_arrow.gif" /></li>
<li><img src="/images/store/no_03.gif" /> <span>注文完了</span></li>
</ul>
</div>
<div class="subtitle_area">
カートリスト <span>Cart List</span>
</div>
<div class="cancle_notice">
製品の注文内訳を取り消したい場合、「取り消し」ボタンか、「カートを空にする」をクリックするとリスト内の商品が取り消しされます。
注文商品の数量を修正する場合は、数量変更の後に「修正完了」をクリックして下さい。
</div>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="cart_list">
<tr>
<th width="59" height="32">CHECK</th>
<th width="90">商品</th>
<th width="342">商品名(オプション)</th>
<th width="98">価格</th>
<th width="80">数量</th>
<th width="115">金額</th>
</tr>
<? if($total == 0) { ?>
<tr bgcolor="#FFFFFF">
<td height="30" colspan="6" align="center">データがありません。</td>
</tr>
<?
} else {
$k=1;
for($i=0; $i<$total; $i++) {
$row = mysql_fetch_array($result);
$sumPrice = $row[product_cnt] * $row[price];
$totalPrice = $totalPrice + $sumPrice;
$totalCnt = $totalCnt + $row[product_cnt];
?>
<tr class="items">
<td><input type="checkbox" /></td>
<td><img src="/images/store/thumb_sample.gif" /></td>
<td class="al_left">
<?=$row[name]?>
</td>
<td class="v_al_top"><?=$row[price]?>円</td>
<td><input type="text" style="width:20px;" value='<?=$row[product_cnt]?>'/>個<br />
<span><a href=""><img src="/images/store/btn_revise.gif" /></a></span>
</td>
<td class="v_al_top"><?=$sumPrice?>円</td>
</tr>
<?
}
}
?>
<tr class="result">
<td class="re_01" colspan="3">合計</td>
<td class="re_02"><span>総数量 :</span><?=$totalCnt?>個</td>
<td class="re_03" colspan="2"><span>総金額 :</span> <?=$totalPrice?>円</td>
</tr>
</table>
<div class="cart_btns">
<p>「購入する」ボタンをクリックするとご注文内容や配送に関わる情報をご確認頂けます</p>
<ul>
<a href="./?<?=$tab07?>"><li class="btn_01">ショッピングを続ける</li></a>
<a href="javacript:cartDel('<?=$HTTP_SESSION_VARS[S_IDX]?>');"><li class="btn_02">カートを空にする</li></a>
<a href="#"><li class="btn_03">購入する</li></a>
</ul>
</div>
</div> <!-- /right_contents -->