상품문의 sms 기능 추가 중
This commit is contained in:
@ -724,4 +724,11 @@ if(!sql_query(" select iq_secret from {$g5['g5_shop_item_qa_table']} limit 1 ",
|
||||
sql_query(" ALTER TABLE `{$g5['g5_shop_item_qa_table']}`
|
||||
ADD `iq_secret` tinyint(4) NOT NULL DEFAULT '0' AFTER `mb_id` ", true);
|
||||
}
|
||||
|
||||
// 상품문의 이메일 휴대폰 필드 추가
|
||||
if(!sql_query(" select iq_hp from {$g5['g5_shop_item_qa_table']} limit 1 ", false)) {
|
||||
sql_query(" ALTER TABLE `{$g5['g5_shop_item_qa_table']}`
|
||||
ADD `iq_email` varchar(255) NOT NULL DEFAULT '' AFTER `iq_name`,
|
||||
ADD `iq_hp` varchar(255) NOT NULL DEFAULT '' AFTER `iq_email` ", true);
|
||||
}
|
||||
?>
|
||||
|
||||
@ -543,6 +543,8 @@ CREATE TABLE IF NOT EXISTS `g5_shop_item_qa` (
|
||||
`mb_id` varchar(255) NOT NULL DEFAULT '',
|
||||
`iq_secret` tinyint(4) NOT NULL DEFAULT '0',
|
||||
`iq_name` varchar(255) NOT NULL DEFAULT '',
|
||||
`iq_email` varchar(255) NOT NULL DEFAULT '',
|
||||
`iq_hp` varchar(255) NOT NULL DEFAULT '',
|
||||
`iq_password` varchar(255) NOT NULL DEFAULT '',
|
||||
`iq_subject` varchar(255) NOT NULL DEFAULT '',
|
||||
`iq_question` text NOT NULL,
|
||||
|
||||
@ -27,6 +27,14 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
<label for="iq_secret">비밀글</label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="iq_email">이메일</label></th>
|
||||
<td><input type="text" name="iq_email" value="<?php echo $qa['iq_email']; ?>" class="frm_input" size="30"> 이메일을 입력하시면 답변 등록 시 답변이 이메일로 전송됩니다.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="iq_hp">휴대폰</label></th>
|
||||
<td><input type="text" name="iq_hp" value="<?php echo $qa['iq_hp']; ?>" class="frm_input" size="20"> 휴대폰번호를 입력하시면 답변 등록 시 답변등록 알림이 SMS로 전송됩니다.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="iq_subject">제목</label></th>
|
||||
<td><input type="text" name="iq_subject" value="<?php echo get_text($qa['iq_subject']); ?>" id="iq_subject" required class="required frm_input" minlength="2" maxlength="250"></td>
|
||||
@ -41,6 +49,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
|
||||
<div class="btn_win">
|
||||
<input type="submit" value="작성완료" class="btn_submit">
|
||||
<button type="button" onclick="self.close();">닫기</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
@ -28,6 +28,8 @@ if ($w == "")
|
||||
mb_id = '{$member['mb_id']}',
|
||||
iq_secret = '$iq_secret',
|
||||
iq_name = '$iq_name',
|
||||
iq_email = '$iq_email',
|
||||
iq_hp = '$iq_hp',
|
||||
iq_password = '$iq_password',
|
||||
iq_subject = '$iq_subject',
|
||||
iq_question = '$iq_question',
|
||||
@ -49,6 +51,8 @@ else if ($w == "u")
|
||||
|
||||
$sql = " update {$g5['g5_shop_item_qa_table']}
|
||||
set iq_secret = '$iq_secret',
|
||||
iq_email = '$iq_email',
|
||||
iq_hp = '$iq_hp',
|
||||
iq_subject = '$iq_subject',
|
||||
iq_question = '$iq_question'
|
||||
where iq_id = '$iq_id' ";
|
||||
|
||||
@ -115,7 +115,7 @@ echo itemqa_page($config['cf_write_pages'], $page, $total_page, "./itemqa.php?it
|
||||
<script>
|
||||
$(function(){
|
||||
$(".itemqa_form").click(function(){
|
||||
window.open(this.href, "itemqa_form", "width=800,height=600,scrollbars=1");
|
||||
window.open(this.href, "itemqa_form", "width=800,height=660,scrollbars=1");
|
||||
return false;
|
||||
});
|
||||
|
||||
|
||||
@ -27,6 +27,14 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
<label for="iq_secret">비밀글</label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="iq_email">이메일</label></th>
|
||||
<td><input type="text" name="iq_email" value="<?php echo $qa['iq_email']; ?>" class="frm_input" size="30"> 이메일을 입력하시면 답변 등록 시 답변이 이메일로 전송됩니다.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="iq_hp">휴대폰</label></th>
|
||||
<td><input type="text" name="iq_hp" value="<?php echo $qa['iq_hp']; ?>" class="frm_input" size="20"> 휴대폰번호를 입력하시면 답변 등록 시 답변등록 알림이 SMS로 전송됩니다.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="iq_subject">제목</label></th>
|
||||
<td><input type="text" name="iq_subject" value="<?php echo get_text($qa['iq_subject']); ?>" id="iq_subject" required class="required frm_input" minlength="2" maxlength="250"></td>
|
||||
@ -41,6 +49,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
|
||||
<div class="btn_win">
|
||||
<input type="submit" value="작성완료" class="btn_submit">
|
||||
<button type="button" onclick="self.close();">닫기</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user