?? index.jsp
字號:
<%@ page language="java" contentType="text/html; charset=GBK"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles" %>
<script language="javascript">
function getCode(){
var imageobj = document.getElementById("image");
imageobj.src = "${pageContext.request.contextPath}/image/img2.jsp";
}
function acheckForm(){
var username=document.getElementById("username").value
var password=document.getElementById("password").value
var code=document.getElementById("code").value
if(password==null||password=="")
{
alert("密碼不能為空");
}else
if(username==null||username=="")
{
alert("用戶帳號不能為空");
}else
if(code==null||code=="")
{
alert("真實姓名不能為空");
}
else
{
form1.submit();
}
}
</script>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="Cache-Control" content="no-cache, must-revalidate" />
<meta http-equiv="expires" content="Wed, 26 Feb 1970 08:21:57 GMT" />
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<title>用戶登陸</title>
<link href="${pageContext.request.contextPath}/image/main.css" rel="stylesheet" type="text/css">
</head>
<body style="margin: 0px" style='overflow-x:hidden' style='overflow-y:hidden'>
<html:form action="/loging" method="post" styleId="form1">
<table width="1024" height="600" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="center" valign="middle" nowrap background="${pageContext.request.contextPath}/image/login.JPG"><table width="39%" border="0" align="right" cellpadding="0" cellspacing="0">
<tr>
<td width="75"> </td>
<td width="51"> </td>
<td width="59"> </td>
<td width="85"> </td>
<td width="129"> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td colspan="5"> </td>
</tr>
<tr>
<td width="65" height="30" align="right" valign="middle" nowrap><strong>員工ID:</strong></td>
<td height="30" colspan="2" nowrap>
<html:text property="username" size="15"/></td>
<td width="85" height="30" align="center" valign="middle" nowrap>
<input type="hidden" name="tag" value="check">
<img src="${pageContext.request.contextPath}/image/310b.jpg" width="65" height="30" border="0" class="handcur" onClick="acheckForm();"> </td>
<td height="30"> </td>
</tr>
<tr>
<td width="65" height="30" align="right" valign="middle" nowrap><strong>密 碼:</strong></td>
<td height="30" colspan="2" nowrap>
<html:password property="password" styleId="myP" size="15"/></td>
<td height="30" align="center" valign="middle" nowrap> </td>
<td height="30"> </td>
</tr>
<tr>
<td width="65" height="30" align="right" valign="middle" nowrap><strong>驗證碼:</strong></td>
<td height="30" nowrap>
<html:text property="code" size="5"/></td>
<td height="30" nowrap>
<img id="image" src="${pageContext.request.contextPath}/image/img2.jsp"> </td>
<td height="30" align="left" valign="middle" nowrap><a href="#" class="STYLE4" onClick="getCode(); return false;">看不清換一張</a> </td>
<td height="30"> </td>
</tr>
<tr>
<td> </td>
<td height="25"> </td>
<td height="25"> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
</table></td>
</tr>
</table>
</html:form>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -