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
176
177
178
179
180
181
|
<? include("./include/header.php"); ?> <? /* if( isset($uid) && $uid !== ""){ if( !isset(${"noticeBoardUid_".$uid}) ){ $hitSel = " select hit from mBoard_notice WHERE uid = '$uid'"; $hitResult = mysql_query($hitSel); $hitRow = mysql_fetch_array($hitResult); $plus_hit = $hitRow[0] + 1; $hitUp = " UPDATE mBoard_notice SET hit = '$plus_hit' WHERE uid = '$uid' "; MYSQL_QUERY($hitUp ); setcookie("noticeBoardUid_$uid",$uid,0); } }*/ $cm_nCount = 15; $cm_item_nCount = 30; function pageListing($cur_page, $total_page, $n, $url) {
$retValue .= "<div class='pageing txt03'>"; if ($cur_page > 1) { $retValue .= "<a href='" . $url . ($cur_page-1) ."' ><img src='../millennium/img/customer/prev_bt.gif' alt='ÀÌÀü'></a>"; } else { $retValue .= ""; $retValue .= ""; } $retValue .= ""; $start_page = ( ( (int)( ($cur_page - 1 ) / 10 ) ) * 10 ) + 1; //echo (int)(($cur_page - 1) / 10); $end_page = $start_page + 9; if ($end_page >= $total_page) $end_page = $total_page; if ($start_page > 1) $retValue .= "<a href='" . $url . ($start_page-1) . "'><img src='../millennium/img/customer/prev10_bt.gif' alt='ÀÌÀü 10°³'></a>"; if ($total_page > 1) for ($k=$start_page;$k<=$end_page;$k++) if ($cur_page != $k) $retValue .= "<a href='$url$k'>$k</a>"; else $retValue .= "<span class='here'>[$k]</span>"; if ($total_page > $end_page) $retValue .= "<a href='" . $url . ($end_page+1) . "'><img src='../millennium/img/customer/next10_bt.gif' alt='´ÙÀ½10°³'></a>"; $retValue .= ""; if ($cur_page < $total_page) { $retValue .= "<a href='$url" . ($cur_page+1) ."'><img src='../millennium/img/customer/next_bt.gif' alt='´ÙÀ½'></a>"; } else { $retValue .= ""; $retValue .= ""; } $retValue .= "</div>"; return $retValue; } ?> <table style="margin:0 auto;width:942px;"> <tr> <td style="height:30px;" colspan="3"></td> </tr> <tr> <td width="212" valign="top"> <table> <caption class="sound_only">ÁÂÃø¸Þ´º</caption> <tr> <td> <? include("./include/aside_cscenter.html") ?> </td> </tr> <tr> <td height="25"> </td> </tr> </table> </td> <td width="12"><span class="sound_only">¸Þ´º¿©¹é</span></td> <td valign="top"> <table> <caption class="sound_only">³»¿ë¿µ¿ª</caption> <tr> <td> <table background="./img/titlebar/notice.gif" width="718" height="44"> <tr> <td class="txt04" style="text-align:right">HOME > <font color="000000">°øÁö»çÇ×</b></td> </tr> <tr> <td colspan="2" height="12"></td> </tr> </table> </td> </tr> <tr> <td> <!-- Á¦Ç°¼Ò°³»ó´Ü --> <? if( isset($uid) && $uid !== ""){ $oneQry = " select * from mBoard_notice WHERE uid = '$uid' AND (company = '00' or company = '03') "; $oneResult = mysql_query($oneQry); $oneRow = mysql_fetch_array($oneResult);
$content1 = stripcslashes($oneRow['content']);
$content = nl2br($content1);
?> <table class="boardTable txt04"> <colgroup> <col style="width:100px" /><col style="width:600px" /> </colgroup> <tr> <th>±Û¹øÈ£</th> <td><strong><?=$oneRow['uid'];?></strong></td> </tr> <tr> <th>Á¦¸ñ</th> <td><strong><?=$oneRow['subject'];?></strong></td> </tr> <tr> <th style="background:#FFF;">³»¿ë</th> <td style="background:#FFF;"><?=$content;?></td> </tr> </table> <div class="btnArea" style="padding:20px 0 50px;"> <a href="customernotice.php"><img src="./img/mypage/list_bt.gif" alt="¸ñ·Ï"></a> </div> <? } ?> <table class="vertiTable txt03"> <tr> <th><img src="../millennium/img/customer/notice_01.gif" alt="¹øÈ£"></th> <th><img src="../millennium/img/customer/notice_02.gif" alt="Á¦¸ñ"></th> <th><img src="../millennium/img/customer/notice_03date.gif" alt="ÀÛ¼ºÀÏ"></th> <th><img src="../millennium/img/customer/notice_04.gif" alt="Á¶È¸¼ö"></th> </tr> <? $total_sql .= " select * from mBoard_notice WHERE (company = '00' or company = '03') and ifnull(temp,\"\") <>'Y' "; $result = mysql_query($total_sql) or die (mysql_error()); $nTotalCount = mysql_num_rows($result); $nPage = ceil($nTotalCount / $cm_nCount); if ($pg == "") $pg = 1; $nFrom = ($pg - 1) * $cm_nCount; $sql = $total_sql . " order by uid DESC limit $nFrom, $cm_nCount "; $result = mysql_query($sql) or die (mysql_error()); if( mysql_num_rows($result) > 0 ){ while ($noticeRow = mysql_fetch_array($result)){ $reg_date = date('Y-m-d',$noticeRow['reg_date'] );
?> <tr><? //if($noticeRow['uid'] == $uid ){ echo "bgcolor=#FFFBFB";} else{ echo "bgcolor=#FFF";}?> <td><?=$noticeRow['uid'];?></td> <td> <a href='customernotice.php?uid=<?=$noticeRow['uid'];?>&pg=<?=$pg;?>'><?=$noticeRow['subject'];?></td> <td><?=$reg_date;?></td> <td><?=number_format($noticeRow['hit']);?></td> </tr>
<? } } ?> </table>
<div class="page"><?=pageListing($pg, $nPage, $cm_nCount, "customernotice.php?pg=" );?></div>
<!-- ³»¿ë --------------- ³¡ -----> </td> </tr> </table> <!-- Áß°£ -------------- ³¡ --> </td> </tr> <? include('./include/footer.php'); ?>
|