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

📄 shuqian.jsp

📁 BBS-CS_3b_Tomcat4 java BBS
💻 JSP
字号:
<%@ page language="java" contentType="text/html; charset=gb2312" %>
<jsp:useBean id="SessionCheckBean" scope="page" class="com.laoer.bbscs.user.SessionCheck" />
<jsp:useBean id="BBSConfBean" scope="page" class="com.laoer.bbscs.admin.BBSConf" />
<jsp:useBean id="DoTextBean" scope="page" class="com.laoer.bbscs.txthtml.DoText" />
<jsp:useBean id="UserPoptionBean" scope="page" class="com.laoer.bbscs.user.UserPoption" />
<jsp:useBean id="UserBookMarkBean" scope="page" class="com.laoer.bbscs.user.UserBookMark" />
<%
SessionCheckBean.getSession(request);
if (SessionCheckBean.isHaveSession()) {
String tabledarkcolor = BBSConfBean.getConfTableDarkColor();
String tablemaincolor = BBSConfBean.getConfTableMainColor();

boolean isGuestUser = SessionCheckBean.isGuestUser();
  if (!isGuestUser) {
  String strUserID = SessionCheckBean.getUserID();
  String sqname = "";
  String url = "";
  String alt = "";
  String sqID = request.getParameter("sqID");
  String pages = request.getParameter("pages");
   if (pages ==null || pages.length() == 0) {
       pages = "1";
  }
  else {
      pages = pages;
  }
  %>
<HTML><HEAD><TITLE>书签管理</TITLE>
<META content="text/html; charset=gb2312" http-equiv=Content-Type>
<%
  out.print(BBSConfBean.getRightCSS1());
%>
</HEAD>
<BODY <%=BBSConfBean.getRightBGTextColor1()%> leftMargin=20 topMargin=20 marginheight="20" marginwidth="20"><BR>
<TABLE bgColor=<%=tablemaincolor%> border=0 cellPadding=3 cellSpacing=0 width=400>
  <TBODY>
  <TR align=middle>
    <TD><FONT class=p9 color=#ffffff>书签列表</FONT></TD></TR></TBODY></TABLE>
<TABLE border=0 cellPadding=5 cellSpacing=0 width=400>
  <TBODY></TBODY></TABLE>
<table width="399" border="0" cellpadding="1" cellspacing="1">
<%
out.print(UserPoptionBean.getListShuqian(strUserID,pages,"shuqian.jsp"));
%>
</table>

<%
  if (sqID != null) {
    UserBookMarkBean.setUserBookMark(strUserID, sqID);
    sqname = DoTextBean.iso2gb(UserBookMarkBean.getsqname());
    url = UserBookMarkBean.geturl();
    alt = DoTextBean.iso2gb(UserBookMarkBean.getalt());
  }
%>
<FORM action="poption.jsp" method=post>
<INPUT name="sqID" type=hidden value="<% if (sqID != null) { out.print(sqID);}%>">
<TABLE border=0 cellPadding=2 cellSpacing=0 width=400>
  <TBODY>
  <TR>
    <TD align=middle class=p12 colSpan=2>增加/更新新书签:
      <HR noShade SIZE=1>
    </TD></TR>
  <TR>
    <TD bgColor=<%=tabledarkcolor%> class=p9 width=119>
      <DIV align=right>URL 书签名:</DIV></TD>
    <TD align=middle bgColor=<%=tabledarkcolor%> width=273>
        <INPUT maxLength=30 name=sqname value="<%=sqname%>">
    </TD></TR>
  <TR>
    <TD bgColor=<%=tabledarkcolor%> class=p9 width=119>
      <DIV align=right>URL:</DIV></TD>
    <TD align=middle bgColor=<%=tabledarkcolor%> width=273><INPUT maxLength=60 name=url
      value="<% if (url.length()>0) { out.print(url);} else { out.print("http://");}%>"></TD></TR>
  <TR>
    <TD bgColor=<%=tabledarkcolor%> class=p9 width=119>
      <DIV align=right>ALT:</DIV></TD>
    <TD align=middle bgColor=<%=tabledarkcolor%> width=273><INPUT maxLength=30 name=alt value="<%=alt%>">
    </TD></TR></TBODY></TABLE>
<HR align=left noShade SIZE=1 width=400>

<TABLE bgColor=<%=tablemaincolor%> border=0 cellPadding=3 cellSpacing=0 width=400>
  <TBODY>
  <TR align=middle>
    <TD><INPUT name="action" type=hidden value="addsq"> <INPUT name="submit" type="submit" value="<% if (sqID!= null) { out.print("更新");} else { out.print("增加");}%>">
</TD></TR></TBODY></TABLE></FORM></BODY></HTML>
  <%
  }
  else {
    out.print("游客无此权限");
  }
}
else {
  out.println("错误!");
}
%>

⌨️ 快捷键说明

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