jive3论坛开源 最新 有版主功能 jive3论坛开源 最新 有版主功能 jive3论坛开源 最新 有版主功能

源代码在线查看: pending-list.jsp

软件大小: 9455 K
上传用户: huajunun
关键词: jive3 论坛 开源
下载地址: 免注册下载 普通下载 VIP

相关代码

								/**				 *	$RCSfile: pending-list.jsp,v $				 *	$Revision: 1.1.10.1 $				 *	$Date: 2003/06/06 04:41:42 $				 */				%>												                 com.jivesoftware.util.*,				                 com.jivesoftware.forum.*,								 com.jivesoftware.forum.util.*,				                 com.jivesoftware.forum.action.util.Guest"				    errorPage="error.jsp"				%>																				    long forumID = ParamUtils.getLongParameter(request,"forum",-1L);				    int tstart = ParamUtils.getIntParameter(request,"tstart",0);				    int mstart = ParamUtils.getIntParameter(request,"mstart",0);				    Forum forum = forumFactory.getForum(forumID);				%>																				    String title = "Pending Submissions";				    String[][] breadcrumbs = {				        {"Main", "main.jsp"},				        {title, "pending-list.jsp?forum=" + forumID}				    };				%>																Below is a list of pending submissions by forum. To approve, edit or reject a message				or thread, click on its name.																Pending Topics																    threadFilter.setModerationRangeMin(forum.getModerationDefaultThreadValue());				    threadFilter.setModerationRangeMax(forum.getModerationDefaultThreadValue());				    threadFilter.setStartIndex(tstart);				    threadFilter.setNumResults(25);				    Iterator threads = forum.getThreads(threadFilter);				    if (!threads.hasNext()) {				%>				    No pending threads in this forum												    }				    else {				%>				    				    				    				    				        TOPIC				        FORUM				        AUTHOR				        DATE POSTED				    												            ForumThread thread = (ForumThread)threads.next();				            User author = null;				            if (!thread.getRootMessage().isAnonymous()) {				                author = thread.getRootMessage().getUser();				            }				%>				        				            				                				                 >				            				            				                				            				            				                				                    				                				                    Guest				                				            				            				                				            				        								    								    				    				    																				Pending Messages																    messageFilter.setModerationRangeMin(forum.getModerationDefaultMessageValue());				    messageFilter.setModerationRangeMax(forum.getModerationDefaultMessageValue());				    messageFilter.setStartIndex(mstart);				    messageFilter.setNumResults(25);				    Iterator messages = forum.getMessages(messageFilter);				    List messageList = new java.util.LinkedList();				    while (messages.hasNext()) {				        ForumMessage msg = (ForumMessage)messages.next();				        if (msg.getID() != msg.getForumThread().getRootMessage().getID()) {				            messageList.add(msg);				        }				    }				    messages = messageList.iterator();				    if (!messages.hasNext()) {				%>				    No pending messages in this forum												    }				    else {				%>				    				    				    				    				        MESSAGE				        TOPIC				        FORUM				        AUTHOR				        DATE POSTED				    												            ForumMessage message = (ForumMessage)messages.next();				            User author = null;				            if (!message.isAnonymous()) {				                author = message.getUser();				            }				%>				        				            				                				                 >				            				            				                				            				            				                				            				            				                				                    				                				                    Guest				                				            				            				                				            				        								    								    				    				    																			

相关资源