|
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/yuchun/ |
Upload File : |
<?
include "$DOCUMENT_ROOT/conf/conf_dir.php";
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();
}
if($total == 0)
{
$BOARD_LS = "<tr bgcolor='#FFFFFF'>
<td height='30' colspan='4' 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};
$BOARD_LS .= "<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]'>";
$BOARD_LS .= "<tr class='items'>
<td style='padding:3px;'><img src='/files/muti/shop/$imgName' width='100%'></td>
<td class='al_left' style='text-align:center;'>$row[name]</td>
<td class='v_al_top' style='text-align:center;'>
$row[price]円 <br/>
<input type='text' name='buynum[]' style='width:20px;' value='${goodsCnt.$i}' readonly/>個<br />
</td>
<td class='v_al_top' style='text-align:center;'>$sumPrice 円</td>
</tr>";
}
}
}
//회원정보 호출
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[zip];
}
if($idx==2){
//랜선팬미팅 정보동의로 수정.
$DELI_NAME = "個人上方収集・利用 ";
$DELI_PRICE= "<input type='radio' name='deliradio' value='0' onclick='chkdeli(this.value);' />情報収集に同意します。<br>
<textarea class='input_txt' readonly>
個人情報提供への同意
(株)ルック・コリアは個人情報処理方針に伴う、サービス及びサポートなどを提供するため、個人情報の第三者提供(パンヤTV)及び当社サービスの便益提供を目的(ID、PW、ニックネーム)及び処理委託を含む個人情報の利用及び収集に同意します。 [必須]
</textarea>
";
}else{
$DELI_NAME = "配送選択";
//$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);
$DELI_PRICE = "<input type='radio' name='deliradio' value='".$rows[deliPrice]."' onclick='chkdeli(this.value);' /> ".$rows[deliName]." ".$rows[deliPrice]."円";
}
}
?>
<style>
.order_dir {margin-top:30px; padding:5px; text-align:center;}
.order_dir li { padding:1%; display:inline; font-size:18px; color:#4c4b4b;}
.color_ff771c { color:#ff771c; } /* 주황색 */
.content_area_95 {margin:0 auto; padding:30px 0 30px 0; display:block; max-width:95%; }
/************************ @@ MOVIE ************************/
/* LEFT MOVIE LIST */
.movieList_le { display:block; text-align:left;}
.movieList_le li { margin:1px 1px 20px 1px; display:inline-block; vertical-align:top; text-align:center;}
.movieList_le li img { /*width:266px;*/ width:286px; height:160px; }
.movieList_le li p { display:block; height:30px; padding:3px 0 3px 0; }
.movieComt_ls_box {width:20%; min-width:286px; min-height:160px; display:inline-block; vertical-align:top; }
.movieComt_ls_box a {width:20%; max-width:264px; min-width:250px; height:146px;
display:table-cell;
vertical-align:top;
text-decoration:none;
transition:all .3s ease;
-moz-transition:all .3s ease;
-webkit-transition:all .3s ease;
opacity:0;}
.movieComt_ls_box .on .icon_on img {padding-top:50px; height:50px; width:50px;text-align:center;}
.movieComt_ls_box .on:hover {background:rgba(0,0,0,0); opacity:1; }
.movieComt_ls_box .off .icon_off img {padding-top:50px; height:56px; width:50px;text-align:center;}
.movieComt_ls_box .off:hover {background:rgba(0,0,0,0); opacity:1; border:7px solid #fec223;}
/*RIGHT MOVIE COMMNET*/
.con_right1 {width:812px; height:500px; display:inline-table; vertical-align:top;}
.movieBig {display:block; border: solid 1px rgb(211, 211, 211); background-color: rgb(245, 245, 245);/*padding:20px 20px 40px 20px;*/padding:10px 10px 40px 10px;}
.movieBig_del .image.featured img {display:block; width:100%; margin:0 0 2% 0;}
.movieBig_del h2 {color: rgb(51, 51, 51); font-size:1.5em; padding:16px 16px 0 16px; margin-bottom:20px;line-height:25px;}
.movie_icon ul {width:96%; padding:2%; display:block; border: solid 1px rgb(211, 211, 211); background-color: rgb(255, 255, 255);}
.movie_icon li {width:49%; display:inline-block; color:rgb(74,74,74); font-weight:600;}
.movie_icon .li_like img {text-align:left; vertical-align:middle; }
.movie_icon .li_gubun {text-align:right;}
.movie_icon .li_gubun .icon_txt {font-size:16px; color:#FEC223; font-weight:600; padding-left:5px;}
.movieComt_ar {padding:2%;display:block;}
.movieComt_del {padding:10px 10px 10px 0px; color:rgb(74,74,74); font-weight:600; }
.movieComt_del .icon_txt_02 {color:#FEC223; font-weight:600; padding-left:10px;}
.movieCom_name {position:relative; display:block; width:100%;}
.mv_date_tit {margin:0 auto; width:100%; padding:10px 0 5px 0;}
.mv_date_tit:after {clear: both; display: block; content: "";}
.mv_date_tit .mvCom_cot_le {display:inline-block; /*width:6%;*/ min-width:40px; max-width:40px; text-align: right; margin:5px 0 10px 0px;padding: 10px 2px 2px 2px;}
.mv_date_tit .mvCom_cot_ri {display:inline-block; width:92%; /*min-width:200px; */ font-weight:bold; vertical-align:top;}
.mvCom_cot_ri input[type=text],textarea {width:100%; padding: 10px; margin: 0; box-sizing: border-box; border: none; border: solid 1px rgb(254, 194, 35);background-color: rgb(255, 255, 255); font-size:12px; margin-top:5px;}
.mv_input_but ul {width:96%; border-bottom: 1px solid #d3d3d3; font-weight:600; color:rgb(51,51,51);padding:10px;}
.mv_input_but li {width:49%; display:inline-block; color:rgb(74,74,74); font-weight:600;}
.mv_txt {text-align:left; }
.mv_but {text-align:right;}
.mv_but .cancel {border: solid 1px rgb(211, 211, 211); background-color: rgb(245, 245, 245); padding:2px 10px 2px 10px;}
.mv_but .submitIn {background-color: rgb(254, 194, 35); padding:2px 10px 2px 10px; border: solid 1px rgb(254, 194, 35);}
.mv_date_tit {margin:0 auto; width:100%; padding:10px 0 5px 0;}
.mv_date_tit:after {clear: both; display: block; content: "";}
.nobody01 { background-color: rgb(254,194,34); } /* 노란인 */
.nobody02 { background-color: rgb(51,153,204); } /* 파란인 */
.nobody03 { background-color: rgb(102,204,204); } /* 파란인2 */
.mv_date_tit .mvdate_tit_le {display:inline-block; width:6%; min-width:40px; max-width:40px; margin-top:2%; text-align: right; margin:10px 0 10px 0px; padding: 10px 2px 2px 2px;}
.mv_date_tit .mvdate_tit_ri {display:inline-block; width:74%; min-width:200px; padding: 10px 2px 2px 10px; font-weight:bold; vertical-align:top;}
.mv_date_tit .mvdate_tit_ri h2 {color:rgb(51, 51, 51); font-size:1em; line-height:21px; font-weight:normal; }
.mvis_date {color:rgb(153, 153, 153); padding:0 0 10px 10px; font-weight:normal;}
/********************* MORE ********************************/
.pagination03 {width:100%; text-align:center; height:32px;background-image:url(/images/sub/sub_pagbar.png); background-repeat:repeat-x; border:solid 1px rgb(204, 204, 204);}
.pagination03 a {width:100%;}
.pagination03 img {padding:12px 0 10px 0;}
/********************* STORE********************************/
#join_step { height:31px; line-height:31px; border-bottom-color: rgb(219, 220, 222); border-bottom-width: 1px; border-bottom-style: solid; }
#join_step .join_step1 {width: 33%; text-align: center; color: rgb(158, 158, 158); font-size: 12px; float: left; }
#join_step .join_step2 {width: 33%; text-align: center; color: rgb(158, 158, 158); font-size: 12px; float: left; }
#join_step .join_step3 {width: 33%; text-align: center; color: rgb(158, 158, 158); font-size: 12px; float: left; }
#join_step .join_step4 {width: 33%; text-align: center; color: rgb(158, 158, 158); font-size: 12px; float: left; }
#join_step .now_step {color: rgb(34, 34, 34); font-weight: bold; }
.center_btn { width:100%; display:inline-block; padding:30px 0; text-align:center; }
.btn_index { display:inline-block; background: rgb(25, 25, 25) none repeat scroll 0 0; border: medium none currentcolor; color: rgb(255, 255, 255); font-family: "Meiryo","MS PGothic","MS UI Gothic",AppleGothic,sans-serif; font-size: 15px; font-weight: bold; height: 35px;line-height: 35px; margin: auto; text-align: center; width: 150px; cursor:pointer; border-radius:3px; margin-bottom: 10px; }
#btn_01 { display:inline-block; background: rgb(25, 25, 25) none repeat scroll 0 0; border: medium none currentcolor; color: rgb(255, 255, 255); font-family: "Meiryo","MS PGothic","MS UI Gothic",AppleGothic,sans-serif; font-size: 15px; font-weight: bold; height: 35px;line-height: 35px; margin: auto; text-align: center; width: 150px; cursor:pointer; border-radius:3px; margin-bottom: 10px;}
@media all and (min-width:1000px)
{
/********************* STORE_OREDER ********************************/
.order_form { width:100%; margin-top:30px; display:inline-block; }
.order_form h2 { margin-bottom:10px; font-size:1.5em; font-weight: 800; border-bottom:1px; border-bottom-style:solid; border-bottom-color:rgb(232, 232, 232); }
.account_content { padding: 0px 16px 43px; /* border-bottom-color: rgb(221, 221, 225); border-bottom-width: 1px; border-bottom-style: solid;*/}
.account_content .input_wrap { clear: both; }
.account_content input[type=text] { /*border-radius: 3px;*/ border: 1px solid rgb(174, 174, 175); border-image: none; height: 30px; }
input[type=number] { /*border-radius: 3px;*/ border: 1px solid rgb(174, 174, 175); border-image: none; height: 30px; }
input[type=email] { /*border-radius: 3px;*/border: 1px solid rgb(174, 174, 175); border-image: none; height: 30px; }
input[type=password] { /*border-radius: 3px;*/border: 1px solid rgb(174, 174, 175); border-image: none; height: 30px; }
.account_content .input_title { width: 30%; height: 30px; color: rgb(34, 34, 34); line-height: 30px; font-size: 12px; float: left; min-width: 80px;}
.account_content .input_bar { width: 0px; height: 28px; margin-right: 3%; margin-left: 1%; border-right-color: rgb(187, 187, 187); border-right-width: 1px; border-right-style: solid; float: left;}
.account_content .input_content { width: 65%; line-height: 20px; font-size: 14px; margin-bottom: 11px; float: left;}
.account_content .input_content .description_wrap { margin-top: 10px; }
.account_content .input_content .description { color: rgb(158, 158, 158); line-height: 18px; font-size: 11px; }
.account_content .input_content .description input[type=checkbox] { border: 1px solid rgb(187, 187, 187); border-image: none; height: 15px; }
.account_content .input_content .chk { color: rgb(94, 94, 94); }
.account_content .input_content .wrong { color: rgb(158, 158, 158); }
.account_content .input_content #zipcode_list { left: 0px; width: 100%; line-height: 15px; font-size: 12px; border-top-color: gray; border-bottom-color: gray; border-top-width: 1px; border-bottom-width: 1px; border-top-style: solid; border-bottom-style: solid; display: none; position: absolute; z-index: 20; background-color: rgb(255, 255, 255); }
.account_content .input_content #zipcode_list li { list-style: none; }
.account_content .input_content #zipcode_list li > a { padding: 5px 2px; border-bottom-color: rgb(229, 229, 229); border-bottom-width: 1px; border-bottom-style: solid; display: block; }
.account_content .input_content .btn_zip { width: 82px; height: 30px; line-height: 0px; font-size: 12px; float: right; }
.account_content .input_content .btn_zipcode { background: rgb(128, 133, 145); border-radius: 4px; border: currentColor; border-image: none; width: 130px; height: 30px; text-align: center; color: rgb(255, 255, 255); line-height: 30px; font-family: "Meiryo","MS PGothic","MS UI Gothic", AppleGothic, sans-serif; font-size: 11px; margin-bottom: 10px; display: block; }
.result2 {background: rgb(251, 243, 220); margin: 18px 0px 19px; padding: 0px; border-style:solid; border-width:1px 0 1px 0; border-color:rgb(210, 211, 213); border-image: none; width: 100%; overflow: hidden; }
.result_left {margin: 0px; padding: 20px 20px 10px; width:100%; text-align: left; border-right-color: rgb(211, 211, 211); border-right-width: 1px;}
.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:100%; float: left; text-align:left; }
.result_right dd {margin-bottom: 11px; }
}
</style>
<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("この商品を購入するには個人情報収集に同意が必要です。");
//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>
<div class="con_right"><!-- RIGHT -->
<form id="form" name="form" enctype="multipart/form-data" method="post">
<input type="hidden" name="mode">
<!--MIDDLE START-->
<div class="post">
<div id="join_step" style="margin-bottom:50px;">
<div class="join_step1 now_step">カート<div class="join_arrow"></div></div>
<div class="join_step2">注文書作成<div class="join_arrow"></div></div>
<div class="join_step4">注文完了</div>
</div>
<div id="board_ls" >
<table width="100%" class="basic_table">
<colgroup>
<col width="20%" />
<col width="30%" />
<col width='25%' />
<col width='25%' />
</colgroup>
<thead>
<tr>
<th class="title_le">商品</th>
<th class="title_le">商品名(オプション)</th>
<th class="title_le">価格/数量</th>
<th class="title_le">金額</th>
</tr>
</thead>
<tbody>
<?=$BOARD_LS ?>
<tr class="bottom_ri" style="background-color:#f0f0f0;">
<td class="re_01" style="padding:2%;">合計</td>
<td class="re_02" colspan="3" style="text-align:right; padding-right:10px;"><span>総数量 :</span> <?=$totalCnt ?> 個 <span>総金額 :</span> <?=$totalPrice ?> 円</td>
</tr>
</tbody>
</table>
</div>
<br /><br />
<div class="order_form">
<h2>注文顧客情報 </h2>
<div class="account_content">
<div class="input_wrap">
<div class="input_title" >名前</div>
<div class="input_content"><input type="text" id="o_name" name="o_name" class="input_box" value="<?=$row[kana_name1] ?>" /> </div>
</div>
<div class="input_wrap">
<div class="input_title" >電子メール</div>
<div class="input_content"><input type="text" id="o_email" name="o_email" class="input_box" value="<?=$row[email] ?>" /> </div>
</div>
<div class="input_wrap">
<div class="input_title" >郵便番号</div>
<div class="input_content"><input type="text" id="o_zip" name="o_zip" class="input_box" value="<?=$zipcode ?>" /> </div>
</div>
<div class="input_wrap">
<div class="input_title" >住所</div>
<div class="input_content"><input type="text" id="o_addr" name="o_addr" class="input_box" value="<?=$row2[juso] ?>" /> </div>
</div>
<div class="input_wrap">
<div class="input_title" >電話番号</div>
<div class="input_content"><input type="text" id="o_tel" name="o_tel" class="input_box" value="<?=$row2[tel] ?>" /> </div>
</div>
</div>
</div>
<div class="order_form">
<h2>お届け先情報</h2>
<div style="block; text-align:right;">
<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>
</div>
<div class="account_content">
<div class="input_wrap">
<div class="input_title" ><?=$DELI_NAME ?></div>
<div class="input_content"><?=$DELI_PRICE ?></div>
</div>
<div class="input_wrap">
<div class="input_title" >注文者名</div>
<div class="input_content"><input type="text" name="r_name" class='input_box' />
<div class="description">商品の受取人の名前をご入力下さい</div>
</div>
</div>
<div class="input_wrap">
<div class="input_title" >電子メール</div>
<div class="input_content"><input type="text" name="r_email" class='input_box'/></div>
</div>
<div class="input_wrap">
<div class="input_title" >住所</div>
<div class="input_content"><input type="text" name="r_addr" class='input_box'/></div>
</div>
<div class="input_wrap">
<div class="input_title" >電話番号</div>
<div class="input_content"><input type="text" name="r_tel" class='input_box'/></div>
</div>
<div class="input_wrap">
<div class="input_title" >配送中注意事項</div>
<div class="input_content"><textarea name="memo" class='input_txt'></textarea></div>
</div>
</div>
</div>
<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>購入後マイページより確認可能です。</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 id="step_btn">
<div class="center_btn">
<button type="button" class="btn_index" tabindex="5" onclick="javascript: view_paging('1','<?=$idx?>','');">取り消し</button>
<button class="btn_index" tabindex="5" onclick="javascript: checkr(); return false; ">購入する</button>
</div>
</div>
<br /><br />
</div>
</form>
</div>
</div><!-- RIGHT -->