}
<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
<title>角色设置管理生产成功管理</title>
<meta name="decorator" content="default"/>
<script type="text/javascript">
$(document).ready(function() {
//$("#name").focus();
$("#inputForm").validate({
submitHandler: function(form){
loading('正在提交,请稍等...');
form.submit();
},
errorContainer: "#messageBox",
errorPlacement: function(error, element) {
$("#messageBox").text("输入有误,请先更正。");
if (element.is(":checkbox")||element.is(":radio")||element.parent().is(".input-append")){
error.appendTo(element.parent().parent());
} else {
error.insertAfter(element);
}
}
});
});
//接口全选
function selectAll(){
$("input[name='interface']:checkbox").each(function(){
$(this).attr("checked",true);
})
}
//保存关系
function relateFun(){
var interfaces="";
var accessCounts = "";
$("input[name='interface']:checkbox").each(function(){
if($(this).attr("checked")){
interfaces += $(this).val()+",";
var checkedId = $(this).attr("id");
alert(checkedId);
//accessCounts += checkedId+":"+$('#'+checkedId+'_count').val()+",";
}
})
alert(interfaces);
}
</script>
</head>
<body>
<ul class="nav nav-tabs">
<c:choose>
<c:when test="${permRole.roleType=='1'}">
<li><a href="${ctx}/planset/permRole/list?roleType=${permRole.roleType}">Zealot角色设置</a></li>
<li class="active"><a href="${ctx}/planset/permRole/form?roleType=${permRole.roleType}">Zealot角色管理添加</a></li>
</c:when>
<c:otherwise>
<li><a href="${ctx}/planset/permRole/list?roleType=${permRole.roleType}">Zither角色设置</a></li>
<shiro:hasPermission name="planset:permRole:edit"><li class="active"><a href="${ctx}/planset/permRole/form?roleType=${PermRole.roleType}">Zither角色管理添加</a></li></shiro:hasPermission>
</c:otherwise>
</c:choose>
</ul><br/>
<form:form id="inputForm" modelAttribute="permRole" action="${ctx}/planset/permRole/save" method="post" class="form-horizontal">
<form:hidden path="id"/>
<sys:message content="${message}"/>
<div class="control-group">
<label class="control-label">角色名称:</label>
<div class="controls">
<form:input path="roleName" htmlEscape="false" maxlength="50" class="input-xlarge "/>
</div>
</div>
<div class="control-group">
<label class="control-label">描述:</label>
<div class="controls">
<form:input path="roleDesc" htmlEscape="false" maxlength="100" class="input-xlarge "/>
<form:hidden path="roleType" value="${roleType}"/>
</div>
</div>
<!-- 搜索接口 -->
<%--
<form:form id="searchForm" modelAttribute="permRole" action="${ctx}/planset/permRole/" method="post" class="breadcrumb form-search">
<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
<ul class="ul-form">
<li><label>接口编码:</label>
<form:input path="switchName" htmlEscape="false" maxlength="50" class="input-medium"/>
</li>
<li><label>接口URL:</label>
<form:input path="switchCode" htmlEscape="false" maxlength="50" class="input-medium"/>
</li>
<li><label>接口名称</label>
<form:select path="onOrOff" class="input-medium" maxlength="30">
<form:option value="" label="请选择"/>
<form:option value="1"label="开启"></form:option>
<form:option value="0"label="关闭"></form:option>
</form:select>
</li>
<li><label>开关类型</label>
<form:select path="switchType" class="input-medium" maxlength="30">
<form:option value="" label="请选择"/>
<form:option value="1"label="本地接口开关"></form:option>
<form:option value="3"label="第三方接口开关"></form:option>
</form:select>
</li>
<li class="btns"><input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/></li>
<li class="btns"><input id="btnClearCache" class="btn btn-primary" type="button" value="清空缓存" onclick="clearCache()"></li>
</ul>
</form:form>
--%>
<div class="control-group">
<table id="contentTable" class="table table-striped table-bordered table-condensed">
<thead>
<tr>
<th>选项</th>
<th>接口编码</th>
<th>接口序号</th>
<th>接口名称</th>
<th>接口URL</th>
<th>接口描述</th>
<th>接口状态</th>
<th>接口性质</th>
<th>接口类型</th>
<th>接口来源</th>
<!--<th>接口业务类型</th>-->
</tr>
</thead>
<tbody>
<c:forEach items="${volists}" var="vo">
<tr>
<td>
<c:choose>
<c:when test="${vo.isSelected==true}">
<input type="checkbox" checked="checked" value="${vo.permInterfaceInfo.id}" name="interface" >
</c:when>
<c:otherwise>
<input type="checkbox" value="${vo.permInterfaceInfo.id}" name="interface" >
</c:otherwise>
</c:choose>
</td>
<td style="text-align: center">
${vo.permInterfaceInfo.interfaceCode}
</td>
<td style="text-align: center">
${vo.permInterfaceInfo.interfaceSort}
</td>
<td style="text-align: center">
${vo.permInterfaceInfo.interfaceName}
</td>
<td style="text-align: center">
${vo.permInterfaceInfo.interfaceUrlCode}
</td>
<td style="text-align: center">
${vo.permInterfaceInfo.interfaceDesc}
</td>
<td style="text-align: center">
${vo.permInterfaceInfo.interfaceStatus}
</td>
<td style="text-align: center">
${vo.permInterfaceInfo.interfaceNature}
</td>
<td style="text-align: center">
${vo.permInterfaceInfo.interfaceType}
</td>
<td style="text-align: center">
${vo.permInterfaceInfo.interfaceSource}
</td>
<%--<td>
<input type="text" id="${vo.permInterfaceInfo.id}_count" value="0" style="width:50px">
</td> --%>
</tr>
</c:forEach>
</tbody>
</table>
</div>
<div class="form-actions">
<input id="selectAllBtn" class="btn"type="button" value="全选" onclick="selectAll()"/>
<shiro:hasPermission name="planset:permRole:edit"><input id="btnSubmit" class="btn btn-primary" type="submit" value="保 存"/> </shiro:hasPermission>
<input id="btnCancel" class="btn" type="button" value="返 回" onclick="history.go(-1)"/>
</div>
</form:form>
</body>
</html>