list.html 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. {template 'common/header'}
  2. <style>
  3. .category{display:block; overflow:hidden; background:#FACE9C; border-top:1px #DDD solid;border-bottom:1px #DDD solid;}
  4. .category a{display:inline-block; overflow:hidden; height:30px; width:33.33%; text-align:center; color:#103667; font-size:14px; float:left; padding:5px;}
  5. .list li{padding: 5px 5px 0 5px;}
  6. .list li a{display:block; padding:5px; background:#FFF; border:1px #DDD solid; border-radius:3px;color:#333; overflow:hidden; text-decoration:none !important; position:relative;}
  7. .list li a .title{font-size:14px;}
  8. .list li a .createtime{font-size:12px; color:#999;}
  9. .head{height:40px; line-height:40px; background:#945305; padding:0 5px; color:#FFF;}
  10. .head .bn{display:inline-block; height:30px; line-height:30px; padding:0 10px; margin-top:4px; font-size:20px; background:transparent; color:#FFF; text-decoration:none;}
  11. .head .bn.pull-left{border-right:1px solid #FACE9C;}
  12. .head .bn.pull-right{position:absolute; right:5px; top:0; border-left:1px solid #FACE9C;}
  13. .head .title{font-size:14pt;display:block;padding-left:10px;font-weight:bolder;margin-right:49px;text-align:center;height:40px;line-height:40px;text-overflow:ellipsis;white-space:nowrap;overflow: hidden;}
  14. .head .order{background:#EC870E; position:absolute; z-index:9999; right:0;}
  15. .head .order li > a{display:block; padding:0 10px; min-width:100px; height:35px; line-height:35px; font-size:16px; color:#FFF; text-decoration:none; border-top:1px #EEE solid;}
  16. .head .order li.fa-caret-up{font-size:20px;color:#EC870E;position:absolute;top:-11px;right:16px;}
  17. .pager-position{width:100%;margin:0 auto;text-align:center;}
  18. </style>
  19. <div class="head">
  20. <a href="javascript:history.go(-1);" class="bn pull-left"><i class="fa fa-reply"></i></a>
  21. <span class="title">{$title}</span>
  22. <a href="javascript:;" id="category_show" class="bn pull-right"><i class="fa fa-reorder"></i></a>
  23. <ul class="list-unstyled order hide">
  24. <li class="fa fa-caret-up"></li>
  25. {data module="site" func="site_category"}
  26. <li>
  27. <a href="{$row['linkurl']}">
  28. {$row['name']}
  29. </a>
  30. </li>
  31. {/data}
  32. </ul>
  33. </div>
  34. <div class="category">
  35. {data module="site" func="site_category" parentid="$cid"}
  36. <a href="{$row['linkurl']}">{$row['name']}</a>
  37. {/data}
  38. </div>
  39. <ul class="list list-unstyled">
  40. {data module="site" func="site_article" cid="$cid" assign="result" return="true"}
  41. {loop $result['list'] $row}
  42. <li>
  43. <a href="{$row['linkurl']}">
  44. <div class="title">{php echo cutstr($row['title'],40,1);}</div>
  45. <div class="createtime">{php echo date('Y-m-d H:i:s', $row['createtime'])}</div>
  46. </a>
  47. </li>
  48. {/loop}
  49. </ul>
  50. <div class="pager-position">{$result['pager']}</div>
  51. {template 'common/footer'}