index.jsp
上传用户:jhtang88
上传日期:2014-01-27
资源大小:28528k
文件大小:5k
源码类别:

Jsp/Servlet

开发平台:

Java

  1. <%@ page contentType="text/html; charset=utf-8"%>
  2. <%@ taglib uri="/WEB-INF/tlds/LabelTag.tld" prefix="lt" %>
  3. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  4. <HTML><HEAD><TITLE><%=cn.js.fan.web.Global.AppName%> - <lt:Label res="res.label.blog.admin.index" key="title"/></TITLE>
  5. <META http-equiv=Content-Type content="text/html; charset=utf-8"><LINK 
  6. href="images/admin.css" type=text/css rel=stylesheet>
  7. <STYLE>BODY {
  8. BACKGROUND-COLOR: #ffffff
  9. }
  10. TR {
  11. BACKGROUND-COLOR: #ffffff
  12. }
  13. .tr_val {
  14. BACKGROUND-COLOR: #fdfdfd
  15. }
  16. .input_login {
  17. BORDER-RIGHT: #ffffff 0px solid; BORDER-TOP: #ffffff 0px solid; FONT-SIZE: 9pt; BORDER-LEFT: #ffffff 0px solid; BORDER-BOTTOM: #ffffff 0px solid; HEIGHT: 16px
  18. }
  19. .input_val {
  20. BORDER-RIGHT: #ffffff 0px solid; BORDER-TOP: #ffffff 0px solid; FONT-SIZE: 9pt; BORDER-LEFT: #ffffff 0px solid; BORDER-BOTTOM: #c0c0c0 1px solid; HEIGHT: 16px; BACKGROUND-COLOR: #fdfdfd
  21. }
  22. </STYLE>
  23. <SCRIPT language=javascript src="images/admin.js"></SCRIPT>
  24. <SCRIPT language=javascript src="images/joekoe_select.js"></SCRIPT>
  25. <META content="MSHTML 6.00.3790.259" name=GENERATOR></HEAD>
  26. <BODY leftMargin=0 topMargin=0>
  27. <jsp:useBean id="login" scope="page" class="cn.js.fan.security.Login"/>
  28. <%
  29. login.initlogin(request,"redmoon");
  30. %>
  31. <CENTER>
  32. <TABLE height="96%" width="100%" border=0>
  33.   <TBODY>
  34.   <TR>
  35.     <TD align=middle width="100%" height="100%">
  36.       <TABLE height="96%" width=350 border=0>
  37.         <TBODY>
  38.         <TR>
  39.           <TD align=middle>
  40.             <TABLE cellSpacing=0 cellPadding=0 width=526 border=0>
  41.               <FORM name=admin_frm action=login.jsp method=post><INPUT type=hidden 
  42.               value=ok name=admin_log> 
  43.               <TBODY>
  44.               <TR>
  45.                 <TD colSpan=2><IMG src="images/al_top.gif" 
  46.                   border=0></TD></TR>
  47.               <TR>
  48.                 <TD colSpan=2>
  49.                   <TABLE cellSpacing=0 cellPadding=0 width=526 border=0>
  50.                     <TBODY>
  51.                     <TR>
  52.                       <TD width=155><IMG 
  53.                         src="images/al_username.gif" border=0></TD>
  54.                       <TD width=105 
  55.                       background="images/al_body_bg.gif"><INPUT 
  56.                         class=input_login maxLength=20 size=15 onmouseover=this.focus() 
  57.                         name=username value=""></TD>
  58.                       <TD width=93><IMG 
  59.                         src="images/al_password.gif" border=0></TD>
  60.                       <TD width=105 
  61.                       background="images/al_body_bg.gif"><INPUT 
  62.                         class=input_login type=password 
  63.                         maxLength=20 size=15 name=pwd value=""></TD>
  64.                       <TD width=68><IMG 
  65.                         src="images/al_body_right.gif" 
  66.                     border=0></TD></TR></TBODY></TABLE></TD></TR>
  67.               <TR>
  68.                 <TD colSpan=2>
  69.                   <TABLE cellSpacing=0 cellPadding=0 width=526 border=0>
  70.                     <TBODY>
  71.                     <TR>
  72.                       <TD width=77><IMG 
  73.                         src="images/al_end_left.gif" border=0></TD>
  74.                       <TD width=339>
  75.                         <TABLE cellSpacing=0 cellPadding=0 width=339 border=0>
  76.                           <TBODY>
  77.                           <TR>
  78.                             <TD align=middle 
  79.                             background="images/al_end_bg.gif" height=49>&nbsp;                              </TD>
  80.                           </TR>
  81.                           <TR>
  82.                             <TD><IMG src="images/al_end_end.gif" 
  83.                               border=0></TD></TR></TBODY></TABLE></TD>
  84.                       <TD width=110><input type="image" style="CURSOR: hand" 
  85.                         onclick="javascript:admin_login_chk()"  
  86.                         src="images/al_end_right.gif" 
  87.                     border=0></TD></TR></TBODY></TABLE></TD></TR></FORM></TABLE>
  88.             <SCRIPT language=javascript>
  89. <!--
  90. function admin_login_chk()
  91. {
  92.   var username=document.admin_frm.username.value;
  93.   var password=document.admin_frm.pwd.value;
  94.   if (username=="" || username==null)
  95.   {
  96.     alert("<lt:Label res="res.label.blog.admin.index" key="input_name"/>");
  97.     document.admin_frm.username.focus();
  98.     return;
  99.   }
  100.   if (password=="" || password==null)
  101.   {
  102.     alert("<lt:Label res="res.label.blog.admin.index" key="input_password"/>");
  103.     document.admin_frm.password.focus();
  104.     return;
  105.   }
  106.   document.admin_frm.submit();
  107. }
  108. document.admin_frm.username.focus();
  109. -->
  110. </SCRIPT>
  111.           </TD></TR></TABLE></TD></TR></TBODY></TABLE></CENTER></BODY></HTML>