PageRenderTime 52ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 0ms

/Quản lý website nhà đất PHP/nhadatanphat/frontend/templates_c/%%9C^9C0^9C06127D%%news.html.php

https://gitlab.com/phamngsinh/baitaplon_sinhvien
PHP | 223 lines | 218 code | 5 blank | 0 comment | 22 complexity | 9bf53c7897c8349cd00f9f8308c7c46f MD5 | raw file
  1. <?php /* Smarty version 2.6.18, created on 2011-03-31 18:07:45
  2. compiled from /home/nhadatan/public_html//frontend/templates/news.html */ ?>
  3. <?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
  4. smarty_core_load_plugins(array('plugins' => array(array('modifier', 'date_format', '/home/nhadatan/public_html//frontend/templates/news.html', 58, false),)), $this); ?>
  5. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  6. $this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['include_header'], 'smarty_include_vars' => array()));
  7. $this->_tpl_vars = $_smarty_tpl_vars;
  8. unset($_smarty_tpl_vars);
  9. ?>
  10. <!-- Begin center area -->
  11. <tr>
  12. <td>
  13. <table width="100%" border="0" cellpadding="0" cellspacing="0">
  14. <tr>
  15. <!-- Begin left area -->
  16. <td width="200" valign="top">
  17. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  18. $this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['include_left'], 'smarty_include_vars' => array()));
  19. $this->_tpl_vars = $_smarty_tpl_vars;
  20. unset($_smarty_tpl_vars);
  21. ?>
  22. </td>
  23. <!-- End left area -->
  24. <!-- Begin right area -->
  25. <td align="right" valign="top">
  26. <table width="99%" border="0" cellpadding="0" cellspacing="0">
  27. <tr>
  28. <td>
  29. <table width="100%" border="0" cellpadding="0" cellspacing="0">
  30. <tr>
  31. <td>
  32. <table width="100%" border="0" cellpadding="0" cellspacing="0" background="frontend/images/c3.jpg">
  33. <tr>
  34. <td><img src="frontend/images/c1.jpg" width="7" height="32" /></td>
  35. <td width="100%" align="left" class="text_red">
  36. <table width="100%" border="0" cellpadding="0" cellspacing="0">
  37. <tr>
  38. <td align="left" id="menu1" dir="ltr" style="color: #CC0303;">
  39. <?php if ($this->_tpl_vars['genre'] == '1'): ?>TIN PHONG THỦY<?php elseif ($this->_tpl_vars['genre'] == '0'): ?>BẢN TIN NHÀ ĐẤT<?php elseif ($this->_tpl_vars['genre'] == '2'): ?>VĂN BẢN PHÁP LUẬT<?php else: ?>TIN TỨC<?php endif; ?>
  40. </td>
  41. </tr>
  42. </table>
  43. </td>
  44. <td><img src="frontend/images/c2.jpg" width="7" height="32" /></td>
  45. </tr>
  46. </table>
  47. </td>
  48. </tr>
  49. <tr>
  50. <td>
  51. <table width="100%" border="0" cellpadding="0" cellspacing="0">
  52. <tr>
  53. <td width="3" background="frontend/images/c4.jpg"></td>
  54. <td align="center" bgcolor="#F5F9FD">
  55. <table width="100%" border="0" cellpadding="0" cellspacing="0">
  56. <tr>
  57. <td colspan="3" height="10"></td>
  58. </tr>
  59. <?php if ($this->_tpl_vars['newsid'] != ''): ?>
  60. <tr>
  61. <td colspan="3" align="left">
  62. <table width="98%" border="0" cellpadding="0" cellspacing="0">
  63. <tr>
  64. <td align="left" style="padding-left: 10px;">
  65. <span style="font-size:15px;font-weight: bold;display:inline">
  66. <?php echo $this->_tpl_vars['NewsDetail']['news_name']; ?>
  67. </span>
  68. (<?php echo ((is_array($_tmp=$this->_tpl_vars['NewsDetail']['created_date'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%d-%m-%Y") : smarty_modifier_date_format($_tmp, "%d-%m-%Y")); ?>
  69. )
  70. <?php $this->assign('now', ((is_array($_tmp=time())) ? $this->_run_mod_handler('date_format', true, $_tmp) : smarty_modifier_date_format($_tmp))); ?>
  71. <?php $this->assign('createdDate', ((is_array($_tmp=$this->_tpl_vars['NewsDetail']['created_date'])) ? $this->_run_mod_handler('date_format', true, $_tmp) : smarty_modifier_date_format($_tmp))); ?>
  72. <?php if ($this->_tpl_vars['now'] == $this->_tpl_vars['createdDate']): ?>
  73. &nbsp;<img border="0" src="frontend/images/new_icon.gif">
  74. <?php endif; ?>
  75. </td>
  76. </tr>
  77. <!--
  78. <tr>
  79. <td width="10%" align="left" valign="top" style="padding-left: 10px; padding-top: 15px;">
  80. <a id="thumb<?php echo $this->_tpl_vars['NewsDetail']['news_image']; ?>
  81. " href="<?php echo $this->_config[0]['vars']['IMG_NEWS_DIR']; ?>
  82. <?php echo $this->_tpl_vars['NewsDetail']['news_image']; ?>
  83. " class="highslide" onclick="return hs.expand(this)">
  84. <img src="<?php echo $this->_config[0]['vars']['IMG_NEWS_DIR']; ?>
  85. thumb_<?php echo $this->_tpl_vars['NewsDetail']['news_image']; ?>
  86. " align="left" style="max-width: 200px;" class="border_img" hspace="5" /></a>
  87. <font name="arial" style="font-weight:bold;"><?php echo $this->_tpl_vars['NewsDetail']['news_title']; ?>
  88. </font>
  89. </td>
  90. </tr>
  91. -->
  92. <tr>
  93. <td align="left" style="padding-left: 10px; padding-top: 10px;">
  94. <p style="padding-left: 5px;"><?php echo $this->_tpl_vars['NewsDetail']['news_content']; ?>
  95. </p>
  96. </td>
  97. </tr>
  98. <tr>
  99. <td>
  100. <div style="padding-left: 10px; font-weight: bold; padding-bottom: 10px;">Các tin tức khác</div>
  101. <table width="98%" border="0" cellpadding="0" cellspacing="0">
  102. <?php $_from = $this->_tpl_vars['NewsList']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
  103. foreach ($_from as $this->_tpl_vars['keys'] => $this->_tpl_vars['items']):
  104. ?>
  105. <tr>
  106. <td width="10" align="left" valign="middle" style="padding-right: 5px; padding-left: 10px;">
  107. <img src="frontend/images/new.gif" width="10" height="8" />
  108. </td>
  109. <td align="left">
  110. <a href="?hdl=news&genre=<?php echo $this->_tpl_vars['items']['news_genre']; ?>
  111. &newsid=<?php echo $this->_tpl_vars['items']['news_id']; ?>
  112. &page=<?php echo $this->_tpl_vars['page']; ?>
  113. " class="text_blue"><?php echo $this->_tpl_vars['items']['news_name']; ?>
  114. </a>
  115. <?php $this->assign('now_', ((is_array($_tmp=time())) ? $this->_run_mod_handler('date_format', true, $_tmp) : smarty_modifier_date_format($_tmp))); ?>
  116. <?php $this->assign('created_Date', ((is_array($_tmp=$this->_tpl_vars['items']['created_date'])) ? $this->_run_mod_handler('date_format', true, $_tmp) : smarty_modifier_date_format($_tmp))); ?>
  117. <?php if ($this->_tpl_vars['now_'] == $this->_tpl_vars['created_Date']): ?>
  118. &nbsp;<img border="0" src="frontend/images/new_icon.gif">
  119. <?php endif; ?>
  120. </td>
  121. </tr>
  122. <?php endforeach; endif; unset($_from); ?>
  123. <tr>
  124. <td align="center" colspan="2" style="padding-top: 5px;"><?php echo $this->_tpl_vars['paging']; ?>
  125. </td>
  126. </tr>
  127. </table>
  128. </td>
  129. </tr>
  130. </table>
  131. </td>
  132. </tr>
  133. <?php else: ?>
  134. <?php $_from = $this->_tpl_vars['NewsList']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
  135. foreach ($_from as $this->_tpl_vars['keys'] => $this->_tpl_vars['items']):
  136. ?>
  137. <?php if ($this->_tpl_vars['keys'] % 2 == 0): ?><!-- Mo the -->
  138. <tr>
  139. <?php endif; ?>
  140. <td width="50%" align="center" valign="top">
  141. <table width="98%" border="0" cellpadding="0" cellspacing="0">
  142. <tr>
  143. <td valign="top" style="padding-top: 5px;">
  144. <a id="thumb<?php echo $this->_tpl_vars['items']['news_image']; ?>
  145. " href="<?php echo $this->_config[0]['vars']['IMG_NEWS_DIR']; ?>
  146. <?php echo $this->_tpl_vars['items']['news_image']; ?>
  147. " class="highslide" onclick="return hs.expand(this)">
  148. <img src="<?php echo $this->_config[0]['vars']['IMG_NEWS_DIR']; ?>
  149. thumb_<?php echo $this->_tpl_vars['items']['news_image']; ?>
  150. " width="92" class="border_img" align="left" hspace="5" />
  151. </a>
  152. <a href="?hdl=news&genre=<?php echo $this->_tpl_vars['items']['news_genre']; ?>
  153. &newsid=<?php echo $this->_tpl_vars['items']['news_id']; ?>
  154. " class="text_blue"><strong><?php echo $this->_tpl_vars['items']['news_name']; ?>
  155. </strong></a>
  156. <div style="padding-top: 7px;"><?php echo $this->_tpl_vars['items']['news_title']; ?>
  157. </div>
  158. <?php $this->assign('now_', ((is_array($_tmp=time())) ? $this->_run_mod_handler('date_format', true, $_tmp) : smarty_modifier_date_format($_tmp))); ?>
  159. <?php $this->assign('created_Date', ((is_array($_tmp=$this->_tpl_vars['items']['created_date'])) ? $this->_run_mod_handler('date_format', true, $_tmp) : smarty_modifier_date_format($_tmp))); ?>
  160. <?php if ($this->_tpl_vars['now_'] == $this->_tpl_vars['created_Date']): ?>
  161. &nbsp;<img border="0" src="frontend/images/new_icon.gif">
  162. <?php endif; ?>
  163. </td>
  164. </tr>
  165. </table>
  166. </td>
  167. <?php if (( $this->_tpl_vars['keys']+1 ) % 2 == 0): ?><!-- Dong the -->
  168. </tr>
  169. <?php endif; ?>
  170. <?php endforeach; endif; unset($_from); ?>
  171. <?php if (( $this->_tpl_vars['keys']+1 ) % 2 != 0): ?><!-- Dong the -->
  172. </tr>
  173. <?php endif; ?>
  174. <tr>
  175. <td colspan="3" align="center" style="padding-top: 5px;"><?php echo $this->_tpl_vars['paging']; ?>
  176. </td>
  177. </tr>
  178. <?php endif; ?>
  179. <tr>
  180. <td colspan="3" height="10"></td>
  181. </tr>
  182. </table>
  183. </td>
  184. <td width="4" background="frontend/images/c5.jpg"></td>
  185. </tr>
  186. </table>
  187. </td>
  188. </tr>
  189. <tr>
  190. <td>
  191. <table width="100%" border="0" cellpadding="0" cellspacing="0" background="frontend/images/c8.jpg">
  192. <tr>
  193. <td><img src="frontend/images/c6.jpg" width="8" height="8" /></td>
  194. <td width="100%"></td>
  195. <td><img src="frontend/images/c7.jpg" width="7" height="8" /></td>
  196. </tr>
  197. </table>
  198. </td>
  199. </tr>
  200. </table>
  201. </td>
  202. </tr>
  203. <tr>
  204. <td height="5"></td>
  205. </tr>
  206. </table>
  207. </td>
  208. <!-- End right area -->
  209. </tr>
  210. </table>
  211. </td>
  212. </tr>
  213. <!-- End center area -->
  214. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  215. $this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['include_footer'], 'smarty_include_vars' => array()));
  216. $this->_tpl_vars = $_smarty_tpl_vars;
  217. unset($_smarty_tpl_vars);
  218. ?>