人人商城

index.html 1.7KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. {template 'common/_header'}
  2. <div class="list-container">
  3. <div class="list-menu">
  4. <div class="list-menu-left">
  5. <ul class="list-menu-left-ul">
  6. <li><a href="{php echo webUrl(array('news/index'))}" class="{if empty($_GPC['cate'])}active{/if}">全部</a></li>
  7. {loop $category $index $item}
  8. <li><a href="{php echo webUrl(array('news/index','cate'=>$item['id']))}" class="{if $_GPC['cate'] == $item['id']}active{/if}">{$item['name']}</a></li>
  9. {/loop}
  10. </ul>
  11. </div>
  12. <div class="list-menu-right">
  13. <form action="" method="post">
  14. <input type="search" class="list-menu-search" name="keyword" placeholder="快速检索" value="">
  15. </form>
  16. </div>
  17. <div style="clear:both;"></div>
  18. </div>
  19. <div class="list-news">
  20. {if $articles}
  21. <ul class="list-news-ul">
  22. {loop $articles $index $item}
  23. <li onclick="javascript:window.open('{php echo webUrl(array('news/detail','id'=>$item['id']))}','','')">
  24. <div class="col-lg-1 list-news-li-left"><strong>{php echo date('d', $item['createtime'])}</strong><span>{php echo date('Y-m', $item['createtime'])}</span></div>
  25. <div class="col-lg-11 list-news-li-right">
  26. <h3>{$item['title']}</h3>
  27. <p>{php echo mb_substr(strip_tags(htmlspecialchars_decode($item['content'])),0,140,'utf-8')}...</p>
  28. </div>
  29. <div style="clear:both;"></div>
  30. </li>
  31. {/loop}
  32. </ul>
  33. {else}
  34. 暂无内容!
  35. {/if}
  36. {$pager}
  37. </div>
  38. </div>
  39. {template 'common/_footer'}
  40. </body>
  41. </html>