/home/mjc1/public_html/j3demo/skin/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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
<?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;?>">
<?php if($is_admin){?><a class="absolute ab_top_right box100_40 align_c l_height40 bg_custom1" href="<?php echo "{$j3_adm_url}/qa.php";?>" target="_blank"><span class="white bold">1:1문의 관리</span></a><?php ?>
<?php
    
if($cinfo['idx']!=''){
?>
        <!--상세글-->
        <div class="pt10 pb100">
            
            <!--글목록-->
            <div class="mt20">
                <h3 class="screen_out">1:1문의 상세글</h3>
                <table class="width_full top_bold_line">
                    <colgroup>
                        <col class="width80"><col class="width140"><col><col class="width140">
                    </colgroup>
                    <tbody>
                    <tr>
                        <th class="p15_0 txt14 gray_line_b"><?php echo $cinfo['idx'];?></th>
                        <th class="p15_0 txt14 custom1 gray_line_b"><?php echo $cinfo['qa_name'];?></th>
                        <th class="p15_0 txt14 gray2 align_l gray_line_b"><a><?php echo $cinfo['qa_subject'];?></a></th>
                        <th class="p15_0 txt14 gray2 align_c gray_line_b"><?php echo $cinfo['reg_date'];?></th>
                    </tr>
                    <tr>
                        <td colspan="4" class="p35_50 txt14 l_height20 gray_line_b2"><?php echo $cinfo['qa_content'];?></td>
                    </tr>
                    <tr>
                        <td colspan="4" class="p20_50 txt14 l_height20 gray_line_b2 bg_gray">
                            <p class="width_full align_r">
                                답변일 : <?php echo $cinfo['rep_date'];?><!--<a class="mr10 box120_30 align_c bold l_height30 gray_line">답변수정</a><a class="box120_30 align_c bold l_height30 gray_line">답변삭제</a>-->
                            </p>
                        <?php echo $cinfo['qa_reply'];?></td>
                    </tr>
                    </tbody>
                </table>
            </div>
            <!--//글목록-->

            <!--버튼-->
            <div class="mt20">
                <div class="float_l">
                    <!--<a class="float_l mr10 box100_40 align_c bold l_height40 gray_line">이전글</a><a class="float_l box100_40 align_c bold l_height40 gray_line">다음글</a>-->
                </div>

                <div class="float_r">
                    <a class="float_l mr10 box100_40 custom2 align_c bold l_height40 custom_line2 bg_white qa_list_class">목록</a><!--<a class="float_l box100_40 white align_c bold l_height40 bg_custom2">추가질문</a>-->
                </div>
            </div>
            <!--//버튼-->
        </div>
        <!--상세글-->
<?php
    
}
?>
        <div class="pt10 pb100">
            <!--<h2 class="pb10 mb30 txt32 l_height30 align_c bold gray_line_b2">1:1문의</h2>-->

            <!--탭메뉴-->
            <!--<div class="mt30 height50">
                <ul id="tabs" class="relative height49 top_bold_line gray_line_b bg_gray" style='width:1200px;'>
                    <li class="block float_l mr_1 box145_47 l_height47 align_c gray_l_line gray_r_line bg_white pointer" rel="tab1">전체보기</li>
                    <li class="block float_l mr_1 box145_47 l_height47 align_c gray_l_line gray_r_line pointer" rel="tab2">회원</li>
                    <li class="block float_l mr_1 box145_47 l_height47 align_c gray_l_line gray_r_line pointer" rel="tab3">포인트</li>
                </ul>
            </div>-->
            <!--//탭메뉴-->
            <!--<script>
            $(function(){
                //메뉴탭
                $("#tabs li").click(function () { // 탭 선택시 선택된 배경 처리
                    $("#tabs li").removeClass("active").css("background-color", "#f8f8f8").css("border-bottom", "1px solid #ccc");
                    $(this).addClass("active").css("background-color", "#FFF").css("border-bottom", "1px solid #FFF");
                });
            });
            </script>-->
            <!--글목록-->
            <div class="mt40">
<form name='qa_list_form' id='qa_list_form' method='post' onsubmit='return false'>
                <input type='hidden' name='sel_del' value=''>
                <h3 class="relative mb10 txt14 align_l">Total <span class='total_cnt_class'>0</span>건 <?php echo $page;?> 페이지<a class="absolute ab_btm_right box100_40 white align_c bold l_height40 bg_custom2 1n1_new_class">1:1문의하기</a></h3>
                <table class="width_full top_bold_line">
                    <colgroup>
                        <col class="width80">
                        <col class="width80">
                        <!--<col class="width140">-->
                        <col class="width480">
                        <col class="width140">
                        <col class="width140">
                        <col class="width140">
                        <col class="width140">
                    </colgroup>
                    <thead>
                    <tr>
                        <th class="p15_0 txt14 gray_line_b">번호</th>
                        <th class="p15_0 txt14 gray_line_b"><label class="screen_out">전체</label><input type="checkbox" class='check_all_class'></th>
                        <!--<th class="p15_0 txt14 gray_line_b">분류</th>-->
                        <th class="p15_0 txt14 gray_line_b">제목</th>
                        <th class="p15_0 txt14 gray_line_b">글쓴이</th>
                        <th class="p15_0 txt14 gray_line_b">상태</th>
                        <th class="p15_0 txt14 gray_line_b">등록일</th>
                        <th class="p15_0 txt14 gray_line_b">답변일</th>
                    </tr>
                    <thead>
                    <tbody>
<?php
    $num 
$total_count - ($page 1) * $list_num;
    for(
$i=0;$i<count($list_array);$i++){
        
$info $list_array[$i];
        if(
$info['idx']!=''){
?>
                    <tr>
                        <td class="p15_0 txt14 gray2 align_c gray_line_b2"><?php echo $num;?><input type='hidden' name='codes[]' value='<?php echo $info['idx'];?>'></td>
                        <td class="p15_0 txt14 gray2 align_c gray_line_b2"><label class="screen_out">선택</label><input type="checkbox" name='code_idx[]' value='<?php echo $i;?>'></td>
                        <!--<td class="p15_0 txt14 gray2 align_c gray_line_b2">회원</td>-->
                        <td class="p15_0 txt14 gray2 gray_line_b2"><a class='show_qa_class'><?php echo $info['qa_subject'];?></a></td>
                        <td class="p15_0 txt14 gray2 align_c gray_line_b2"><?php echo $info['qa_name'];?></td>
                        <td class="p15_0 txt14 custom2 align_c gray_line_b2"><?php if($info['rep_date']=='' || $info['rep_date']=='0000-00-00 00:00:00'){ echo "<span>답변대기</span>"; } else { echo "답변완료"; } ?></td>
                        <td class="p15_0 txt14 gray2 align_c gray_line_b2"><?php echo substr($info['reg_date'],0,10);?></td>
                        <td class="p15_0 txt14 gray2 align_c gray_line_b2"><?php echo substr($info['rep_date'],0,10);?></td>
                    </tr>
<?php
        
}
        
$num--;
    }
    if(
$total_count==0){
?>
                    <tr>
                        <td colspan="7" class="p100_0 txt14 gray2 align_c gray_line_b2">1:1문의내역이 없습니다.</td>
                    </tr>
<?php
    
}
?>
                    </tbody>
                </table>
</form>
            </div>
            <!--//글목록-->

            <!--버튼-->
            <div class="mt20">
                <a class="float_l box100_40 white align_c l_height40 bg_red 1n1_delete_class">선택삭제</a>
                
                <div class="float_r">
                    <!--<a class="float_l mr10 box100_40 custom2 align_c bold l_height40 custom_line2 bg_white">목록</a>--><a class="float_l box100_40 white align_c bold l_height40 bg_custom2 1n1_new_class">1:1문의하기</a>
                </div>
            </div>

            <div class='pg_wrap' style='padding-top:0px;'>
                <?php echo get_paging($list_num$page$total_page"?$qstr");?>
            </div>
            <!--//버튼-->
        </div><!-- 61번줄 class="pt50 pb100" -->
</div>