/home/mjc1/public_html/mjmall/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
<? 
include_once("./_common.php");
include(
"./include/common/header.php"); ?>

    <div class="location">
        <div class="wrap">
            <a href="./mall.php" class="home"><span class="screen_out">Home</span></a>
            <span>></span><a href="./cscenter.php"><span class="depth1">°í°´¼¾ÅÍ</span></a>
            <span>></span><span class="depth2">°øÁö»çÇ×</span>
        </div><!-- //wrap -->
    </div><!-- //location -->

    <div class="wrap">
        <div class="contents">

            <? include("./include/cscenter/sub_lnb.php"); ?>

            <div class="boardSection">

<?

    
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="reviewTable">
                    <caption>°øÁö±Û</caption>
                    <colgroup>
                        <col style="width:185px;"><col style="width:805px;">
                    </colgroup>
                    <tr> 
                        <th><?=$oneRow['uid'];?></th>
                        <td><?=stripcslashes($oneRow['subject']);?></td>
                    </tr>
                    <tr>
                        <td colspan="2" class="upgradeGuide"><?=$content;?></td>
                    </tr>
                </table>
                    
                <div class="qnaBtn1"><a href="customernotice.php">±Û¸ñ·Ï</a></div>
<?     ?>
            </div><!-- //boardSection -->


            <div class="boardSection">
                <table class="qnaTable">
                    <caption>°øÁö»çÇ×</caption>
                    <colgroup>
                        <col style="width:150px;"><col style="width:540px;">
                        <col style="width:150px;"><col style="width:150px;">
                    </colgroup>
                    <tr> 
                        <th>¹øÈ£</th>
                        <th>Á¦¸ñ</th>
                        <th>ÀÛ¼ºÀÏ</th>
                        <th>Á¶È¸¼ö</th>
                    </tr>
<?
    $total_sql  
.=   " select * from mBoard_notice WHERE (company = '00' or company = '01') ";

    
$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=#fbf5ee";} else{ echo "bgcolor=#ffffff";}?>
                            <td><?=$noticeRow['uid'];?></td>
                            <td ><a href='customernotice.php?nuid=<?=$noticeRow['uid'];?>&pg=<?=$pg;?>'><?=$noticeRow['subject'];?></td>
                            <td><?=$reg_date;?></td>
                            <td><?=number_format($noticeRow['hit']);?></td>
                        </tr>

<?    }  }  ?>          
                    </table>

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

            </div><!-- //boardSection -->

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

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