useredit.jsp
来自「学生学籍管理系统sql 学生学籍管理系统sql」· JSP 代码 · 共 123 行
JSP
123 行
<%@ page language="java" contentType="text/html; charset=gb2312" pageEncoding="UTF-8"%>
<%@ page import="com.record.publicCode.PrintModifyValue"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=gb2312" />
<meta http-equiv="Content-Language" content="zh-CN" />
<meta name="robots" content="all" />
<meta name="author" content="WanfuZheng | www.52ay.com" />
<meta name="Copyright" content="Copyright (c) 2000-2005 www.52ay.com" />
<link rel="icon" href="/favicon.ico" type="image/x-icon" media="screen" />
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" media="screen" />
<link rel="stylesheet" href="css/style.css" type="text/css" media="all" />
<meta name="description" content="网页制作" />
<meta name="keywords" content="e266@163.com,http://blog.46com.com,郑万福(qq:30401653),制作,卧龙工作室,天翼数码,网站制作,Falsh,下载,成都,多媒体制作,asp,jsp,php,sql,mssql,mysql,酷网站,图标,音乐,mp3" />
<title>Insert title here</title>
<script language="javascript">
<!--
function duSubmit()
{
if(formObj.name.value==""){
alert("用户名不能为空!");
formObj.name.focus();
return false;
}
if(formObj.password.value==""){
alert("密码不能为空!");
formObj.password.focus();
return false;
}
return true;
}
//-->
</script>
<%
String action;
action=request.getParameter("action");
if(null==action)
{
response.sendRedirect("UserList.jsp");
return;
}
%>
</head>
<%
String id;
String fieldName1="name";
String fieldName2="password";
String dataBaseName="admin";
id=request.getParameter("id");
if(id.equals("a"))
{
id="1000001";
}
PrintModifyValue printModifyValue=new PrintModifyValue();
printModifyValue.getModifyValue("modify",Integer.parseInt(id),fieldName1,dataBaseName);
%>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<form name="formObj" method="post" action="UserEditAction.jsp?action=<%=action%>&id=<%=id%>" style="margin:0px;" onsubmit="return duSubmit();">
<table id="bd" border="0" cellpadding="0" cellspacing="1" width="95%" height="25" align="center" bgcolor="#999999">
<tr bgcolor="#EEEEEE">
<td align="left">管理首页 >> 四川新华电脑档案管理系统</td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="1" width="95%" align="center" bgcolor="#4881B7">
<tr>
<td height="30" bgcolor="#FFFFFF" class="white_12_b" style="padding:1px 1px 0px 1px;"><table width="100%" height="30" border="0" cellpadding="0" cellspacing="0" bgcolor="#75AACF">
<tr>
<td>>>编辑页面</td>
</tr>
</table></td>
</tr>
<tr>
<td align="center" bgcolor="#FFFFFF" style="padding:3px 0px 3px 0px;"><table width="98%" border="0" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC">
<tr>
<td height="30" align="right" bgcolor="#FFFFFF">用户名:</td>
<td align="left" bgcolor="#FFFFFF"><input type="text" name="name" value="<%=printModifyValue.getModifyValue("modify",Integer.parseInt(id),fieldName1,dataBaseName) %>" />
<font color="#FF0000">*</font></td>
<td align="right" bgcolor="#FFFFFF">密码:</td>
<td align="left" bgcolor="#FFFFFF"><input type="text" name="password" value="<%=printModifyValue.getModifyValue("modify",Integer.parseInt(id),fieldName2,dataBaseName) %>"/> <font color="#FF0000">*</font></td>
</tr>
<tr>
<td height="30" align="right" bgcolor="#FFFFFF">用户权限:</td>
<td align="left" bgcolor="#FFFFFF"><select name="type" needs="">
<option value="ismanage" <%
if(printModifyValue.getModifyValue("modify",Integer.parseInt(id),"type",dataBaseName).trim().equals("ismanage")){
out.print("selected");
}
%>> 管理员权限 </option>
<option value="isuser" <%
if(printModifyValue.getModifyValue(action,Integer.parseInt(id),"type",dataBaseName).trim().equals("isuser")){
out.print("selected");
}
%>> 普通用户 </option>
</select>
<font color="#FF0000">*</font></td>
<td align="right" bgcolor="#FFFFFF"></td>
<td align="left" bgcolor="#FFFFFF"></td>
</tr>
<tr>
<td height="40" colspan="4" align="center" bgcolor="#FFFFFF"><input type="submit" name="Submit" value="提交" />
<input type="reset" name="Submit2" value="重置" /></td>
</tr>
</table></td>
</tr>
</table>
<div style="margin:3px 0px 0px 0px;">
<table width="95%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC">
<tr>
<td bgcolor="#FFFFFF" style="line-height:25px;color:#200000;" align="center"> 技术支持:红侠工作室 电话:13219047747 电子邮件:e266@163.com
<br/>Ropyright2006 四川新华电脑学校 All Rights Reserved </td>
</tr>
</table>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?