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
|
<?php require_once('../webadmin/configure.php'); ?> <!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"> </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> • <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 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="375" align="left" valign="top" class="pagetxt"><img src="../images/home_welcome_tc.jpg" width="375" height="60" /> <?php $result1 = mysql_query("SELECT * FROM IndexBlog "); $row1 = mysql_fetch_array($result1,MYSQL_ASSOC); echo $row1{'IndexBlogDesctc'}; ?></td> <td width="50" align="left" valign="top"><img src="../images/content_space.jpg" width="50" height="200" /></td> <td width="375" align="left" valign="top" class="pagetxt"><table width="375" border="0" cellpadding="0" cellspacing="0"> <tr> <td colspan="2"><img src="../images/home_news_tc.jpg" width="375" height="60" /></td> </tr> <?php $result2 = mysql_query("SELECT * FROM News ORDER BY News.NewsDate DESC, News.NewsId DESC LIMIT 0, 3 "); while ($row2 = mysql_fetch_array($result2,MYSQL_ASSOC)) { ?><tr> <td width="75"><?=$row2{'NewsDate'};?></td> <td width="300"><?=$row2{'NewsTitletc'};?></td> </tr> <tr> <td colspan="2"><img src="../images/line.jpg" width="375" height="10" /></td> </tr> <?php } ?> </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"> </td> <td align="left" valign="top"><img src="../images/home_hotproduct_tc.jpg" width="800" height="60" /><br /> <?php $result3 = mysql_query("SELECT * from Product WHERE HotProduct='1' ORDER BY RAND() LIMIT 0,4 "); while ($row3 = mysql_fetch_array($result3,MYSQL_ASSOC)) { $size = getimagesize("../webadmin/product/".$row3{'ImagePath'}) ; echo '<div class="hotproducttable" align="center"><table width="100%" border="0" cellpadding="0" cellspacing="0">'; if($size[0] >$size[1]){ // 0=w 1=h //Check the width is > 170 echo '<tr>'; echo '<td align="center" class="img"><a href="products_detail.php?ProductId='.$row3{'ProductId'}.'"><img src="../webadmin/product/'.$row3{'ImagePath'}.'" width="170" /></a></td>'; echo '</tr>'; echo '<tr>'; echo '<td align="center"><a href="products_detail.php?ProductId='.$row3{'ProductId'}.'">'.$row3{'NameTC'}.'</a></td>'; echo '</tr>'; } else { echo '<tr>'; echo '<td align="center" class="img"><a href="products_detail.php?ProductId='.$row3{'ProductId'}.'"><img src="../webadmin/product/'.$row3{'ImagePath'}.'" height="170" /></a></td>'; echo '</tr>'; echo '<tr>'; echo '<td align="center"><a href="products_detail.php?ProductId='.$row3{'ProductId'}.'">'.$row3{'NameTC'}.'</a></td>'; echo '</tr>'; } echo '</table></div>'; } ?> </td> <td align="left" valign="top"> </td> </tr> <tr> <td align="left" valign="top" id="footerleft"> </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"> </td> </tr> </table></td> <td width="60" id="frameright"> </td> </tr> </table> </body> </html>
|