?? addpostsuccess.jsp
字號:
<%--
- $Header: /cvsroot/mvnforum/mvnforum/srcweb/mvnplugin/mvnforum/user/addpostsuccess.jsp,v 1.35 2006/04/14 18:04:00 minhnn Exp $
- $Author: minhnn $
- $Revision: 1.35 $
- $Date: 2006/04/14 18:04:00 $
-
- ====================================================================
-
- Copyright (C) 2002-2006 by MyVietnam.net
-
- All copyright notices regarding mvnForum MUST remain
- intact in the scripts and in the outputted HTML.
- The "powered by" text/logo with a link back to
- http://www.mvnForum.com and http://www.MyVietnam.net in
- the footer of the pages MUST remain visible when the pages
- are viewed on the internet or intranet.
-
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2 of the License, or
- any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-
- Support can be obtained from support forums at:
- http://www.mvnForum.com/mvnforum/index
-
- Correspondence and Marketing Questions can be sent to:
- info at MyVietnam net
-
- @author: Minh Nguyen
- @author: Mai Nguyen
--%>
<%@ page contentType="text/html;charset=utf-8" %>
<%@ page errorPage="fatalerror.jsp"%>
<%@ page import="net.myvietnam.mvncore.util.ParamUtil" %>
<%@ page import="com.mvnforum.MVNForumResourceBundle" %>
<%@ page import="com.mvnforum.db.PostBean" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<%@ include file="inc_common.jsp"%>
<fmt:bundle basename="mvnForum_i18n">
<%
PostBean postBean = (PostBean)request.getAttribute("PostBean");
String forumID = ParamUtil.getAttribute(request, "ForumID");
String threadID = ParamUtil.getAttribute(request, "ThreadID");
int postID = postBean.getPostID();
String offset = "0";// we cannot know the offset, so set it to 0 (first page)
boolean attachMore = ((Boolean)request.getAttribute("AttachMore")).booleanValue();
boolean addFavoriteThread = ((Boolean)request.getAttribute("AddFavoriteParentThread")).booleanValue();
boolean addWatchThread = ((Boolean)request.getAttribute("AddWatchParentThread")).booleanValue();
boolean isPendingThread = ((Boolean)request.getAttribute("IsPendingThread")).booleanValue();
String viewthreadLink = "viewthread?thread=" + threadID + "&lastpage=yes";
String viewthreadDesc = MVNForumResourceBundle.getString(onlineUser.getLocale(), "mvnforum.common.success.go_new_post");
String attachLink = "addattachment?post=" + postID + "&offset=" + offset;
String defaultLink = viewthreadLink;
if (attachMore) {
defaultLink = attachLink;
}
boolean goAutomatically = ( (postBean.getPostStatus()!=PostBean.POST_STATUS_DISABLED) && (isPendingThread==false) );
if (goAutomatically == false) {
viewthreadLink = "viewthread?thread=" + threadID;
viewthreadDesc = MVNForumResourceBundle.getString(onlineUser.getLocale(), "mvnforum.common.success.go_current_thread");
}
%>
<html <fmt:message key="mvnforum.common.i18n.html_dir"/>>
<head>
<title><fmt:message key="mvnforum.common.forum.title_name"/> - <fmt:message key="mvnforum.user.addpostsuccess.title"/></title>
<%@ include file="/mvnplugin/mvnforum/meta.jsp"%>
<% if (goAutomatically) { %>
<meta http-equiv='refresh' content='3; url=<%=urlResolver.encodeURL(request, response, defaultLink)%>'>
<% } %>
<link href="<%=onlineUser.getCssPath()%>" rel="stylesheet" type="text/css">
</head>
<body leftmargin="0" topmargin="0">
<%@ include file="header.jsp"%>
<br/>
<table width="98%" align="center">
<tr class="nav">
<td><img src="<%=contextPath%>/mvnplugin/mvnforum/images/nav.gif"></td>
<td width="100%" nowrap>
<a class="nav" href="<%=urlResolver.encodeURL(request, response, "index")%>"><fmt:message key="mvnforum.common.nav.index"/></a> »
<fmt:message key="mvnforum.user.addpostsuccess.title"/>
</td>
</tr>
</table>
<br/>
<% if (goAutomatically == false) { %>
<table class="tborder" width="98%" cellspacing="1" cellpadding="3" align="center">
<tr class="pagedesc">
<td><fmt:message key="mvnforum.user.addpostsuccess.moderation_waiting"/></td>
</tr>
</table>
<br/>
<% } %>
<table class="tborder" width="98%" cellspacing="1" cellpadding="3" align="center">
<tr class="portlet-section-header">
<td><fmt:message key="mvnforum.common.success.prompt"/></td>
</tr>
<% boolean odd = true; %>
<% if (attachMore) { %>
<tr class="portlet-section-body">
<td><b>» </b><a class="command" href="<%=urlResolver.encodeURL(request, response, attachLink)%>"><fmt:message key="mvnforum.common.success.go_attach_file"/></a> <% if (goAutomatically) { %>(<fmt:message key="mvnforum.common.success.automatic"/>)<% } %></td>
</tr>
<% if (isPendingThread==false) { %>
<tr class="portlet-section-alternate">
<td><b>» </b><a class="command" href="<%=urlResolver.encodeURL(request, response, viewthreadLink)%>"><%=viewthreadDesc%></a></td>
</tr>
<% } %>
<% odd = true; %>
<% } else { %>
<% if (isPendingThread==false) { %>
<tr class="portlet-section-body">
<td><b>» </b><a class="command" href="<%=urlResolver.encodeURL(request, response, viewthreadLink)%>"><%=viewthreadDesc%></a> <% if (goAutomatically) { %>(<fmt:message key="mvnforum.common.success.automatic"/>)<% } %></td>
</tr>
<% } %>
<% odd = false; %>
<% } %>
<% if (addFavoriteThread) { %>
<% if (odd) { %>
<tr class="portlet-section-body">
<% } else { %>
<tr class="portlet-section-alternate">
<% } %>
<td><b>» </b><a class="command" href="<%=urlResolver.encodeURL(request, response, "myfavoritethread")%>"><fmt:message key="mvnforum.common.success.go_myfavoritethread"/></a></td>
</tr>
<% odd = !odd; %>
<% } %>
<% if (addWatchThread) { %>
<% if (odd) { %>
<tr class="portlet-section-body">
<% } else { %>
<tr class="portlet-section-alternate">
<% } %>
<td><b>» </b><a class="command" href="<%=urlResolver.encodeURL(request, response, "mywatch")%>"><fmt:message key="mvnforum.common.success.go_mywatch"/></a></td>
</tr>
<% odd = !odd; %>
<% } %>
<% if (odd) { %>
<tr class="portlet-section-body">
<td><b>» </b><a class="command" href="<%=urlResolver.encodeURL(request, response, "listthreads?forum=" + request.getAttribute("ForumID"))%>"><fmt:message key="mvnforum.common.success.go_current_forum"/></a></td>
</tr>
<tr class="portlet-section-alternate">
<td><b>» </b><a class="command" href="<%=urlResolver.encodeURL(request, response, "index")%>"><fmt:message key="mvnforum.common.success.go_index"/></a></td>
</tr>
<% } else { %>
<tr class="portlet-section-alternate">
<td><b>» </b><a class="command" href="<%=urlResolver.encodeURL(request, response, "listthreads?forum=" + request.getAttribute("ForumID"))%>"><fmt:message key="mvnforum.common.success.go_current_forum"/></a></td>
</tr>
<tr class="portlet-section-body">
<td><b>» </b><a class="command" href="<%=urlResolver.encodeURL(request, response, "index")%>"><fmt:message key="mvnforum.common.success.go_index"/></a></td>
</tr>
<% } %>
</table>
<br/>
</fmt:bundle>
<%@ include file="footer.jsp"%>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -