|
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 : |
<link href="/css/store/base.css" type=text/css rel=stylesheet>
<link href="/css/store/layout.css" type=text/css rel=stylesheet>
<link href="/css/store/shopping2.css" type=text/css rel=stylesheet>
<style>
video::-internal-media-controls-download-button {
display:none;
}
video::-webkit-media-controls-enclosure {
overflow:hidden;
}
video::-webkit-media-controls-panel {
width: calc(100% + 34px); /* Adjust as needed */
}
</style>
<style type="text/css">
input{font-family:lucida console;font-size:9pt}
</style>
<script src="/js/chuchun.js" language="javascript"></script>
<script type="text/javascript">
<!--
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 = "";
//goodsTotal 옵션갯수 없으면 0으로 해서 수량 체크함.
if (goodsTotal == 0){
if(document.form.goodsCnt.value == 0){
alert("数量を入れてください");document.form.goodsCnt.open(); return;
}else{
formChange(val,mode);
}
}else{
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($idx){
$tableName = "product";
//$hit_query = "update shop_$tableName set hit = hit+1 where no='$idx'";
//$results = mysql_query($hit_query,$db_con);
$qry = "SELECT * FROM shop_$tableName where uid='$idx'";
$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 = '$idx' order by uid ";
$results= mysql_query($QUERY_PAGE,$db_con);
$totals = mysql_affected_rows();
}
?>
<!--rightcon start-->
<div id="rightcon">
<div id="prdcon">
<div id="prdimg"><a href="#"><img src="/files/muti/shop/<?=$imgName?>" width="240" alt="浜崎あゆみ" /></a>
<!--ul id="sprdimg">
<li><a href="#"><img src="/images/store/shopping_thum.gif" border="0"></a></li>
<li><a href="#"><img src="/images/store/shopping_thum.gif" border="0"></a></li>
<li><a href="#"><img src="/images/store/shopping_thum.gif" border="0"></a></li>
</ul-->
<a href="/files/muti/shop/<?=$imgName?>" class="imgzoom" target="_blank"><img src="/images/store/btn_zoom.gif" alt="浜崎あゆみ"></a>
</div>
<div id="prdrcon">
<h2 class="title"><?=$row[name]?></h2>
<ul class="recom" style="position:absolute; z-index:400;margin-left:432px;">
<li class="ddabong">
<dl>
<dd class="number" id="txtHint"><?=$row[vote]?></dd>
<dd class="dd_img"><img src="/images/sub/ddabong.gif" onclick="cookieChk('<?=$idx?>','<?=$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>
購買数量 :
<?if($row[uid] == 45 || $row[uid] == 46) $goodsNumber = 2; else $goodsNumber = 6;?>
<?if($row[display]==0 || ($sessionLevel == 15 && ($row[display]==1|| $row[display]==2))){
$QUERY_PAGE = "SELECT * FROM shop_product_opt where product_prt = '$idx' and display = 1 order by uid ";
$results= mysql_query($QUERY_PAGE,$db_con);
$totals = mysql_affected_rows();
if($totals == 0){
?>
<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]?>
<select id="goodsCnt<?=$i?>" name="goodsCnt<?=$i?>" onChange="selectChk2(this.value,'<?=$rows[optPrice]?>',<?=$i?>)">
<option value="0" selected>選択</option>
<?
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>
</div>
<ul class="store_btn_area">
<?
if($row[display]==0 || ($sessionLevel == 15 && ($row[display]==1|| $row[display]==2))){?>
<a href="javascript:alert('準備中です.');" style="text-decoration:none"><li class="cargo">カートに入れる</li></a>
<!--a href="javascript:chkgoods(<?=$idx?>,'cart_proc');" style="text-decoration:none"><li class="cargo">カートに入れる</li></a-->
<a href="javascript:chkgoods(<?=$idx?>,'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>
<p class="clear"><img src="/images/store/prd_bottom.gif"></p>
<div class="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>
<li class="btn_top"><a href="#"><img src="/images/store/btn_top.gif" /></a></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 id="box"></div>