first commit 2
This commit is contained in:
@@ -0,0 +1,74 @@
|
||||
<?php
|
||||
include_once('./_common.php');
|
||||
|
||||
$it_id = isset($_GET['it_id']) ? preg_replace('/[^a-z0-9_\-]/i', '', $_GET['it_id']) : '';
|
||||
$ca_id = isset($_GET['ca_id']) ? preg_replace('/[^0-9a-z]/i', '', $_GET['ca_id']) : '';
|
||||
|
||||
if (!$it_id) {
|
||||
alert('상품 ID가 없습니다.');
|
||||
}
|
||||
|
||||
// 상품 정보 가져오기
|
||||
$it = get_shop_item($it_id, true);
|
||||
if (!$it['it_id']) {
|
||||
alert('등록된 상품이 없습니다.');
|
||||
}
|
||||
|
||||
$g5['title'] = $it['it_name'];
|
||||
include_once(G5_THEME_SHOP_PATH.'/shop.head.php');
|
||||
?>
|
||||
|
||||
<div id="sit">
|
||||
<div class="sit_ov_wrap">
|
||||
<div class="sit_ov_img">
|
||||
<?php echo get_it_image($it_id, 400, 400, '', '', $it['it_name']); ?>
|
||||
</div>
|
||||
|
||||
<div class="sit_ov_cnt">
|
||||
<h2 class="sit_title"><?php echo stripslashes($it['it_name']); ?></h2>
|
||||
<div class="sit_price">
|
||||
<strong>판매가</strong>
|
||||
<span><?php echo display_price(get_price($it), $it['it_tel_inq']); ?></span>
|
||||
</div>
|
||||
|
||||
<form name="fitem" method="post" action="./cart_update.php" onsubmit="return fitem_submit(this);">
|
||||
<input type="hidden" name="it_id[]" value="<?php echo $it_id; ?>">
|
||||
<input type="hidden" name="sw_direct" value="">
|
||||
<input type="hidden" name="ca_id" value="<?php echo $ca_id; ?>">
|
||||
|
||||
<div class="sit_opt">
|
||||
<label for="ct_qty">수량</label>
|
||||
<input type="text" name="ct_qty[<?php echo $it_id; ?>]" value="1" id="ct_qty" class="frm_input" size="5">
|
||||
</div>
|
||||
|
||||
<div class="sit_btn">
|
||||
<button type="submit" onclick="document.pressed=this.value;" value="장바구니" class="btn01">장바구니</button>
|
||||
<!-- 💡 [수정] 버튼 텍스트 변경 -->
|
||||
<button type="submit" onclick="document.pressed=this.value;" value="바로구매" class="btn02">결제정보확인</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="sit_inf">
|
||||
<h3>상품 상세 설명</h3>
|
||||
<div id="sit_inf_explan">
|
||||
<?php echo conv_content($it['it_explan'], 1); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
function fitem_submit(f) {
|
||||
if (document.pressed == "장바구니") {
|
||||
f.sw_direct.value = 0;
|
||||
} else { // 바로구매 (결제정보확인)
|
||||
f.sw_direct.value = 1;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
</script>
|
||||
|
||||
<?php
|
||||
include_once(G5_THEME_SHOP_PATH.'/shop.tail.php');
|
||||
?>
|
||||
Reference in New Issue
Block a user