/home/mjc1/public_html/html/millennium/customernotice.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
167
168
169
170
171
<?php include_once("./_common2.php"); ?>
<? 
include("./Page/common/header.php"); ?>

<?
    
//20231017 ³²»óº¹ ¼öÁ¤ - Á¶È¸¼ö ¼û±è󸮠¿Ï·á

    
if (!isset($total_sql)) $total_sql "";//20130911 Ãß°¡
    
if (!isset($pg)) $pg "";
    if (!isset(
$nuid)) $nuid "";

    
/*
    if( isset($nuid) && $nuid !== ""){
    
        if( !isset(${"noticeBoardUid_".$nuid}) ){

            $hitSel     =  " select hit from mBoard_notice WHERE uid = '$nuid'";
            $hitResult  =    mysql_query($hitSel);
            $hitRow     =    mysql_fetch_array($hitResult);
            $plus_hit   =    $hitRow[0] + 1;

            $hitUp  =  " UPDATE mBoard_notice SET hit = '$plus_hit' WHERE uid = '$nuid' ";
                        MYSQL_QUERY($hitUp );

            setcookie("noticeBoardUid_$nuid",$nuid,0);
        }  
    }
    */
   
   
$cm_nCount          =      15;
   
$cm_item_nCount     =      30;          
   
   function 
