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
|
<?php include_once("./_common.php"); if($idx!=''){ $sql = "select a.*, b.name from shop_prod_qa a left join product_m b on a.pcode = b.code where idx = '{$idx}' "; $cinfo = sql_fetch($sql,$connect_j3);
if($cinfo['iq_secret']=='1'){ if($cinfo['ccode']=='0'){ // 비회원일경우 if($_SESSION['iq_'.$idx]!='Y'){ echo "password"; exit; } } else if($cinfo['ccode']!=$id_ccode){ // 권한이 없을 경우 echo "secret"; exit; } } }
if($cinfo['iq_answer']==''){ $r_mode = "wait"; } else { $r_mode = "comp"; }
?>
<form name='prod_qa_reg_form' id='stock_reg_form' method='post' action=''> <input type='hidden' name='qstr' value=''> <input type='hidden' name='code' value='<?php echo $cinfo['idx'];?>'> <input type='hidden' name='ccode' value='<?php echo $cinfo['ccode'];?>'>
<div class="p10_20"> <h4 class="mb10 height24 gray_line_b">상품문의</h4> <table class="width_full top_bold_line"> <caption class="mt10 mb10 l_height30 txt17 align_l bold">상품문의 확인 <!--<a><span class="more float_r pl10 box120_30 txt13 gray_line">나의 상담내역</span></a>--></caption> <colgroup> <col class="width80"><col><col class="width140"><col class="width200"> </colgroup>
<tbody> <tr> <th colspan="2" class="pt10 pb10 pl20 txt14 gray2 gray_line_b2 bg_gray">문의/답변</th> <th class="pt10 pb10 pl20 txt14 gray2 gray_line_b2 bg_gray">작성자</th> <th class="pt10 pb10 pl20 txt14 gray2 gray_line_b2 bg_gray">작성일</th> </tr>
<tr> <td colspan="2" class="pt10 pb10 pl20 txt14 gray2 gray_line_b2"> <?php if($r_mode=='comp'){?><span class="float_l mr10 box96_27 white txt13 bold align_c l_height27 bg_custom2">답변완료</span><?php } else {?><span class="float_l mr10 box96_27 white txt13 bold align_c l_height27 bg_custom3">답변대기</span><?php }?><?php echo $cinfo['iq_subject'];?> </td> <td class="pt10 pb10 pl20 txt14 gray2 align_c gray_line_b2"> <?php echo cut_hangul_last(substr($cinfo['iq_name'],0,3))."**";?> </td> <td class="pt10 pb10 pl20 txt14 gray2 align_c gray_line_b2"> <?php echo $cinfo['iq_time'];?> </td> </tr> <tr> <td class="p10_20 align_c v_align_t gray_line_b2 bg_gray"><span class="box40 white txt21 l_height40 circle bg_custom1">Q</span></td> <td colspan="3" class="p10_20 txt14 gray2 gray_line_b2 bg_gray l_height25"><?php echo $cinfo['iq_question'];?></td> </tr> <?php if($r_mode=='comp'){?> <tr> <td class="p10_20 align_c v_align_t gray_line_b2 bg_gray"><span class="box40 white txt21 l_height40 circle bg_gray3">A</span></td> <td colspan="3" class="p10_20 txt14 align_j gray2 l_height20 gray_line_b2 bg_gray l_height25"><?php echo $cinfo['iq_answer'];?></td> </tr> <?php }?> </table> </div> </form>
|