⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 select.jsp

📁 本源码为教学管理信息系统
💻 JSP
字号:
<%@page contentType="text/html;charset=gb2312"%>
<%@ taglib prefix="ww" uri="webwork" %>
<%@ include file="/include/header.inc"%>
<%@ page import="com.opensymphony.xwork.util.OgnlValueStack" %>
<%@ page import="com.wygl.xtgl.domain.Role" %>
<%
	OgnlValueStack stack = (OgnlValueStack)request.getAttribute("webwork.valueStack");
	Role role = (Role)stack.findValue("role");
	String name = role.getName();
	String description = role.getDescription();
	if(description==null) description="";
	String id = role.getId();
%>
<html>
<head>
<script language="javascript">
<!--
function editRoleFormSub(){
	if(verify()){
		document.editRoleForm.submit();
	}
}
function verify(){
	var form = document.forms['editRoleForm']; 
	var value = form.elements['role.name'].value;
	if(value == ""){
		alert("权限组名称不能为空,请录入!");
	return false;
	}
	return true;
}

//-->
</script>

<body>
<table cellspacing="0" cellpadding="0" align="center">
	<tr><td class="topg"/></tr>
</table>
<table cellspacing="0" cellpadding="0" align="center" class="wukuang" >
  <tr>
    <td width="1%" align="left" ><img class="img" src="<%= request.getContextPath() %>/images/tleft.gif"></td>
    <td width="20%" valign="middle">[权限组信息修改]</td>
	<td width="78%" align="right"><a href="javascript:editRoleFormSub();" ><img class="imgd" src="<%= request.getContextPath() %>/images/button/save.gif"></a></td>
	<td width="1%" align="left" ><img class="img" src="<%= request.getContextPath() %>/images/tright.gif"></td>
  </tr>
</table>
<table cellspacing="0" cellpadding="0" align="center">
	<tr><td class="topg"/></tr>
</table>
<table border="1" cellspacing="1" cellpadding="2" align="center"  class="bgtable">
	<form name="editRoleForm" action="Role!add.action" method="POST">
		<input type="hidden" name="role.id" value="<%=id%>"/>
		<tr>
			<td width="21%" align="center" >组&nbsp;&nbsp;名&nbsp;&nbsp;称:</td>
			<td width="79%" ><input size = "42" maxlength = "12" name="role.name" value="<%=name%>"/></td>
		</tr>
		<tr>
			<td align="center" >组功能描述:</td>
			<td><input size = "42" maxlength = "20" name="role.description" value="<%=description%>"/></td>
		</tr>
	</form>
</table>
</body>
</html>

⌨️ 快捷键说明

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