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

Jsp/Servlet

开发平台:

Java

  1. <%@ page contentType="text/html;charset=utf-8"%>
  2. <%@ page import="cn.js.fan.util.*"%>
  3. <%@ page import="cn.js.fan.web.*"%>
  4. <%@ page import="com.redmoon.forum.*"%>
  5. <%@ page import="com.redmoon.forum.plugin.*"%>
  6. <%@ page import="com.redmoon.forum.ui.*"%>
  7. <%@ page import="com.redmoon.forum.person.*"%>
  8. <%@ taglib uri="/WEB-INF/tlds/LabelTag.tld" prefix="lt" %>
  9. <%
  10. String skincode = UserSet.getSkin(request);
  11. if (skincode.equals(""))
  12. skincode = UserSet.defaultSkin;
  13. SkinMgr skm = new SkinMgr();
  14. Skin skin = skm.getSkin(skincode);
  15. if (skin==null)
  16. skin = skm.getSkin(UserSet.defaultSkin);
  17. String skinPath = skin.getPath();
  18. %>
  19. <html>
  20. <head>
  21. <title><%=Global.AppName%></title>
  22. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  23. <link href="forum/<%=skinPath%>/skin.css" rel="stylesheet" type="text/css">
  24. </head>
  25. <body bgcolor="#FFFFFF" text="#000000">
  26. <%@ include file="forum/inc/header.jsp"%>
  27. <%
  28. String info = ParamUtil.get(request, "info");
  29. String op = ParamUtil.get(request, "op");
  30. String privurl = ParamUtil.get(request, "privurl");
  31. Privilege privilege = new Privilege();
  32. %>
  33. <br>
  34. <br>
  35. <table width=532 height="218" border=0 align="center" cellpadding=5 cellspacing=1>
  36.   <tr align="center" valign="middle">
  37.     <td height="25" colspan="4" background="forum/<%=skinPath%>/images/bg1.gif" class="text_title"><%=Global.AppName%> - <lt:Label res="res.label.info" key="info"/></td>
  38.   </tr>
  39.   <tr valign="middle"> 
  40.     <td colspan="4" align=left valign="top" bgcolor="#EFEFEF" style="line-height:150%"><table width="100%" border="0" align="center">
  41.       <tr>
  42.         <td><ul><li><%=info%></li>
  43. <%if (info.trim().equals(SkinUtil.LoadString(request, "pvg_invalid"))) {%>
  44. <BR><strong><lt:Label res="res.label.info" key="reason"/></strong><BR>
  45. <%if (!privilege.isUserLogin(request)) {%>
  46. <lt:Label res="res.label.info" key="not_login"/><BR>
  47. <%}%>
  48.    <lt:Label res="res.label.info" key="user_pvg_invalid"/><BR>
  49. <%}%>
  50. </ul></td>
  51.       </tr>
  52.     </table>
  53.       <%if (op.equals("login") || !privilege.isUserLogin(request)) {%>
  54.       <table width="90%" border="0" align="center" cellpadding="1" cellspacing="0" class="p9">
  55.         <form name=form1 action="login.jsp" method="post" onSubmit="return form1_onsubmit()" style="">
  56.           <tr>
  57.             <td width="20%" height="22" align="left"><lt:Label res="res.label.door" key="user_name"/></td>
  58.             <td width="80%" height="22"><input name="name" style="width:120"></td>
  59.           </tr>
  60.           <tr>
  61.             <td height="22" align="left"><lt:Label res="res.label.door" key="pwd"/></td>
  62.             <td height="22"><input name=pwd type=password style="width:120">
  63.                 <input name="privurl" type="hidden" value="<%=privurl%>">
  64.             </td>
  65.           </tr>
  66.           <tr>
  67.             <td height="22" align="left"><lt:Label res="res.label.door" key="validate_code"/></td>
  68.             <td height="22"><input name="validateCode" type="text" size="1">
  69.                 <img src='validatecode.jsp' border=0 align="absmiddle" onClick="this.src='validatecode.jsp'" style="cursor:hand"></td>
  70.           </tr>
  71.           <tr>
  72.             <td height="22" align="left"><lt:Label res="res.label.door" key="save"/></td>
  73.             <td height="22"><select name="loginSaveDate">
  74.               <option value="<%=com.redmoon.forum.Privilege.LOGIN_SAVE_NONE%>" selected>
  75.                 <lt:Label res="res.label.door" key="not_save"/>
  76.                 </option>
  77.               <option value="<%=com.redmoon.forum.Privilege.LOGIN_SAVE_DAY%>">
  78.                 <lt:Label res="res.label.door" key="save_one_day"/>
  79.                 </option>
  80.               <option value="<%=com.redmoon.forum.Privilege.LOGIN_SAVE_MONTH%>">
  81.                 <lt:Label res="res.label.door" key="save_one_month"/>
  82.                 </option>
  83.               <option value="<%=com.redmoon.forum.Privilege.LOGIN_SAVE_YEAR%>"><lt:Label res="res.label.door" key="save_one_year"/></option>
  84.             </select>              &nbsp; </td>
  85.           </tr>
  86.           <tr>
  87.             <td height="22" align="left"><lt:Label res="res.label.forum.index" key="login_hide"/></td>
  88.             <td height="22"><select name=covered>
  89.               <option value=0 selected type='checkbox' checked>
  90.                 <lt:Label res="res.label.forum.index" key="login_not_hide"/>
  91.                 </option>
  92.               <option value=1>
  93.                 <lt:Label res="res.label.forum.index" key="login_hide"/>
  94.                 </option>
  95.             </select></td>
  96.           </tr>
  97.           <tr align="center">
  98.             <td height="35" colspan="3"><input name="submit" type=submit value="<lt:Label res="res.label.forum.index" key="commit"/>">              &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  99.             <input name="button" type="button" onClick="window.location.href='regist.jsp'" value="<lt:Label res="res.label.door" key="regist"/>"></td>
  100.           </tr>
  101.         </form>
  102.       </table>
  103.       <%}else{%>
  104.       <table width="100%" border="0">
  105.         <tr>
  106.           <td><ul>
  107.               <li><a href="forum/index.jsp"><lt:Label res="res.label.info" key="back_to_home"/></a></li>
  108.           </ul></td>
  109.         </tr>
  110.       </table>
  111.     <%}
  112. %></td>
  113.   </tr>
  114. </table>
  115. <br>
  116. <%@ include file="forum/inc/footer.jsp"%>
  117. </body>
  118. <script language="javascript">
  119. <!--
  120. function form1_onsubmit()
  121. {
  122. errmsg = "";
  123. if (form1.name.value=="")
  124. errmsg += "<lt:Label res="res.label.door" key="input_name"/>n"
  125. if (form1.pwd.value=="")
  126. errmsg += "<lt:Label res="res.label.door" key="input_pwd"/>n"
  127. if (errmsg!="")
  128. {
  129. alert(errmsg);
  130. return false;
  131. }
  132. }
  133. //-->
  134. </script>
  135. </html>