notice-show.html 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. {template 'common/header'}
  2. <div class="notice-show">
  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 ">
  10. <a href="{php echo url('article/notice-show/list');}" class="btn {if !$cateid}active{/if}">全部</a>
  11. {loop $categroys $key $categroy}
  12. {if $key}
  13. <a href="{php echo url('article/notice-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/notice-show/detail', array('id' => $da['id']));}" target="_blank" class="text-over" style="{if !empty($da['style'])}{if !empty($da['style']['color'])}color: {php echo $da['style']['color']};{/if}{if !empty($da['style']['bold'])}font-weight:bold;{/if}{/if}">{$da['title']}</a>
  23. <span class="time pull-right">{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 'article/notice-show/list'}"><i class="wi wi-back-circle"></i></a>
  41. <li class="active"><a href="{php echo url('article/notice-show/list');}">公告列表</a></li>
  42. <li class="active">{$notice['title']}</li>
  43. </ol>
  44. <div class="panel we7-panel news-detail">
  45. <div class="panel-heading text-center">
  46. <h3 class="text-center">{$notice['title']}</h3>
  47. <div class="small text-center text-muted">
  48. <span>{php echo date('Y-m-d H:i', $notice['createtime']);}</span>
  49. <span>阅读:{$notice['click']}次</span>
  50. </div>
  51. </div>
  52. <div class="panel-body we7-padding">
  53. {php echo html_entity_decode($notice['content'], ENT_QUOTES)}
  54. </div>
  55. </div>
  56. {if $comment_status}
  57. <form class="we7-margin-top" action="" method="post">
  58. <div class="form-group">
  59. <textarea name="content" class="form-control" rows="5" placeholder="扯淡、吐槽、表扬、鼓励......想说啥就说啥!"></textarea>
  60. </div>
  61. <div class="form-group">
  62. <input name="submit" type="submit" value="发表评论" class="btn btn-primary"/>
  63. <input type="hidden" name="token" value="{$_W['token']}" />
  64. </div>
  65. </form>
  66. <div class="panel we7-panel">
  67. <div class="panel-heading">
  68. 最新评论
  69. </div>
  70. {template 'article/comments'}
  71. </div>
  72. {/if}
  73. </div>
  74. {/if}
  75. </div>
  76. {template 'common/footer'}