/var/www/(Del)yuecreations.com.hk/tc/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
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
<?php require_once('../webadmin/configure.php');
$NewsId = (int)$_GET['NewsId'];
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Yue Creations International Limited</title>
<meta name="keywords" content="Yue Creations International Limited">
<meta name="description" content="Yue Creations International Limited" />
<link rel="stylesheet" type="text/css" href="../css/style.css" />
<!-- Main Menu -->
<script type="text/javascript" src="dropdowntabfiles/dropdowntabs.js"></script>
<link rel="stylesheet" type="text/css" href="dropdowntabfiles/glowtabs.css" />
<!-- End Main Menu -->

<!-- Sub Menu -->
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript" src="submenu/ddaccordion.js"></script>
<script type="text/javascript" src="submenu/ddaccordion-function.js"></script>
<link rel="stylesheet" type="text/css" href="submenu/ddaccordion.css" />
<!-- End Sub Menu -->
</head>

<body>
<table width="1000" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="60" id="frameleft">&nbsp;</td>
    <td width="880" align="left" valign="top" bgcolor="#FFFFFF"><table width="880" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td width="40" align="left" valign="top"><img src="../images/header_left.jpg" width="40" height="92" /></td>
        <td width="800" align="left" valign="top" id="header_bg"><div class="header_lang"><a href="../en/<?=basename($_SERVER['PHP_SELF'])."?".$_SERVER['QUERY_STRING'];?>" >English</a>&nbsp;&nbsp;&#8226;&nbsp;&nbsp;<a>中文</a></div><a href="index.php"><img src="../images/header_logo_en.jpg" width="461" height="92" border="0" /></a></td>
        <td width="40" align="left" valign="top"><img src="../images/header_right.jpg" width="40" height="92" /></td>
      </tr>
      <tr>
        <td align="left" valign="top"><img src="../images/mainmenu_left.jpg" width="40" height="33" /></td>
        <td align="left" valign="bottom" id="mainmenu_bg"><!-- Main Menu -->
        <div id="glowmenu" class="glowingtabs">
        <ul>
        <li><a href="home.php"><span>主頁</span></a></li>        
        <li><a rel="aboutus_dropmenu"><span>關於我們</span></a></li>        
        <li><a href="news.php"><span>最新消息</span></a></li>        
        <li><a rel="product_dropmenu"><span>產品目錄</span></a></li>
        <li><a href="contactus.php"><span>聯絡我們</span></a></li>
        </ul>
        </div>        
        
        <!--aboutus drop down menu -->                                                   
        <div id="aboutus_dropmenu" class="dropmenudiv_d">
        <?php
            $aboutResult 
mysql_query("SELECT * FROM Aboutus ORDER BY Aboutus.AboutusSort ASC  ");                
            while (
$aboutus mysql_fetch_array($aboutResult,MYSQL_ASSOC))
            {    
        
?>         
            <a href="aboutus.php?AboutusId=<?=$aboutus{'AboutusId'};?>"><?=$aboutus{'AboutusTitletc'};?></a>
            
        <?php ?></div>
        
        <!--product drop down menu-->  
        <div id="product_dropmenu" class="dropmenudiv_d">                 
        <?php
            $pcResult 
mysql_query("SELECT * FROM ProductColour ORDER BY ProductColour.Sort ASC ");                
            while (
$pc mysql_fetch_array($pcResult,MYSQL_ASSOC))
            {                    
        
?>       
            <a href="products.php?ProductColourId=<?=$pc{'ProductColourId'};?>"><?=$pc{'DescTC'};?></a>
        <?php ?></div>
        <script type="text/javascript">
        //SYNTAX: tabdropdown.init("menu_id", [integer OR "auto"])
        tabdropdown.init("glowmenu", "auto")
        </script>
        
        <!-- End Main Menu --></td>
        <td align="left" valign="top"><img src="../images/mainmenu_right.jpg" width="40" height="33" /></td>
      </tr>
      <tr>
        <td align="left" valign="top"><img src="../images/banner_left.jpg" width="40" height="300" /></td>
        <td align="left" valign="top" id="bannerimg"><img src="../images/banner_image.jpg" width="800" height="280" /></td>
        <td align="left" valign="top"><img src="../images/banner_right.jpg" width="40" height="300" /></td>
      </tr>
      <tr>
        <td height="350" align="left" valign="top"><img src="../images/submenu_left.jpg" width="40" height="200" /></td>
        <td align="left" valign="top"><table width="800" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td width="200" align="left" valign="top"><table width="200" border="0" cellpadding="0" cellspacing="0">
              <tr>
                <td><img src="../images/submenu_news_tc.jpg" width="200" height="60" /></td>
              </tr>
              <tr>
                <td><div class="glossymenu">
                <?php
                  $result1 
mysql_query("SELECT * FROM News ORDER BY News.NewsSort ASC, News.NewsDate ASC LIMIT 0, 10 ");                
                  while (
$row1 mysql_fetch_array($result1,MYSQL_ASSOC))    {            
                
?>
                  <a href="news.php?NewsId=<?=$row2{'NewsId'};?>"><?=$row2{'NewsTitletc'};?></a>
                  
                  <a class="menuitem" href="news.php?NewsId=<?=$row1{'NewsId'};?>"><?=$row1{'NewsTitletc'};?></a>
                <?php ?>          
                </div>
                </td>
              </tr>
            </table></td>
            <td width="50" align="left" valign="top"><img src="../images/submenu_right.jpg" width="50" height="200" /></td>
            <td width="550" align="left" valign="top"><table width="550" border="0" cellpadding="0" cellspacing="0">
              <tr>
                <td align="left" valign="top" class="pathtxt">位置 : <a href="home.php">主頁</a> &gt; <a href="#">消息</a></td>
              </tr>
              <?php
                  
if ($NewsId
                  {
                      
$result2 mysql_query("SELECT * FROM News WHERE News.NewsId = '".$NewsId."'");
                  }
                  else
                  {
                      
$result2 mysql_query("SELECT * FROM News ORDER BY News.NewsDate ASC, News.NewsId ASC LIMIT 0, 1");
                  }
                  
$row2 mysql_fetch_array($result2,MYSQL_ASSOC);
              
?>
              <tr>
                <td align="left" valign="top" class="pagetitle"><?=$row2{'NewsTitletc'};?></td>
              </tr>
              <tr>
                <td height="25" align="left" valign="top"><img src="../images/line.jpg" width="550" height="10" /></td>
              </tr>
              <tr>
                <td align="left" valign="top" class="pagetxt"><p><?=$row2{'NewsDesctc'};?>
                </td>
              </tr>
            </table></td>
          </tr>
        </table></td>
        <td align="left" valign="top"><img src="../images/content_space.jpg" width="40" height="200" /></td>
      </tr>
      <tr>
        <td align="left" valign="top" id="footerleft">&nbsp;</td>
        <td align="center" valign="top" class="footer">© 2011 Yue Creations International Limited. All right reserved<br /> 
          Powered by <a href="http://www.onesolution.com.hk" target="_blank" /></a></a></a>One Solution Limited. <img src="../images/onesolutionlogo.jpg" width="90" height="15" align="absmiddle" /></td>
        <td align="left" valign="top" id="footeright">&nbsp;</td>
      </tr>
    </table></td>
    <td width="60" id="frameright">&nbsp;</td>
  </tr>
</table>
</body>
</html>