pageListing($cur_page$total_page$n$url) {

  
$retValue "<table  border=0 cellspacing=0 cellpadding=0 height=19 align=center valign=top><tr>";
  if (
$cur_page 1) {

      
$retValue .= "<td width=80 align=left><a href='" $url . ($cur_page-1) ."' ><img src=./img/customer/prev_bt.jpg border=0 valign=bottom></a></td>";
  } else {
    
$retValue .= "&nbsp;";
    
$retValue .= "&nbsp;";
  }
  
$retValue .= "&nbsp;";
  
$start_page = ( ( (int)( ($cur_page ) / 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 .= "<td width=80 align=left> <span style=font-size:9pt;><font face=Verdana><a href='" $url . ($start_page-1) . "'><img src=./img/customer/prev10_bt.jpg border=0 valign=bottom></a></font></span></td> ";
  if (
$total_page 1)
    for (
$k=$start_page;$k<=$end_page;$k++)
      if (
$cur_page != $k$retValue .= "<td>&nbsp;<span style=font-size:9pt;padding:0px 100px 100px 5px;><font face=Verdana><a href='$url$k'>$k</a>&nbsp;</font></span></td>";
      else 
$retValue .= "<td width=0>&nbsp;<span style=font-size:10pt;><font face=Verdana color=f6822f    >[$k]</font></span></td>";
  if (
$total_page $end_page$retValue .= "<td width=80 align=right><a href='" $url . ($end_page+1) . "'><img src=./img/customer/next10_bt.jpg border=0 valign=bottom></a></td> ";
  
$retValue .= "&nbsp;&nbsp;";
  if (
$cur_page $total_page) {
    
$retValue .= "<td width=80 align=right><a href='$url. ($cur_page+1) ."'><img src=./img/customer/next_bt.jpg border=0 valign=bottom></a></td>";

  } else {
    
$retValue .= "&nbsp;";
    
$retValue .= "&nbsp;";
  }
  
$retValue .= "</tr></table>";
  return 
$retValue;
}
?>


    <div class="wrap">

        <div class="contents">
            <div class="asideMenu">
                <? include("./Page/customer/leftNavi.html"); ?>
            </div><!-- //leftNavi -->

            <div class="subContents">
                <h1>
                    <img src="./img/titlebar/customernotice.jpg" alt="°øÁö»çÇ×">
                    <p>
                        <span class="home"><a href="intro.php">Home</a></span>
                        <span class="depth">></span>
                        <span class="depth1">°í°´Áö¿ø</span>
                        <span class="depth">></span>
                        <span class="depth2">°øÁö»çÇ×</span>
                    </p>
                </h1>
<style>
.mt30{margin:0;}
</style>
                <div class="section">
                    <!--<h2><img src="./img/customer/notice_top.jpg" alt="±âÁ¸ °øÁö»çÇ× À̹ÌÁöÀÔ´Ï´Ù."></h2>-->
                    <h2><img src="./img/customer/board_title/notice_top.png" alt="°øÁö»çÇןÀÌÆ²" usemap="#cu_as_top"/></h2>

<?
  
if( isset($nuid) && $nuid !== ""){
    
    
$oneQry     =   " select * from mBoard_notice WHERE uid = '$nuid' AND (company = '00' or company = '01')  ";
    
$oneResult  =     mysql_query($oneQry);
    
    
$oneRow     =     mysql_fetch_array($oneResult);
        
$content1         stripcslashes($oneRow['content']);
        
$content    =     nl2br($content1);
?>

                    <!-- »ó¼¼ ±Û ³»¿ë -->
                    <table class="faqTable mt30">
                        <tr> 
                            <th width="90">¹øÈ£</th>
                            <th width="620">Á¦¸ñ</th>
                        </tr>
                        <tr> 
                            <td><b><?=$oneRow['uid'];?></b></td>
                            <td class="title"><b><?=stripcslashes($oneRow['subject']);?></b></td>
                        </tr>
<?php if($oneRow['add_file']!=''){?>
                        <tr>
                            <td><b>÷ºÎÆÄÀÏ</b></td>
                            <td class="title"><a href='fileDownLoad.php?type=notice&filename=<?=$oneRow['add_file'];?>'><img src='./img/customer/file.gif' alt="ÆÄÀϾÆÀÌÄÜ"> <strong>[ ÆÄÀÏ´Ù¿î·Îµå ]</strong></a></td>
                        </tr>
<?php }?>
                        <tr>
                            <td colspan="2" class="upgradeGuide"><?=$content;?></td>
                        </tr>
                    </table>
                    
                    <a href="customernotice.php"><img src="./img/mypage/list_bt.jpg" alt="±Û¸ñ·Ï" class="listBtn"></a>

<?     ?>

                    <table class="faqTable mt30">
                        <tr> 
                            <th width="90">¹øÈ£</th>
                            <th width="420">Á¦¸ñ</th>
                            <th width="100">ÀÛ¼ºÀÏÀÚ</th>
                            <!-- <th width="100">Á¶È¸¼ö</th> -->
                        </tr>
<?
    $total_sql  
.=   " select * from mBoard_notice WHERE (company = '00' or company = '01') and ifnull(temp,\"\") <>'Y' AND reg_date > '1387521360' ";

    
$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) > ){ 
        while (
$noticeRow =  mysql_fetch_array($result)){ 
            
$reg_date  =  date('Y-m-d',$noticeRow['reg_date'] ); 

?>         
                        <tr  <? if($noticeRow['uid'] == $nuid ){ echo "bgcolor=#ecf0f9";} else{ echo "bgcolor=#ffffff";}?>
                            <td width="90"><?=$noticeRow['uid'];?></td>
                            <td width="420"><a href='customernotice.php?nuid=<?=$noticeRow['uid'];?>&pg=<?=$pg;?>'><?=$noticeRow['subject'];?></td>
                            <td width="100"><?=$reg_date;?></td>
                            <!--Á¶È¸¼ö ¼û±èÀº 151Çà ÄÚ¸àÆ®ÇϽø頵˴ϴÙ-->
                            <!-- <td width="100"><?=number_format($noticeRow['hit']);?></td> -->
                        </tr>

<?    }  }  ?>          
                    </table>

                    <div><?=pageListing($pg$nPage$cm_nCount"customernotice.php?pg=" );?></div>

                </div><!-- //section -->

            </div><!-- //subContents -->
        </div><!-- //contents -->
    </div><!-- //wrap -->

<? include("./Page/common/footer.php"); ?>