/home/mjc1/public_html/j3demo/shop/item_qa_new.inc.php


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
<?php
include_once("./_common.php");

?>

<form name='prod_qa_reg_form' id='prod_qa_reg_form' method='post' action=''>
<input type='hidden' name='qstr' value=''>
<input type='hidden' name='code' value='<?php echo $idx;?>'>
<input type='hidden' name='pcode' value='<?php echo $code;?>'>

<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="width140"><col>
        </colgroup>

        <tbody>
        <tr>
            <th class="pt10 pb10 pl20 txt14 gray2 gray_line_b2">비밀글 여부</th>
            <td colspan="3" class="pt10 pb10 pl20 txt14 gray2 gray_line_b2">
                <input type='radio' id="iq_secret1" name='iq_secret' value='0' <?php if($cinfo['iq_secret']=='0' || $cinfo['iq_secret']==''){?>checked<?php }?> class="v_align_m"> <label for="iq_secret1" class="mr10 pointer">공개글</label>
                <input type='radio' id="iq_secret2" name='iq_secret' value='1' <?php if($cinfo['iq_secret']=='1'){?>checked<?php }?> class="v_align_m"> <label for="iq_secret2" class="pointer">비밀글</label>
            </td>
        </tr>
        <tr>
            <th class="pt10 pb10 pl20 txt14 gray2 gray_line_b2">작성자</th>
            <td colspan="3" class="pt10 pb10 pl20 txt14 gray2 gray_line_b2">
                <input type='text' name='iq_name' class="box100_30 gray_line" value='<?php echo $id_cname;?>'>
            </td>
        </tr>
        <tr>
            <th class="pt10 pb10 pl20 txt14 gray2 gray_line_b2">문의제목</th>
            <td colspan="3" class="pt10 pb10 pl20 txt14 gray2 gray_line_b2">
                <input type='text' name='iq_subject' class="box340_30 gray_line" value='<?php echo $cinfo['iq_subject'];?>'>
            </td>
        </tr>
        <tr>
            <th class="pt10 pb10 pl20 txt14 gray2 gray_line_b2">문의내용</th>
            <td colspan="3" class="pt10 pb10 pl20 txt14 gray2 gray_line_b2">
                <textarea name='iq_question' id='iq_question' class="width_full height130 l_height20 gray_line"><?php echo $cinfo['iq_question'];?></textarea>
            </td>
        </tr>
<?php if($id_ccode==''){ // 비회원일경우 ?>
        <tr>
            <th class="pt10 pb10 pl20 txt14 gray2 gray_line_b2">비밀번호</th>
            <td colspan="3" class="pt10 pb10 pl20 txt14 gray2 gray_line_b2">
                <input type='password' name='iq_password' class="box170_30 gray_line" value=''>
            </td>
        </tr>
        <tr>
            <th class="pt10 pb10 pl20 txt14 gray2 gray_line_b2">스팸방지보안</th>
            <td colspan="3" class="pt10 pb10 pl20 txt14 gray2 gray_line_b2">
<?php 
    
// 스팸방지 확인 적용 JS에서 human_check() 함수이용 true일경우 진행 POST된 값에서 $_REQUEST['g-recaptcha-response'] 값이 있으면 true
    
include_once("{$j3_lib_path}/scaptcha/simple-php-captcha.php");
    
$captcha simple_php_captcha();
    
$_SESSION['captcha'] = $captcha;
    
$_SESSION['captcha_code'] = $captcha['code'];
    
$c_code captcha_str_ch($_SESSION['captcha']['code']);
    echo 
"<ul><li style='float:left;line-height:28px;' class='txt21'>{$c_code}</li>";
    echo 
"<li style=''>&nbsp;<input type='text' name='captcha_input' class='box100_30' style='margin-bottom:5px;'></li></ul>";
?>
            </td>
        </tr>        
<?php }?>
    </table>
</div>
</form>
<script>
CKEDITOR.replace( 'iq_question', {    height: 230    } );
</script>