1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- {template 'common/header'}
- <div class="notice-show">
- {if $do == 'list'}
- <div class="panel we7-panel">
- <div class="panel-heading">
- <span class="font-lg">公告列表</span>
- </div>
- <div class="panel-body we7-padding">
- <div class="btn-group we7-btn-group we7-margin-bottom ">
- <a href="{php echo url('article/notice-show/list');}" class="btn {if !$cateid}active{/if}">全部</a>
- {loop $categroys $key $categroy}
- {if $key}
- <a href="{php echo url('article/notice-show/list', array('cateid' => $categroy['id']));}" class="btn {if $cateid == $categroy['id']}active{/if}">{$categroy['title']}</a>
- {/if}
- {/loop}
- </div>
- {if !empty($data)}
- <div class="notice">
- <ul class="list-group">
- {loop $data $da}
- <li class="list-group-item">
- <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>
- <span class="time pull-right">{php echo date('Y-m-d', $da['createtime']);}</span>
- </li>
- {/loop}
- </ul>
- </div>
- <div class="text-right">
- {$pager}
- </div>
- {else}
- <div class="text-center">暂无数据</div>
- {/if}
- </div>
- </div>
- {/if}
- {if $do == 'detail'}
- <div class="we7-padding">
- <ol class="breadcrumb we7-breadcrumb">
- <a href="{url 'article/notice-show/list'}"><i class="wi wi-back-circle"></i></a>
- <li class="active"><a href="{php echo url('article/notice-show/list');}">公告列表</a></li>
- <li class="active">{$notice['title']}</li>
- </ol>
- <div class="panel we7-panel news-detail">
- <div class="panel-heading text-center">
- <h3 class="text-center">{$notice['title']}</h3>
- <div class="small text-center text-muted">
- <span>{php echo date('Y-m-d H:i', $notice['createtime']);}</span>
- <span>阅读:{$notice['click']}次</span>
- </div>
- </div>
- <div class="panel-body we7-padding">
- {php echo html_entity_decode($notice['content'], ENT_QUOTES)}
- </div>
- </div>
- {if $comment_status}
- <form class="we7-margin-top" action="" method="post">
- <div class="form-group">
- <textarea name="content" class="form-control" rows="5" placeholder="扯淡、吐槽、表扬、鼓励......想说啥就说啥!"></textarea>
- </div>
- <div class="form-group">
- <input name="submit" type="submit" value="发表评论" class="btn btn-primary"/>
- <input type="hidden" name="token" value="{$_W['token']}" />
- </div>
- </form>
- <div class="panel we7-panel">
- <div class="panel-heading">
- 最新评论
- </div>
- {template 'article/comments'}
- </div>
- {/if}
- </div>
- {/if}
- </div>
- {template 'common/footer'}
|