|
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($sessionLevel != "15"){
$where .= "and display !=2 ";
}
if($num) $where .= "and uid=$num";
else $where .= "and category in (0,2) order by uid desc";
$tableName = "shop_product";
$qry = "SELECT * FROM $tableName where 1=1 $where";
$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 = '$row[uid]' order by uid ";
$results = mysql_query($QUERY_PAGE,$db_con);
$totals = mysql_affected_rows();
if($totals == 0)
{
echo "<div class='post'><div style='text-align:center;'>登録された商品がありません。</div></div>";
exit;
}
if($totals == -1)
{
$GOODS_PRICE = "販売価格 : <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>-->";
}
if($row[display]==0 || ($sessionLevel == 15))
{
//$QUERY_PAGE = "SELECT * FROM shop_product_opt where product_prt = '$row[uid]' and display is null order by uid ";
$QUERY_PAGE = "SELECT * FROM shop_product_opt where product_prt = '$row[uid]' order by uid ";
$results= mysql_query($QUERY_PAGE,$db_con);
$totals = mysql_affected_rows();
if($totals == -1)
{
$SELECT_GOODS_CNT = "<select name='goodsCnt' onChange=\"selectChk(this.value,'$row[price]')\" style='border-style:solid; border-width:1px; border-color:#747474;'>
<option value='0' selected>選択</option>";
for($i=1;$i<$goodsNumber;$i++)
{
$SELECT_GOODS_CNT .= "<option value=\".$i.\">\".$i.\"</option>";
}
$SELECT_GOODS_CNT .= "</select>個 <span id='span_price1'>0</span> 円 (税込)";
}
else
{
$SELECT_GOODS_CNT = "<br />";
for($i=0; $i<$totals; $i++)
{
if($totals != "-1"){ $rows = mysql_fetch_array($results);}
$SELECT_GOODS_OPT_NAME .= "<b>".$rows[optName]."</b><br> ";
if($rows[display] == 1)
{
$SELECT_GOODS_OPT_NAME .= " <font color=red>SOLD OUT</font>";
$SELECT_GOODS_OPT_NAME .= "<select id='goodsCnt.".$i." name='goodsCnt".$i."' onChange=\"selectChk2(this.value,'$rows[optPrice]',$i)\" disabled style='border-style:solid; border-width:1px; border-color:#747474;'>
<option value='0' selected>選択</option>
</select>";
}
else
{
$SELECT_GOODS_OPT_NAME .= "$rows[optPrice]円 X <select id='goodsCnt".$i."' name='goodsCnt".$i."' onChange=\"selectChk2(this.value,'$rows[optPrice]',$i)\" style='border-style:solid; border-width:1px; border-color:#747474;'>
<option value='0' selected > 選択 </option>";
//옵션 선택 갯수 정하기
if( $row[uid]== 3)
{
$goodsNumber = 2;
}
else
{
$goodsNumber = 11;
}
for($j=1;$j<$goodsNumber;$j++)
{
$SELECT_GOODS_OPT_NAME .= "<option value=".$j.">".$j."</option>";
}
$SELECT_GOODS_OPT_NAME .= "</select> 個 = <span id='span_price".$i."'>0</span>円 (税込)";
}
$SELECT_GOODS_OPT_NAME .= "$rows[display] <br /><br/>";
}
$SELECT_GOODS_CNT .= $SELECT_GOODS_OPT_NAME;
}
}
else if($row[display]==1)
{
$SELECT_GOODS_CNT = "未定";
}
else if($row[display]==3)
{
$SELECT_GOODS_CNT = "販売締め切り";
}
$GOODS_DETAIL_TAB1 = stripslashes($row[content]);
$GOODS_DETAIL_TAB2 = stripslashes($row[deli_content]);
$GOODS_DETAIL_TAB3 = stripslashes($row[change_content]);
//구매 버튼
if($row[display]==0 || ($sessionLevel == 15))
{
$BTN_SELL = "<button id='btn_01' tabindex='5' onclick=\"javascript:chkgoods($row[uid],'order',$totals); return false;\" style='text-decoration:none'>購入する </button>";
}
else if($row[display]==1)
{
$BTN_SELL ="<font color=red>[未定]</font>";
}
else if($row[display]==3)
{
$BTN_SELL ="<font color=red>[販売締め切り]</font>";
}
?>
<form id="form" name="form" method="post">
<input type="hidden" id="mode" name="mode">
<input type="hidden" id="idx" name="idx">
<div class="post">
<div class="top_title"><?=$row[name] ?></div>
<div id="goodsview2">
<DIV class="list_item"><img src="/files/muti/shop/<?=$imgName ?>" width="100%" alt="浜崎あゆみ" /></DIV>
<div id="pricebox">
<dl>
<dd class="txt"><?=$row[addinfo] ?></dd>
</dl>
<table class="basic_table">
<colgroup>
<col width="25%">
<col width="75%">
</colgroup>
<tr>
<td class="txt">販売日</td>
<td class="txt"><?=$row[start_date] ?></td>
</tr>
<tr>
<td class="txt">製造社</td>
<td class="txt"><?=$row[model] ?></td>
</tr>
<tr>
<td class="txt">発売予定日</td>
<td class="txt"> <?=$row[maker] ?></td>
</tr>
<tr>
<td class="txt">購買数量</td>
<td class="txt"> <?=$SELECT_GOODS_CNT ?></td>
</tr>
</table>
</div>
</div>
<div class="center_btn"> <?=$BTN_SELL ?></div>
</div>
</form>
<div id="goodsview2">
<div class="goods-contents-area" style="padding-top:30px;">
<div class="goods-info-area">
<div class="tab-area">
<DIV class="tab-basic active-tab" onclick="javascript:changeTab('basic');" style="cursor:pointer;">詳細説明 <DIV class="bar-area active-bar"></DIV></DIV>
<DIV class="tab-review" onclick="javascript:changeTab('review');" style="cursor:pointer;">配送日程 <DIV class="bar-area"></DIV></DIV>
<DIV class="tab-qna" onclick="javascript:changeTab('qna');" style="cursor:pointer;" >入金/交換案内 </DIV></DIV>
<!-- 상품 기본정보 시작 -->
<DIV class="content-area imgSize_store" style="display: ;">
<?=$GOODS_DETAIL_TAB1 ?>
</DIV>
<!-- 상품 기본정보 끝 -->
<!-- 상품 후기 시작 -->
<DIV class="content-review" style="display: none;">
<?=$GOODS_DETAIL_TAB2 ?>
</DIV>
<!-- 상품 후기 끝 -->
<!-- 상품 문의 시작 -->
<DIV class="content-qna" style="display: none;">
<?=$GOODS_DETAIL_TAB3 ?>
</DIV>
<!-- 상품 문의 끝 -->
</div>
</div>
</div>