79 lines
3.4 KiB
HTML
79 lines
3.4 KiB
HTML
<admintpl file="header" />
|
|
</head>
|
|
<body>
|
|
<div class="wrap js-check-wrap">
|
|
<ul class="nav nav-tabs">
|
|
<li class="active"><a href="{:U('AdminPage/index')}">{:L('PORTAL_ADMINPAGE_INDEX')}</a></li>
|
|
<li><a href="{:U('AdminPage/add')}">{:L('PORTAL_ADMINPAGE_ADD')}</a></li>
|
|
</ul>
|
|
<form class="well form-search" method="post" action="{:U('AdminPage/index')}">
|
|
{:L('POST_DATE')}
|
|
<input type="text" name="start_time" class="js-datetime" value="{$formget.start_time|default=''}" style="width: 120px;" autocomplete="off">-
|
|
<input autocomplete="off" type="text" class="js-datetime" name="end_time" value="{$formget.end_time|default=''}" style="width: 120px;"> {:L('KEYWORD')}
|
|
<input type="text" name="keyword" style="width: 200px;" value="{$formget.keyword|default=''}" placeholder="{:L('PLEASE_ENTER_KEYWORD')}">
|
|
<button class="btn btn-primary">{:L('SEARCH')}</button>
|
|
<a class="btn btn-danger" href="{:U('AdminPage/index')}">清空</a>
|
|
</form>
|
|
<form class="js-ajax-form" method="post">
|
|
<div class="table-actions">
|
|
<button class="btn btn-danger btn-small js-ajax-submit" type="submit" data-action="{:U('AdminPage/delete')}" data-subcheck="true" data-msg="{:L('DELETE_CONFIRM_MESSAGE')}">{:L('DELETE')}</button>
|
|
</div>
|
|
<table class="table table-hover table-bordered table-list">
|
|
<thead>
|
|
<tr>
|
|
<th width="16"><label><input type="checkbox" class="js-check-all" data-direction="x" data-checklist="js-check-x"></label></th>
|
|
<th width="100">ID</th>
|
|
<th>{:L('TITLE')}</th>
|
|
<!-- <th>点击量</th> -->
|
|
<th width="80">{:L('AUTHOR')}</th>
|
|
<th width="120"><span>{:L('POST_DATE')}</span></th>
|
|
<th width="120">{:L('ACTIONS')}</th>
|
|
</tr>
|
|
</thead>
|
|
<foreach name="posts" item="vo">
|
|
<tr>
|
|
<td><input type="checkbox" class="js-check" data-yid="js-check-y" data-xid="js-check-x" name="ids[]" value="{$vo.id}"></td>
|
|
<td><a>{$vo.id}</a></td>
|
|
<td><a href="{:U('portal/page/index',array('id'=>$vo['id']))}" target="_blank"><span>{$vo.post_title}</span></a></td>
|
|
<!-- <td>0</td> -->
|
|
<td>{$vo.user_nicename|default=$vo.user_login}</td>
|
|
<td>{$vo.post_date}</td>
|
|
<td>
|
|
<a href="{:U('AdminPage/edit',array('id'=>$vo['id']))}">{:L('EDIT')}</a>|
|
|
<a href="{:U('AdminPage/delete',array('id'=>$vo['id']))}" class="js-ajax-delete">{:L('DELETE')}</a>
|
|
</td>
|
|
</tr>
|
|
</foreach>
|
|
<tfoot>
|
|
<tr>
|
|
<th width="16"><label><input type="checkbox" class="js-check-all" data-direction="x" data-checklist="js-check-x"></label></th>
|
|
<th width="100">ID</th>
|
|
<th>{:L('TITLE')}</th>
|
|
<!-- <th>点击量</th> -->
|
|
<th width="80">{:L('AUTHOR')}</th>
|
|
<th width="120"><span>{:L('POST_DATE')}</span></th>
|
|
<th width="120">{:L('ACTIONS')}</th>
|
|
</tr>
|
|
</tfoot>
|
|
</table>
|
|
<div class="table-actions">
|
|
<button class="btn btn-danger btn-small js-ajax-submit" type="submit" data-action="{:U('AdminPage/delete')}" data-subcheck="true" data-msg="你确定删除吗?">{:L('DELETE')}</button>
|
|
</div>
|
|
<div class="pagination">{$page}</div>
|
|
</form>
|
|
</div>
|
|
<script src="__PUBLIC__/js/common.js"></script>
|
|
<script>
|
|
setCookie('refersh_time', 0);
|
|
function refersh_window() {
|
|
var refersh_time = getCookie('refersh_time');
|
|
if (refersh_time == 1) {
|
|
window.location.reload();
|
|
}
|
|
}
|
|
setInterval(function() {
|
|
refersh_window()
|
|
}, 2000);
|
|
</script>
|
|
</body>
|
|
</html> |