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

📄 guide.jsp

📁 云网oa办公自动化系统java源码。能够使用!有说明!
💻 JSP
📖 第 1 页 / 共 2 页
字号:
<%@ page contentType="text/html; charset=utf-8"%>
<%@ page import="org.jdom.*"%>
<%@ page import="org.jdom.output.*"%>
<%@ page import="org.jdom.input.*"%>
<%@ page import="java.util.Iterator"%>
<%@ page import="com.redmoon.forum.OnlineInfo"%>
<%@ page import="cn.js.fan.db.*"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>管理导读</TITLE>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<%@ include file="../inc/nocache.jsp"%>
<LINK href="../../common.css" type=text/css rel=stylesheet>
<STYLE>
TABLE {
	BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 1px
}
TD {
	BORDER-RIGHT: 0px; BORDER-TOP: 0px
}
.style1 {color: #FFFFFF}
.style2 {
	font-size: medium;
	font-weight: bold;
}
</STYLE>
<SCRIPT>
function loadonline(boardcode){
	var targetImg =eval("document.all.followImg000");
	var targetDiv =eval("document.all.followDIV000");
	if (targetImg.src.indexOf("nofollow")!=-1){return false;}
	if ("object"==typeof(targetImg)){
		if (targetDiv.style.display!='block')
		{
			targetDiv.style.display="block";
			targetImg.src="../images/minus.gif";
			advance.innerText="关闭在线列表";
			if (targetImg.loaded=="no")
				document.frames["hiddenframe"].location.replace("online.jsp?boardcode="+boardcode);
		}
		else
		{
			targetDiv.style.display="none";
			targetImg.src="../images/plus.gif";
			advance.innerText="查看在线列表"
		}
	}
}
////////////////////展开帖子
function loadThreadFollow(b_id,t_id,getstr){
	var targetImg2 =eval("document.all.followImg" + t_id);
	var targetTR2 =eval("document.all.follow" + t_id);
	if (targetImg2.src.indexOf("nofollow")!=-1){return false;}
	if ("object"==typeof(targetImg2)){
		if (targetTR2.style.display!="")
		{
			targetTR2.style.display="";
			targetImg2.src="../images/minus.gif";
			if (targetImg2.loaded=="no"){
				document.frames["hiddenframe"].location.replace("listtree.jsp?id="+b_id+getstr);
			}
		}else{
			targetTR2.style.display="none";
			targetImg2.src="../images/plus.gif";
		}
	}
}
</SCRIPT>
<META content="MSHTML 6.00.2600.0" name=GENERATOR></HEAD>
<BODY topMargin=2>
<%@ include file="../inc/inc.jsp"%>
<p align=center class="style2"><br>
  <br>
暂不提供本功能!</p>
<%
if (true)
	return;
%>
<jsp:useBean id="StrUtil" scope="page" class="cn.js.fan.util.StrUtil"/>
<jsp:useBean id="privilege" scope="page" class="com.redmoon.forum.Privilege"/>
<jsp:useBean id="Topic" scope="page" class="com.redmoon.forum.MsgMgr" />
<jsp:useBean id="guide" scope="page" class="com.redmoon.forum.Guide" />
<%
	String querystring = StrUtil.getNullString(request.getQueryString());
	String privurl=request.getRequestURL()+"?"+StrUtil.UrlEncode(querystring,"utf-8");
	
	String what = StrUtil.UnicodeToGB(StrUtil.getNullString(request.getParameter("what")));
	String op = StrUtil.getNullString(request.getParameter("op"));
	String boardcode = StrUtil.getNullString(request.getParameter("boardcode"));
	String boardname = StrUtil.UnicodeToGB(StrUtil.getNullString(request.getParameter("boardname")));
	String id = StrUtil.getNullString(request.getParameter("id"));
	String strhit = StrUtil.getNullString(request.getParameter("hit"));
	String title = StrUtil.UnicodeToGB(StrUtil.getNullString(request.getParameter("title")));
	String color = StrUtil.getNullString(request.getParameter("color"));
	String sort = StrUtil.getNullString(request.getParameter("sort"));
	String guideboardcode = boardcode;
	if (op.equals("add")) {
		if (boardcode.equals("") || boardname.equals(""))
		{
			out.println(StrUtil.Alert("参数不全,请检查!"));
		}
		else {
			boolean re = false;
			try {
				re = guide.AddGuideOfBoard(guideboardcode,title,id,boardcode,boardname,strhit,"");
			}
			catch (cn.js.fan.util.ErrMsgException e) {
				out.println(StrUtil.Alert(e.getMessage()));
			}
			if (re)
				out.println(StrUtil.Alert("置为导读成功!"));
		}
	}
	if (op.equals("del"))
	{
		guide.del(guideboardcode,id);
		out.println(StrUtil.Alert("导读删除成功!"));
	}
	if (op.equals("sort")) {
		guide.Sort(guideboardcode);
		out.println(StrUtil.Alert("重新排序成功!"));
	}
	if (op.equals("modify"))
	{
		if (!StrUtil.isNumeric(sort))
			out.print(StrUtil.Alert("序号必须为数字!"));
		else {
			int intsort = Integer.parseInt(sort);
			guide.modifyGuideOfBoard(guideboardcode,id,boardcode,boardname,strhit,color,title,intsort);
			out.println(StrUtil.Alert("导读修改成功!"));
		}
	}
	if (op.equals("generateguide"))
	{
		guide.generateGuideXMLFileOfBoard(boardcode, boardname);
		out.println(StrUtil.Alert("生成论坛导读成功!"));
	}
%>	  
<table width="100%" border="1" align="center" cellpadding="1" cellspacing="0" bordercolor="#edeced" class="p9">
  <tr align="center" bgcolor="#0078bf"> 
    <td height="21" colspan="8"><span class="style1"><%=boardname%>-导读管理</span></td>
  </tr>
  <tr align="center"> 
    <td width="5%" height="23">编号</td>
    <td width="32%" height="23">标题</td>
    <td width="9%" height="23">论坛编码</td>
    <td width="18%">论坛名称</td>
    <td width="9%">点击数</td>
    <td width="11%" height="23">颜色</td>
    <td width="5%">序号</td>
    <td width="11%">操作</td>
  </tr>
<%
	java.util.List list = guide.getGuide(guideboardcode);
	Iterator ir = null;
	if (list!=null)
		ir = list.iterator();
	int n = 0;
	while (ir!=null && ir.hasNext())
	{
		n++;
		Element a = (Element)ir.next(); //得到第i个元素
		boardcode = a.getAttribute("boardcode").getValue();
		boardname = a.getAttribute("boardname").getValue();
		id = a.getAttribute("id").getValue();
		title = a.getChild("title").getText();
		strhit = a.getAttribute("hit").getValue();
		color = a.getAttribute("color").getValue();
		Attribute st = a.getAttribute("sort");
		if (st==null)
			sort = "0";
		else
			sort = st.getValue();
%>
  <tr align="center"> 
    <form name="form<%=n%>" action="../manager/?op=modify" method=post>
      <td width="5%" height="39"> <%=id%></td>
      <td width="32%" height="39" align="left"> 
        <input type="text" name="title" value="<%=title%>" size="30">
         <input type=hidden name="id" value="<%=id%>"> 
      </td>
      <td width="9%" height="39"><%=boardcode%> <input type=hidden name="boardcode" value="<%=boardcode%>"> 
      </td>
      <td width="18%" height="39"><%=boardname%> <input type=hidden name="boardname" value="<%=boardname%>"></td>
      <td width="9%" height="39"><%=strhit%> <input type=hidden name="hit" value="<%=strhit%>"></td>
      <td width="11%" height="39"><SELECT name="color" onchange="if(this.value!='0')msg.style.color=colortable[this.value-1];else msg.style.color='';msg.focus();">
          <option value="" STYLE="COLOR: black" selected>颜色</option>
          <option style="BACKGROUND: #000088" value="#000088"></option>
          <option style="BACKGROUND: #0000ff" value="#0000ff"></option>
          <option style="BACKGROUND: #008800" value="#008800"></option>
          <option style="BACKGROUND: #008888" value="#008888"></option>
          <option style="BACKGROUND: #0088ff" value="#0088ff"></option>
          <option style="BACKGROUND: #00a010" value="#00a010"></option>
          <option style="BACKGROUND: #1100ff" value="#1100ff"></option>
          <option style="BACKGROUND: #111111" value="#111111"></option>
          <option style="BACKGROUND: #333333" value="#333333"></option>
          <option style="BACKGROUND: #50b000" value="#50b000"></option>
          <option style="BACKGROUND: #880000" value="#880000"></option>
          <option style="BACKGROUND: #8800ff" value="#8800ff"></option>
          <option style="BACKGROUND: #888800" value="#888800"></option>
          <option style="BACKGROUND: #888888" value="#888888"></option>
          <option style="BACKGROUND: #8888ff" value="#8888ff"></option>
          <option style="BACKGROUND: #aa00cc" value="#aa00cc"></option>
          <option style="BACKGROUND: #aaaa00" value="#aaaa00"></option>

⌨️ 快捷键说明

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