PageRenderTime 46ms CodeModel.GetById 21ms RepoModel.GetById 0ms app.codeStats 0ms

/website/longyusoft/esl/include/compiled/%%77^774^774BE9C9%%index.html.php

https://github.com/isold/longyu
PHP | 430 lines | 399 code | 31 blank | 0 comment | 18 complexity | 2cf68e02ea3ad948f4710d57cb090100 MD5 | raw file
  1. <?php /* Smarty version 2.6.22, created on 2011-09-07 20:15:12
  2. compiled from index.html */ ?>
  3. <?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
  4. smarty_core_load_plugins(array('plugins' => array(array('modifier', 'truncate', 'index.html', 53, false),)), $this); ?>
  5. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  6. $this->_smarty_include(array('smarty_include_tpl_file' => "header.html", 'smarty_include_vars' => array()));
  7. $this->_tpl_vars = $_smarty_tpl_vars;
  8. unset($_smarty_tpl_vars);
  9. ?>
  10. <!-- index page body start -->
  11. <div id="index-page">
  12. <div id="index-page-item">
  13. <div id="index_pic">
  14. <div id="unit">
  15. <div id="slider1">
  16. <ul id="slider1Content">
  17. <li class="slider1Image">
  18. <a href=""><img src = "<?php echo $this->_tpl_vars['domain']; ?>
  19. <?php echo $this->_tpl_vars['templates_dir']; ?>
  20. images/1.png" alt=""/></a>
  21. <span class="right"><strong><?php echo $this->_tpl_vars['web_name']; ?>
  22. </strong><br />客厅效果</span>
  23. </li>
  24. <li class="slider1Image">
  25. <a href=""><img src = "<?php echo $this->_tpl_vars['domain']; ?>
  26. <?php echo $this->_tpl_vars['templates_dir']; ?>
  27. images/2.png" alt=""/></a>
  28. <span class="right"><strong><?php echo $this->_tpl_vars['web_name']; ?>
  29. </strong><br />客厅效果</span>
  30. </li>
  31. <li class="slider1Image">
  32. <a href=""><img src = "<?php echo $this->_tpl_vars['domain']; ?>
  33. <?php echo $this->_tpl_vars['templates_dir']; ?>
  34. images/3.png" alt=""/></a>
  35. <span class="right"><strong><?php echo $this->_tpl_vars['web_name']; ?>
  36. </strong><br /><?php echo $this->_tpl_vars['index_pic']['description']; ?>
  37. </span>
  38. </li>
  39. <li class="slider1Image">
  40. <a href=""><img src = "<?php echo $this->_tpl_vars['domain']; ?>
  41. <?php echo $this->_tpl_vars['templates_dir']; ?>
  42. images/4.png" alt=""/></a>
  43. <span class="right"><strong><?php echo $this->_tpl_vars['web_name']; ?>
  44. </strong><br /><?php echo $this->_tpl_vars['index_pic']['description']; ?>
  45. </span>
  46. </li>
  47. <li class="slider1Image">
  48. <a href=""><img src = "<?php echo $this->_tpl_vars['domain']; ?>
  49. <?php echo $this->_tpl_vars['templates_dir']; ?>
  50. images/5.png" alt=""/></a>
  51. <span class="right"><strong><?php echo $this->_tpl_vars['web_name']; ?>
  52. </strong><br /><?php echo $this->_tpl_vars['index_pic']['description']; ?>
  53. </span>
  54. </li>
  55. <div class="clear s3sliderImage"></div>
  56. </ul>
  57. </div>
  58. </div>
  59. <!-- unit end -->
  60. </div>
  61. <!-- left end -->
  62. </div>
  63. <!-- index page item end -->
  64. <div id="index-page-item">
  65. <div id="left">
  66. <div id="unit">
  67. <div id="unit-header">
  68. <h1>
  69. 美宜居热门案例</h1>
  70. </div>
  71. <div id="unit-body">
  72. <ul>
  73. <?php $_from = $this->_tpl_vars['hot_resource_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
  74. foreach ($_from as $this->_tpl_vars['hot_resource']):
  75. ?>
  76. <li><a href="resource.php?id=<?php echo $this->_tpl_vars['hot_resource']['id']; ?>
  77. ">【<?php echo $this->_tpl_vars['hot_resource']['bname']; ?>
  78. &nbsp<?php echo ((is_array($_tmp=$this->_tpl_vars['hot_resource']['aname'])) ? $this->_run_mod_handler('truncate', true, $_tmp, 50, "...", true) : smarty_modifier_truncate($_tmp, 50, "...", true)); ?>
  79. </a> </li>
  80. <?php endforeach; endif; unset($_from); ?>
  81. </ul>
  82. </div>
  83. </div>
  84. </div>
  85. <div id="middle">
  86. <div id="unit">
  87. <div id="unit-header">
  88. <h1>
  89. 美宜居最新案例</h1>
  90. <h2>
  91. <a href="resource.php">more</a>
  92. </h2>
  93. </div>
  94. <div id="unit-body">
  95. <ul>
  96. <?php $_from = $this->_tpl_vars['last_resource_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
  97. foreach ($_from as $this->_tpl_vars['last_resource']):
  98. ?>
  99. <li><a href="resource.php?id=<?php echo $this->_tpl_vars['last_resource']['id']; ?>
  100. ">【<?php echo $this->_tpl_vars['last_resource']['bname']; ?>
  101. &nbsp<?php echo ((is_array($_tmp=$this->_tpl_vars['last_resource']['aname'])) ? $this->_run_mod_handler('truncate', true, $_tmp, 78, "...", true) : smarty_modifier_truncate($_tmp, 78, "...", true)); ?>
  102. &nbsp&nbsp&nbsp&nbsp<?php echo ((is_array($_tmp=$this->_tpl_vars['last_resource']['upload_time'])) ? $this->_run_mod_handler('truncate', true, $_tmp, 10, "", true) : smarty_modifier_truncate($_tmp, 10, "", true)); ?>
  103. </a> </li>
  104. <?php endforeach; endif; unset($_from); ?>
  105. </ul>
  106. </div>
  107. </div>
  108. </div>
  109. <div id="right">
  110. <div id="unit">
  111. <div id="unit-header">
  112. <h1>
  113. 美宜居工作流程</h1>
  114. </div>
  115. <div id="unit-body">
  116. <ul>
  117. <li><a href="#">1免费量房</a> </li>
  118. <li><a href="#">2免费设计方案</a> </li>
  119. <li><a href="#">3免费预算报价</a> </li>
  120. <li><a href="#">4免费上门服务</a> </li>
  121. <li><a href="#">5签订装修合同</a> </li>
  122. <li><a href="#">6施工</a> </li>
  123. <li><a href="#">7验收</a> </li>
  124. </ul>
  125. </div>
  126. </div>
  127. </div>
  128. <!-- right end -->
  129. </div>
  130. <!-- index page item end -->
  131. <div id="index-page-item">
  132. <div id="ad_one">
  133. <script type="text/javascript">
  134. alimama_pid="mm_13906600_2395151_9224623";
  135. alimama_titlecolor="000033";
  136. alimama_descolor ="3D81EE";
  137. alimama_bgcolor="FFFFFF";
  138. alimama_bordercolor="6C82B5";
  139. alimama_linkcolor="FFFF66";
  140. alimama_bottomcolor="FFFFFF";
  141. alimama_anglesize="0";
  142. alimama_bgpic="6";
  143. alimama_icon="0";
  144. alimama_sizecode="12";
  145. alimama_width=468;
  146. alimama_height=60;
  147. alimama_type=2;
  148. </script>
  149. <script src="http://a.alimama.cn/inf.js" type="text/javascript">
  150. </script>
  151. </div>
  152. <div id="ad_two">
  153. <script language="javascript" type="text/javascript">
  154. yigao_title_color = "null";
  155. yigao_content_color = "null";
  156. yigao_background_color = "null";
  157. yigao_border_color = "D9D9D9";
  158. yigao_title_bold = "0";
  159. yigao_content_bold = "0";
  160. yigao_title_underline = "0";
  161. yigao_content_underline = "0";
  162. yigao_width = 468;
  163. yigao_height = 60;
  164. yigao_sid = "5b79542b34d570c2";
  165. yigao_msid = "bb15748fb7e46796";
  166. yigao_uid = 72924;
  167. yigao_zid = 126034;
  168. yigao_pid = 3;
  169. yigao_type = 1;
  170. yigao_adamount = 1;
  171. yigao_cols = 1;
  172. </script>
  173. <script language="javascript" src="http://monitor.yigao.com/info.js"></script>
  174. </div>
  175. </div>
  176. <!-- index page item end -->
  177. <div id="index-page-item">
  178. <div id="left">
  179. <div id="unit">
  180. <div id="unit-header">
  181. <h1>
  182. 热门装修知识</h1>
  183. </div>
  184. <div id="unit-body">
  185. <ul>
  186. <?php $_from = $this->_tpl_vars['hot_blog_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
  187. foreach ($_from as $this->_tpl_vars['hot_log']):
  188. ?>
  189. <li><a href="detail.php?id=<?php echo $this->_tpl_vars['hot_log']['id']; ?>
  190. ">【<?php echo $this->_tpl_vars['hot_log']['name']; ?>
  191. &nbsp<?php echo ((is_array($_tmp=$this->_tpl_vars['hot_log']['title'])) ? $this->_run_mod_handler('truncate', true, $_tmp, 50, "...", true) : smarty_modifier_truncate($_tmp, 50, "...", true)); ?>
  192. </a> </li>
  193. <?php endforeach; endif; unset($_from); ?>
  194. </ul>
  195. </div>
  196. </div>
  197. </div>
  198. <div id="middle">
  199. <div id="unit">
  200. <div id="unit-header">
  201. <h1>
  202. 最新装修知识</h1>
  203. <h2>
  204. <a href="blog.php">more</a>
  205. </h2>
  206. </div>
  207. <div id="unit-body">
  208. <ul>
  209. <?php $_from = $this->_tpl_vars['last_blog_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
  210. foreach ($_from as $this->_tpl_vars['last_blog']):
  211. ?>
  212. <li><a href="detail.php?id=<?php echo $this->_tpl_vars['last_blog']['id']; ?>
  213. ">【<?php echo $this->_tpl_vars['last_blog']['name']; ?>
  214. &nbsp<?php echo ((is_array($_tmp=$this->_tpl_vars['last_blog']['title'])) ? $this->_run_mod_handler('truncate', true, $_tmp, 50, "...", true) : smarty_modifier_truncate($_tmp, 50, "...", true)); ?>
  215. &nbsp&nbsp&nbsp&nbsp<span><?php echo ((is_array($_tmp=$this->_tpl_vars['last_blog']['post_time'])) ? $this->_run_mod_handler('truncate', true, $_tmp, 10, "", true) : smarty_modifier_truncate($_tmp, 10, "", true)); ?>
  216. </span>
  217. </a>
  218. </li>
  219. <?php endforeach; endif; unset($_from); ?>
  220. </ul>
  221. </div>
  222. </div>
  223. </div>
  224. <!-- middle end -->
  225. <div id="right">
  226. <div id="unit">
  227. <div id="unit-header">
  228. <h1>
  229. 装修知识分类</h1>
  230. </div>
  231. <div id="unit-body">
  232. <ul>
  233. <?php $_from = $this->_tpl_vars['blog_category_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
  234. foreach ($_from as $this->_tpl_vars['blog_category']):
  235. ?>
  236. <li><a href="blog.php?cat=<?php echo $this->_tpl_vars['blog_category']['id']; ?>
  237. "><?php echo $this->_tpl_vars['blog_category']['name']; ?>
  238. <?php echo $this->_tpl_vars['blog_category']['blog_count']; ?>
  239. </a> </li>
  240. <?php endforeach; endif; unset($_from); ?>
  241. </ul>
  242. </div>
  243. <!--unit body end -->
  244. </div>
  245. <!-- unit end -->
  246. </div>
  247. <!-- right end -->
  248. </div>
  249. <!-- index-page-item end-->
  250. <div id="index-page-item">
  251. <div id="ad-longfan">
  252. <img src="./ad/ad_longfan.jpg" width="946"/>
  253. </div>
  254. <!-- unit end -->
  255. </div>
  256. <!-- index-page-item end-->
  257. <div id="index-page-item">
  258. <div id="unit">
  259. <div id="unit-header">
  260. <h1>
  261. 精品案例展示</h1>
  262. <h2>
  263. <a href="resource.php">more</a>
  264. </h2>
  265. </div>
  266. <div id="unit-body">
  267. <div id="photo_list">
  268. <ol id="scroll">
  269. <?php $_from = $this->_tpl_vars['last_resource_list_18']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
  270. foreach ($_from as $this->_tpl_vars['last_resource_18']):
  271. ?>
  272. <li> <a href="resource.php?id=<?php echo $this->_tpl_vars['last_resource_18']['id']; ?>
  273. ">
  274. <img src = "<?php echo $this->_tpl_vars['domain']; ?>
  275. upload/<?php echo $this->_tpl_vars['last_resource_18']['image_path']; ?>
  276. " alt="" width="150px" height="150px"/>
  277. </a>
  278. <center>
  279. <h1><a href="resource.php?id=<?php echo $this->_tpl_vars['last_resource_18']['id']; ?>
  280. "><?php echo $this->_tpl_vars['last_resource_18']['name']; ?>
  281. </a></h1>
  282. </center>
  283. </li>
  284. <?php endforeach; endif; unset($_from); ?>
  285. </ol>
  286. </div>
  287. <script type="text/javascript">
  288. var id = function(el) {
  289. return document.getElementById(el);
  290. },
  291. c = id('photo_list');
  292. if(c) {
  293. var ol = id('scroll'),
  294. lis = ol.getElementsByTagName('li'),
  295. itemCount = lis.length,
  296. width = lis[0].offsetWidth, //获得每个img容器的宽度
  297. marquee = function() {
  298. c.scrollLeft += 2;
  299. if(c.scrollLeft % width <= 1){ //当 c.scrollLeft 和 width 相等时,把第一个img追加到最后面
  300. ol.appendChild(ol.getElementsByTagName('li')[0]);
  301. c.scrollLeft = 0;
  302. };
  303. },
  304. speed = 50; //数值越大越慢
  305. ol.style.width = width*itemCount + 'px'; //加载完后设置容器长度
  306. var timer = setInterval(marquee, speed);
  307. c.onmouseover = function() {
  308. clearInterval(timer);
  309. };
  310. c.onmouseout = function() {
  311. timer = setInterval(marquee, speed);
  312. };
  313. };
  314. </script>
  315. </div>
  316. <!-- unit body end -->
  317. </div>
  318. <!-- baby picturte end -->
  319. </div>
  320. <!-- index page item end -->
  321. <div id="index-page-item">
  322. <div id="left_two">
  323. <div id="unit">
  324. <div id="unit-header">
  325. <h1>
  326. 联系我们</h1>
  327. <h2>
  328. <a href="contactus.php">more</a>
  329. </h2>
  330. </div>
  331. <div id="unit-body">
  332. <p>咨询热线<?php echo $this->_tpl_vars['hot_line']; ?>
  333. </p>
  334. <p>业务咨询<?php echo $this->_tpl_vars['hot_line']; ?>
  335. </p>
  336. <p>在线咨询<a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=1045781181&site=qq&menu=yes"><img border="0" src="http://wpa.qq.com/pa?p=2:1045781181:41 &r=0.3734641310805096" alt="点击这里给我发消息" title="点击这里给我发消息"></a></p>
  337. <p><?php echo $this->_tpl_vars['email_key']; ?>
  338. : <?php echo $this->_tpl_vars['email']; ?>
  339. </p>
  340. <p>邮编067000</p>
  341. <p>详细地址<?php echo $this->_tpl_vars['address']; ?>
  342. </p>
  343. <div id="con">
  344. </div>
  345. </div>
  346. </div>
  347. </div>
  348. <div id="right_two">
  349. <div id="unit">
  350. <div id="unit-header">
  351. <h1>
  352. 美宜居客户留言</h1>
  353. <h2>
  354. <a href="message.php">more</a>
  355. </h2>
  356. </div>
  357. <div id="unit-body">
  358. <?php $_from = $this->_tpl_vars['last_message_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
  359. foreach ($_from as $this->_tpl_vars['last_message']):
  360. ?>
  361. <p><?php echo ((is_array($_tmp=$this->_tpl_vars['last_message']['content'])) ? $this->_run_mod_handler('truncate', true, $_tmp, 78, "", true) : smarty_modifier_truncate($_tmp, 78, "", true)); ?>
  362. &nbsp&nbsp&nbsp&nbsp<?php echo ((is_array($_tmp=$this->_tpl_vars['last_message']['post_time'])) ? $this->_run_mod_handler('truncate', true, $_tmp, 10, "", true) : smarty_modifier_truncate($_tmp, 10, "", true)); ?>
  363. </p>
  364. <?php endforeach; endif; unset($_from); ?>
  365. </div>
  366. </div>
  367. </div>
  368. </div>
  369. <!-- index page item end -->
  370. <div id="index-page-item">
  371. <div id="friend_links">
  372. <div id="unit">
  373. <div id="unit-header">
  374. <h1>
  375. 友情链接</h1>
  376. </div>
  377. <div id="unit-body">
  378. <p>
  379. <?php $_from = $this->_tpl_vars['friend_link_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
  380. foreach ($_from as $this->_tpl_vars['friend_link']):
  381. ?>
  382. <a href="<?php echo $this->_tpl_vars['friend_link']['link_url']; ?>
  383. "><?php echo $this->_tpl_vars['friend_link']['name']; ?>
  384. </a>
  385. <?php endforeach; endif; unset($_from); ?>
  386. </p>
  387. </div>
  388. </div>
  389. </div>
  390. <!-- friend links end -->
  391. </div>
  392. <!-- index page item end -->
  393. </div>
  394. <!--index page body end -->
  395. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  396. $this->_smarty_include(array('smarty_include_tpl_file' => "footer.html", 'smarty_include_vars' => array()));
  397. $this->_tpl_vars = $_smarty_tpl_vars;
  398. unset($_smarty_tpl_vars);
  399. ?>