| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160 |
- <%@ page contentType="text/html;charset=GBK"%>
- <html>
- <head>
- <title>F1jFrameWork Java快速业务实现平台-控制台</title>
- <meta http-equiv="Content-Type" content="text/html; charset=GBK">
- <link rel="stylesheet" type="text/css" href="/shares/resources/css/easyui/themes/default/easyui.css">
- <link rel="stylesheet" type="text/css" href="/shares/resources/css/easyui/themes/icon.css">
- <script src="/shares/js/jquery.js" type="text/javascript"></script>
- <script src="/shares/js/jquery.cookie.js" type="text/javascript"></script>
- <script type="text/javascript" src="/shares/js/constant.js"></script>
- <SCRIPT LANGUAGE="JavaScript" SRC="/shares/js/chkutil.js"></SCRIPT>
- <SCRIPT LANGUAGE="JavaScript" SRC="/shares/js/strUtil.js"></SCRIPT>
- <SCRIPT LANGUAGE="JavaScript" SRC="/shares/js/form-zh-CN.js"></SCRIPT>
- <SCRIPT LANGUAGE="JavaScript" SRC="/shares/js/form.js"></SCRIPT>
- <script type="text/javascript" src="/shares/js/plug-in/jquery.easyui.min.js"></script>
- <script type="text/javascript">
- $(function() {
- if( $.cookie('username') ){
- $("#login_no").val( $.cookie('username') );
- }
- if( $.cookie('cssfile') ){
- //$("#mySel").val( $.cookie('cssfile') );
- }
- });
- </script>
- <script language="JavaScript">
- var loginwin=null;
- function openWin() {
- var url = window.location.href;
- url = url.substring(0, url.lastIndexOf("/"));
- url = url+"/main.jsp";
- window.location.href = url;
-
- }
- function checkButton() {
- if(event.keyCode==13)
- submitForm();
- }
- function login(){
- $.ajax({
- type:'GET',
- dataType:'string',
- url:'Login.do?user='+$("#user").val()+'&pass='+$("#pass").val()+"&code="+$("#verify_code").val()+"&mySel="+$("#mySel").val(),
- cache:false,
- error:function(data){
- $("#msg").html("登录失败!");
- },
- success:function(data){
- if (data=="ok")
- {
- $("#msg").html("登录成功!系统正在打开窗口...,本页5秒后自动关闭");
- $("#pass").val("");
- openWin();
- if($("#check")[0].checked){
- $.cookie('username', $("#login_no").val() , { path: '/', expires: 10 });
- $.cookie('cssfile', $("#mySel").val() , { path: '/', expires: 10 });
- }else{
- $.cookie('username', null, { path: '/' });
- $.cookie('cssfile', null, { path: '/' });
- }
- //window.close();
- }
- else
- {
- $("#msg").html("登录失败!");
- }
- }
- })
- }
- function submitForm(){
- if (!validForm())
- {
- return "";
- }
- else
- {
- login();
- }
- }
- //-->
- </script>
- <style type="css/text">
- body{background:#73CFF1 url(index-bg.jpg) no-repeat;}
- </style>
- </head>
- <body onkeypress="checkButton(); if(event.keyCode==13) return(false);">
- <form name="login_form" id="login_form" method="post" action="Login.do" target="f1jeeadmin">
- <input name="forward" type="hidden" value="main.html">
- <div class="easyui-layout" style="margin: auto;width:100%;height:100%;">
- <div region="north" border="false" style="overflow:hidden;height:100px;color:#fff;background:#000;">
- <h2>F1jFrameWork Java快速业务实现平台->控制台->登录</h2>
- </div>
- <div region="south" style="height:60px;color:#fff;background:#000;">
- <li>快船,版权所有,Copyright2009-2010</li>
- <li>基于F1JEEFrameWork平台构建</li>
- <li>技术支持f1jee.com.cn</li>
- </div>
- <div region="west" border="false" style="width:400px;">
- <div style="margin-left:300px;">
- <li>
- <img src="login.png"></img>
- </li>
- <li>
- </li>
- </div>
- </div>
- <div region="center" border="false" style="overflow:hidden;border-left:1px solid #eee;">
- <div style="margin:10px;">
- <table border="0" cellpadding="0" cellspacing="0" margin="10px;">
- <tr>
- <td><label>用 户</label></td>
- <td><div align="left">
- <input type="text" name="user" id="user" maxlength="20" value="" style="width:160px;height:28px;font-size:14px" required="true" validType="length[4,10]" >
- </div></td>
- </tr>
- <tr>
- <td><label>口 令</div></label></td>
- <td><div align="left">
- <input type="password" name="pass" id="pass" value="" style="width:160px;height:28px;font-size:14px" required="true" validType="length[4,10]" >
- </div></td>
- </tr>
- <tr>
- <td><label>验证码</label></td>
- <td><div align="left">
- <input name="verify_code" type="text" id="verify_code" value="0000" style="width:160px;height:28px;font-size:14px" required="true" validType="length[4,10]" >
- </div>
- <div align="left">
- <img src="${pageContext.request.contextPath}/verifycode" border="0"/>
- </div>
- </td>
- </tr>
- <tr>
- <td><label>外 观</label></td>
- <td><div align="left">
- <select name="mySel" id="mySel">
- <option selected value=1>缺省外观偏好</option>
- <option value=1>蓝-天台</option>
- <option value=2>绿-绿野</option>
- <option value=3>黄-甜蜜橙</option>
- </select>
-
-
- </div></td>
- </tr>
- <tr>
- <td><label>记住我</label></td>
- <td><input type="checkbox" name="check" id="check"/></td>
- </tr>
- <tr><td></td><td><div><input type='button' value="立即登录" onclick="javascript:submitForm();return(false);" style="font:bold 12pt;height:40px;"></div></td></tr>
- <tr><td colspan=2><div id="msg"></div></td></tr>
- </table>
- </div>
- </div>
- </div>
- </form>
- </body>
|