📄 main.jsp
字号:
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<jsp:useBean id='db' scope='request' class='Base.DataBean.DefaultDataBean' />
<html>
<head>
<link rel=stylesheet href="../index.css" type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>用户配置</title>
</head>
<body>
<script>
function doSubmit(){
document.form1.id.value=document.form1.txt_rybh.value;
document.form1.submit();
}
</script>
<form name="form1" action="showsearch.cgi">
<table width="100%" height="20" border="0" cellpadding="0" cellspacing="0">
<tr>
<td> </td>
</tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="40"> </td>
<td width="910"><table width="100%" height="20" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="20" class="title_s"><img src="../pics/login.gif" width=50> 欢迎您>><%=(String)session.getAttribute("NAME")%> </td>
</tr>
<tr>
<td height="5" bgcolor="#C8F8BA"></td>
</tr>
<tr>
<td height="1" bgcolor="#2E990F"></td>
</tr>
</table></td>
<td width="50"> </td>
</tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="40"> </td>
<td width="910">
<table class="main_w" width="100%" border="1" cellpadding="4" cellspacing="0" bordercolor="FFFFFF" bgcolor="E8FCE2">
<tr bgcolor="#FFFFFF" class="title_s">
<td height="20" colspan="7"><div align="center">已有用户列表 </div></td>
</tr>
<tr class="title_s">
<td height="20" colspan="7"><div align="center"><a href="new.cgi">添加新人员</a>
姓名:<input type="text" name="txt_rymc" size=20 >
<input class="text" type="hidden" name="txt_rybh" size="20" readonly >
<input name="id" type="hidden" id="id"> <!-- <input name="button" type="button" style="background-color:#2969b5;color:#ffffff;border-style:solid;border-color:#2969b5;cursor:hand" onclick="window.open('../SelectMan/stepMem.jsp?count=1&txt_rybh=txt_rybh&txt_rymc=txt_rymc','mem','height=400,width=600,toolbar=no,menubar=no,location=no,resizable=no,directories=no,status=yes,scrollbars=yes,dependent=no,left=200,top=200');" value="选择个人"> -->
<input type="button" name="Submit" value="提交查询" onClick="doSubmit()">
</div></td>
</tr>
<tr class="title_s">
<td width="10%" height="20"><div align="center" class="title_s">
<div align="center">学号</div>
</div></td>
<td width="13%"><div align="center">用户姓名</div></td>
<td width="21%"><div align="center">所属单位</div></td>
<td width="25%"><div align="center">所属系所</div></td>
<td width="10%"><div align="center">查看资料</div></td>
<td width="11%" height="20"><div align="center">修改</div></td>
<td width="10%" height="20"><div align="center">删除</div></td>
</tr>
<%
for(int i=0;i<db.getCount("people");i++){
%>
<tr>
<td height="20"><div align="center"><%= db.getAttributeStr("people.workid",i)%></div></td>
<td><div align="center"><%= db.getAttributeStr("people.name",i)%></div></td>
<td><div align="center"><%= db.getAttributeStr("people.collegename",i)%></div></td>
<td><div align="center"><%= db.getAttributeStr("people.departmentname",i)%></div></td>
<td><div align="center"><a href="show.cgi?id=<%=db.getAttributeStr("people.peopleid",i)%>">查看</a></div></td>
<td height="20"><div align="center"><a href="modify.cgi?id=<%=db.getAttributeStr("people.peopleid",i)%>">修改</a>|<a href="modifypsw.cgi?id=<%=db.getAttributeStr("people.peopleid",i)%>">密码</a></div></td>
<td height="20"><div align="center"><a href="delete.cgi?id=<%=db.getAttributeStr("people.peopleid",i)%>">删除</a></div></td>
</tr>
<%
}
%>
</table></td>
<td width="50"> </td>
</tr>
</table>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -