|
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 : |
<?php
include $_SERVER['DOCUMENT_ROOT']."/conf/conf_dir.php";
$PAGE_GUBUN = "6";
include $_SERVER['DOCUMENT_ROOT']."/pages/inc_top.php";
?>
<!--
<link href="../../css_js/store/base.css" type=text/css rel=stylesheet>
<link href="../../css_js/store/layout.css" type=text/css rel=stylesheet>
<link href="../../css_js/store/shopping2.css" type=text/css rel=stylesheet>
-->
<style type="text/css">
#mall_area {margin:0 auto; width:900px;}
#prd_area {float:left; width:860px; padding:30px 20px 30px 20px; background:#fafafa; margin-bottom:20px;}
#prdimg {float:left; width:240px; margin-right:30px; text-align:right;}
#prdimg img {margin-bottom:10px;}
#prdrcon {float:left; width:570px; font-size:12px; line-height:19px; text-align:left;}
#prdrcon h2 {width:570px; height:35px; padding-bottom:5px;}
ul.recom {height:54px; line-height:48px; float:left; text-align:center;}
ul.recom li.ddabong {width:54px; height:48px; padding:0; float:right; background:url(/images/sub/ddabong_bg.gif) no-repeat; line-height:normal;}
ul.recom li.ddabong dl {width:45px; height:35px; margin:7px auto 6px; padding:0; clear:both; vertical-align:top;}
ul.recom li.ddabong dl dd.number {margin:0 0 2px 0; padding:0; height:12px; color:#d71a21; font-weight:bold;}
ul.recom li.ddabong dl dd.dd_img {margin:4px auto 0; width:21px; height:21px;}
#pricebox {float:left; width:570px; padding: 0 2px; voice-family: "\"}\""; voice-family: inherit;}
#pricebox s {
font-weight: 600;
}
#pricebox a {
margin-left: 8px;
}
#pricebox b {
font-weight: normal;
font-size: 16px;
letter-spacing: -1px;
color: #FE5400;
font-family: Arial, Helvetica, sans-serif;
}
#pricebox dd {
padding-top: 4px;
}
#pricebox .oblast {
font-size: 10px;
letter-spacing: -1px;
color: #1A8ACE;
padding-bottom: 3px;
display: block;
}
#pricebox .sprc {
padding: 0;
}
#pricebox .sprc s {
font-size: 14px;
}
span.black {color:#000;}
.underline {
padding-bottom: 8px;
margin-bottom: 2px;
border-bottom: 1px solid #D3D3D3;
width:570px;
}
.store_btn_area { width:580px; height:31px; float:right;}
.store_btn_area li {
float:right;
font-size:14px;
font-weight:bold;
line-height:32px;
color:#fff;
}
.store_btn_area li.purchase {
width:81px;
height:31px;
padding-left:40px;
margin-right:4px;
background:url(/images/store/btn_purchase.gif) no-repeat left top;
}
.store_btn_area li.cargo {
width:125px;
height:31px;
padding-left:40px;
background:url(/images/store/btn_cargo.gif) no-repeat left top;
}
#detale_wrap {float:left; width:900px;}
#detale_wrap ul {width:900px; height:27px; overflow:hidden; }
#detale_wrap ul li {float:left;}
#detale_wrap ul li.btn_top { margin:0; float:right;}
#detale_wrap .spec {
float:left;
width:880px;
padding:10px;
line-height:18px;
border-top:2px solid #d7d7d7;
border-bottom:1px dashed #f95755;
background:#efefef;
text-align:left;
}
#detale_wrap .editor {
float:left;
padding:10px;
}
/* input {font-family:lucida console;font-size:9pt} */
</style>
<script src="/css_js/chuchun.js" language="javascript"></script>
<script type="text/javascript">
<!--
function formChange(val,mode){
//내용변경
document.form.idx.value = val;
document.form.mode.value = mode;
document.form.method = "post";
document.form.action = "./store_order.html";
document.form.submit();
}
function caTabclick(vTabNo){
for(var k=1;k < 4;k++){
if(vTabNo == k){
document.getElementById('actTab'+k).src ="/images/store/tab_0"+k+"_on.gif";
document.getElementById('tab1_'+k).style.display="";
}else{
document.getElementById('actTab'+k).src ="/images/store/tab_0"+k+".gif";
document.getElementById('tab1_'+k).style.display="none";
}
}
}
function chkgoods(val,mode,goodsTotal){
var tmpChk = "";
if (goodsTotal == 0) goodsTotal=1;
for(var k=0;k < goodsTotal;k++){
if(document.getElementById('goodsCnt'+k).value != 0) tmpChk = 1;
}
if(tmpChk){
formChange(val,mode);
}else{
alert("数量を入れてください"); return;
}
}
function setCookie( name, value, expiredays ) {
var todayDate = new Date();
todayDate.setDate( todayDate.getDate() + expiredays );
document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() + ";"
}
function getCookie( name )
{
var nameOfCookie = name + "=";
var x = 0;
while ( x <= document.cookie.length )
{
var y = (x+nameOfCookie.length);
if ( document.cookie.substring( x, y ) == nameOfCookie ) {
if ( (endOfCookie=document.cookie.indexOf( ";", y )) == -1 )
endOfCookie = document.cookie.length;
return unescape( document.cookie.substring( y, endOfCookie ) );
}
x = document.cookie.indexOf( " ", x ) + 1;
if ( x == 0 )
break;
}
return "";
}
function cookieChk(idxval,tableNames){
if ( getCookie( "storechuchun"+idxval) != "done" ) {
setCookie("storechuchun"+idxval, "done" , 1 );
showCustomer2( idxval ,tableNames );
alert("お勧めしました.");
}else{
alert("既にお勧めしました");return false;
}
}
function selectChk(cnt,tmpprice){
tmp_sum_price = (tmpprice*cnt);
document.getElementById("span_price1").innerHTML = tmp_sum_price;
}
function selectChk2(cnt,tmpprice,val){
tmp_sum_price = (tmpprice*cnt);
document.getElementById("span_price"+val).innerHTML = tmp_sum_price;
}
function resize_Image(){
newX=event.x;
newY=event.y;
event.srcElement.width=newX;
event.srcElement.height=newY;
}
-->
</script>
<?
if($num){
$tableName = "product";
$qry = "SELECT * FROM shop_$tableName where uid='$num'";
$result= mysql_query($qry,$db_con);
$row = mysql_fetch_array($result);
$imgName = get_db("select file_name from files where module_no = '$row[uid]' and module_name='shop' and module_type='T'");
$regDate = substr($row[reg_date],0,10);
$QUERY_PAGE = "SELECT * FROM shop_product_opt where product_prt = '$num' order by uid ";
$results= mysql_query($QUERY_PAGE,$db_con);
$totals = mysql_affected_rows();
}
?>
<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">
<!--rightcon start-->
<div id="page_index">
<a href="default.php">HOME</a> > STORE
</div>
<div id="sub_content_box">
<div id="mall_area">
<div id="prd_area">
<div id="prdimg">
<a href="#"><img src="/files/muti/shop/<?=$imgName?>" width="242" alt="浜崎あゆみ" /></a><br />
<a href="/files/muti/shop/<?=$imgName?>" class="imgzoom" target="_blank"><img src="/images/store/btn_zoom.gif" alt="浜崎あゆみ"></a>
</div>
<div id="prdrcon">
<h2><?=$row[name]?></h2>
<ul class="recom" style="position:absolute; z-index:400;margin-left:515px;">
<li class="ddabong">
<dl>
<dd class="number" id="txtHint"><?=$row[vote]?></dd>
<dd class="dd_img"><img src="/images/sub/ddabong.gif" onclick="cookieChk('<?=$num?>','<?=$tableName?>');" style="cursor:pointer"/></dd>
</dl>
</li>
</ul>
<h3 class="stitle"><?=$row[addinfo]?></h3>
<dl id="pricebox">
<dd class="sprc">
<? if($totals == -1){ ?>
販売価格 : <s><?=$row[price1]?>円</s> <img src="/images/store/icon_money.gif" /><b><?=$row[price]?></b><span class="graybold">円 (税込)</span> <!--<a href="#"><img src="/images/store/btn_coupon.gif" alt="お得なクーポン"></a>-->
<? } ?>
</dd>
<dd><span class="black">・販売日 :</span> <?=$row[start_date]?> </dd>
<dd class="underline"><span class="black">・製造社 :</span> <?=$row[maker]?></dd>
<dd style="line-height:20px;">
購買数量 :
<?if($row[display]==0 || ($sessionLevel == 15)){
//$QUERY_PAGE = "SELECT * FROM shop_product_opt where product_prt = '$num' and display is null order by uid ";
$QUERY_PAGE = "SELECT * FROM shop_product_opt where product_prt = '$num' order by uid ";
$results= mysql_query($QUERY_PAGE,$db_con);
$totals = mysql_affected_rows();
if($totals == -1){
?>
<select name="goodsCnt" onChange="selectChk(this.value,'<?=$row[price]?>')">
<option value="0" selected>選択</option>
<?
for($i=1;$i<$goodsNumber;$i++){
echo "<option value=".$i.">".$i."</option>";
}
?>
</select>
個 <span id="span_price1">0</span>円 (税込)
<?
}else{
echo"<br/>";
for($i=0; $i<$totals; $i++){
if($totals != "-1"){ $rows = mysql_fetch_array($results);}
?>
<?=$rows[optName]?>
<?if($rows[display] == 1){
echo " <font color=red>SOLD OUT</font>";
?>
<select id="goodsCnt<?=$i?>" name="goodsCnt<?=$i?>" onChange="selectChk2(this.value,'<?=$rows[optPrice]?>',<?=$i?>)" disabled>
<option value="0" selected>選択</option>
</select><br />
<?
}else{
?>
<select id="goodsCnt<?=$i?>" name="goodsCnt<?=$i?>" onChange="selectChk2(this.value,'<?=$rows[optPrice]?>',<?=$i?>)">
<option value="0" selected>選択</option>
<?
//옵션 선택 갯수 정하기
if($row[uid]== 55 && $i == 5){
$goodsNumber =4;
}else if( $row[uid]== 3 || $row[uid]== 75 || $row[uid]== 76){ $goodsNumber = 4;
}else{ $goodsNumber = 11;}
for($j=1;$j<$goodsNumber;$j++){
echo "<option value=".$j.">".$j."</option>";
}
?>
</select>
個 <span id="span_price<?=$i?>">0</span>円 (税込)
<br />
<?}
}?>
<?
}
}else if($row[display]==1){?>
未定
<?}else if($row[display]==3){?>
販売締め切り
<?}?>
</dd>
<dd class="oblast">発売予定日: <?=$row[model]?><!--a href="#"><img src="/images/store/btn_addoption.gif" alt="入力欄追加" border="0"></a--></dd>
<!--dd><a href="#"><img src="/images/store/btn_buy.gif" alt="購入すること" border="0"></a><a href="#"><img src="/images/store/btn_wish.gif" alt="ウォッチリストに追加 " border="0"></a></dd-->
</dl>
<ul class="store_btn_area">
<?if($row[display]==0 || ($sessionLevel == 15)){?>
<!--<a href="javascript:alert('準備中です.');" style="text-decoration:none"><li class="cargo">カートに入れる</li></a>-->
<!--a href="javascript:chkgoods(<?=$num?>,'cart_proc');" style="text-decoration:none"><li class="cargo">カートに入れる</li></a-->
<a href="javascript:chkgoods(<?=$num?>,'order','<?=$totals?>');" style="text-decoration:none"><li class="purchase">購入する</li></a>
<?}else if($row[display]==1){?>
<li style="align=right;margin-right:10px;"><font color=red>[未定]</font></li>
<?}else if($row[display]==3){?>
<li style="align=right;margin-right:10px;"><font color=red>[販売締め切り]</font></li>
<?}?>
</ul>
</div>
</div>
<div id="detale_wrap">
<ul>
<li><img id="actTab1" src="/images/store/tab_01_on.gif" onclick="caTabclick(1);" style="cursor: pointer;"/></li>
<li><img id="actTab2" src="/images/store/tab_02.gif" onclick="caTabclick(2);" style="cursor: pointer;"/></a></li>
<li><img id="actTab3" src="/images/store/tab_03.gif" onclick="caTabclick(3);" style="cursor: pointer;"/></li>
</ul>
<div id="tab1_1" style="display:">
<div class="spec"><?=stripslashes($row[content])?></div>
<div class="editor"></div>
</div>
<div id="tab1_2" style="display:none">
<div class="spec"><?=stripslashes($row[deli_content])?></div>
<div class="editor"></div>
</div>
<div id="tab1_3" style="display:none">
<div class="spec"><?=stripslashes($row[change_content])?></div>
<div class="editor"></div>
</div>
</div>
</div>
</div>
</form>
<?
include"inc_footer.php";
?>
</body>
</html>