📄 editrole.jsp
字号:
<%@ include file="/WEB-INF/jsp/common/Taglibs.jsp"%>
<%@ taglib uri="http://szmx.com/taglibs/roleRes" prefix="cr"%>
<script type="text/javascript" language="javascript">
function save() {
if (!validateForm(document.forms[0])) {
return false;
} else {
var f = document.forms[0];
f.action = "<c:url value="/admin/role/editRole.do"/>";
f.submit();
}
}
function doDelete() {
var f = document.forms[0];
f.action = "<c:url value="/admin/role/deleteRole.do"/>";
f.submit();
}
function doCancel() {
var f = document.forms[0];
f.action = "<c:url value="/admin/role/searchRole.do"/>";
f.submit();
}
function selectModuel(checked, table) {
var i = 0;
for (i = 0; i < table.rows.length; i++) {
var onerow = table.rows[i].cells[0].childNodes[0]
if (checked) {
onerow.checked = true;
} else {
onerow.checked = false;
}
}
}
function selectChildModuel(parentChkbox, table) {
var tag = false;
for (i = 0; i < table.rows.length; i++) {
var onerow = table.rows[i].cells[0].childNodes[0]
if (onerow.checked) {
tag = true;
break;
}
}
if (tag) parentChkbox.checked = true;
else parentChkbox.checked = false;
}
</script>
<html:form action="role/editRole">
<html:hidden property="roleBean.id" />
<html:hidden property="roleBean.version" />
<table width="100%" border="0" cellpadding="0" cellspacing="0"
id="table10">
<tr>
<td height="28" colspan="2">
<img src="<c:url value="/images/dot.gif"/>" alt="" width="11"
height="11">
<bean:message key="label.admin.systemSetting" />
>
<bean:message key="label.admin.role.roleManagement" />
</td>
</tr>
<tr>
<td width="2%" height="31" class="section">
<img src="<c:url value="/images/menu_dot.jpg"/>" alt="" width="6"
height="19">
</td>
<td width="98%" class="section">
<bean:message key="label.admin.role.basicInfo" />
</td>
</tr>
<tr>
<td>
</td>
<td>
</td>
</tr>
<tr>
<td></td>
<td>
<table width="100%" border="0" cellpadding="0" cellspacing="0"
style="font-size:12px; width:96% " id="table20">
<tr>
<td width="11%" nowrap>
<bean:message key="label.admin.role.roleName" />
</td>
<td width="28%" nowrap>
<html:text property="roleBean.name" />
</td>
<td width="11%" nowrap>
<bean:message key="label.admin.status" />
</td>
<td width="53%" nowrap>
<html:radio property="roleBean.status" value="A" />
Active
<html:radio property="roleBean.status" value="I" />
Inactive
</td>
</tr>
<tr>
<td nowrap>
<bean:message key="label.admin.role.description" />
</td>
<td nowrap colspan="3">
<html:textarea property="roleBean.remarks" cols="60" rows="3" />
</td>
</tr>
<tr>
<td colspan="4" nowrap></td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="2">
<hr size="4">
</td>
</tr>
<tr>
<tr>
<td height="31" class="section">
<img src="<c:url value="/images/menu_dot.jpg"/>" alt="" width="6"
height="19">
</td>
<td height="31" class="section">
<bean:message key="label.admin.role.resAssign" />
</td>
</tr>
<tr>
</tr>
<tr>
<td>
</td>
<td></td>
</tr>
<tr>
<td></td>
</tr>
<div align="center" valign="top">
<center>
<br>
<table width="200" border="0" cellpadding="0" cellspacing="0">
<tr>
<td valign="top">
<table width="160" border=0 cellpadding="0" cellspacing="0"
style="border-width:0; border-collapse: collapse"
borderlight=green>
<tr class="MenuTr">
<td width="16" height="24" align="center" valign="top">
<cr:checkRoleRes name="supplyChainModule" value="1"
onClick="selectModuel(this.checked,table1)"
resource="${roleRes}" />
</td>
<td width="118" align=left>
<font class="MenuTxt"><bean:message
key="label.admin.resource.supplychain" />
</font>
</td>
</tr>
<tr>
<td colspan="3">
<img src="/images/line.gif" alt=" " width="153" height="1">
</td>
</tr>
<tr>
<td colspan="3" align=left>
<div id='KB4Child'>
<table width="88%" border="0" align="right" cellpadding="1"
cellspacing="2" id="table1">
<tr>
<td width="18%" height="28">
<cr:checkRoleRes name="resource" value=""
onClick="selectChildModuel(supplyChainModule,table1)"
resource="${roleRes}" />
</td>
<td width="82%" class="MenuTd">
<bean:message
key="label.admin.resource.supplychain.contract" />
</td>
</tr>
<tr>
<td height="28">
<cr:checkRoleRes name="resource" value=""
onClick="selectChildModuel(supplyChainModule,table1)"
resource="${roleRes}" />
</td>
<td class="MenuTd">
<bean:message
key="label.admin.resource.supplychain.workorder" />
</td>
</tr>
<tr>
<td height="28">
<cr:checkRoleRes name="resource" value=""
onClick="selectChildModuel(supplyChainModule,table1)"
resource="${roleRes}" />
</td>
<td class="MenuTd">
<bean:message key="label.admin.resource.supplychain.vat" />
</td>
</tr>
<tr>
<td height="28">
<cr:checkRoleRes name="resource" value=""
onClick="selectChildModuel(supplyChainModule,table1)"
resource="${roleRes}" />
</td>
<td class="MenuTd">
<bean:message key="label.admin.resource.supplychain.order" />
</td>
</tr>
<tr>
<td width="18%" height="28">
<cr:checkRoleRes name="resource" value=""
onClick="selectChildModuel(supplyChainModule,table1)"
resource="${roleRes}" />
</td>
<td width="82%" align="left" class="MenuTd">
<bean:message
key="label.admin.resource.supplychain.orderstatus" />
</td>
</tr>
<tr>
<td height="28">
<cr:checkRoleRes name="resource" value=""
onClick="selectChildModuel(supplyChainModule,table1)"
resource="${roleRes}" />
</td>
<td class="MenuTd">
<bean:message
key="label.admin.resource.supplychain.workload" />
</td>
</tr>
<tr>
<td height="28">
<cr:checkRoleRes name="resource" value=""
onClick="selectChildModuel(supplyChainModule,table1)"
resource="${roleRes}" />
</td>
<td class="MenuTd">
<bean:message
key="label.admin.resource.supplychain.datamapping" />
</td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</td>
<td valign="top">
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -