|
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 : /home/queenjbs/www/store/ |
Upload File : |
<?
//유료회원 로그인체크
if(($sessionLevel =='' || $sessionLevel =='3') && ($tab == 8)){
if(!$sessionLevel){
echo "<script>location.replace('/member/?tab=12&tabs=1');</script>";
}else{
echo "<script>location.replace('/member/?tab=12&tabs=9');</script>";
}
exit;
}
//일반회원 로그인체크
if((!$sessionLevel) && ($tab == 10)){
echo "<script>location.replace('/member/?tab=12&tabs=1');</script>";
exit;
}
//정회원은 일반스토어에서 살수 없게..
if($sessionLevel==10 && $tab == 10){
echo "<script>alert('正会員様は正会員STOREにてご購入ください。'); location.replace('/store/?tab=8&tabs=1');</script>";
exit;
}
$reset_url=$_SERVER['HTTP_REFERER'];
echo"<input type=hidden name='returnUrl' value='$reset_url' size='40'>";?>
<?
if($mode == "cart"){
$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);
}elseif($mode == "order"){
$qry = "
SELECT
A.uid as puid,
B.optPrice as price,
B.optName as name,
B.uid as optuid
FROM
shop_product as A , shop_product_opt as B
WHERE
A.uid='$idx' and
A.uid=B.product_prt
ORDER BY B.uid
";
$result= mysql_query($qry,$db_con);
$total = mysql_affected_rows();
}
?>
<script language="JavaScript">
<!--
function send_input(flag){
var f = document.form;
if(flag==1){
f.r_name.value = f.o_name.value;
f.r_email.value = f.o_email.value;
f.r_tel.value = f.o_tel.value;
f.r_addr.value = f.o_addr.value;
f.r_zip.value = f.o_zip.value;
}else{
f.r_name.value ="";
f.r_email.value="";
f.r_tel.value="";
f.r_addr.vaule = "";
f.r_zip.vaule = "";
}
}
function chkdeli(val){
var f = document.form;
if(!f.deli_price.value){
f.deli_price.value = val;
}
document.getElementById("span_price1").innerHTML = val+"円";
f.total_price.value = eval(val) + eval(f.tmp_price.value);
document.getElementById("span_price2").innerHTML = f.total_price.value+"円(税込)";
}
function checkr(){
var obj = document.form;
if(!obj.r_name.value){
alert("お名前をご入力下さい.");
obj.r_name.focus();
return;
}else if(!obj.r_email.value){
alert("電子メールをご入力下さい.");
obj.r_email.focus();
return;
}else if(!obj.o_tel.value){
alert("電話番号をご入力下さい.");
obj.r_tel.focus();
return ;
}else if(!obj.o_addr.value){
alert("住所をご入力下さい.");
obj.r_addr.focus();
return;
}else if(!obj.o_zip.value){
alert("郵便番号をご入力下さい.");
obj.r_zip.focus();
return;
}else if(!obj.deli_price.value){
alert("配送選択をお選び下さい.");
obj.deliradio.focus();
return;
}
if((obj.r_email.value.indexOf("@")==-1) || (obj.r_email.value.indexOf(".")==-1)){
alert("E-mailを正確にご入力下さい.");
obj.r_email.focus();
return;
}
obj.mode.value = "order_proc";
obj.action = "./store_order_proc.php";
obj.submit();
}
//-->
</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>Order Confirm</span>
</div>
<!--div class="cancle_notice">
製品の注文内訳を取り消したい場合、「取り消し」ボタンか、「カートを空にする」をクリックするとリスト内の商品が取り消しされます。
注文商品の数量を修正する場合は、数量変更の後に「修正完了」をクリックして下さい。
</div-->
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="cart_list" style="background:url(/images/store/list_ti_bg2.gif) no-repeat left top">
<tr>
<th width="89" height="32">商品</th>
<th width="402">商品名(オプション)</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 {
for($i=0; $i<$total; $i++) {
$row = mysql_fetch_array($result);
if(${goodsCnt.$i} !=0){
$imgName = get_db("select file_name from files where module_no = '$row[puid]' and module_name='shop' and module_type='T'");
if($mode == "cart"){ $productCnt=$row[product_cnt];}
else{$productCnt=$goodsCnt;}
$sumPrice = ${goodsCnt.$i} * $row[price];
$totalPrice = $totalPrice + $sumPrice;
$totalCnt = $totalCnt + ${goodsCnt.$i};
?>
<input type="hidden" name="goodsuid" value="<?=$idx?>">
<input type="hidden" name="goodsname" value="<?=$row[name]?>">
<input type="hidden" name="goodPrice[]" value="<?=$row[price]?>">
<input type="hidden" name="optNum[]" value="<?=$row[optuid]?>">
<input type="hidden" name="optName[]" value="<?=$row[name]?>">
<tr class="items">
<td><img src="/files/muti/shop/<?=$imgName?>" width="100"></td>
<td class="al_left">
<?=$row[name]?>
</td>
<td class="v_al_top">
<?=$row[price]?>円
</td>
<td class="v_al_top"><input type="text" name="buynum[]" style="width:20px;" value='<?=${goodsCnt.$i}?>' readonly/>個<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="2">合計</td>
<td class="re_02" colspan="2"><span>総数量 :</span> <?=$totalCnt?>個</td>
<td class="re_03" colspan="2"><span>総金額 :</span> <?=$totalPrice?>円</td>
</tr>
</table>
<?
if($sessionIDX){
$res = Get_dbres("select * from user where id = '$sessionIDX'");
$row = mysql_fetch_array($res);
$res2 = Get_dbres("select * from user_profiles where user_id = '$sessionIDX'");
$row2 = mysql_fetch_array($res2);
$zipcode = $row2[zip1]."-".$row2[zip2];
}
?>
<table width="630" border="0" cellspacing="0" cellpadding="0" class="order_form_01">
<tr>
<th colspan="4" align="left"><img src="/images/store/icon_circle.gif" /> 注文顧客情報</th>
</tr>
<tr>
<td width="80">名前</td>
<td width="83%" class="form_right"><input type="text" name="o_name" value="<?=$row[username]?>"/></td>
</tr>
<tr>
<td>電子メール</td>
<td colspan="3"><input type="text" name="o_email" value="<?=$row[email]?>"/></td>
</tr>
<tr>
<td>郵便番号</td>
<td colspan="3"><input type="text" name="o_zip" value="<?=$zipcode?>"/></td>
</tr>
<tr>
<td>住所</td>
<td colspan="3" ><input type="text" name="o_addr" size="80" value="<?=$row2[juso]?>"/></td>
</tr>
<tr>
<td>電話番号</td>
<td colspan="3"><input type="text" name="o_tel" value="<?=$row2[tel]?>"/></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="order_form_01">
<tr>
<th align="left" width="20%">
<img src="/images/store/icon_circle.gif" /> お届け先情報
</th>
<th align="left" class="pad_left" width="60%">
<span><input type="radio" name="chkinfo" value="1" onclick="send_input(this.value)"/> 注文顧客情報と同一</span>
<span><input type="radio" name="chkinfo" value="2" onclick="send_input(this.value)" checked/> 新しく追加</span>
</th>
<!--th><a href="#"><span class="info_share2">配送社への情報提供同意</span></a></th-->
</tr>
<tr>
<td width="17%">配送選択</td>
<td width="83%" colspan="2" class="form_right">
<?
$QUERY_PAGE = "SELECT * FROM shop_deli where product = '$idx'";
$results= mysql_query($QUERY_PAGE,$db_con);
$totals = mysql_affected_rows();
for($i=0; $i<$totals; $i++) {
$rows = mysql_fetch_array($results);
if($idx == 40 || $idx == 59){
$sumDeli = $rows[deliPrice] + (($totalCnt-1)*300);
}else if(($idx == 54 || $idx == 55) && $totalPrice >='5000'){
$sumDeli = 0;
}else{
$sumDeli = $rows[deliPrice];
}
echo "<input type='radio' name='deliradio' value='".$sumDeli."' onclick='chkdeli(this.value);'/>".$rows[deliName]." ".$sumDeli."円";
}
?>
</td>
</tr>
<tr>
<td>注文者名</td>
<td colspan="2" class="form_right"><input type="text" name="r_name"/> <span class="a3a3a3">商品の受取人の名前をご入力下さい</span></td>
</tr>
<tr>
<td>電子メール</td>
<td colspan="2"><input type="text" name="r_email"/></td>
</tr>
<tr>
<td>郵便番号</td>
<td><input type="text" name="r_zip"/></td>
</tr>
<tr>
<td>住所</td>
<td colspan="2"><input type="text" name="r_addr" size="80"/></td>
</tr>
<tr>
<td>電話番号</td>
<td colspan="2"><input type="text" name="r_tel"/></td>
</tr>
<tr>
<td>配送中注意事項</td>
<td colspan="2"><textarea name="memo"></textarea></td>
</tr>
</table>
<!--table width="100%" border="0" cellspacing="0" cellpadding="0" class="order_form_01">
<tr>
<th colspan="2" align="left"><img src="/images/store/icon_circle.gif" /> 入金情報</th>
</tr>
<tr>
<td width="20%">入金者名</td>
<td width="80%" class="form_right"><input type="text" name="b_name"/> <span class="a3a3a3">会員IDで振込みすると入金確認できます</span></td>
</tr>
<tr>
<td>入金日付</td>
<td>
<?
$StartYear = date("Y");
$StartMonth = date("m");
if($StartMonth==0){
$StartYear = date("Y")-1;
$StartMonth = 12;
}
$StartDay = date("d");
?>
<select name="StartYear">
<option value="" selected>====</option>
<? for($sy=date("Y")+1; $sy>=2009; $sy--) { ?>
<option value="<?=$sy?>" <?if($StartYear == $sy) echo "selected";?>><?=$sy?></option>
<? } ?>
</select> 年
<select name="StartMonth">
<option value="" selected>==</option>
<? for($sm=1; $sm<=12; $sm++) { ?>
<option value="<?=$sm?>" <?if($StartMonth == $sm) echo "selected";?>><?=$sm?></option>
<? } ?>
</select> 月
<select name="StartDay">
<option value="" selected>==</option>
<? for($sd=1; $sd<=31; $sd++) { ?>
<option value="<?=$sd?>" <?if($StartDay == $sd) echo "selected";?>><?=$sd?></option>
<? } ?>
</select> 日
</td>
</tr>
<tr>
<td></td>
<td class="form_right"><span class="grey67">入金者名と入金日付を正確にご入力頂きますと入金確認が早く処理できます。もし会員IDで振込みしていない方や入金日付を間違ってご入力頂いた方々はマイページのショッピング情報にて必ず修正して下さい。</span></td>
</tr>
</table-->
<div class="result2">
<dl class="result_left">
<dt>決済金額</dt>
<dd>
<ul>
<li class="b7a06e">注文商品合計</li>
<li class="grey67"><?=$totalCnt?>個</li>
</ul>
</dd>
<dd>
<ul>
<li class="b7a06e">注文商品総金額</li>
<li class="grey67"><?=$totalPrice?>円</li>
</ul>
</dd>
<dd class="uline">
<ul>
<li class="b7a06e">運送費</li>
<li class="grey67"><span id="span_price1">0円</span></li>
</ul>
</dd>
<dd>
<ul>
<li class="b7a06e" style="line-height:19px;">決済金額合計</li>
<li class="b70002"><span id="span_price2"><?=$totalPrice?>円(税込) </span></li>
</ul>
</dd>
</dl>
<dl class="result_right">
<dt>入金銀行</dt>
<dd>・銀行名:三菱東京UFJ銀行</dd>
<dd>・支店名:世田谷支店(店番:130)</dd>
<dd>・口座番号:(普通)0053199</dd>
<dd>・預金者名:㈱ルック・コリア・ジャパン</dd>
</dl>
</div>
<input type="hidden" name="deli_price" value="">
<input type="hidden" name="tmp_price" value="<?=$totalPrice?>">
<input type="hidden" name="total_price" value="<?=$totalPrice?>">
<div class="cart_btns">
<!--p>「購入する」ボタンをクリックするとご注文内容や配送に関わる情報をご確認頂けます</p-->
<ul>
<!--a href="#"><li class="btn_01">ショッピングを続ける</li></a-->
<a href="/store/?tab=8&tabs=1"><li class="btn_02">取り消し</li></a>
<a href="javascript:checkr();"><li class="btn_03">購入する</li></a>
</ul>
</div>
</div> <!-- /right_contents -->