news-show.html 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. {template 'common/header'}
  2. <div class="notice-show container">
  3. {if $do == 'list'}
  4. <div class="panel we7-panel">
  5. <div class="panel-heading">
  6. <span class="font-lg">新闻列表</span>
  7. </div>
  8. <div class="panel-body we7-padding">
  9. <div class="btn-group we7-btn-group we7-margin-bottom btn-group-justified">
  10. <a href="{php echo url('article/news-show/list');}" class="btn {if !$cateid}active{/if}">全部</a>
  11. {loop $categroys $key $categroy}
  12. {if $key}
  13. <a href="{php echo url('article/news-show/list', array('cateid' => $categroy['id']));}" class="btn {if $cateid == $categroy['id']}active{/if}">{$categroy['title']}</a>
  14. {/if}
  15. {/loop}
  16. </div>
  17. {if !empty($data)}
  18. <div class="notice">
  19. <ul class="list-group">
  20. {loop $data $da}
  21. <li class="list-group-item">
  22. <a href="{php echo url('article/news-show/detail', array('id' => $da['id']));}" target="_blank" class="text-over">{$da['title']}</a>
  23. <span class="time">{php echo date('Y-m-d', $da['createtime']);}</span>
  24. </li>
  25. {/loop}
  26. </ul>
  27. </div>
  28. <div class="text-right">
  29. {$pager}
  30. </div>
  31. {else}
  32. <div class="text-center">暂无数据</div>
  33. {/if}
  34. </div>
  35. </div>
  36. {/if}
  37. {if $do == 'detail'}
  38. <div class="we7-padding">
  39. <ol class="breadcrumb we7-breadcrumb">
  40. <a href="{url 'account/welcome'}"><i class="wi wi-back-circle"></i></a>
  41. <li class="active"><a href="{php echo url('article/news-show/list');}">新闻列表</a></li>
  42. <li class="active">{$news['title']}</li>
  43. </ol>
  44. <div class="panel we7-panel news-detail">
  45. <div class="panel-heading">
  46. <h3 class="text-center">{$news['title']}</h3>
  47. <div class="small text-center">
  48. <span>{php echo date('Y-m-d H:i', $news['createtime']);}</span>
  49. <span>阅读:{$news['click']}次</span>
  50. <span>作者:{$news['author']}</span>
  51. <span>来源:{$news['source']}</span>
  52. </div>
  53. </div>
  54. <div class="panel-body we7-padding">
  55. {php echo html_entity_decode($news['content'], ENT_QUOTES)}
  56. </div>
  57. </div>
  58. </div>
  59. {/if}
  60. </div>
  61. {template 'common/footer'}