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
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
|
<?php require("webadmin/configure.php"); $id =(int)$_GET['id'];?> <!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" /> <meta http-equiv="X-UA-Compatible" content="IE=7"> <title>REP ELECTRONICS LIMITED</title> <link rel="stylesheet" type="text/css" href="css/style.css" /> <script language=JavaScript> <!-- var message=""; /////////////////////////////////// function clickIE() {if (document.all) {(message);return false;}} function clickNS(e) {if (document.layers||(document.getElementById&&!document.all)) { if (e.which==2||e.which==3) {(message);return false;}}} if (document.layers) {document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;} else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
document.oncontextmenu=new Function("return false") // --> </script>
<script language="javascript"><!-- function popupWindow(url) { window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=0,width=620,height=500,screenX=150,screenY=150,top=150,left=150') } //--></script>
<link rel="stylesheet" type="text/css" href="css/scrollable-horizontal.css"> <link rel="stylesheet" type="text/css" href="css/scrollable-buttons.css">
<script type="text/javascript" src="js142/jquery-1.4.2.min.js"></script> <script type="text/javascript" src="js142/jquery.sifr-1.5.min.js"></script>
<script type="text/javascript" src="js142/jquery.swfobject.1-0-9.min.js"></script> <script type="text/javascript" src="js142/jquery.fancybox-1.2.5.pack.js"></script> <script type="text/javascript" src="js142/jquery-ui-1.7.2.custom.min.js"></script> <script type="text/javascript" src="js142/jquery.tools.min.js"></script> <script type="text/javascript" src="js142/jScrollPane.js"></script> <script type="text/javascript" src="js142/jquery.cycle.lite.1.0.min.js"></script> <script type="text/javascript" src="js142/docready.js"></script> </head>
<body> <table width="730" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td><table width="730" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="60"><a href="mainnew.php?id=1"><img src="images/icon_ga.jpg" width="60" height="60" border="0" class="img" /></a></td> <td width="10"> </td> <td width="60"><a href="mainnew.php?id=2"><img src="images/icon_gc.jpg" width="60" height="60" border="0" class="img" /></a></td> <td width="10"> </td> <td width="60"><a href="mainnew.php?id=3"><img src="images/icon_av.jpg" width="60" height="60" border="0" class="img" /></a></td> <td width="20"> </td> <td width="500" align="left" valign="bottom"><table border="0" cellpadding="0" cellspacing="0" class="menu"> <tr> <td width="100" align="center"><a href="main.php?id=<?=$id;?>">HOME</a></td> <td width="100" align="center"><a href="about.php?id=<?=$id;?>">ABOUT</a></td> <td width="100" align="center"><a href="product.php?id=<?=$id;?>">PRODUCTS</a></td> <td width="100" align="center"><a href="news.php?id=<?=$id;?>">NEWS</a></td> <td width="100" align="center"><a href="contact.php?id=<?=$id;?>">CONTACT</a></td> </tr> </table></td> <td width="10"> </td> </tr> </table></td> </tr> <tr> <td><table width="730" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="210"> </td> <td width="10"><img src="images/frame_r1_c1.jpg" width="10" height="55" /></td> <td width="500" valign="top" background="images/frame_r1_c2.jpg"> </td> <td width="10"><img src="images/frame_r1_c3.jpg" width="10" height="55" /></td> </tr> </table></td> </tr> <tr> <td><table width="730" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="295"><table width="295" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="55" rowspan="4" align="right" valign="top"><img src="frame/left.jpg" width="20" height="245" /></td> <td width="220" height="20" align="left" valign="top"><img src="frame/top.jpg" width="220" height="20" /></td> <td width="20" rowspan="4" align="left" valign="top"><img src="frame/right.jpg" width="20" height="245" /></td> </tr> <tr> <td width="220" height="205" valign="top" bgcolor="#FFFFFF"> <div id="slideshow"> <?php $sql = "SELECT * "; $sql .= "FROM mainnew "; $sql .= "WHERE mnewstatus = '1' AND mnewtype = '0' OR mnewtype = $id "; $sql .= "ORDER BY mnewid DESC "; $result = mysql_query($sql); while ($row = mysql_fetch_array($result,MYSQL_ASSOC)){ ?> <a href="javascript:popupWindow('popnew.php?mnewid=<?=$row{'mnewid'}?>')"><div style="height:180px;"><img src="webadmin/mainnewimagethumb/<? echo $row{'mnewimage'}; ?>" alt="" border='0'></div><img src='images/enlargebtn.jpg' width='220' height='25' border='0'></a><?php } ?> </div> </td> </tr> <tr> <td height="15"><img src="frame/bottom.jpg" width="220" height="20" /></td> </tr> </table></td> <td align="left" valign="top" style="background-color:#A8A9AD;"> <div class="frame1"> <table width="400" border="0" cellpadding="0" cellspacing="0"> <tr><td align="left" valign="top" class="whitetxt"> <p class="title">Latest Product News</p> <div id="slideshow2"> <?php $sql = "SELECT * "; $sql .= "FROM mainnew "; $sql .= "WHERE mnewstatus = '1' AND mnewtype = '0' OR mnewtype = $id "; $sql .= "ORDER BY mnewid DESC "; $result = mysql_query($sql); while ($row = mysql_fetch_array($result,MYSQL_ASSOC)) { ?> <a href="newsdetail.php?id=<?=$id;?>&mnewid=<?=$row{'mnewid'}; ?>"> <span><? echo $row{'mnewcover'}; ?></span> </a> <?php } ?> </div> </td></tr> </table> </div> </td> <td width="10"><img src="images/frame_r2_c3.jpg" width="10" height="245" /></td> </tr> </table></td> </tr> <tr> <td><table width="730" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="210"> </td> <td width="10"><img src="images/frame_r3_c1.jpg" width="10" height="75" /></td> <td width="500" align="left" background="images/frame_r3_c2.jpg"><?php if (($id == '2') or ($id == '3')) { echo " "; $sql = "SELECT * FROM procat WHERE procattype = ".$id." "; $sql .= "ORDER BY procatsort ASC "; $result = mysql_query($sql); while ($row = mysql_fetch_array($result,MYSQL_ASSOC)){ ?><a href="pcat.php?id=<?=$id;?>&procatid=<? echo $row{'procatid'}; ?>"><img src="webadmin/brand/<? echo $row{'procatimage2off'}; ?>" onmouseover="this.src='webadmin/brand/<? echo $row{'procatimage2'}; ?>'" onmouseout="this.src='webadmin/brand/<? echo $row{'procatimage2off'}; ?>'" width="54" height="54" border="0" class="brandimg" alt="<? echo $row{'procatname'}; ?>"/></a><?php } ?> <?php } else if ($id == '1') { ?> <!-- "previous page" action --> <a class="prevPage browse left"></a> <!-- root element for scrollable --> <div class="scrollable"> <!-- root element for the items --> <div class="items"> <?php $sql = "SELECT * FROM procat WHERE procattype = ".$id." "; $sql .= "ORDER BY procatsort ASC "; $result = mysql_query($sql); while ($row = mysql_fetch_array($result,MYSQL_ASSOC)) { echo '<img src="webadmin/brand/'.$row{'procatimage2off'}.'" onmouseover="this.src=\'webadmin/brand/'.$row{'procatimage2'}.'\'" onmouseout="this.src=\'webadmin/brand/'.$row{'procatimage2off'}.'\'" width="54" height="54" border="0" class="brandimg" alt="'.$row{'procatname'}.'" onclick=location.href="pcat.php?id='.$id.'&procatid='. $row{'procatid'} .'" />'; } ?> </div> </div> <a class="nextPage browse right"></a> <br style="clear:both;"> <?php } ?></td> <td width="10"><img src="images/frame_r3_c3.jpg" width="10" height="75" /></td> </tr> </table></td> </tr> <tr> <td><form action="results.php?id=<?=$id;?>" name="searchForm" method="get"><table width="730" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="212"><a href="main.php"><img src="images/logo.jpg" width="212" height="66" border="0" /></a></td> <input type="hidden" name="id" value="<?=$id?>"> <td align="right"><input type="text" name="searchtxt" value="<?=$searchtxt?>" class="input"/> <select name="type"> <option value="0" <? if (($type=='0') || ($type=='')) echo 'selected'; ?>>Product</option> <?php $sql = "SELECT * FROM procat WHERE procattype = ".$id." "; $sql .= "ORDER BY procatsort ASC "; $result = mysql_query($sql); while ($row = mysql_fetch_array($result,MYSQL_ASSOC)) { echo "<option value='". $row{'procatid'} ."' "; if ($row{'procatid'} == $type) echo 'selected="selected"'; echo " >". $row{'procatname'} ."</option>\n"; } ?> </select> </select> <img src="images/searchbtn.jpg" align="absmiddle" onclick="searchForm.submit()" /> </td> </tr> </table></form></td> </tr> <tr> <td align="right" class="footertxt">© 2010 Copyright reserved by REP ELECTRONICS LIMITED | <a href="disclaimer.php?id=<?=$id;?>">Disclaimer</a><br /> Powered by <a href="http://www.onesolution.com.hk" target="_blank">One Solution Limited</a>.</td> </tr> </table>
</body> </html>
|