Edit D:\chineseall_products\bak\digitalLib6\admin\system\createRole.jsp
??<%@ page contentType="text/html;charset=utf-8" %> <%@ taglib prefix="s" uri="/struts-tags"%> <!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>??????????????</title> <link rel="stylesheet" type="text/css" href="/style/style.css" /> <link rel="stylesheet" href="/kindeditor/themes/default/default.css" /> <link rel="stylesheet" href="/kindeditor/plugins/code/prettify.css" /> <script charset="utf-8" src="/kindeditor/kindeditor-min.js"></script> <script charset="utf-8" src="/kindeditor/lang/zh_CN.js"></script> <script charset="utf-8" src="/kindeditor/plugins/code/prettify.js"></script> <style> body{font-size:14px;color:#000;background:#fff;} </style> </head> <body> <div class="crumbs tl">?????????????? >> ??????</div> <div class="mainCon"> <form id="createRoleForm" name="createRole" action="createRole.action" method="post"> <table width="100%" border="0" cellspacing="0" cellpadding="0" class="addTable"> <tr > <td width="10%">??????</td> <td width="90%" > <input class="textIn1" type="text" name="role.roleName" value="${role.roleName}" id="roleName"/> </td> </tr> <tr> <td>?????????</td> <td> <s:select theme="simple" cssClass="textIn1" name="role.dataScope" list="#{'-1':'????', '0':'???', '1':'??', '2':'???', '3':'??', '4':'??'}" value="role.dataScope"/> </td> </tr> <tr> <td >????</td> <td> <s:select theme="simple" cssClass="textIn1" name="role.status" list="#{'0':'???', '1':'???'}" value="role.status" /> </td> </tr> <tr id="funcId"> <td>??????</td> <td> <s:set name="checkboxIds" value="''"/> <ul style="position:relative; margin-left:10px; width:600px;"> <s:iterator value="list"> <s:set name="checkboxIds" value="#checkboxIds + ',' + levelCode"/> <s:if test="levelCode.length()==2"> <li style="display:inline;position:relative;margin:0px;padding:0px;width:600px;float:left;over-float:hidden;"> <input id="funcIdArry_${levelCode }" type="checkbox" name="role.funcIds" value="${id}" <s:if test="role != null && role.differFuncIds.indexOf(',' + id + ',') >= 0"> checked</s:if> onclick="checkOtherBox(this,checkboxIds,'funcIdArry_','${levelCode}');">${name } </li> </s:if> <s:else> <li style="display:inline;position:relative;margin:0px;padding-left:30px;width:160px;float:left;"> <input id="funcIdArry_${levelCode }" type="checkbox" name="role.funcIds" value="${id}" <s:if test="role != null && role.differFuncIds.indexOf(',' + id + ',') >= 0"> checked</s:if> onclick="checkOtherBox(this,checkboxIds,'funcIdArry_','${levelCode}');">${name } </li> </s:else> </s:iterator> </ul> </td> </tr> <tr > <td> </td> <td align="left" colspan="2"> <input type="hidden" id="roleId" name="role.id" value="${role.id}" /> <input type="hidden" name="currentPage" value="${currentPage}" /> <input type="button" class="searchBtn" onclick="dosubmit();" value="???" /> <input type="button" class="searchBtn" onclick="returnListPage();" value="???" /> <font color="red"><s:property value="info" /></font> </td> </tr> </table> </form> </div> <script type="text/javascript"> var checkboxIds = "<s:property value='#checkboxIds'/>"; checkboxIds = checkboxIds.substring(1); function checkOtherBox(chk, checkboxtmp, headstr, chkCode) { var codes = checkboxtmp.split(","); if(chkCode.length == 2 ) { for(var i=0; i<codes.length; i++) { if(codes[i].substring(0,2) == chkCode) { var chkId = headstr + codes[i]; document.getElementById(chkId).checked=chk.checked; } } } else { if(chk.checked) { var chkId = headstr + chkCode.substring(0,2); document.getElementById(chkId).checked = true; } } if(parent.dyniframesize) parent.dyniframesize('right'); } function returnListPage() { var obj = document.getElementById("createRoleForm"); obj.action = "listRole.action"; obj.submit(); } function dosubmit() { var obj = document.getElementById("roleName"); if(obj.value=="") { alert("????????????"); return; } obj = document.getElementById("roleName"); if(obj.value=="") { alert("????????????"); return; } document.getElementById("createRoleForm").submit(); } </script> </body> </html>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de