Forráskód Böngészése

上传文件至 'WebRoot/login'

1801010606 6 éve
szülő
commit
142f3d5b34

+ 39 - 0
WebRoot/login/left.jsp

@@ -0,0 +1,39 @@
+<%@ page language="java" pageEncoding="UTF-8"%>
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+<title>菜单</title>
+<link href="${pageContext.request.contextPath}/css/left.css" rel="stylesheet" type="text/css">
+</head>
+<body>
+<table width="100" border="0" cellspacing="0" cellpadding="0">
+  <tr>
+    <td height="12"></td>
+  </tr>
+</table>
+<table width="100%" border="0">
+  <tr>
+    <td>
+<div class="dtree">
+
+	<a href="javascript: d.openAll();">展开所有</a> | <a href="javascript: d.closeAll();">关闭所有</a>
+	<link rel="StyleSheet" href="${pageContext.request.contextPath}/css/dtree.css" type="text/css" />
+	<script type="text/javascript" src="${pageContext.request.contextPath}/js/dtree.js"></script>
+	<script type="text/javascript">
+		<!--
+		d = new dTree('d');
+		d.add(0,-1,'系统菜单树');
+		d.add(2,0,'管理系统','${pageContext.request.contextPath}/login/welcome.jsp','','mainFrame');
+		
+		//子目录添加
+		d.add(3,2,'人员管理','${pageContext.request.contextPath}/person?method=list&currentPage=1','','mainFrame');
+
+		
+		document.write(d);
+		//-->
+	</script>
+</div>	</td>
+  </tr>
+</table>
+</body>
+</html>

+ 87 - 0
WebRoot/login/login.jsp

@@ -0,0 +1,87 @@
+<%@ page language="java" pageEncoding="UTF-8"%>
+<script type="text/javascript">
+function ini(){
+   document.form1.logonName.focus();
+}
+</script>
+
+<html>
+	<head>
+		<meta http-equiv="Content-Language" content="zh-cn">
+		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+		<title></title>
+		<link href="${pageContext.request.contextPath}/css/Style.css" rel="stylesheet" type="text/css">
+	</head>
+
+	<body onload="ini()">
+		<table style="background-color: #FFFFFF" width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
+			<tr>
+				<td align="center">
+					<table width="452" height="290" border="0" cellpadding="0" cellspacing="0">
+						<tr>
+							<td bgcolor="#FFFFFF">
+								<table width="452" height="290" border="0" cellpadding="0" cellspacing="0">
+									<tr>
+										<td height="74">
+											<img width="100%" height="74px" src="${pageContext.request.contextPath}/images/logintitle.gif">
+										</td>
+									</tr>
+									<tr>
+										<td align="center" valign="bottom" background="${pageContext.request.contextPath}/images/loginbg.gif">
+											<form id="loginAction_home" name="form1" action="${pageContext.request.contextPath}/person?method=login" target="_parent" method="post">
+												<table border="0" align="center" cellpadding="2" cellspacing="0">
+													<tr>
+														<td>&nbsp;</td>
+													</tr>
+													<tr align="center">
+													
+														<td height="30" colspan="2" style="border-bottom: 1px dotted #cccccc">
+															<strong style="font-size: 14px;">请登录</strong>
+														</td>
+													</tr>
+													<tr>
+														<td height="30" nowrap>
+															<font color="000F60"><strong>用户名:</strong> </font>
+														</td>
+														<td>
+															<input type="text" name="username" value="" id="logonName" class="text" style="width: 160px;"/>
+														</td>
+													</tr>
+													<tr>
+														<td height="30" nowrap>
+															<strong><font color="000F60">密码: </font> </strong>
+														</td>
+														<td>
+															<input type="password" name="password" id="logonPwd" class="text" style="width: 160px;"/>
+														</td>
+													</tr>
+													<tr>
+														<td height="30" nowrap colspan="2">
+															<strong><font color="red"></font> </strong>
+														</td>
+													</tr>
+													<tr>
+														<td height="30">
+														</td>
+														<td>
+															<input type="submit" name="submit" value="&#30331;&#24405;" class="buttoninput"/>
+															<a href="${pageContext.request.contextPath}/login/register.jsp"><input type="button" name="register" value="注册"></a>
+															<input type="reset" name="reset" value="&#21462;&#28040;" class="buttoninput"/>
+
+														</td>
+													</tr>
+												</table>
+											</form>
+										</td>
+									</tr>
+
+								</table>
+							</td>
+						</tr>
+					</table>
+				</td>
+			</tr>
+		</table>
+	</body>
+</html>
+

+ 92 - 0
WebRoot/login/register.jsp

@@ -0,0 +1,92 @@
+<%@ page language="java" pageEncoding="UTF-8"%>
+
+
+<html>
+	<head>
+		<meta http-equiv="Content-Language" content="zh-cn">
+		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+		<title></title>
+		<link href="${pageContext.request.contextPath}/css/Style.css" rel="stylesheet" type="text/css">
+		<script type="text/javascript">
+		function ini(){
+		   document.form1.logonName.focus();
+			if(${p.getId()} == -1){
+				alert("此用户名已被使用,请重新注册");
+			}
+		}
+</script>
+	</head>
+
+	<body onload="ini()">
+		<table style="background-color: #FFFFFF" width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
+			<tr>
+				<td align="center">
+					<table width="452" height="390" border="0" cellpadding="0" cellspacing="0">
+						<tr>
+							<td bgcolor="#FFFFFF">
+								<table width="452" height="390" border="0" cellpadding="0" cellspacing="0">
+									<tr>
+										<td height="74">
+											<img width="100%" height="74px" src="${pageContext.request.contextPath}/images/logintitle.gif">
+										</td>
+									</tr>
+									<tr>
+										<td align="center" valign="bottom" style="border: 1px solid dodgerblue;">
+											<form id="loginAction_home" name="form1" action="${pageContext.request.contextPath}/person?method=register" target="_parent" method="post">
+												<table border="0" align="center" cellpadding="2" cellspacing="0">
+													<tr>
+														<td>&nbsp;</td>
+													</tr>
+													<tr align="center">
+														<td height="30" colspan="2" style="border-bottom: 1px dotted #cccccc">
+															<strong style="font-size: 14px;">请注册</strong>
+														</td>
+													</tr>
+<tr>
+	<td height="30" nowrap>
+		<font color="000F60"><strong>用户名:</strong> </font>
+	</td>
+	<td>
+		<input type="text" name="username" value="" id="logonName" class="text" style="width: 160px;"/>
+	</td>
+</tr>
+<tr>
+	<td height="30" nowrap>
+		<strong><font color="000F60">密码: </font> </strong>
+	</td>
+	<td>
+		<input type="password" name="password" id="logonPwd" class="text" style="width: 160px;"/>
+	</td>
+</tr>
+
+
+													<tr>
+														<td height="30" nowrap colspan="2">
+															<strong><font color="red"></font> </strong>
+														</td>
+													</tr>
+													<tr>
+														<td height="30">
+														</td>
+														<td>
+															<input type="submit" name="submit" value="注册" class="buttoninput"/>
+
+															<input type="reset" name="reset" value="&#21462;&#28040;" class="buttoninput"/>
+
+														</td>
+													</tr>
+												</table>
+											</form>
+										</td>
+									</tr>
+
+								</table>
+							</td>
+						</tr>
+					</table>
+				</td>
+			</tr>
+		</table>
+	</body>
+</html>
+

+ 108 - 0
WebRoot/login/top.jsp

