PageRenderTime 4833ms CodeModel.GetById 34ms RepoModel.GetById 1ms app.codeStats 0ms

/web choi.vn php/chon.vn/template/home.php

https://gitlab.com/phamngsinh/baitaplon_sinhvien
PHP | 226 lines | 195 code | 31 blank | 0 comment | 5 complexity | 2a81655fce0966ee5c246670f4a79648 MD5 | raw file
  1. <?php
  2. include_once 'lib/tbl_media.php';
  3. $mediaclass=new Media();
  4. $centermedia=$mediaclass->GetContentByCode('center-flash');
  5. ?>
  6. <div class="block-slideshow" >
  7. <div id="slide-panel" class="span-26">
  8. <div id="slide" >
  9. <?php
  10. for($i=0;$i<count($centermedia);$i++)
  11. {
  12. ?>
  13. <div >
  14. <div class="bannerr<?php echo $i?>">
  15. <div id="slide-detail">
  16. <div id="pmap">
  17. <img src="<?php echo pathtoweb?>media/<?php echo $centermedia[$i][3]?>" alt="banner<?php echo $i?>" width="980" height="400" border="0" usemap="#Map<?php echo $i?>">
  18. </div>
  19. </div>
  20. </div>
  21. </div>
  22. <?php } ?>
  23. </div>
  24. </div>
  25. <div class="buttontop">
  26. <span class="prev">Prev</span><span class="next">Next</span>
  27. </div>
  28. </div>
  29. <div class="span-26" >
  30. <div>
  31. <div class="span-15" style="width: 980px">
  32. <ul class="tabs anchors" style="border-top: solid 2px #ffffff;">
  33. <li><a id="IsFeatured" href="#t1" class="active">SẢN PHẨM NỔI BẬT </a><span class="icon-luxury">&nbsp;</span></li>
  34. <li><a id="Diamond" class="merchant_type" href="#t2">SẢN PHẨM KHUYẾN MÃI </a><span class="icon-premium">&nbsp;</span></li>
  35. <li><a id="All" class="merchant_type" href="#t3">SẢN PHẨM XEM NHIỀU NHẤT </a></li>
  36. </ul>
  37. </div>
  38. <div id="t1" class="tabContent">
  39. <div class="product-home2">
  40. <ul>
  41. <?php
  42. include_once 'lib/tbl_product.php';
  43. $productclass=new Product();
  44. $productlist=$productclass->GetProduct("1=1 order by products_id desc limit 0,9");
  45. for($i=0;$i<count($productlist);$i++)
  46. {
  47. ?>
  48. <li>
  49. <div class="boxgrid caption">
  50. <a href="<?php echo pathtoweb.$kw->buildlink($productlist[$i][2])."-".$productlist[$i][0]."-03.htm"?>">
  51. <img style="max-width: 194px;max-height: 195px;" alt="<?php echo $productlist[$i][2]?>" src="<?php echo pathtoweb?>product/<?php echo $productlist[$i][3]?>">
  52. </a>
  53. <div class="cover boxcaption">
  54. <span class="nameproduct">[<a href="<?php echo pathtoweb.$kw->buildlink($productlist[$i][2])."-".$productlist[$i][0]."-03.htm"?>"><?php echo $productlist[$i][2]?></a>]</span>
  55. <div class="rice" style="display: none">
  56. <div class="offers"> số: MS<?php echo $productlist[$i][0]." - "; if(is_numeric($productlist[$i][5])&&$productlist[$i][5]>0){ echo "Giá: ".number_format( $productlist[$i][5])."VND"; }else{ echo "Giá: Liên hệ";}?></div>
  57. </div>
  58. <div class="buy_info " outlet="1">
  59. <a outlet="1" class="buy_btn" href="<?php echo pathtoweb?>cart-<?php echo $productlist[$i][0]?>-11.htm">
  60. <span style="margin-left: 5px" >Mua hàng </span>
  61. </a>
  62. </div>
  63. </div>
  64. </div>
  65. </li>
  66. <?php }?>
  67. </ul>
  68. </div>
  69. <div class="product-home1">
  70. <div class="cs-conntent1">
  71. <ul style="width: 170px; float: left" class="fhotline">
  72. <li>
  73. <h3>Hotline:</h3>
  74. </li>
  75. <li><span class="buy">Hotline:</span>0902 455 005</li>
  76. <li><span class="custom">Kinh Doanh:</span>0938 917 947</li>
  77. <li><span class="custom">Kỹ thuật:</span>0989 59 49 39</li>
  78. <li><span class="custom">Email:</span><a href="mailto:nvtan78@gmail.com">nvtan@live.com</a></li>
  79. </ul>
  80. <ul style="width: 170px; float: left" class="fhotline">
  81. <li>
  82. <h3>
  83. Thời gian làm việc:</h3>
  84. </li>
  85. <li>8:00 đến 21:00 (Thứ 2 đến CN)</li>
  86. <li>HCM: Giao hàng trong ngày</li>
  87. <li>Tỉnh: Giao hàng trong 3 ngày</li>
  88. <li>Online: <a href="ymsgr:SendIM?nvtan78"><img border="0" align="absmiddle" src="http://opi.yahoo.com/online?u=nvtan78&amp;m=g&amp;t=1"></a></li>
  89. </ul>
  90. </div>
  91. <div class="cpayment1">
  92. <?php
  93. include_once 'lib/tbl_content.php';
  94. $contentclass=new Content();
  95. $content=$contentclass->GetContent("doc_categories_parentid=1 order by contents_id desc limit 0,3") ;
  96. ?>
  97. <div class="arrow-1">
  98. <?php
  99. for($i=0;$i<count($content);$i++){
  100. ?>
  101. <div class="post1" style="vertical-align: top;margin:5px">
  102. <div class="news_box">
  103. <a href="<?php echo pathtoweb.$kw->buildlink($content[$i][1])."-".$content[$i][0]."-05.htm " ?>">
  104. <img src="<?php echo pathtoweb?>content/<?php echo $content[$i][6] ?>">
  105. </a>
  106. <div style="width: 255px;float: left; padding: 5px ">
  107. <a style="font-size: 11px" href="<?php echo pathtoweb.$kw->buildlink($content[$i][1])."-".$content[$i][0]."-05.htm " ?>"><?php echo $content[$i][1]?></a><br />
  108. <span style='font-size:10px;color:#333'><i><?php echo date('d/m/Y', $content[$i][9])?></i></span><br/>
  109. <span style='font-size:8pt;color:#333'><?php echo $kw->SubString($content[$i][4],9);?></span>
  110. </div>
  111. </div>
  112. </div>
  113. <?php } ?>
  114. </div>
  115. </div>
  116. </div>
  117. <div class="fb-like-box" data-href="https://www.facebook.com/pages/Baby-Shop/374897962592034?sk=likes" data-width="380" data-height="270" data-show-faces="true" data-border-color="#FFB5CF" data-stream="false" data-header="false"></div>
  118. </div>
  119. <div id="t3" count="0" class="tabContent" style="display: none; ">
  120. </div>
  121. </div>
  122. </div>
  123. <div class="span-26 subfooter">
  124. <div style='float:left;width:600px'>
  125. <!--
  126. <div class="support">
  127. <h2>
  128. <a>Hỗ trợ khách hàng</a></h2>
  129. <div class="cs-conntent">
  130. <ul class="fhotline">
  131. <li>
  132. <h3>Hotline:</h3>
  133. </li>
  134. <li><span class="buy">Hotline:</span>0902 455 005</li>
  135. <li><span class="custom">Kinh Doanh:</span>0938 917 947</li>
  136. <li><span class="custom">Kỹ thuật:</span>0989 59 49 39</li>
  137. <li><span class="custom">Email:</span><a href="mailto:nvtan78@gmail.com">nvtan@live.com</a></li>
  138. </ul>
  139. <ul class="fhotline">
  140. <li>
  141. <h3>
  142. Thời gian làm việc:</h3>
  143. </li>
  144. <li>8:00 đến 21:00 (Thứ 2 đến CN)</li>
  145. <li>HCM: Giao hàng trong ngày</li>
  146. <li>Tỉnh: Giao hàng trong 3 ngày</li>
  147. <li>Online: <a href="ymsgr:SendIM?nvtan78"><img border="0" align="absmiddle" src="http://opi.yahoo.com/online?u=nvtan78&amp;m=g&amp;t=1"></a></li>
  148. </ul>
  149. <ul class="fhotline">
  150. <!--
  151. <li>
  152. <h3>
  153. Email:</h3>
  154. </li>
  155. <li><a href="skype:nvtan78?chat"><img border="0" src="http://mystatus.skype.com/smallclassic/nvtan78" style="border: none;height: 22px" alt="My status"></a></li>
  156. <->
  157. </ul>
  158. <div style="margin-top: -40px" class="fb-like-box" data-href="https://www.facebook.com/pages/Baby-Shop/374897962592034?sk=likes" data-width="182" data-height="170" data-show-faces="true" data-border-color="#EFEFEF" data-stream="false" data-header="false"></div>
  159. </div>
  160. </div>
  161. </div>
  162. <div class="span-7" style="margin-left: 1px ">
  163. <div class="payment">
  164. <h2><a href="#">Tin tức thời trang</a></h2>
  165. <div class="cpayment">
  166. <div class="cpayment1">
  167. <?php
  168. include_once 'lib/tbl_content.php';
  169. $contentclass=new Content();
  170. $content=$contentclass->GetContent("doc_categories_parentid=1 order by contents_id desc limit 0,3") ;
  171. ?>
  172. <div class="arrow-1">
  173. <?php
  174. for($i=0;$i<count($content);$i++){
  175. ?>
  176. <div class="post1" style="vertical-align: top;margin:5px 0">
  177. <div class="news_box">
  178. <a href="<?php echo pathtoweb.$kw->buildlink($content[$i][1])."-".$content[$i][0]."-05.htm " ?>">
  179. <img src="<?php echo pathtoweb?>content/<?php echo $content[$i][6] ?>">
  180. </a>
  181. <div style="width: 255px;float: left; padding: 5px ">
  182. <a href="<?php echo pathtoweb.$kw->buildlink($content[$i][1])."-".$content[$i][0]."-05.htm " ?>"><?php echo $content[$i][1]?></a>
  183. <span style='font-size:10px;color:#333'><i><?php echo date('d/m/Y', $content[$i][9])?></i></span><br/>
  184. <span style='font-size:8pt;color:#333'><?php echo $kw->SubString($content[$i][4],9);?></span>
  185. </div>
  186. </div>
  187. </div>
  188. <?php } ?>
  189. </div>
  190. </div>
  191. </div>
  192. </div>
  193. </div>
  194. -->
  195. </div>