KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
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/jaejoong_X/pages/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //home/queenjbs/jaejoong_X/pages/store_order.html
<?php

	include $_SERVER['DOCUMENT_ROOT']."/conf/conf_dir.php";

	$PAGE_GUBUN =	"6";

	include $_SERVER['DOCUMENT_ROOT']."/pages/inc_top.php";

/*
[POST] idx => Array           : 옵션번호
[POST] goodOption => Array    : 단가 x 개수
[POST] product_pri => Array   : 단가
[POST] goodCnt => Array       : 개수
[POST] product_prt => Array   : 상품번호
*/


	if(($sessionLevel =='' || $sessionLevel =='3')){
		if(!$sessionLevel){
			echo "<script>location.replace('./login.php');</script>";
		}else{
			echo "<script>location.replace('./guide.php');</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="/sys_css_js/store/base.css" type=text/css rel=stylesheet>
<link href="/sys_css_js/store/layout_personal.css" type=text/css rel=stylesheet>
<link href="/sys_css_js/store/shopping2.css" type=text/css rel=stylesheet>
-->
<style>
		#subtitle_area {float:left; width:1000px; height:30px;  font-size:18px; text-align:left;}

		#title_area 				{width:1000px; height:50px; }
		#title_area ul 	{ margin:0 auto; width:350px; height:50px; }
		#title_area li 	{height:50px;  color: rgb(168, 168, 168); line-height: 24px; padding-right: 10px; font-weight: bold; float: left; vertical-align:middle;}

		.result2 {
			background: rgb(251, 243, 220); margin: 18px 0px 19px; padding: 0px; border: 1px solid rgb(210, 211, 213); border-image: none; width: 1000px; overflow: hidden;
		}
		.result_left {
			margin: 0px; padding: 20px 20px 10px; width: 497px; text-align: left; border-right-color: rgb(211, 211, 211); border-right-width: 1px; border-right-style: solid; float: left;
		}
		.result2 dt {
			font-size: 14px; font-weight: bold; margin-bottom: 19px;
		}
		.result_left dd {
			margin-bottom: 10px;
		}
		.result_left dd.uline {
			padding-bottom: 16px; border-bottom-color: rgb(153, 153, 153); border-bottom-width: 1px; border-bottom-style: solid;
		}
		.result_left dd ul {
			overflow: hidden;
		}
		.result_left dd ul li {
			width: 151px; font-weight: bold; float: left; display: inline-block;
		}
		.result_left dd ul li span {
			font-weight: normal;
		}
		.result_right {margin: 0px; padding: 20px 0px 0px 18px; width: 450; float: left; text-align:left;		}
		.result_right dd {
			margin-bottom: 11px;
		}


.cart_btns {
	text-align: center;
}
.cart_btns p {
	padding: 19px 0px;
}
.cart_btns ul {
	height: 31px; padding-right: 13px; margin-top: 9px; float: right;
}
.cart_btns li {
	height: 31px; color: rgb(255, 255, 255); line-height: 32px; padding-right: 5px; font-weight: bold; float: left;
}
.cart_btns li.btn_01 {
	background: url("/images/store/btn_continue.gif") no-repeat; width: 137px;
}
.cart_btns li.btn_02 {
	background: url("/images/store/btn_delete.gif") no-repeat; width: 105px;
}
.cart_btns li.btn_03 {
	background: url("/images/store/btn_purchase.gif") no-repeat; width: 101px; padding-left: 20px;
}

</style>

<form id="form" name="form" enctype="multipart/form-data">
<input type=hidden name="tab" value="<?=$tab?>">
<input type=hidden name="tabs" value="<?=$tabs?>">
<input type=hidden name="mode" value="<?=$mode?>">
<input type=hidden name="idx">

 <div id="page_index">
  <a href="default.php">HOME</a> > STORE<br />
 </div>


 <div id="sub_content_box">

  <div id="subtitle_area">
   注文情報確認&nbsp;<span>Order Confirm</span>
  </div>

		<div id="title_area">
   <ul >
    <li><img src="/images/store/no_01_on.gif" /></li>
    <li>&nbsp;カート</li>
    <li><img src="/images/store/icon_arrow.gif" /></li>
    <li><img src="/images/store/no_02.gif" /></li>
    <li>注文書作成</li>
    <li><img src="/images/store/icon_arrow.gif" /></li>
    <li><img src="/images/store/no_03.gif" /></li>
    <li>注文完了</li>
   </ul>
  </div>

  <!--div class="cancle_notice">
   製品の注文内訳を取り消したい場合、「取り消し」ボタンか、「カートを空にする」をクリックするとリスト内の商品が取り消しされます。
   注文商品の数量を修正する場合は、数量変更の後に「修正完了」をクリックして下さい。
  </div-->
  <table width="100%" class="basic_table">
   <colgroup>
    <col width='20%'>
    <col	width="20%">
    <col width='20%'>
    <col width='20%'>
    <col width='20%'>
   </colgroup>
   <thead>
    <tr>
     <th class="title_le">商品</th>
     <th class="title_le">商品名(オプション)</th>
     <th class="title_le">価格</th>
     <th class="title_le">数量</th>
     <th class="title_le">金額</th>
    </tr>
   </thead>
   <tbody>
  <? 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="bottom_ri">
    <td class="re_01" colspan="3">合計</td>
    <td class="re_02" ><span>総数量 :</span> <?=$totalCnt?> 個</td>
    <td class="re_03" ><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];
	}
	?>

 </div>

 <div id="sub_content_box">
  <div id="subtitle_area" style="margin-top:50px;">
   <img src="/images/store/icon_circle.gif" />&nbsp;注文顧客情報
  </div>
  <table width="100%" class="basic_table">
			<colgroup>
    <col width='20%'>
    <col	width="80%">
   </colgroup>
   <tbody>
    <tr>
     <th class="title_le_w_top">名前</th>
     <td class="title_ri_w_top"><input type="text" name="o_name" value="<?=$row[username]?>" class='input_box'/></td>
    </tr>
    <tr>
     <th class="title_le_w">電子メール</th>
     <td class="title_ri_w"><input type="text" name="o_email" value="<?=$row[email]?>" class='input_box'/></td>
    </tr>
    <tr>
     <th class="title_le_w">郵便番号</th>
     <td class="title_ri_w"><input type="text" name="o_zip" value="<?=$zipcode?>" class='input_box'/></td>
    </tr>
    <tr>
     <th class="title_le_w">住所</th>
     <td class="title_ri_w"><input type="text" name="o_addr" size="60" value="<?=$row2[juso]?>" class='input_box'/></td>
    </tr>
    <tr>
     <th class="title_le_w">電話番号</th>
     <td class="title_ri_w"><input type="text" name="o_tel" value="<?=$row2[tel]?>" class='input_box'/></td>
    </tr>
   </tbody>
  </table>
 </div>



 <div id="sub_content_box">
  <div id="subtitle_area" style="margin-top:50px;">
   <img src="/images/store/icon_circle.gif" />&nbsp;お届け先情報
			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			<span><input type="radio" name="chkinfo" value="1" onclick="send_input(this.value)"/>&nbsp;注文顧客情報と同一</span>
			<span><input type="radio" name="chkinfo" value="2" onclick="send_input(this.value)" checked/>&nbsp;新しく追加</span>
  </div>


	<table width="100%" class="basic_table">
			<colgroup>
    <col width='20%'>
    <col	width="80%">
   </colgroup>
  <tbody>

		<tr>
			<th class="title_le_w">配送選択</th>
			<td class="title_ri_w">
			<?

				//$QUERY_PAGE  = "SELECT * FROM shop_deli";//굿즈여러개 현장수령일때
				$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);

					echo "<input type='radio' name='deliradio' value='".$rows[deliPrice]."' onclick='chkdeli(this.value);' class='input_box'/>".$rows[deliName]." ".$rows[deliPrice]."円";
				}

			?>
			</td>
		</tr>
		<tr>
			<th class="title_le_w">注文者名</th>
			<td class="title_ri_w"><input type="text" name="r_name" class='input_box' />&nbsp;<span class="a3a3a3">商品の受取人の名前をご入力下さい</span></td>
		</tr>
		<tr>
			<th class="title_le_w">電子メール</th>
			<td class="title_ri_w"><input type="text" name="r_email" class='input_box'/></td>
		</tr>
		<tr >
			<th class="title_le_w">郵便番号</th>
			<td class="title_ri_w"><input type="text" name="r_zip" class='input_box'/></td>
		</tr>
		<tr >
			<th class="title_le_w">住所</th>
			<td class="title_ri_w"><input type="text" name="r_addr" size="60" class='input_box'/></td>
		</tr>
		<tr>
			<th class="title_le_w">電話番号</th>
			<td class="title_ri_w"><input type="text" name="r_tel" class='input_box'/></td>
		</tr>
		<tr>
			<th class="title_le_w">配送中注意事項</th>
			<td class="title_ri_w"><textarea name="memo"></textarea></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">会場受領</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>・口座番号:(普通) 0027348</dd>
		<dd>・預金者名:㈱ルック・コリア・ジャパン</dd>

		</dl>
	</div>



	<input type="hidden" name="deli_price" value="">
	<input type="hidden" name="goodsuid" value="<?=$idx?>">
	<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="/html_store/?tab=8&tabs=1"><li class="btn_02" id="btn">取り消し</li></a>
	<a href="javascript:checkr();"><li class="btn_03">購入する</li></a>
	</ul>
	</div>
</div>	<!--	/right_contents	-->
</form>

Anon7 - 2021