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

Jsp/Servlet

开发平台:

Java

  1. <%@ page contentType="text/html;charset=utf-8"%>
  2. <%@ page import="com.redmoon.forum.person.*"%>
  3. <%@ page import="cn.js.fan.util.*"%>
  4. <%@ taglib uri="/WEB-INF/tlds/LabelTag.tld" prefix="lt" %>
  5. <%
  6. String skincode = UserSet.getSkin(request);
  7. if (skincode.equals(""))
  8. skincode = UserSet.defaultSkin;
  9. SkinMgr skm = new SkinMgr();
  10. Skin skin = skm.getSkin(skincode);
  11. if (skin==null)
  12. skin = skm.getSkin(UserSet.defaultSkin);
  13. String skinPath = skin.getPath();
  14. %>
  15. <html>
  16. <head>
  17. <title><%=Global.AppName%> - <lt:Label res="res.label.door" key="login"/></title>
  18. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  19. <LINK href="forum/<%=skinPath%>/skin.css" type=text/css rel=stylesheet>
  20. <style type="text/css">
  21. <!--
  22. body {
  23. margin-top: 0px;
  24. margin-left: 0px;
  25. margin-right: 0px;
  26. }
  27. .style1 {
  28. color: #FFFFFF;
  29. font-weight: bold;
  30. }
  31. .STYLE2 {color: #FFFFFF}
  32. -->
  33. </style></head>
  34. <body bgcolor="#FFFFFF" text="#000000">
  35. <%@ include file="forum/inc/header.jsp"%>
  36. <p>&nbsp;</p>
  37. <%
  38. String privurl = "";
  39. String targeturl = StrUtil.getNullString(request.getParameter("targeturl"));
  40. if (!targeturl.equals(""))
  41. privurl = targeturl;
  42. else
  43. privurl = StrUtil.getNullString(request.getParameter("privurl"));
  44. %>
  45. <table width="46%" height="155"  border="1" align="center" cellpadding="1" cellspacing="0" bordercolor="<%=skin.getTableBorderClr()%>">
  46.   <tr>
  47.     <td height="26" align="center" background="forum/<%=skinPath%>/images/bg1.gif" class="text_title"><lt:Label res="res.label.door" key="user_login"/></td>
  48.   </tr>
  49.   <tr>
  50.     <td><table width="88%" border="0" align="center" cellpadding="1" cellspacing="0" class="p9">
  51.       <form name=form1 action="login.jsp" method="post" onSubmit="return form1_onsubmit()">
  52.         <tr>
  53.           <td width="23%" height="22" align="left"><lt:Label res="res.label.door" key="user_name"/></td>
  54.           <td width="77%" height="22"><input name="name" style="width:120"></td>
  55.         </tr>
  56.         <tr>
  57.           <td height="22" align="left"><lt:Label res="res.label.door" key="pwd"/></td>
  58.           <td height="22"><input name=pwd type=password style="width:120"><input name="privurl" type="hidden" value="<%=privurl%>">          </td>
  59.         </tr>
  60. <%
  61.         com.redmoon.forum.Config cfg = new com.redmoon.forum.Config();
  62.         if (cfg.getBooleanProperty("forum.loginUseValidateCode")) {
  63. %>
  64.         <tr>
  65.           <td height="22" align="left"><lt:Label res="res.label.door" key="validate_code"/></td>
  66.           <td height="22"><input name="validateCode" type="text" size="1">
  67.             <img src='validatecode.jsp' border=0 align="absmiddle" style="cursor:hand" onClick="this.src='validatecode.jsp'" alt="<lt:Label res="res.label.forum.index" key="refresh_validatecode"/>"></td>
  68.         </tr>
  69. <%}%>
  70.         <tr>
  71.           <td height="22" align="left"><lt:Label res="res.label.door" key="save"/></td>
  72.           <td height="22"><select name="loginSaveDate">
  73.             <option value="<%=com.redmoon.forum.Privilege.LOGIN_SAVE_NONE%>" selected><lt:Label res="res.label.door" key="not_save"/></option>
  74.             <option value="<%=com.redmoon.forum.Privilege.LOGIN_SAVE_DAY%>"><lt:Label res="res.label.door" key="save_one_day"/></option>
  75.             <option value="<%=com.redmoon.forum.Privilege.LOGIN_SAVE_MONTH%>"><lt:Label res="res.label.door" key="save_one_month"/></option>
  76.             <option value="<%=com.redmoon.forum.Privilege.LOGIN_SAVE_YEAR%>"><lt:Label res="res.label.door" key="save_one_year"/></option>
  77.           </select>
  78. &nbsp; </td>
  79.         </tr>
  80.         <tr>
  81.           <td height="22" align="left"><lt:Label res="res.label.forum.index" key="login_hide"/></td>
  82.           <td height="22"><select name=covered>
  83.             <option value=0 selected type='checkbox' checked><lt:Label res="res.label.forum.index" key="login_not_hide"/></option>
  84.             <option value=1><lt:Label res="res.label.forum.index" key="login_hide"/></option>
  85.           </select></td>
  86.         </tr>
  87.         
  88.         <tr align="center">
  89.           <td height="35" colspan="3"><input type=submit value="<lt:Label res="res.label.forum.index" key="commit"/>">
  90.     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <input type="button" onClick="window.location.href='regist.jsp'" value="<lt:Label res="res.label.door" key="regist"/>"></td>
  91.         </tr>
  92.       </form>
  93.     </table></td>
  94.   </tr>
  95. </table>
  96. <p>&nbsp;</p>
  97. <%@ include file="forum/inc/footer.jsp"%>
  98. </body>
  99. <script language="javascript">
  100. <!--
  101. function form1_onsubmit()
  102. {
  103. errmsg = "";
  104. if (form1.name.value=="")
  105. errmsg += "<lt:Label res="res.label.door" key="input_name"/>n"
  106. if (form1.pwd.value=="")
  107. errmsg += "<lt:Label res="res.label.door" key="input_pwd"/>n"
  108. if (errmsg!="")
  109. {
  110. alert(errmsg);
  111. return false;
  112. }
  113. }
  114. //-->
  115. </script>
  116. </html>