www.legu.cc/admin/themes/simplebootx/Legu/Admin/index.html
2021-09-06 11:50:33 +08:00

102 lines
5.3 KiB
HTML

<admintpl file="header" />
</head>
<body>
<div class="wrap js-check-wrap">
<ul class="nav nav-tabs">
<li class="active"><a href="javascript:;">文章管理</a></li>
<li><a href="{:U('Legu/Admin/add')}" target="_self">添加文章</a></li>
</ul>
<form class="well form-search" method="post" action="{:U('Legu/Admin/index')}">
分类:
<php>
$selected_1=$formget['type']==1?"selected":"";
$selected_2=$formget['type']==2?"selected":"";
</php>
<select name="type" style="width: 120px;">
<option value='0'>全部</option>
<option value='1' {$selected_1}>公司动态</option>
<option value='2' {$selected_2}>产品新闻</option>
</select> &nbsp;&nbsp;
时间:
<input type="text" name="start_time" class="js-datetime" value="{$formget.start_time|default=''}" style="width: 120px;" autocomplete="off">-
<input type="text" class="js-datetime" name="end_time" value="{$formget.end_time|default=''}" style="width: 120px;" autocomplete="off"> &nbsp; &nbsp;
<!--关键字:-->
<!--<input type="text" name="keyword" style="width: 200px;" value="{$formget.keyword|default=''}" placeholder="请输入关键字...">-->
<input type="submit" class="btn btn-primary" value="搜索" />
<a class="btn btn-danger" href="{:U('Legu/Admin/index')}">清空</a>
</form>
<form class="js-ajax-form" action="" method="post">
<div class="table-actions">
<notempty name="term">
<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('Legu/Admin/listorders')}">排序</button>
</notempty>
<!--<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('Admin/top',array('top'=>1))}" data-subcheck="true">置顶</button>-->
<!--<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('Admin/top',array('untop'=>1))}" data-subcheck="true">取消置顶</button>-->
<button class="btn btn-danger btn-small js-ajax-submit" type="submit" data-action="{:U('Legu/Admin/delete')}" data-subcheck="true" data-msg="您确定删除吗?">删除</button>
</div>
<table class="table table-hover table-bordered table-list">
<thead>
<tr>
<th width="15"><label><input type="checkbox" class="js-check-all" data-direction="x" data-checklist="js-check-x"></label></th>
<notempty name="term">
<th width="50">排序</th>
</notempty>
<th width="50">ID</th>
<th>标题</th>
<th>缩略图</th>
<th width="100">发布日期</th>
<!--<th width="50">状态</th>-->
<th width="70">操作</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}" title="ID:{$vo.id}"></td>
<notempty name="term">
<td><input name="listorders[{$vo.tid}]" class="input input-order" type="text" size="5" value="{$vo.listorder}"></td>
</notempty>
<td><b>{$vo.id}</b></td>
<td>
<notempty name="term">
<a href="{:leuu('legu/article/index',array('id'=>$vo['id'],'cid'=>$term['term_id']))}" target="_blank">{$vo.title}</a>
<else/>
{$vo.title}
</notempty>
</td>
<td>
<notempty name="vo.excerpt">
<i class="fa fa-check fa-fw"></i>
<else/>
<i class="fa fa-close fa-fw"></i>
</notempty>
<php>$smeta=json_decode($vo['smeta'],true);</php>
<notempty name="smeta.thumb">
<a href="javascript:parent.image_preview_dialog('{:sp_get_image_preview_url($smeta['thumb'])}');">
<i class="fa fa-photo fa-fw"></i>
</a>
</notempty>
</td>
<td>{:date('Y-m-d H:i',strtotime($vo['date']))}</td>
<!--<td>-->
<!--<notempty name="vo.istop">-->
<!--<a data-toggle="tooltip" title="已置顶"><i class="fa fa-arrow-up"></i></a>-->
<!--<else />-->
<!--<a data-toggle="tooltip" title="未置顶"><i class="fa fa-arrow-down"></i></a>-->
<!--</notempty>-->
<!--</td>-->
<td>
<a href="{:U('Legu/Admin/edit',array('id'=>$vo['id']))}">编辑</a> |
<a href="{:U('Legu/Admin/delete',array('id'=>$vo['id']))}" class="js-ajax-delete">删除</a>
</td>
</tr>
</foreach>
</table>
<div class="pagination">{$page}</div>
</form>
</div>
<script src="__PUBLIC__/js/common.js"></script>
<script>
</script>
</body>
</html>