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

📄 login.jsp

📁 医药供应链管理系统
💻 JSP
字号:
<%@ page language="java" import="java.util.*" pageEncoding="GB2312"%>
<%
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>
    
    <title>DZ - 医药ERP网络分销管理系统 - 登录...</title>
    
	<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">
	-->
<style type="text/css">
.btnStyleG1 { BORDER-RIGHT:0px;BORDER-TOP:0px;BACKGROUND-IMAGE:url(../images/login/go.gif);BORDER-LEFT:0px;WIDTH:69px;CURSOR:hand;BORDER-BOTTOM:0px;HEIGHT:21px }
.btnStyleC1 { BORDER-RIGHT:0px;BORDER-TOP:0px;BACKGROUND-IMAGE:url(../images/login/exit.gif);BORDER-LEFT:0px;WIDTH:69px;CURSOR:hand;BORDER-BOTTOM:0px;HEIGHT:21px }
.btnStyleG2 { BORDER-RIGHT:0px;BORDER-TOP:0px;BACKGROUND-IMAGE:url(../images/login/godisabled.gif);BORDER-LEFT:0px;WIDTH:69px;CURSOR:hand;BORDER-BOTTOM:0px;HEIGHT:21px }
.btnStyleC2 { BORDER-RIGHT:0px;BORDER-TOP:0px;BACKGROUND-IMAGE:url(../images/login/exitdisabled.gif);BORDER-LEFT:0px;WIDTH:69px;CURSOR:hand;BORDER-BOTTOM:0px;HEIGHT:21px }
.Style1 {
	border: none;
}
.code
{
background-image:url(code.jpg);
font-family:Arial;
font-style:italic;
color:blue;
border:0;
padding:2px 3px;
letter-spacing:3px;
font-weight:bolder;
}
.unchanged
{
	border:0;
}
.style3 {
	font-size: 12px;
	color: #FF0000;
}
</style>
<script language="javascript" type="text/javascript">
function over1(){
	var a1 = document.getElementById("login");
	a1.className="btnStyleG2";
}
function out1(){
	var a2 = document.getElementById("login");
	a2.className="btnStyleG1";
}
function over2(){
	var b1 = document.getElementById("exit");
	b1.className="btnStyleC2";
}
function out2(){
	var b2 = document.getElementById("exit");
	b2.className="btnStyleC1";
}
</script>
<script language="javascript" type="text/javascript">
var code ; //在全局 定义验证码
function createCode(){ 
	code = "";
	var codeLength = 6;//验证码的长度
	var checkCode = document.getElementById("code");
	var selectChar = new Array(0,1,2,3,4,5,6,7,8,9);//所有候选组成验证码的字符,也可以用中文的
	for(var i=0;i<codeLength;i++){
		var charIndex = Math.floor(Math.random()*10);
		code +=selectChar[charIndex];
	}
	// alert(code);
	if(checkCode){
		checkCode.className="code";
		checkCode.value = code;
	}
}
function log(){
	var username = document.getElementById("l_username");
	var password = document.getElementById("l_password");
	var chcode = document.getElementById("checkcode");
	if(username.value.length <= 0){
		window.alert("请输入用户登录名!");
		form1.l_username.focus();
		return false;
	}
	if(password.value.length <= 0){
		window.alert("请输入用户登录密码!");
		form1.l_password.focus();
		return false;
	}
	if(chcode.value.length <= 0){
		window.alert("请输入右边的验证码!");
		form1.checkcode.focus();
		return false;
	}
	if(chcode.value != code){
		window.alert("验证码输入错误!");
		form1.checkcode.focus();
		//createCode();//刷新验证码
		return false;
	}
}
function load(){
	var xx = (window.screen.width - 428)/2;
	var yy = (window.screen.height - 280)/2;
	window.moveTo(xx,yy);
	createCode();
}
</script>
  </head>
  
  <body topmargin="0" leftmargin="0" rightmargin="0" onload="load()">
  <form name="form1" method="post" action="../login.do">
  <table border="0" cellpadding="0" cellspacing="0" width="428" id=logintable style="margin:0px">
  <tr>
   <td><img src="../images/login/spacer.gif" width="96" height="1" border="0" alt=""></td>
   <td><img src="../images/login/spacer.gif" width="25" height="1" border="0" alt=""></td>
   <td><img src="../images/login/spacer.gif" width="30" height="1" border="0" alt=""></td>
   <td><img src="../images/login/spacer.gif" width="39" height="1" border="0" alt=""></td>
   <td><img src="../images/login/spacer.gif" width="48" height="1" border="0" alt=""></td>
   <td><img src="../images/login/spacer.gif" width="69" height="1" border="0" alt=""></td>
   <td><img src="../images/login/spacer.gif" width="24" height="1" border="0" alt=""></td>
   <td><img src="../images/login/spacer.gif" width="97" height="1" border="0" alt=""></td>
   <td style="width: 2px"><img src="../images/login/spacer.gif" width="1" height="1" border="0" alt=""></td>
  </tr>

  <tr>
   <td colspan="8"><img name="login_r1_c1" src="../images/login/login_r1_c1.jpg" width="428" height="118" border="0" alt=""></td>
   <td style="width: 2px"><img src="../images/login/spacer.gif" width="1" height="118" border="0" alt=""></td>
  </tr>
  <tr>
   <td><img name="login_r2_c1" src="../images/login/login_r2_c1.jpg" width="96" height="20" border="0" alt=""></td>
   <td colspan="2" style="background-image:url(../images/login/login_r2_c2.jpg)" class="cssTitle">
       <span style="font-size: 10pt; font-family: 宋体">登录名:</span></td>
   <td colspan="4" background="../images/login/login_r2_c2.jpg"><input name="l_username" type="text" id="l_username" class="Style1" style="width: 150px;height: 18px;text-align: center;"></td>
   <td><img name="login_r2_c8" src="../images/login/login_r2_c8.jpg" width="97" height="20" border="0" alt=""></td>
   <td style="width: 2px"><img src="../images/login/spacer.gif" width="1" height="20" border="0" alt=""></td>
  </tr>
  <tr>
   <td colspan="8" style="height: 2px"><img name="login_r3_c1" src="../images/login/login_r3_c1.jpg" width="428" height="5" border="0" alt=""></td>
   <td style="height: 2px; width: 2px;"><img src="../images/login/spacer.gif" width="1" height="5" border="0" alt=""></td>
  </tr>
  <tr>
   <td><img name="login_r4_c1" src="../images/login/login_r4_c1.jpg" width="96" height="20" border="0" alt=""></td>
   <td colspan="2" style="background-image:url(../images/login/login_r4_c2.jpg)" class="cssTitle">
       <span style="font-size: 10pt; font-family: 宋体">密&nbsp;&nbsp;码:</span></td>
   <td colspan="4" background="../images/login/login_r4_c2.jpg"><input name="l_password" type="password" id="l_password" class="Style1" style="width: 150px;height: 18px;text-align: center;"></td>
   <td><img name="login_r4_c8" src="../images/login/login_r4_c8.jpg" width="97" height="20" border="0" alt=""></td>
   <td style="width: 2px"><img src="../images/login/spacer.gif" width="1" height="20" border="0" alt=""></td>
  </tr>
  <tr>
   <td colspan="8"><img name="login_r5_c1" src="../images/login/login_r5_c1.jpg" width="428" height="5" border="0" alt=""></td>
   <td style="width: 2px"><img src="../images/login/spacer.gif" width="1" height="5" border="0" alt=""></td>
  </tr>
  <tr>
   <td><img name="login_r6_c1" src="../images/login/login_r6_c1.jpg" width="96" height="20" border="0" alt=""></td>
   <td colspan="2" style="background-image:url(../images/login/login_r6_c2.jpg)" class="cssTitle">
       <span style="font-size: 10pt; font-family: 宋体">验证码:</span></td>
   <td colspan="4" background="../images/login/login_r6_c2.jpg"><input name="checkcode" type="text" id="checkcode" size="6" class="Style1" style="text-align: center;">
      <input type="text" id="code" class="unchanged" style="width: 66px; cursor:hand; background-image:url(../images/login/code.gif)" readonly onClick="createCode()" /></td>
   <td><img name="login_r6_c8" src="../images/login/login_r6_c8.jpg" width="97" height="20" border="0" alt=""></td>
   <td style="width: 2px"><img src="../images/login/spacer.gif" width="1" height="20" border="0" alt=""></td>
  </tr>
  <tr>
   <td colspan="8"><img name="login_r7_c1" src="../images/login/login_r7_c1.jpg" width="428" height="5" border="0" alt=""></td>
   <td style="width: 2px"><img src="../images/login/spacer.gif" width="1" height="5" border="0" alt=""></td>
  </tr>
  <tr>
    <td colspan="8" style="text-align: center"><span class="style3">
        <%if(session.getAttribute("error") != null){ %>
        <%= session.getAttribute("error").toString() %>
        <%} %>
    </span></td>
    <td style="width: 2px"><img src="../images/login/spacer.gif" width="1" height="27" border="0" alt=""></td>
  </tr>
  <tr>
   <td colspan="2"><img name="login_r10_c1" src="../images/login/login_r10_c1.jpg" width="121" height="21" border="0" alt=""></td>
   <td colspan="2"><input name="login" type="submit" class="btnStyleG1" id="login" onMouseOver="over1()" onMouseOut="out1()" value="" onClick="return log()"></td>
   <td><img name="login_r10_c5" src="../images/login/login_r10_c5.jpg" width="48" height="21" border="0" alt=""></td>
   <td><input name="exit" type="button" class="btnStyleC1" id="exit" value="" onclick="window.close();" onMouseOver="over2()" onMouseOut="out2()"></td>
   <td colspan="2"><img name="login_r10_c7" src="../images/login/login_r10_c7.jpg" width="121" height="21" border="0" alt=""></td>
   <td style="width: 2px"><img src="../images/login/spacer.gif" width="1" height="21" border="0" alt=""></td>
  </tr>
  <tr>
   <td colspan="8"><img name="login_r11_c1" src="../images/login/login_r11_c1.jpg" width="428" height="21" border="0" alt=""></td>
   <td style="width: 2px"><img src="../images/login/spacer.gif" width="1" height="21" border="0" alt=""></td>
  </tr>
</table>
  </form>
  </body>
</html>

⌨️ 快捷键说明

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