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

📄 announcement.jsp

📁 jsp bbs源代码
💻 JSP
字号:
<%
/*##################################################################**
**#  LyBBS ver 1.2.b2 (1.2.beta-2版) / 凌云论坛 ver 1.2.b2         #**
**#                                                                #**
**#  版权所有: 凌云工作室 (原流星电脑工作室)                       #**
**#                                                                #**
**#  制作人  : 星语凌 『teddy (Yongshan Ye)』                      #**
**#                                                                #**
**#  主页地址: http://www.unix-now.com/lybbs   凌云论坛主页        #**
**#            http://www.ierp.info/lybbs      凌云论坛镜像站      #**
**#            http://horseye@sina.com/        凌云论坛支持信箱    #**
**#                                                                #**
**##################################################################*/
%>
<%@ include file="include/config.jsp"%>
<%@ page contentType="text/html;charset=gb2312" %>
<%@ include file="include/connect.jsp"%>
<%
int db=0;
String tempSTR="",action="",submit="";
//取传递变量
tempSTR=request.getParameter("db");
if(tempSTR!=null)
  db=Integer.parseInt(tempSTR);
tempSTR=request.getParameter("action");
if(tempSTR!=null)
  action=tempSTR;
//用户cookie变量声明
int id=0,styleid=0,membergone=0;
String cookieid="",cookiename="",username="",usermode="",cookiemode="";
//日期定义
int now_year=0,now_month=0,now_day=0,now_hour=0,now_minute=0,now_second=0;
String now_date="",now_time="";
//定义boardprepare.jsp中的变量
String onlineview="",dispview="",boardtitle="",boardname="",title="",version="",copyright="",support="",programmer="",programemail="",homename="",homeurl="",togb="1",status="",maintainreason="",announcement="1",boardurl="",showfastlogin="",dispborn="",styleQuery="";
%>
<%@ include file="include/boardprepare.jsp"%>
<%@ include file="include/style.jsp"%>
<%
boolean postok=false;
int i=0,isadmin=0,announceid=0,number=0;
String announcebgcolor=postcolortwo,announceauthor="",announcetitle="",announcecontent="",announcepostat="",postusername="",postpassword="",errorinfo="";
if(!action.equals("")) {
  tempSTR=request.getParameter("submit");
  if(tempSTR!=null)
    submit=togb.equals("1")?connect.toGB(tempSTR):tempSTR;
  tempSTR=request.getParameter("announceid");
  if(tempSTR!=null && !tempSTR.equals(""))
    announceid=Integer.parseInt(tempSTR);
}
%>
<!--//html from here-->
<%@ include file="include/head.jsp"%>
<body <%=lbbody%>>
<%@ include file="include/userheader.jsp"%>
<p>
<table cellpadding=0 cellspacing=0 border=0 width=<%=tablewidth%> align=center>
 <tr>
  <td width=30% rowspan=2 valign=top>
   <%@ include file="include/viceadbanner.jsp"%>
  </td>
  <td valign=top align=left>
     <font face="宋体" color=<%=fontcolormisc%>>
     <img src="images/closedfold.gif" border=0> <a href="index.jsp"><%=boardname%></a><br>
     <img src="images/bar.gif" border=0><img src="images/openfold.gif" border=0> 论坛公告
     </font>
  </td>
 </tr>
</table>
<p>
<%
if(cookiemode.equals("4"))
  isadmin=1;
else if(!cookiemode.equals("1") && !cookiemode.equals("0") && db!=0)
  isadmin=connect.getRowNum("admin where db="+db+" and authorid="+cookieid);
if(action.equals("")) {
%>
<%@ include file="include/announcementview.jsp"%>
<%
}
else if(action.equals("add")) {
%>
<%@ include file="include/announcementadd.jsp"%>
<%
}
else if(action.equals("edit")) {
%>
<%@ include file="include/announcementedit.jsp"%>
<%
}
else if(action.equals("delete")) {
%>
<%@ include file="include/announcementdelete.jsp"%>
<%
}
%>
<%
rs.close();
connect.close();
%>
<%@ include file="include/foot.jsp"%>
</body>
</html>

⌨️ 快捷键说明

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