147 lines
3.5 KiB
Plaintext
147 lines
3.5 KiB
Plaintext
<%@ page contentType="text/html;charset=UTF-8" %>
|
|
<%@ include file="/webpage/include/taglib.jsp" %>
|
|
<html>
|
|
<head>
|
|
<title>考核方式管理</title>
|
|
<meta name="decorator" content="default"/>
|
|
<script type="text/javascript">
|
|
$(document).ready(function() {
|
|
|
|
});
|
|
|
|
function updateStatus(status,id){
|
|
|
|
if (status == 0) {
|
|
var status = 1;
|
|
}else{
|
|
var status = 0;
|
|
}
|
|
$.ajax({
|
|
url : "${ctx}/phoneBox/update",
|
|
type : "post",
|
|
data : {"id":id,"status":status},
|
|
success : function (){
|
|
window.location.reload();
|
|
}
|
|
|
|
})
|
|
}
|
|
|
|
function deletePhoneBox(id){
|
|
$.ajax({
|
|
url : "${ctx}/phoneBox/update",
|
|
type : "post",
|
|
data : {"id":id,"delFlag":"1"},
|
|
success : function (){
|
|
window.location.reload();
|
|
}
|
|
|
|
})
|
|
}
|
|
|
|
</script>
|
|
</head>
|
|
<body class="gray-bg">
|
|
<div class="wrapper wrapper-content">
|
|
<div class="ibox">
|
|
|
|
<div class="ibox-content">
|
|
|
|
|
|
<!-- 工具栏 -->
|
|
<div class="row">
|
|
<div class="col-sm-12">
|
|
<div class="pull-left">
|
|
<table:addRow url="${ctx }/phoneBox/add" title="电话盒子" height = "500px" width = "600px"></table:addRow><!-- 增加按钮 -->
|
|
</div>
|
|
|
|
<%-- <!-- 查询条件 -->
|
|
<div class="pull-left">
|
|
<div class="col-sm-12">
|
|
<form:form id="searchForm" modelAttribute=" " action="" method="post" class="form-inline">
|
|
<span>电话盒子:</span>
|
|
<input id = "title" class = "form-control input-sm" name = "title" type = "text"/>
|
|
<span>联系人:</span>
|
|
<input id = "title" class = "form-control input-sm" name = "title" type = "text"/>
|
|
</form:form>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<div class="pull-right">
|
|
<button class="btn btn-primary btn-rounded btn-outline btn-sm " onclick="search()"><i class="fa fa-search"></i> 查询</button>
|
|
<button class="btn btn-primary btn-rounded btn-outline btn-sm " onclick="reset()"><i class="fa fa-refresh"></i> 重置</button>
|
|
</div> --%>
|
|
</div>
|
|
</div>
|
|
|
|
<table id="" class="table table-striped table-bordered table-hover table-condensed dataTables-example dataTable no-footer" >
|
|
<thead>
|
|
<tr>
|
|
<th >编号</th>
|
|
<th >电话盒子</th>
|
|
<th >所属机构</th>
|
|
<th >联系人</th>
|
|
<th >电话</th>
|
|
<th>备注</th>
|
|
<th>当前状态/操作</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<c:forEach items="${phoneBoxList}" var="phoneBox" varStatus="indexs">
|
|
<tr>
|
|
<td>
|
|
${indexs.index+1 }
|
|
</td>
|
|
<td>
|
|
${ phoneBox.name}
|
|
</td>
|
|
|
|
<td>
|
|
${ phoneBox.office.name}
|
|
</td>
|
|
|
|
<td>
|
|
${ phoneBox.linkman}
|
|
</td>
|
|
|
|
<td>
|
|
${ phoneBox.phone}
|
|
</td>
|
|
|
|
<td>
|
|
${ phoneBox.remarks}
|
|
</td>
|
|
|
|
<td>
|
|
<!-- 正在使用 -->
|
|
<c:if test="${ phoneBox.status eq '0'}">
|
|
<a onclick="updateStatus('${phoneBox.status}','${phoneBox.id }')" class="btn btn-primary btn-xs" id = "test1" >
|
|
<i class="fa fa-edit"></i> 启用
|
|
|
|
</c:if>
|
|
<!-- 禁用 -->
|
|
<c:if test="${ phoneBox.status eq '1'}">
|
|
<a onclick="updateStatus('${phoneBox.status}','${phoneBox.id }')" class="btn btn-danger btn-xs" id = "test1">
|
|
<i class="fa fa-edit"></i> 禁用
|
|
</c:if>
|
|
</a>
|
|
|
|
<a onclick="deletePhoneBox('${phoneBox.id}')" class="btn btn-primary btn-xs" id = "test1" >
|
|
<i class="fa fa-edit"></i> 删除
|
|
</a>
|
|
</td>
|
|
</tr>
|
|
</c:forEach>
|
|
|
|
</tbody>
|
|
</table>
|
|
|
|
|
|
<br/>
|
|
<br/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html> |