roleset.jsp

来自「一个jsp写的bbs」· JSP 代码 · 共 54 行

JSP
54
字号
<%@page contentType="text/html; charset=UTF-8"%>
<%@taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@taglib uri="/WEB-INF/bbscs.tld" prefix="bbscs"%>
<html:xhtml/>
<html:form action="/adminRoleSet">
<html:hidden property="action"/>
<html:hidden property="id" styleId="id"/>
<table width="100%" border="0" cellpadding="5" cellspacing="0" class="table6">
    <tr>
      <td colspan="2">
        <div id="resultMegs"/>
      </td>
    </tr>
    <tr>
      <td width="15%">角色名称</td>
      <td width="85%">
        <html:text property="roleName" styleId="roleName" styleClass="input2" size="40" onkeypress="return false;"/>
      </td>
    </tr>

    <tr>
      <td valign="top">权限</td>
      <td>
        <table width="100%" border="0" cellpadding="3" cellspacing="0">
          <logic:iterate id="permission" name="permissionList" scope="request" type="com.laoer.bbscs.bean.Permission">
            <tr>
              <td>
                <bbscs:checkbox property="permissions" valueName="permission" valueProperty="id" collection="permissionValues">
                </bbscs:checkbox>
                <bean:write name="permission" property="permissionName"/>
                <em>(<bean:write name="permission" property="id"/>)</em>
              </td>
            </tr>
          </logic:iterate>
        </table>
      </td>
    </tr>
    <tr>
      <td valign="top">&nbsp;</td>
      <td>
        <logic:equal value="add" name="adminRoleSetForm" property="action">
          <html:button property="saveRole" styleClass="button1" onclick="addRole();">保存</html:button>
        </logic:equal>
        <logic:equal value="editdo" name="adminRoleSetForm" property="action">
          <html:button property="saveRole" styleClass="button1" onclick="editDoRole();">保存</html:button>
        </logic:equal>
        <html:button property="closeButton" styleClass="button1" onclick="cloesRoleSetPage();">关闭</html:button>
      </td>
    </tr>
</table>
</html:form>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?