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

📄 c0a9af1fa3bc001d1a0bdb0e07cbdb75

📁 MyEclipse6.0+SQL2000开发简单的通讯录系统
💻
字号:

<%@ page language="java" import="java.util.*" pageEncoding="GBK"%>
<jsp:directive.page import="org.dbUtil.DBUtil" />
<jsp:directive.page import="org.DAO.UserinfoDAO" />
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>My JSP 'list.jsp' starting page</title>
   <style type="text/css">

body {
	background-image: url("<%=basePath%>myapps/picture/dog.jpg");
}
.style1 {color: #9995EC}
.style2 {
	color: #9995EC;
	font-family: Georgia, "Times New Roman", Times, serif;
	font-style: italic;
	font-weight: bold;
	font-size: 50px;
}
.style4 {color: #9995EC; font-size: 18px; }
.style5 {color: #9995EC; font-family: Georgia, "Times New Roman", Times, serif; font-style: italic; font-weight: bold; font-size: 24px; }

</style>
		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

		<script type="text/javascript">
function check(type,num,kn){
if(type=='update'||type=='insert'){
var path = "<%=basePath%>servlet/Mainservlet?id="+num+"&type="+type+"&kn="+kn;
    document.listForm.action=path;
    document.listForm.submit();
  }
else if(type=='delete'){
var path = "<%=basePath%>servlet/Mainservlet?id="+num+"&type="+type;
    if(confirm('确定删除吗?')==true){
    document.listForm.action=path;
    document.listForm.submit();
    }
  }
}
</script>
	</head>

	<body>
		<form action="" name="listForm" method="post">
			&nbsp;
			&nbsp;
			&nbsp;
			&nbsp;
			<table border="1" align="center">
				<tr>
					
					<td>
						员工姓名
					</td>
					<td>
						居住街道
					</td>
					<td>
						居住城市
					</td>
					<td>
						居住省份
					</td>
					<td>
						居住地邮编
					</td>
					<td>
						联系电话
					</td>
					<td>
						出生日期
					</td>
					<td>
						性别
					</td>
					<td>
						社保号
					</td>
					<td>
						工资
					</td>
					<td>
						职位
					</td>
					<td>
						修改
					</td>
					<td>
						删除
					</td>
				</tr>
				<%
				    String n = request.getParameter("n");
					DBUtil db = new DBUtil();
					List<UserinfoDAO> list = db.Query("select * from wid where did='"+n+"'");				
					for (UserinfoDAO user : list) {
				%>
				<tr>
					
					<td>
						<%=user.getEmployName()%>
					</td>
					<td>
						<%=user.getEmployStreet()%>
					</td>
					<td>
						<%=user.getEmployCity()%>
					</td>
					<td>
						<%=user.getEmployPro()%>
					</td>
					<td>
						<%=user.getEmployZip()%>
					</td>
					<td>
						<%=user.getEmployTel()%>
					</td>
					<td>
						<%=user.getEmployBir()%>
					</td>
					<td>
						<%=user.getEmploySex()%>
					</td>
					<td>
						<%=user.getEmployWel()%>
					</td>
					<td>
						<%=user.getEmployEarn()%>
					</td>
					<td>
						<%=user.getEmployFun()%>
					</td>

					<td>
						<input type="button" value="修改" onclick="check('update',<%=user.getEmployId()%>"+",<%=user.getNo()%>)">
					</td>
					<td>
						<input type="button" value="删除" onclick="check('delete',<%=user.getEmployId()%>"+",<%=user.getNo()%>)">
					</td>
				</tr>
				<%
				}
				%>
				<input type="button"  value="添加" onclick="check('insert','null',<%=user.getEmployId()%>)">	
			</table>
		</form>
	</body>
</html>

⌨️ 快捷键说明

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