日期:2014-05-17 浏览次数:20734 次
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<html>
<head>
<title>欢迎登陆</title>
<%@ include file="/WEB-INF/jsp/public/public.jspf" %>
<link rel="stylesheet" type="text/css" href="style/css/login.css" />
<script type="text/javascript">
$(function(){
$("btn").click(function(){
if($("#user_no").val() == ""){
alert("登录名不能为空");
}else{
if($("#user_password").val() == ""){
alert("密码不能为空");
}else{
$("form:first").submit();
}
}
});
});
</script>
</head>
<body class="body">
<s:form action="user_login.action">
<div class="div" align="center">
<input type="text" class="input_text" id="user_no" name="userNo" value="" size=32/><br/><br/>
<input type="password" class="input_text" id="user_password" name="userPassword" value="" size=33/>
</div>
<div class="div2" align="center">
<input type="image" id="btn" class="input_image" src="style/images/sign_in.gif" />
<font color="red"><s:fielderror/></font>
</div>
</s:form>
</body>
</html>