人人商城

detail.html 2.6KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. {template 'common/_header'}
  2. <div class="list-container">
  3. <div class="list-menu">
  4. <div class="list-menu-left">
  5. <i><img src="./static/images/list-menu-left.png" alt=""></i>当前位置:
  6. <a href="{php echo webUrl()}/">首页</a>>><a href="{php echo webUrl('article/index')}">新闻中心</a>>>{php echo mb_substr(strip_tags(htmlspecialchars_decode($article['title'])),0,30,'utf-8')}
  7. </div>
  8. <div class="list-menu-right">
  9. </div>
  10. <div style="clear:both;"></div>
  11. </div>
  12. <div class="list-news">
  13. <div class="detail-news-left">
  14. <h2 class="detail-title">{$article['title']}</h2>
  15. <div class="detail_subtitle">
  16. <span>文章分类:{$article['name']}</span>|<span>网站编辑:{$article['author']}</span>|<span>发表时间:{php echo date('Y-m-d',$article['createtime'])}</span>|
  17. </div>
  18. <div class="detail_content">
  19. {php echo htmlspecialchars_decode($article['content'])}
  20. </div>
  21. </div>
  22. <div class="detail-news-right">
  23. <form action="{php echo webUrl('article/index')}" method="post">
  24. <input type="search" name="keyword" class="list-menu-search" placeholder="快速检索" value="">
  25. </form>
  26. <p class="detail_correlation_title">相关文章</p>
  27. <ul class="detail_correlation_ul">
  28. {loop $articles $index $item}
  29. <li><a href="{php echo webUrl(array('news/detail','id'=>$item['id']))}" target="_blank">+ {$item['title']}</a></li>
  30. {/loop}
  31. </ul>
  32. <dl class="detail-lovely-dl">
  33. <dt>
  34. 猜你喜欢
  35. <a href="javascript:void(0);" target="_blank" style="display: none;"><i class="glyphicon glyphicon-repeat"></i>换一换</a>
  36. </dt>
  37. <dd onclick="javascript:window.open('{php echo webUrl(array('article/detail','id'=>$relevant_top['id']))}','','')">
  38. <img src="{php echo pctomedia($relevant_top['thumb'])}" onerror="this.src='../addons/ewei_shopv2/static/images/nopic100.jpg'" alt="{$relevant_top['title']}">
  39. <p>{$relevant_top['title']}</p>
  40. </dd>
  41. </dl>
  42. <ul class="detail-lovely-ul">
  43. {loop $relevant $index $item}
  44. <li><a href="{php echo webUrl(array('article/detail','id'=>$item['id']))}" target="_blank"><i></i>{$item['title']}</a></li>
  45. {/loop}
  46. </ul>
  47. </div>
  48. <div style="clear:both;"></div>
  49. </div>
  50. </div>
  51. {template 'common/_footer'}
  52. </body>
  53. </html>