@@ -0,0 +1,108 @@
+<%@ page language="java" pageEncoding="UTF-8"%>
+<html>
+	<head>
+		<meta http-equiv="Content-Language" content="zh-cn">
+		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+		<style type="text/css">
+BODY {
+	MARGIN: 0px;
+	BACKGROUND-COLOR: #ffffff
+}
+
+BODY {
+	FONT-SIZE: 12px;
+	COLOR: #000000
+}
+
+TD {
+	FONT-SIZE: 12px;
+	COLOR: #000000
+}
+
+TH {
+	FONT-SIZE: 12px;
+	COLOR: #000000
+}
+</style>
+		<link href="${pageContext.request.contextPath}/css/Style.css" rel="stylesheet" type="text/css">
+	</HEAD>
+	<body>
+		<table width="100%" height="70%"  border="0" cellspacing="0" cellpadding="0">
+			<tr>
+				<td>
+					<img width="100%" src="${pageContext.request.contextPath}/images/top_01.jpg">
+				</td>
+
+				<td width="100%" background="${pageContext.request.contextPath}/images/top_100.jpg">
+				</td>
+			</tr>
+		</table>
+		<table width="100%" border="0" cellspacing="0" cellpadding="0">
+			<tr>
+				<td height="30" valign="bottom" background="${pageContext.request.contextPath}/images/mis_01.jpg">
+					<table width="100%" border="0" cellspacing="0" cellpadding="0">
+						<tr>
+							<td width="85%" align="left">
+							&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
+								<font color="#000000"> <script language="JavaScript">
+<!--
+tmpDate = new Date();
+date = tmpDate.getDate();
+month= tmpDate.getMonth() + 1 ;
+year= tmpDate.getYear();
+document.write(year);
+document.write("年");
+document.write(month);
+document.write("月");
+document.write(date);
+document.write("日 ");
+
+myArray=new Array(6);
+myArray[0]="星期日"
+myArray[1]="星期一"
+myArray[2]="星期二"
+myArray[3]="星期三"
+myArray[4]="星期四"
+myArray[5]="星期五"
+myArray[6]="星期六"
+weekday=tmpDate.getDay();
+if (weekday==0 | weekday==6)
+{
+document.write(myArray[weekday])
+}
+else
+{document.write(myArray[weekday])
+};
+// -->
+									</script> </font>
+							</td>
+							<td width="15%">
+								<table width="100%" border="0" cellspacing="0" cellpadding="0">
+									<tr>
+										<td width="16"
+											background="${pageContext.request.contextPath}/images/mis_05b.jpg">
+											<img
+												src="${pageContext.request.contextPath}/images/mis_05a.jpg"
+												width="6" height="18">
+										</td>
+										<td width="155" valign="bottom"
+											background="${pageContext.request.contextPath}/images/mis_05b.jpg">
+											管理员:
+											<font color="blue">${person.username }</font>
+										</td>
+										<td width="10" align="right"
+											background="${pageContext.request.contextPath}/images/mis_05b.jpg">
+											<img src="${pageContext.request.contextPath}/images/mis_05c.jpg" width="6" height="18">
+										</td>
+									</tr>
+								</table>
+							</td>
+							<td align="right" width="5%">
+							</td>
+						</tr>
+					</table>
+				</td>
+			</tr>
+		</table>
+	</body>
+</HTML>

+ 48 - 0
WebRoot/login/welcome.jsp

@@ -0,0 +1,48 @@
+<%@ page language="java" pageEncoding="UTF-8"%>
+<html>
+	<head>
+		<meta http-equiv="Content-Language" content="zh-cn">
+		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+<link href="${pageContext.request.contextPath}/css/Style.css" type="text/css" rel="stylesheet" />
+<style type="text/css">
+<!--
+body {
+	background-color: #FFFFFF;
+	margin-left: 0px;
+	margin-top: 0px;
+	margin-right: 0px;
+	margin-bottom: 0px;
+}
+body,td,th {
+	color: #000000;
+}
+-->
+    </style>
+<style>
+BODY {SCROLLBAR-FACE-COLOR: #cccccc; SCROLLBAR-HIGHLIGHT-COLOR: #ffffFF; SCROLLBAR-SHADOW-COLOR: #ffffff; SCROLLBAR-3DLIGHT-COLOR: #cccccc; SCROLLBAR-ARROW-COLOR:  #ffffff; SCROLLBAR-TRACK-COLOR: #ffffFF; SCROLLBAR-DARKSHADOW-COLOR: #cccccc; }
+</style>
+</head>
+
+<body>
+
+<form name="Form1" method="post" action="name.aspx" id="Form1">
+
+	<table width="100%" border="0" height="88" border="1" background="${pageContext.request.contextPath}/images/back1.JPG">
+		<tr>
+			<td colspan=3 class="ta_01" align="center" bgcolor="#afd1f3"><strong>系统首页</strong></td>
+		</tr>
+
+		<tr>
+			<td width="65%" height="84" align="center" valign="top" >
+				<span class="Style1">登录成功!</span>
+			</td>
+		</tr>
+		<tr><td height=2></td></tr>
+	
+	</table>
+
+	</form>
+
+</body>
+
+</html>