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
167
168
169
170
171
172
173
174
175
|
<?php Global $bbsinfo, $notice_array, $list_array, $cust_info, $cinfo, $cate_array, $total_page, $list_num, $total_count, $b_table, $cate_screen_out; qstr_extract($_SERVER['QUERY_STRING']); // $qstr을 $_GET변수에 넣는다. extract($_GET); // $_GET를 변수로 풀어준다. $cate = urldecode($cate);
$cur_img_url = $j3_img_url."/".$sk['sk_img_path'];
if($skin_css!=''){ echo $skin_css; } else { ?> <!-- 상단 카테고리 내 위치 --> <style>
</style> <?php }?> <?php if($is_admin){?><a class="absolute ab_top_right box100_40 align_c l_height40 bg_custom1" href="<?php echo "{$j3_adm_url}/board.php?b_table={$b_table}";?>" target="_blank"><span class="white bold">게시판 관리</span></a><?php } ?>
<div class="class_skin_idx_<?php echo $sk_idx;?>"> <?php echo $bbsinfo['b_top_cont']; // 게시판 상단 내용?> <?php if($cinfo['idx']!=''){ // 게시판 상세 보기 ?> <!--상세글--> <div class="pt10 pb50">
<!--글목록--> <div class="mt20"> <h3 class="screen_out"><?php echo $bbsinfo['b_title'];?> 상세글</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['w_name'];?></th> <th class="p15_0 txt14 gray2 align_l gray_line_b"><a><?php echo $cinfo['w_subject'];?></a></th> <th class="p15_0 txt14 gray2 align_c gray_line_b"><?php echo $cinfo['w_regdate'];?></th> </tr> <tr> <td colspan="4" class="p35_50 txt14 l_height20 gray_line_b2 w_content_class"><?php echo $cinfo['w_content'];?></td> </tr> <?php if(count($cinfo['file_array'])>0 && $bbsinfo['b_dload_lv']<=$cust_info['mb_lv']){?> <tr> <td colspan="4" class="p20_50 txt14 l_height20 gray_line_b2 bg_gray" style='line-height:30px;'> <a class="mr10 box120_30 align_c bold l_height30 gray_line">첨부파일</a><br> <?php foreach($cinfo['file_array'] as $key=>$val){ echo $val["download_url"]."<br>"; }?> </td> </tr> <?php }?> </tbody> </table> </div> <!--//글목록-->
<!--버튼--> <div class="mt20"> <div class="float_r"> <a class="float_l mr10 box100_40 custom2 align_c bold l_height40 custom_line2 bg_white board_list_class">목록</a> <?php if($bbsinfo['b_reply_lv']<=$cust_info['mb_lv']){?> <a class="float_l mr10 box100_40 white align_c bold l_height40 bg_custom2 board_reply_class">답변</a> <?php }?> <?php if($id_ccode==$cinfo['w_ccode'] || $cinfo['w_login_id']==''){?> <a class="float_l mr10 box100_40 white align_c bold l_height40 bg_custom2 board_edit_class">수정</a> <a class="float_l box100_40 white align_c bold l_height40 bg_custom3 board_del_class">삭제</a> <?php }?> </div> </div> <!--//버튼-->
</div> <div> <?php include("./board_comm.inc.php"); ?> </div> <!--상세글--> <?php } // 게시판 상세 보기 끝 ?>
<?php if($idx=='' || $bbsinfo['b_view_list']=='1'){ // 게시판상세에서 리스트보기이거나 상세가 아닌경우 표시된 ?> <div class="pt10 pb20"> <!--<h2 class="pb10 mb30 txt32 l_height30 align_c bold gray_line_b2"><?php echo $bbsinfo['b_title'];?> 게시판</h2>--> <!-- 게시판 분류 영역 --> <div class="mt30 height50 <?php echo $cate_screen_out;?>"> <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 <?php if($cate==''){?>bg_white<?php }?> pointer" rel="tab1" value='all'>전체보기</li> <?php for($i=0;$i<count($cate_array);$i++){ ?> <li class="block float_l mr_1 box145_47 l_height47 align_c gray_l_line gray_r_line <?php if($cate==$cate_array[$i]){?>bg_white<?php }?> pointer " rel="tab2" value='<?php echo $cate_array[$i];?>'><?php echo $cate_array[$i];?></li> <?php } ?> </ul> </div> <!-- 게시판 분류 영역 끝 --> <div class="mt30"> <h3 class="mb10 txt14 align_l">Total <span class='total_cnt_class'>0</span>건 <?php echo $page;?></h3>
<table class="width_full top_bold_line"> <colgroup> <col class="width140"><col class="width640"><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">제목</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 for($i=0;$i<count($notice_array);$i++){ $info = $notice_array[$i]; ?> <tr> <td class="bg_gray p15_0 txt14 gray2 align_c gray_line_b2">공지<input type='hidden' name='codes[]' value='<?php echo $info['idx'];?>'></td> <td class="bg_gray p15_0 txt14 gray2 gray_line_b2"><a class='board_view_class'><?php echo $info['w_subject'].$info['comm_cnt'].$info['w_file_icon'];?></a></td> <td class="bg_gray p15_0 txt14 gray2 align_c gray_line_b2"><?php echo $info['w_name'];?></td> <td class="bg_gray p15_0 txt14 gray2 align_c gray_line_b2"><?php echo substr($info['w_regdate'],0,10);?></td> <td class="bg_gray p15_0 txt14 gray2 align_c gray_line_b2"><?php echo $info['w_hit'];?></td> </tr> <?php } ?> <?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 gray_line_b2"><a class='board_view_class'><?php echo $info['w_rep_icon'].$info['w_subject'].$info['comm_cnt'].$info['w_file_icon'];?></a></td> <td class="p15_0 txt14 gray2 align_c gray_line_b2"><?php echo $info['w_name'];?></td> <td class="p15_0 txt14 gray2 align_c gray_line_b2"><?php echo substr($info['w_regdate'],0,10);?></td> <td class="p15_0 txt14 gray2 align_c gray_line_b2"><?php echo $info['w_hit'];?></td> </tr> <?php } $num--; } ?> </tbody> </table> </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>--> <?php if($bbsinfo['b_write_lv']<=$cust_info['mb_lv']){ ?> <a class="float_l box100_40 white align_c bold l_height40 bg_custom2 board_new_class">게시글쓰기</a> <?php }?> </div> </div>
<div class='pg_wrap' style='padding-top:0px;'> <?php echo get_paging($list_num, $page, $total_page, "?$qstr");?> </div> </div> <?php } // if($idx=='' || $bbsinfo['b_view_list']=='1'){ 끝 ?> <?php echo $bbsinfo['b_bot_cont']; // 게시판 하단 내용?> </div>
|