⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 myset.jsp

📁 LyBBS基于Struts1.3/Ajax的架构
💻 JSP
字号:
<%@ page contentType="text/html; charset=GBK" %>
<%@ include file="common/include/taglibs.jsp" %>
<%@ page import="java.util.*"%>
<html:html>
<head>
<title><lybbs:web key="forumName"/></title>
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
<link rel="bookmark" href="favicon.ico" type="image/x-icon">
<%@ include file="common/include/header.jsp" %>
</head>
<body topmargin=0 leftmargin=0>
<TABLE class=tableCommonStyle cellSpacing=1 cellPadding=3 border=0 align=center>
 <TR>
  <TD height=4 class=bgStyle></TD>
 </TR>
 <TR>
  <TD class=noBgStyle>
    <lybbs:typeAdTag/>
  </TD>
 </TR>
 <TR>
  <TD height=4 class=bgStyle></TD>
 </TR>
 <tr>
  <td class=menuStyle height=22>
    <table width=100% cellpadding=0 cellspacing=0 border=0>
    <tr>
    <td align=left>
    <lybbs:typeUserHeaderTag forumID="0"/>
    </td>
    <td align=right>
      <lybbs:web key="returnHomeLink"/>
    </td>
    </tr>
    </table>
  </td>
 </tr>
</table>
<br>
<table class=tableCommonStyle cellpadding=3 cellspacing=1 border=0 align=center>
 <tr>
  <td class=navStyle vAlign=center height=25>
    <img src="lybbs/images/forum_nav.gif" width="9" height="9" align="absMiddle"> <a href="bbs_indexWithFrame.do" target=_top><lybbs:web key="forumName"/></a> <bean:message key="common.lybbs.arrow"/> <bean:message key="jsp.userheader.controlpanel.personalizemyset"/>
  </td>
 </tr>
