-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.php
321 lines (313 loc) · 15 KB
/
index.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
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
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
<?php
if(!session_id())
session_start();
error_reporting(0);
require("config.php");
require("common_start.php");
require("lib/func.lib.php");
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Phonghanh's Shop</title>
<script language="javascript" src="lib/varAlert.<?php echo $_lang?>.unicode.js"></script>
<script language="javascript" src="lib/javascript.lib.js"></script>
<script language="javascript">
function btnSearch_onclick(){
if(test_empty(document.frmSearch.keyword.value)){
alert(mustInput_Search);document.frmSearch.keyword.focus();return false;
}
document.frmSearch.submit();
return true;
}
</script>
<script>
function $(url,id,eval_str){
if(document.getElementById){var x=(window.ActiveXObject)?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest();}
if(x){x.onreadystatechange=function() {
el=document.getElementById(id);
el.innerHTML='<img src="images/weather/loading.gif" align="left" />';
if(x.readyState==4&&x.status==200){
el.innerHTML='';
el=document.getElementById(id);
el.innerHTML=x.responseText;
eval(eval_str);
}
}
x.open("GET",url,true);x.send(null);
}
}
function change(id){
$('weather.php?id='+id,'noidung');
}
</script>
<link href="css/css.css" rel="stylesheet" type="text/css">
<script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
<style type="text/css"></style></head>
<body>
<table width="1010" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td bgcolor="#FFFFFF"><img src="Hinh/space.jpg" width="5" height="5"></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><table width="1000" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<tr>
<td><img src="header.png"/></td>
</tr>
<tr>
<td class="style1"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="11%"><a href="./" class="link1">TRANG CHỦ</a></td>
<td width="12%"><a href="./?frame=intro" class="link1">GIỚI THIỆU</a></td>
<td width="10%"><a href="./?frame=service" class="link1">DỊCH VỤ</a></td>
<td width="15%"><a href="./?frame=news" class="link1">TIN TỨC & SỰ KIỆN</a></td>
<td width="13%"><a href="./?frame=contact" class="link1">LIÊN HỆ</a></td>
<td width="2%"><img src="images/icon_search.gif" width="11" height="11" /></td>
<form action="./" method="get" name="frmSearch">
<input type="hidden" name="act" value="search"/>
<input type="hidden" name="frame" value="search"/>
<td width="16%"><input name="keyword" type="text" class="search" value="" onFocus="this.value='';"/></td>
<td width="21%"><input name="Submit" type="submit" class="style19" value="Tìm kiếm" onClick="return btnSearch_onclick();"/></td>
</form>
</tr>
</table></td>
</tr>
<tr>
<td class="style4"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr valign="top">
<td width="193"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="style15"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="images/httt.jpg" width="193" height="29" /></td>
</tr>
<tr>
<td class="style5"><table width="190" border="0" cellspacing="1" cellpadding="1">
<tr>
<td height="20" colspan="2" align="center" valign="top"><table width="160" border="0" align="center">
<tr>
<td align="center"><img src="images/hotline.jpg" alt="hot line" width="160" height="46" /><br />
<a href="https://www.facebook.com/Phonghanh2015" target="_blank"><img src="images/facebook.png" width="165" height="49" border="0" /></a></td>
</tr>
</table></td>
</tr>
<tr>
<td align="center"><?php include('box/box_yahoo.php')?></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td class="style15"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><?php $code = $_lang == 'vn' ? 'vn_download' : 'en_download';
$parentWhere = "parent = (select id from tbl_content_category where code='$code')";
$download = getRecord("tbl_content",$parentWhere);
{?>
<a href="Bang_bao_gia.doc" target="_blank"><img src="images/download.gif" width="193" height="28" border="0"/></a>
<?php }?>
</td>
</tr>
<tr>
<td><?php include('module/product_category.php')?></td>
</tr>
</table></td>
</tr>
<tr>
<td class="style15"><?php include('box/box_left_top.php')?></td>
</tr>
<tr>
<td class="style15"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="style17"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="3%"><img src="images/c_bg1.jpg" width="6" height="29" /></td>
<td width="97%" class="style11">THỐNG KÊ TRUY CẬP</td>
</tr>
</table></td>
</tr>
<?php include('box/box_total.php')?>
</table></td>
</tr>
<tr>
<td class="style15"><?php include('box/box_left_bottom.php')?></td>
</tr>
<tr>
<td class="style15"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="images/duongdi.jpg" width="193" height="29" /></td>
</tr>
<tr>
<td class="style5"><table width="190" border="0" cellspacing="1" cellpadding="1">
<tr>
<td height="20" colspan="2" align="center" valign="top"><table width="160" border="0" align="center">
<tr>
<a href="bando/sodo.php" target="_blank"><img src="images/sodo.gif" width="165" height="49" border="0" /></a></td>
</tr>
</table></td>
</tr>
<tr>
<td align="center"><?php include('box/box_yahoo.php')?></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table></td>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="614" height="198" align="top">
<param name="movie" value="images/BANNER_KM.swf" />
<param name="quality" value="high" />
<embed src="flash/SSS.swf" width="610" height="196" align="top" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>
</object></td>
</tr>
<tr>
<td class="style16"><?php
if( empty( $_REQUEST['frame'] ) )
{
include('module/home.php');
}
else
{?>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="style17"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="6"><img src="images/c_bg1.jpg" width="6" height="29" /></td>
<td class="style11"><?php include('module/processTitle.php')?></td>
</tr>
</table></td>
</tr>
<tr>
<td class="style20"><table width="100%" border="0">
<tr>
<td><?php include('module/processFrame.php')?></td>
</tr>
</table></td>
</tr>
</table>
<?php }
?>
</td>
</tr>
</table></td>
<td width="193"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="style15"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="images/cart_bg1.jpg" width="193" height="7" /></td>
</tr>
<tr>
<td class="style7"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="43%" rowspan="2" align="center"><img src="images/cart.jpg" width="62" height="58" /></td>
<td width="57%" class="style9">GIỎ HÀNG</td>
</tr>
<?php $cnt=0;
$tongcong=0;
$cart=$_SESSION['cart'];if ($cart<>''){
foreach ($cart as $product){
$sql = "select * from tbl_product where id='".$product[0]."'";
$result = mysql_query($sql,$conn);
if (mysql_num_rows($result)>0){
$pro = mysql_fetch_assoc($result)?>
<?php }
$tongcong=$tongcong+$product[1];
$cnt=$cnt+1;
} }
?>
<tr>
<td valign="top" class="style8"><span class="style10">
<?php echo $tongcong?>
</span> sản phẩm </td>
</tr>
</table></td>
</tr>
<tr>
<td><img src="images/cart_bg2.jpg" width="193" height="7" /></td>
</tr>
</table></td>
</tr>
<tr>
<td class="style15"><?php include('box/box_right_top.php')?></td>
</tr>
<tr>
<td class="style15"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="style17"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="3%"><img src="images/c_bg1.jpg" width="6" height="29" /></td>
<td width="97%" class="style11">SẢN PHẨM BÁN CHẠY <img src="images/new.gif" width="33" height="16" align="absmiddle" /></td>
</tr>
</table></td>
</tr>
<tr>
<td class="style12"><marquee height="300" behavior="scroll" direction="up" scrolldelay="100" scrollamount="3" onMouseOver="this.stop();" onMouseOut="this.start();">
<?php include('module/product_special.php')?>
</marquee>
</td>
</tr>
</table></td>
</tr>
<tr>
<td class="style15"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="style17"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="3%"><img src="images/c_bg1.jpg" width="6" height="29" /></td>
<td width="97%" class="style11">THÔNG TIN HOT</td>
</tr>
</table></td>
</tr>
<tr>
<td class="style12"><table width="100%" border="0" cellspacing="0" cellpadding="0">
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td class="style15"><?php include('box/box_right_bottom.php')?></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td class="style24"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td> </td>
<td class="style25"> </td>
<td align="right"> </td>
</tr>
<tr valign="top">
<td bgcolor="#126EB1"> </td>
<td bgcolor="#126EB1" class="style25">
<table align="center">
<tr>
<td><image src="images/culicoder/CuliCoderLogo.png" alt="CuliCoder-Group" width="125px" height="70px"/></td>
<td align="center"><strong style="color:white">A product of CuliCoder</strong><br>
<a style="color:white" href="https://www.facebook.com/merthushala">Copyright © 2015 Merthushala. All rights reserved.</a>
</td>
</tr>
</table>
</td>
<td align="right" bgcolor="#126EB1" style="color:#FFFFFF; padding:5px;" valign="bottom">
</tr>
<tr>
<td width="8%" bgcolor="#126EB1"><img src="images/bottom_1.jpg" width="10" height="5" /></td>
<td width="87%" bgcolor="#126EB1" class="style25"> </td>
<td width="5%" align="right" bgcolor="#126EB1"><img src="images/bottom_3.jpg" width="10" height="5" /></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><img src="Hinh/space.jpg" width="5" height="5"></td>
</tr>
</table>
</body>
</html>
<?php require("common_end.php"); ?>