/home/mjc1/public_html/html/millennium/main_news.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
<?php include_once("./_common2.php"); ?>
<script>
function premier(n) {
  for(var i = 1; i < 3; i++) {
    obj = document.getElementById('premier'+i);
    img = document.getElementById('premier_button'+i);
    if ( n == i ) {
      obj.style.display = "block";
      img.height = 15;
      img.src = "./img/main/board_on_0"+i+".jpg";
    } else {
      obj.style.display = "none";
      img.height = 15;
      img.src = "./img/main/board_off_0"+i+".jpg";
    }
  }
}
</script>

<table width="280" border="0" cellspacing="0" cellpadding="0">
    <tr height="15">
        <td>
        <table>
            <tr>
                <td><img src="./img/main/board_on_01.jpg" name="premier_button1" id='premier_button1'  onClick="javascript:location.href = './customernotice.php';"  OnMouseOver='this.style.cursor="hand";premier(1);' OnMouseOut='this.style.cursor="default"'></td>
                <td><img src="./img/main/board_off_02.jpg" name="premier_button2" id='premier_button2'  onClick="javascript:location.href = './customerupgrade.php';"  OnMouseOver='this.style.cursor="hand";premier(2);' OnMouseOut='this.style.cursor="default"'></td>
            </tr>
        </table>
        </td>
    </tr>

    <tr>
        <td>
            <table width="280" height="102" border="0" cellspacing="0" cellpadding="0">
                <tr>
                    <td>
    
                    <!--- 공지사항--->
                    <span id='premier1' style='display:block;'>

                    <table width="280" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                            <td height="3"></td>
                        </tr>
<?
  
//-- 공지사항
  
$noticeSql        =   " select * from mBoard_notice WHERE company = '00' or company = '01' order by uid desc limit 3 ";

  
$noticeResult     =    mysql_query($noticeSql);

  if( 
mysql_num_rows($noticeResult) > ){

    while (
$noticeRow =  mysql_fetch_array($noticeResult)){

      
$reg_date  =  date('Y-m-d',$noticeRow['reg_date'] );
?>
                        <tr>
                            <td width="20"><img src="./img/product/p_dot.jpg" hspace="3" vspace="7"></td>
                            <td class="txt03"><a href="./customernotice.php?nuid=<?=$noticeRow['uid'];?>"><?=$noticeRow['subject'];?></a></td>
                            <td class="txt03" align="right"><?=$reg_date;?></td>
                        </tr>
<?
    
}
  }
?>
                    </table>

                    <table width="280" border="0" cellspacing="0" cellpadding="3">
                        <tr>
                            <td align="right" class="txt03"><a href="./customernotice.php"></a></td>
                        </tr>
                    </table>
                    </span> 



                    <!--- 제품별 업그레이드--->
                    <span id='premier2' style='display:none;'>
                    <table width="280" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                            <td height="3"></td>
                        </tr>
<?
  
//-- 제품별업그레이드
  
$upgradeSql        =   " select * from upgrade WHERE 1 = 1 AND (temp='00' OR temp='02')  order by uid desc limit 3 ";

  
$upgradeResult     =    mysql_query($upgradeSql);

  if( 
mysql_num_rows($upgradeResult) > ){

    while (
$upgradeRow =  mysql_fetch_array($upgradeResult)){

      
$reg_date  =  date('Y-m-d',$upgradeRow['reg_date'] );
?>
                        <tr>
                            <td width="20"><img src="./img/product/p_dot.jpg" hspace="3" vspace="7"></td>
                            <td class="txt03"><a href="./customerupgrade.php?nuid=<?=$upgradeRow['uid'];?>&SearchMsw1=<?=$upgradeRow['programCode'];?>"><?=cutstr($upgradeRow['subject'],15,"..");?></a></td>
                            <td class="txt03" align="right"><?=$reg_date;?></td>
                        </tr>
<?
    
}
  }
?>
                    </table>

                    <table width="280" border="0" cellspacing="0" cellpadding="3">
                        <tr>
                            <td align="right" class="txt03"><a href='./customerupgrade.php'></a></td>
                        </tr>
                    </table>
                    </span> 
                              
        
                </td>
            </tr>
        </table>
        </td>
    </tr>
</table>