...
|
...
|
@@ -5,7 +5,7 @@ |
|
|
<ul class="nav nav-tabs">
|
|
|
<li class="active"><a href="javascript:;">设备列表</a></li>
|
|
|
</ul>
|
|
|
<form class="well form-inline margin-top-20" method="post" action="{:url('AdminArticle/index')}">
|
|
|
<form class="well form-inline margin-top-20" method="post" action="{:url('AdminEquipment/index')}">
|
|
|
分类:
|
|
|
<select class="form-control" name="category" style="width: 140px;">
|
|
|
<option value='0'>全部</option>
|
...
|
...
|
@@ -22,18 +22,18 @@ |
|
|
<input type="text" class="form-control" name="keyword" style="width: 200px;"
|
|
|
value="{$keyword|default=''}" placeholder="请输入关键字...">
|
|
|
<input type="submit" class="btn btn-primary" value="搜索"/>
|
|
|
<a class="btn btn-danger" href="{:url('AdminArticle/index')}">清空</a>
|
|
|
<a class="btn btn-danger" href="{:url('AdminEquipment/index')}">清空</a>
|
|
|
</form>
|
|
|
<form class="js-ajax-form" action="" method="post">
|
|
|
<div class="table-actions">
|
|
|
<button class="btn btn-primary btn-sm js-ajax-submit" type="submit"
|
|
|
data-action="{:url('AdminArticle/publish',array('yes'=>1))}" data-subcheck="true">新增
|
|
|
<button class="btn btn-primary btn-sm js-ajax-submit" type="button"
|
|
|
onclick="doAdd()">新增
|
|
|
</button>
|
|
|
<button class="btn btn-primary btn-sm js-ajax-submit" type="submit"
|
|
|
data-action="{:url('AdminArticle/publish',array('yes'=>1))}" data-subcheck="true">批量新增
|
|
|
onclick="doAdd()">批量新增
|
|
|
</button>
|
|
|
<button class="btn btn-primary btn-sm js-ajax-submit" type="submit"
|
|
|
data-action="{:url('AdminArticle/publish',array('yes'=>1))}" data-subcheck="true">批量导出
|
|
|
data-action="{:url('AdminEquipment/publish',array('yes'=>1))}" data-subcheck="true">批量导出
|
|
|
</button>
|
|
|
</div>
|
|
|
<table class="table table-hover table-bordered table-list">
|
...
|
...
|
@@ -95,53 +95,39 @@ |
|
|
{$vo.key}
|
|
|
</td>
|
|
|
<td>
|
|
|
<a href="{:url('AdminArticle/edit',array('id'=>$vo['id']))}">{:lang('EDIT')}</a>
|
|
|
<a href="{:url('AdminArticle/delete',array('id'=>$vo['id']))}" class="js-ajax-delete">{:lang('DELETE')}</a>
|
|
|
<a href="{:url('AdminEquipment/edit',array('id'=>$vo['id']))}">{:lang('EDIT')}</a>
|
|
|
<a href="{:url('AdminEquipment/delete',array('id'=>$vo['id']))}" class="js-ajax-delete">{:lang('DELETE')}</a>
|
|
|
</td>
|
|
|
</tr>
|
|
|
</foreach>
|
|
|
</table>
|
|
|
<!--<div class="table-actions">-->
|
|
|
<!--<notempty name="category">-->
|
|
|
<!--<button class="btn btn-primary btn-sm js-ajax-submit" type="submit"-->
|
|
|
<!--data-action="{:url('AdminArticle/listOrder')}">{:lang('SORT')}-->
|
|
|
<!--</button>-->
|
|
|
<!--</notempty>-->
|
|
|
<!--<button class="btn btn-primary btn-sm js-ajax-submit" type="submit"-->
|
|
|
<!--data-action="{:url('AdminArticle/publish',array('yes'=>1))}" data-subcheck="true">发布-->
|
|
|
<!--</button>-->
|
|
|
<!--<button class="btn btn-primary btn-sm js-ajax-submit" type="submit"-->
|
|
|
<!--data-action="{:url('AdminArticle/publish',array('no'=>1))}" data-subcheck="true">取消发布-->
|
|
|
<!--</button>-->
|
|
|
<!--<button class="btn btn-primary btn-sm js-ajax-submit" type="submit"-->
|
|
|
<!--data-action="{:url('AdminArticle/top',array('yes'=>1))}" data-subcheck="true">置顶-->
|
|
|
<!--</button>-->
|
|
|
<!--<button class="btn btn-primary btn-sm js-ajax-submit" type="submit"-->
|
|
|
<!--data-action="{:url('AdminArticle/top',array('no'=>1))}" data-subcheck="true">取消置顶-->
|
|
|
<!--</button>-->
|
|
|
<!--<button class="btn btn-primary btn-sm js-ajax-submit" type="submit"-->
|
|
|
<!--data-action="{:url('AdminArticle/recommend',array('yes'=>1))}" data-subcheck="true">推荐-->
|
|
|
<!--</button>-->
|
|
|
<!--<button class="btn btn-primary btn-sm js-ajax-submit" type="submit"-->
|
|
|
<!--data-action="{:url('AdminArticle/recommend',array('no'=>1))}" data-subcheck="true">取消推荐-->
|
|
|
<!--</button>-->
|
|
|
<!--<!–-->
|
|
|
<!--<notempty name="category">-->
|
|
|
<!--<button class="btn btn-primary btn-sm js-articles-move" type="button">批量移动</button>-->
|
|
|
<!--</notempty>-->
|
|
|
<!--<button class="btn btn-primary btn-sm js-articles-copy" type="button">批量复制</button>-->
|
|
|
<!--–>-->
|
|
|
<!--<button class="btn btn-danger btn-sm js-ajax-submit" type="submit"-->
|
|
|
<!--data-action="{:url('AdminArticle/delete')}" data-subcheck="true" data-msg="您确定删除吗?">-->
|
|
|
<!--{:lang('DELETE')}-->
|
|
|
<!--</button>-->
|
|
|
<!--</div>-->
|
|
|
<ul class="pagination">{$page|default=''}</ul>
|
|
|
</form>
|
|
|
</div>
|
|
|
<script src="__STATIC__/js/admin.js"></script>
|
|
|
<script>
|
|
|
|
|
|
function doAdd() {
|
|
|
openIframeLayer("{:url('AdminEquipment/add')}", '请选择分类', {
|
|
|
area: ['700px', '400px'],
|
|
|
btn: ['确定', '取消'],
|
|
|
yes: function (index, layero) {
|
|
|
//do something
|
|
|
var iframeWin = window[layero.find('iframe')[0]['name']];
|
|
|
var selectedCategories = iframeWin.confirm();
|
|
|
if (selectedCategories.selectedCategoriesId.length == 0) {
|
|
|
|
|
|
}
|
|
|
$('#js-categories-id-input').val(selectedCategories.selectedCategoriesId.join(','));
|
|
|
$('#js-categories-name-input').val(selectedCategories.selectedCategoriesName.join(' '));
|
|
|
//console.log(layer.getFrameIndex(index));
|
|
|
layer.close(index); //如果设定了yes回调,需进行手工关闭
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function reloadPage(win) {
|
|
|
win.location.reload();
|
|
|
}
|
...
|
...
|
|