73 lines
2.1 KiB
PHP
73 lines
2.1 KiB
PHP
<?php
|
|
include_once('./_common.php');
|
|
|
|
$g5['title'] = '상품 재입고SMS 알림요청 등록';
|
|
include_once(G5_PATH.'/head.sub.php');
|
|
|
|
// 상품정보
|
|
$sql = " select it_id, it_name, it_soldout, it_stock_sms
|
|
from {$g5['g5_shop_item_table']}
|
|
where it_id = '$it_id' ";
|
|
$it = sql_fetch($sql);
|
|
|
|
if(!$it['it_id'])
|
|
alert_close('상품정보가 존재하지 않습니다.');
|
|
|
|
if(!$it['it_soldout'] || !$it['it_stock_sms'])
|
|
alert_close('재입고SMS 알림을 신청할 수 없는 상품입니다.');
|
|
?>
|
|
|
|
<div>
|
|
<h2><?php echo $g5['title']; ?></h2>
|
|
|
|
<form name="fstocksms" method="post" action="<?php echo G5_HTTPS_SHOP_URL; ?>/itemstocksmsupdate.php" onsubmit="return fstocksms_submit(this);" autocomplete="off">
|
|
<input type="hidden" name="it_id" value="<?php echo $it_id; ?>">
|
|
<table>
|
|
<colgroup>
|
|
<col class="grid_4">
|
|
<col>
|
|
</colgroup>
|
|
<tbody>
|
|
<tr>
|
|
<th scope="row">상품</th>
|
|
<td><?php echo $it['it_name']; ?></td>
|
|
</tr>
|
|
<tr>
|
|
<th scope="row"><label for="ss_hp">휴대폰번호</label></th>
|
|
<td><input type="text" name="ss_hp" value="<?php echo $member['mb_hp']; ?>" id="ss_hp" required class="required frm_input"></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<div>
|
|
개인정보처리방침안내
|
|
<textarea readonly><?php echo get_text($config['cf_privacy']) ?></textarea>
|
|
<label for="agree">개인정보처리방침안내의 내용에 동의합니다.</label>
|
|
<input type="checkbox" name="agree" value="1" id="agree">
|
|
</div>
|
|
<div>
|
|
<input type="submit" value="확인">
|
|
<button type="button" onclick="window.close();">닫기</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
|
|
<script>
|
|
function fstocksms_submit(f)
|
|
{
|
|
if(!f.agree.checked) {
|
|
alert("개인정보처리방침안내에 동의해 주십시오.");
|
|
return false;
|
|
}
|
|
|
|
if(confirm("재입고SMS 알림 요청을 등록하시겠습니까?")) {
|
|
return true;
|
|
} else {
|
|
window.close();
|
|
return false;
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<?php
|
|
include_once(G5_PATH.'/tail.sub.php');
|
|
?>
|