1 <?require("system/model/config.php") ?>
2 <? require(
"system/model/common_start.php") ?>
3 <? require(
"system/model/module_func.php") ?>
4 <? require(
"system/model/tiengviet.php") ?>
5 <? include(
"system/model/curency.php") ?>
6 <? include(
"system/model/pro_tick.php") ?>
7 <?php
8 $id=$_REQUEST[
'views'];
9 $name=$_REQUEST[
'name'];
10 ?>
11 <?php
12 $sql_1 =
"select * from products where id='".$id."' ";
13 $result_1 = @mysql_query($sql_1,$con);
14 $row=mysql_fetch_assoc($result_1);
15 $sql_user=mysql_query(
"SELECT * FROM user_shop where user='".$row['user']."' ");
16 $row_user=mysql_fetch_assoc($sql_user);
17 $sql_city=mysql_query(
"SELECT * FROM city where id='".$row['city']."' ");
18 $row_city=mysql_fetch_assoc($sql_city);
19 $sqlup =
"update products set view=view+1 where id=$id";
20 $resultup = mysql_query($sqlup,$con);
21 ?>
22 <?php
23 $sql_pro=mysql_query(
"SELECT * FROM products where id='".$id."' ");
24 $row_pro=mysql_fetch_assoc($sql_pro);
25 $sql_city=@mysql_query(
"SELECT * FROM city where id='".$row_pro['city']."' ");
26 $row_city=@mysql_fetch_assoc($sql_city);
27 $sql_cr1=mysql_query(
"SELECT * FROM currency where id='".$row_pro['currency']."'");
28 $row_cr1=mysql_fetch_assoc($sql_cr1);
29 ?>
30 <!DOCTYPE html>
31 <html>
32 <head>
33 <meta http-equiv=
"Content-Type" content="text/html; charset=UTF-8" />
34 <title><?echo $row_pro[
'name'];?></title>
35 <meta name=
"viewport" content="initial-scale=1, maximum-scale=1.0, minimum-scale=1.0">
36 <meta name=
"format-detection" content="telephone=yes">
37 <meta name=
"apple-mobile-web-app-capable" content="yes">
38 <meta name=
"apple-mobile-web-app-status-bar-style" content="black">
39 <link rel=
"stylesheet" type="text/css" href="template/css/style_all_v3.css">
40 <script type=
"text/javascript" src="template/js/js_all_v3.js"></script>
41 <script>
42                                     $(function(){
43                                         
try{
44                                                 $(document).pjax(
"a[data-pjax]","#home");
45                                         }
catch(err)
46                                         {
47
48                                         }
49                                     })
50 </script>
51 </head>
52 <body>
53 <div id=
"home">
54 <div id=
"home_content" class="fixed">
55     <div id=
"main_container">
56     
57     <div id=
"detail_product_ss">
58 </div>
59 <div id=
"detail_overlay" class="filter_ov">
60     <div
class="product_picture_slide">
61         <div id=
"galleryTouch">
62             <ul id=
"imgs" class="list_image">
63                                         <li
class="slide_item">
64                             <div
class="img_box">
65                                 <img id=
"sl_0" alt="<?echo $row_pro['name'];?>" title="<?echo $row_pro['name'];?>" src="/themes/v1/css/loading.gif" data-src="<?echo str_replace("_thumbnail","",$row_pro['image']);?>" />
66                             </div>
67                         </li>
68                                             <li
class="slide_item">
69                             <div
class="img_box">
70                                 <img id=
"sl_1" alt="<?echo $row_pro['name'];?>" title="<?echo $row_pro['name'];?>" src="/themes/v1/css/loading.gif" data-src="<?echo $row_pro['image_large'];?>" />
71                             </div>
72                         </li>
73                         <li
class="slide_item">
74                             <div
class="img_box">
75                                 <img id=
"sl_3" alt="<?echo $row_pro['name'];?>" title="<?echo $row_pro['name'];?>" src="/themes/v1/css/loading.gif" data-src="<?echo $row_pro['img2'];?>" />
76                             </div>
77                         </li>
78                         <li
class="slide_item">
79                             <div
class="img_box">
80                                 <img id=
"sl_4" alt="<?echo $row_pro['name'];?>" title="<?echo $row_pro['name'];?>" src="/themes/v1/css/loading.gif" data-src="<?echo $row_pro['img3'];?>" />
81                             </div>
82                         </li>
83                         <li
class="slide_item">
84                             <div
class="img_box">
85                                 <img id=
"sl_5" alt="<?echo $row_pro['name'];?>" title="<?echo $row_pro['name'];?>" src="/themes/v1/css/loading.gif" data-src="<?echo $row_pro['img4'];?>" />
86                             </div>
87                         </li>
88                         <li
class="slide_item">
89                             <div
class="img_box">
90                                 <img id=
"sl_6" alt="<?echo $row_pro['name'];?>" title="<?echo $row_pro['name'];?>" src="/themes/v1/css/loading.gif" data-src="<?echo $row_pro['img5'];?>" />
91                             </div>
92                         </li>
93                         <li
class="slide_item">
94                             <div
class="img_box">
95                                 <img id=
"sl_7" alt="<?echo $row_pro['name'];?>" title="<?echo $row_pro['name'];?>" src="/themes/v1/css/loading.gif" data-src="<?echo $row_pro['img6'];?>" />
96                             </div>
97                         </li>
98                         <li
class="slide_item">
99                             <div
class="img_box">
100                                 <img id=
"sl_8" alt="<?echo $row_pro['name'];?>" title="<?echo $row_pro['name'];?>" src="/themes/v1/css/loading.gif" data-src="<?echo $row_pro['img7'];?>" />
101                             </div>
102                         </li>
103                                 </ul>
104         </div>
105         <div
class="slide_control">
106             <span
class="sl_back"></span>
107             <span
class="sl_next"></span>
108         </div>
109         <div
class="slide_bottom">
110             <span id=
"sl_current">1</span> / <span id="total_img"> 8 ảnh</span>
111             <a href=
"./<?php echo doidau(mb_strtolower($row_pro['name'],"UTF8"));?>-pro-<?php echo $row_pro['id'];?>.html" class="close_slide" title="close"></a>
112         </div>
113     </div>
114     <div
class="break_module"></div>
115         <script>
116         $(document).ready(function(){
117             $(
'.slide_item').removeClass('hide');
118             detail_slide(
'#galleryTouch','#imgs','#sl_',8,1,0);
119         })
120     </script>
121     
122 </div>
123
124     <div style=
"text-align: center; padding-top: 10px;"></div>
125         
126     </div>
127 </div>
128 </div>
129                 <script>
130             
var i=0;
131                 setTimeout(function(){
132                     $(function(){
133                         $(
'ins[class=adsbygoogle]').each(function() {
134                             
if(this.style.display=="block"){
135                                 $(
'.price_exclusive_btn').css({bottom:65});
136                             }
137                         });
138                     });
139                 },
2500);
140                 
141             </script>
142             </body>
143 </html>
144 <?require(
"system/model/common_end.php") ?>


Tìm kết quả nhanh