1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
|
<?php $sub_menu = '250500'; include_once('./_common.php'); include_once(G5_EDITOR_LIB);
auth_check($auth[$sub_menu], "w");
$sql = " select * from {$g5['g5_shop_item_qa_table']} a left join {$g5['member_table']} b on (a.mb_id = b.mb_id) where iq_id = '$iq_id' "; $iq = sql_fetch($sql); if (!$iq['iq_id']) alert('등록된 자료가 없습니다.');
$name = get_sideview($iq['mb_id'], get_text($iq['iq_name']), $iq['mb_email'], $iq['mb_homepage']);
$g5['title'] = '상품문의'; include_once (G5_ADMIN_PATH.'/admin.head.php');
$qstr .= ($qstr ? '&' : '').'sca='.$sca; ?>
<form name="fitemqaform" method="post" action="./itemqaformupdate.php" onsubmit="return fitemqaform_submit(this);"> <input type="hidden" name="w" value="<?php echo $w; ?>"> <input type="hidden" name="iq_id" value="<?php echo $iq_id; ?>"> <input type="hidden" name="sca" value="<?php echo $sca; ?>"> <input type="hidden" name="sst" value="<?php echo $sst; ?>"> <input type="hidden" name="sod" value="<?php echo $sod; ?>"> <input type="hidden" name="sfl" value="<?php echo $sfl; ?>"> <input type="hidden" name="stx" value="<?php echo $stx; ?>"> <input type="hidden" name="page" value="<?php echo $page; ?>">
<div class="local_desc01 local_desc"> <p>상품에 대한 문의에 답변하실 수 있습니다. 상품 문의 내용의 수정도 가능합니다.</p> </div>
<div class="tbl_frm01 tbl_wrap"> <table> <caption><?php echo $g5['title']; ?> 수정</caption> <colgroup> <col class="grid_4"> <col> </colgroup> <tbody> <tr> <th scope="row">이름</th> <td><?php echo $name; ?></td> </tr> <?php if($iq['iq_email']) { ?> <tr> <th scope="row">이메일</th> <td><?php echo get_text($iq['iq_email']); ?></td> </tr> <?php } ?> <?php if($iq['iq_hp']) { ?> <tr> <th scope="row">휴대폰</th> <td><?php echo hyphen_hp_number($iq['iq_hp']); ?></td> </tr> <?php } ?> <tr> <th scope="row"><label for="iq_subject">제목</label></th> <td><input type="text" name="iq_subject" value="<?php echo conv_subject($iq['iq_subject'],120); ?>" id="iq_subject" required class="frm_input required" size="95"></td> </tr> <tr> <th scope="row"><label for="iq_question">질문</label></th> <td><?php echo editor_html('iq_question', get_text($iq['iq_question'], 0)); ?></td> </tr> <tr> <th scope="row"><label for="iq_answer">답변</label></th> <td><?php echo editor_html('iq_answer', get_text($iq['iq_answer'], 0)); ?></td> <!-- <td><textarea name="iq_answer" id="iq_answer" rows="7"><?php echo get_text($iq['iq_answer']); ?></textarea></td> --> </tr> </tbody> </table> </div>
<div class="btn_confirm01 btn_confirm"> <input type="submit" accesskey='s' value="확인" class="btn_submit"> <a href="./itemqalist.php?<?php echo $qstr; ?>">목록</a> </div> </form>
<script> function fitemqaform_submit(f) { <?php echo get_editor_js('iq_question'); ?> <?php echo get_editor_js('iq_answer'); ?>
return true; } </script>
<?php include_once (G5_ADMIN_PATH.'/admin.tail.php'); ?>
|