</table>
<br>
<table class=tableCommonStyle cellpadding=3 cellspacing=1 border=0 align=center >
  <tr>
   <td class=catStyle valign=middle align=center colspan=2><b><bean:message key="jsp.userheader.controlpanel.personalizemyset"/></b></td>
  </tr>
 <logic:present name="action" scope="request">
  <form action="bbs_userControlPanel.do" method="post" name=myform onsubmit="return setHiddenCatalog()">
  <input type=hidden name="action" value="<bean:write name="action"/>">
  <input type=hidden name="checkAction" value="yes">
  <input type=hidden name="hiddenCatalogIDStr" value="<bean:write name="hiddenCatalogIDStr"/>">
  <tr>
   <td class=forumColorOne valign=top width=30%><b><bean:message key="jsp.login.hidden"/></b></td>
   <td class=forumColorTwo valign=middle>
    <input type=radio name="hidden" value="0" <logic:equal name="userDataBean" property="hidden" value="0">checked</logic:equal>><bean:message key="jsp.myset.show"/><br>
    <input type=radio name="hidden" value="1" <logic:equal name="userDataBean" property="hidden" value="1">checked</logic:equal>><bean:message key="jsp.myset.hidden"/><br>
   </td>
  </tr>
  <tr>
   <td class=forumColorOne valign=top width=30%>
    <b><bean:message key="jsp.login.cookie"/></b>
   </td>
   <td class=forumColorTwo valign=middle>
    <input type=checkbox name="openLeft" value="1"><bean:message key="jsp.myset.openleft"/><br>
    <input type=checkbox name="openBottom" value="1"><bean:message key="jsp.myset.openbottom"/>
   </td>
  </tr>
  <tr>
   <td class=forumColorOne valign=top width=30%>
    <b><bean:message key="jsp.login.msg"/></b><br><bean:message key="jsp.login.msg.comment"/>
   </td>
   <td class=forumColorTwo valign=middle>
    <input type="radio" name="myInfo" value="0" <logic:equal name="userDataBean" property="myInfo" value="0">checked</logic:equal> onclick="setMsgInfo()"> <bean:message key="jsp.login.msg.accept"/><br>
    <input type="radio" name="myInfo" value="1" <logic:equal name="userDataBean" property="myInfo" value="1">checked</logic:equal> onclick="setMsgInfo()"> <bean:message key="jsp.login.msg.deny"/>
    <input type="text" name="mess" size=40 maxlength=40 id=mess style="DISPLAY: none">
   </td>
  </tr>
  <tr>
   <td class=forumColorOne valign=top width=30%>
    <b><bean:message key="jsp.login.msgpopup"/></b> <BR><bean:message key="jsp.login.msgpopup.comment"/>
   </td>
   <td class=forumColorTwo valign=middle>
    <input type="radio" name="msgPopUp" value="1" <logic:equal name="userDataBean" property="msgPopUp" value="1">checked</logic:equal>> <bean:message key="jsp.login.msgpopup.popup"/><br>
    <input type="radio" name="msgPopUp" value="0" <logic:equal name="userDataBean" property="msgPopUp" value="0">checked</logic:equal>> <bean:message key="jsp.login.msgpopup.dontpopup"/><br>
   </td>
  </tr>
  <tr>
   <td class=forumColorOne valign=top width=30%>
    <b><bean:message key="common.lybbs.onlinelist"/></b> <br><bean:message key="common.lybbs.onlinelist.comment"/>
   </td>
   <td class=forumColorTwo valign=middle>
    <input type="radio" name="onlineView" value="1" <logic:equal name="userDataBean" property="onlineView" value="1">checked</logic:equal>> <bean:message key="tag.typeonline.opendetailedlist"/><br>
    <input type="radio" name="onlineView" value="0" <logic:equal name="userDataBean" property="onlineView" value="0">checked</logic:equal>> <bean:message key="tag.typeonline.closedetailedlist"/><br>
   </td>
  </tr>
  <tr>
   <td class=forumColorOne valign=top width=30%>
    <b><bean:message key="jsp.login.defaultpost"/></b> <br><bean:message key="jsp.login.defaultpost.comment"/>
   </td>
   <td class=forumColorTwo valign=middle>
    <input type="radio" name="advPost" value="1" <logic:equal name="userDataBean" property="advPost" value="1">checked</logic:equal>> <bean:message key="jsp.login.defaultpost.advanced"/><br>
    <input type="radio" name="advPost" value="0" <logic:equal name="userDataBean" property="advPost" value="0">checked</logic:equal>> <bean:message key="jsp.login.defaultpost.simple"/><br>
   </td>
  </tr>
  <tr>
   <td class=forumColorOne valign=top width=30%>
    <b><bean:message key="jsp.myset.expandcatalog"/></b>
   </td>
   <td class=forumColorTwo valign=middle>
   <bean:define id="catalogList" name="catalogList" type="java.util.List"/>
   <bean:define id="hiddenCatalogIDStr" name="hiddenCatalogIDStr" type="java.lang.String"/>
   <%
     net.lybbs.catalog.bean.ICatalog catalog;
     for(int i=0,m=catalogList.size();i<m;i++) {
       catalog=(net.lybbs.catalog.bean.ICatalog)catalogList.get(i);
       out.print("<input type=checkbox name=hiddenCatalogID value=");
       out.print(catalog.getCatalogID());
       if(hiddenCatalogIDStr.indexOf(catalog.getCatalogID()+",")==-1) {
         out.print(" checked");
       }
       out.print(">");
       out.print(catalog.getCatalogName());
       out.println("<br>");
     }
   %>
   </td>
  </tr>
  <%--
  <tr>
   <td class=forumColorOne valign=top width=30%>
    <b><bean:message key="jsp.login.refresh"/></b> <BR><bean:message key="jsp.login.refresh.comment"/>
   </td>
   <td class=forumColorTwo valign=middle>
     <input type=text name="freshTime" value="<bean:write name="userDataBean" property="freshTime"/>" maxlength="4" size="3"> Seconds
   </td>
  </tr>
  --%>
  <tr>
   <td class=forumColorTwo align=center colspan=2>
     <input type=submit value="<bean:message key="common.lybbs.submit"/>">
   </td>
  </tr>
  </form>
  <script language="JavaScript">
  function setMyFrame() {
     var frameKey="<bean:write name="frameBean"/>";
     if(frameKey=="") {
       document.myform.openLeft.checked=true;
       document.myform.openBottom.checked=true;
     }
     else if(frameKey=="1") {
       document.myform.openLeft.checked=true;
       document.myform.openBottom.checked=false;
     }
     else if(frameKey=="2") {
       document.myform.openLeft.checked=false;
       document.myform.openBottom.checked=true;
     }
  }
  function setMsgInfo() {
    if(document.myform.myInfo[0].checked==true) {
      h_display();
      document.myform.mess.value="";
    }
    else {
      n_display();
      document.myform.mess.value="<bean:message key='jsp.login.msg.deny.comment'/>";
    }
  }
  function n_display() {
    document.myform.mess.style.display="";
  }
  function h_display() {
    document.myform.mess.style.display="none";
  }
  function setHiddenCatalog() {
    var hiddenCatalogIDStr=",0,";
    for(var i=0,m=myform.elements.length;i<m;i++) {
      var e=myform.elements[i];
      if(e.name=="hiddenCatalogID" && e.checked==false) {
        hiddenCatalogIDStr+=e.value+",";
      }
    }
    document.myform.hiddenCatalogIDStr.value=hiddenCatalogIDStr;
    //alert(hiddenCatalogIDStr);
    return true;
  }
  setMyFrame();
  setMsgInfo();
  </script>
 </logic:present>
 <logic:notPresent name="action">
  <tr>
   <td class=forumColorTwo colspan=2>
    <br><br>
    <b>
    <bean:message key="jsp.logout.out.operation"/>:
    <ul>
     <li><a href="bbs_indexWithFrame.do" target=_top><bean:message key="common.lybbs.returnhomepage"/></a>
    </ul>
    </b>
    <br><br>
   </td>
  </tr>
 </logic:notPresent>
</table>
<lybbs:web key="foot"/>
</body>
</html:html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -