?? rights_add.jsp
字號:
<%@ page language="java" contentType="text/html; charset=GBK"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<html>
<head>
<title>System rights manage</title>
<link href="../css/common.css" rel="stylesheet" type="text/css">
</head>
<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td bgcolor="#FFFFFF">系統面板>權限模塊設置>添加模塊</td>
</tr>
<tr>
<td bgcolor="#cccccc"> </td>
</tr>
</table>
<br>
<br>
<html:form action="/admin/rights_add.do?action=save" onsubmit="javascript:return CheckForm(this);">
<table width="400" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td width="20%">模塊名稱:</td>
<td width="80%"><html:text property="name"/><html:errors property="name"/></td>
</tr>
<tr>
<td>鏈接文件:</td>
<td><html:text property="url"/><html:errors property="url"/></td>
</tr>
<tr>
<td>父模塊:</td>
<td>
<html:select property="parentprvid">
<html:options collection="parentprvid" property="value" labelProperty="label" filter="false"/>
</html:select>
<html:errors property="parentprvid"/></td>
</tr>
<tr>
<td>顯示順序:</td>
<td><html:text property="vieworder" size="3"/>(正整數)<html:errors property="vieworder"/></td>
</tr>
<tr>
<td>狀態:</td>
<td>
<html:radio property="status" value="1" styleId="status1"/><LABEL for="status1">啟用</LABEL>
<html:radio property="status" value="0" styleId="status2"/><LABEL for="status2">停用</LABEL>
</td>
</tr>
<tr>
<td>備注:</td>
<td><html:textarea property="remark" cols="30" rows="5"/><html:errors property="remark"/></td>
</tr>
<tr align="center">
<td colspan="2">
<logic:present name="InfoTips" scope="request">
<div>
<bean:message key="message.login.status"/>
<bean:write name="InfoTips" property="tipsInfo"/>
</div>
</logic:present><br>
<input type="submit" name="cmdAdd" value="添 加">
<input type="reset" name="cmdReset" value="重 置">
<input type="button" name="cmdBack" value="返回上級" onclick="javascript:location='rights_man.do';">
</td>
</tr>
</table>
</html:form>
</body>
</html>
<script language="javascript">
function CheckForm(tarFrm){
if(tarFrm.name.value.length<1){
alert("請輸入'模塊名稱'!");
tarFrm.name.focus();
return (false);
}
if(tarFrm.url.value.length<1){
alert("請輸入'鏈接文件'!");
tarFrm.url.focus();
return (false);
}
if(tarFrm.vieworder.value.length<1){
alert("請輸入'顯示順序'!");
tarFrm.vieworder.focus();
return (false);
}
return true;
}
</script>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -