/home/mjc1/public_html/j3demo/skinm/qa/qa01.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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
<?php
Global $list_array$total_page$list_num$total_count$cinfo;

$cur_img_url $j3_img_url."/".$sk['sk_img_path'];

if(
$skin_css!=''){
    echo 
$skin_css;
} else {
?>
<!-- 상단 카테고리 내 위치 -->
<style>

</style>
<?php }?>
<div class="class_skin_idx_<?php echo $sk_idx;?>">
<h1 class="p15_0 align_c">1:1문의</h1>

        <p class="p0_10 txt14 l_height40 gray_line_t gray_line_b2">
            <input type="checkbox" class="mr5 box17 check_all_class"><label class="bold">전체선택</label>
            <span class="float_r">총 <em class="red bold total_cnt_class">0</em> 건</span>
        </p>
        <!-- 문의버튼
        <div class="m0_10 mb10">
            <a class="block width_full height35 txt13 align_c l_height35 bg_custom1"><span class="white bold">1:1문의하기</span></a>
        </div>
        //문의버튼 -->
<form name='qa_list_form' id='qa_list_form' method='post' onsubmit='return false'>
                <input type='hidden' name='sel_del' value=''>
        <!--게시판 -->
        <div class="pb10 p0_10 gray_line_b2 separate_line">
            <h2 class="txt14 l_height35 black_line_b">문의목록</h2>
<?php
    $num 
$total_count - ($page 1) * $list_num;
    for(
$i=0;$i<count($list_array);$i++){
        
$info $list_array[$i];
        if(
$info['idx']!=''){
?>

            <dl>
                <dt class="faq_title p5_0 width_full txt13 gray_line_b pointer">
                    <table class="width_full">
                        <colgroup>
                            <col><col class="width_70"><col>
                        </colgroup>
                        <tr>
                            <td class="align_c">
                                <input type="checkbox" class="box17" name='code_idx[]' value='<?php echo $i;?>'>
                                <input type='hidden' name='codes[]' value='<?php echo $info['idx'];?>'>
                            </td>
                            <th class="pl10 align_l">
                                <?php echo $info['qa_subject'];?>
                                <p class="gray normal"><?php echo substr($info['reg_date'],0,10);?></p>
                            </th>
                            <td class="align_c"><?php if($info['rep_date']=='' || $info['rep_date']=='0000-00-00 00:00:00'){ echo "<span class='red bold'>답변대기</span>"; } else { echo "<span class='blue bold'>답변완료</span>"; } ?></td>
                        </tr>
                    </table>
                </dt>
                <dd class="faq_cont p10 gray3 txt13 align_j gray_line_b bg_gray">
                    <ul>
                        <li class='bg_white p10'>
                            <?php echo $info['qa_content'];?>
                        </li>
<?php if(!($info['rep_date']=='' || $info['rep_date']=='0000-00-00 00:00:00')){ ?>
                        <li class='p10'>
                            <?php echo $info['qa_reply'];?><br>
                            <p class="black">답변일 : 2017-10-18</p>
                        </li>
<?php ?>
                </dd>
            </dl>
<?php
        
}
        
$num--;
    }
    if(
$total_count==0){
?>
            <dl>
                <dt class="faq_title p5_0 width_full txt13 gray_line_b pointer">
                    <table class="width_full height80">
                        <colgroup>
                            <col><col class="width_70"><col>
                        </colgroup>
                        <tr>
                            <td class="align_c"><input type="checkbox" class="box17"></td>
                            <th class="pl10 align_l">
                                1:1문의내역이 없습니다.
                            </th>
                            <td class="align_c"></td>
                        </tr>
                    </table>
                </dt>
            </dl>
<?php
    
}
?>
        </div>
        <!-- //게시판-->
</form>

        <!-- 전체선택 -->
        <p class="p0_10 txt14 l_height40 gray_line_b2 separate_line">
            <input type="checkbox" class="mr5 box17 check_all_class"><label class="bold">전체선택</label>
        </p>
        <!-- //전체선택 -->

        <div class='pg_wrap' style='padding-top:0px;'>
                <?php echo get_paging($list_num$page$total_page"?$qstr");?>
            </div>

        <div class="p15_0 p0_10 height37 bg_gray">
            <a class="block float_l width_49 height35 custom1 txt14 align_c l_height35 bg_white custom_line1 1n1_delete_class">선택삭제</a>
            <a class="block float_r width_49 height37 white txt14 align_c l_height37 bg_custom1 1n1_new_class">1:1문의하기</a>
        </div>
</div>

<script>
$(function(){
    //메뉴탭
    $("#tabs li").click(function () { // 탭 선택시 선택된 배경 처리
        $("#tabs li").removeClass("active").css("background-color", "#f0f0f0").css("font-weight", "normal");
        $(this).addClass("active").css("background-color", "#FFF").css("font-weight", "bold");
    });

    //상세내용토글
    $(".faq_cont").hide();

    $(".faq_title").click(function () {
        if ($(this).next().css("display") == "none") {
            $(".faq_cont").slideUp();
        };
        $(this).next().slideToggle();
    });
    $(".faq_cont .close").click(function () {
        $(".faq_cont").slideUp();
    });
});
</script>