/home/mjc1/public_html/html/millennium/customernotice_cs.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
<?php include_once("./_common2.php"); ?>
<? 
include("./Page/common/header.sub.php"); ?>

<?
    
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;
}

$target_nuid "389";
$target_nuid2 "473";
?>
    <div class="wrap" style='width:740px;'>

        <div class="contents" style='margin-top:20px;'>
            <div class="subContents">
                <?php if($nuid==$target_nuid){ ?>

                <?php } else { ?>
                <h1>
                    <img src="https://mjsoft.co/html/millennium/img/titlebar/customernotice.jpg" alt="°øÁö»çÇ×">
                    <p>
                        <span class="home">Home</span>
                        <span class="depth">></span>
                        <span class="depth1">°í°´¼¾ÅÍ</span>
                        <span class="depth">></span>
                        <span class="depth2">°øÁö»çÇ×</span>
                    </p>
                </h1>
                <?php ?>
                <div class="section">
                <?php if($nuid==$target_nuid){ ?>
                    <h2><img src="https://mjsoft.co/html/millennium/img/banner/voucher_banner_cs.png" alt="¹®ÀÇÀüÈ­ 1566-8686"></h2>
                <?php } else if ($nuid == $target_nuid2) { ?>
                    <h2><img src="https://mjsoft.co/html/millennium/img/banner/20220330_notice_title.png" alt="¹®ÀÇÀüÈ­ 1566-8686"></h2>
                <?php } else { ?>
                    <h2><img src="https://mjsoft.co/html/millennium/img/customer/notice_top.jpg" alt="¹®ÀÇÀüÈ­ 1566-8686"></h2>
                <?php ?>
<?
  
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">
                    <?php if($nuid==$target_nuid){ ?>

                    <?php } else { ?>
                        <tr> 
                            <th width="90">¹øÈ£</th>
                            <th width="620">Á¦¸ñ</th>
                        </tr>
                        <tr> 
                            <td><b><?=$oneRow['uid'];?></b></td>
                            <td class="title" style='line-height:40px;'><b><?=stripcslashes($oneRow['subject']);?></b></td>
                        </tr>
                    <?php ?>
<?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='https://mjsoft.co/html/millennium/img/customer/file.gif' alt="ÆÄÀϾÆÀÌÄÜ"> <strong>[ ÆÄÀÏ´Ù¿î·Îµå ]</strong></a></td>
                        </tr>
<?php }?>
                        <tr>
                            <td colspan="2" class="upgradeGuide"><?=$content;?></td>
                        </tr>
                    </table>
                    
<?     ?>
            </div><!-- //subContents -->
        </div><!-- //contents -->
    </div><!-- //wrap -->