📄 editforum.jsp
字号:
<%--
- $Header: /cvsroot/mvnforum/mvnforum/srcweb/mvnplugin/mvnforum/admin/editforum.jsp,v 1.83 2007/11/23 09:42:29 minhnn Exp $
- $Author: minhnn $
- $Revision: 1.83 $
- $Date: 2007/11/23 09:42:29 $
-
- ====================================================================
-
- Copyright (C) 2002-2007 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="java.util.*" %>
<%@ page import="com.mvnforum.db.*" %>
<%@ include file="inc_common.jsp"%>
<%@ include file="inc_doctype.jsp"%>
<fmt:bundle basename="mvnForum_i18n">
<mvn:html locale="${currentLocale}">
<mvn:head>
<mvn:title><fmt:message key="mvnforum.common.forum.title_name"/> - <fmt:message key="mvnforum.admin.editforum.title"/></mvn:title>
<%@ include file="/mvnplugin/mvnforum/meta.jsp"%>
<link href="<%=onlineUser.getCssPath()%>" rel="stylesheet" type="text/css" />
<script language="JavaScript1.2" src="<%=contextPath%>/mvnplugin/mvnforum/js/vietuni.js" type="text/javascript"></script>
</mvn:head>
<mvn:body onunload="document.submitform.submitbutton.disabled=false;">
<%@ include file="inc_js_checkvalid_myvietnamlib.jsp"%>
<script type="text/javascript">
//<![CDATA[
function SubmitForm() {
if (ValidateForm() == true) {
<mvn:servlet>
document.submitform.submitbutton.disabled=true;
</mvn:servlet>
document.submitform.submit();
}
}
function ValidateForm() {
if (isBlank(document.submitform.CategoryID, "<fmt:message key="mvnforum.common.category.category_name"/>")) return false;
if (isBlank(document.submitform.ForumName, "<fmt:message key="mvnforum.common.forum.forum_name"/>")) return false;
if (isBlank(document.submitform.MemberCurrentMatkhau, "<fmt:message key="mvnforum.common.prompt.current_password"/>")) {
return false;
}
if ( document.submitform.MemberCurrentMatkhau.value.length < 3 ) {
alert("<fmt:message key="mvnforum.common.js.prompt.invalidlongpassword"/>");
document.submitform.MemberCurrentMatkhau.focus();
return false;
}
return true;
}
//]]>
</script>
<%@ include file="header.jsp"%>
<br/>
<table width="95%" align="center">
<tr class="nav">
<td><img src="<%=contextPath%>/mvnplugin/mvnforum/images/nav.gif" alt="" /></td>
<td width="100%" nowrap="nowrap">
<a class="nav" href="<%=urlResolver.encodeURL(request, response, "index", URLResolverService.RENDER_URL, "view")%>"><fmt:message key="mvnforum.common.nav.index"/></a> »
<a class="nav" href="<%=urlResolver.encodeURL(request, response, "index")%>"><fmt:message key="mvnforum.admin.index.title"/></a> »
<a class="nav" href="<%=urlResolver.encodeURL(request, response, "forummanagement")%>"><fmt:message key="mvnforum.admin.forummanagement.title"/></a> »
<fmt:message key="mvnforum.admin.editforum.title"/>
</td>
</tr>
</table>
<br/>
<%
ForumBean forumBean = (ForumBean)request.getAttribute("ForumBean");
Collection categoryBeans = CategoryCache.getInstance().getBeans();
%>
<form action="<%=urlResolver.encodeURL(request, response, "updateforum" , URLResolverService.ACTION_URL)%>" method="post" name="submitform">
<%=urlResolver.generateFormAction(request, response, "updateforum")%>
<input type="hidden" name="ForumID" value="<%=forumBean.getForumID()%>" />
<mvn:cssrows>
<table class="tborder" width="95%" cellspacing="1" cellpadding="3" align="center">
<tr class="portlet-section-header">
<td colspan="2"><fmt:message key="mvnforum.admin.editforum.title"/>:</td>
</tr>
<tr class="<mvn:cssrow/>">
<td><span class="requiredfield">*</span> <fmt:message key="mvnforum.common.category.category_name"/>:</td>
<td>
<%--
<select name="CategoryID">
<% for (Iterator iterator = categoryBeans.iterator(); iterator.hasNext(); ) {
CategoryBean row = (CategoryBean)iterator.next(); %>
<option value="<%=row.getCategoryID()%>" <%if (row.getCategoryID() == forumBean.getCategoryID()) {%>selected="selected" <%}%>><%=row.getCategoryName()%></option>
<% } //for%>
</select>
--%>
<%
out.println(request.getAttribute("Result"));
%>
</td>
</tr>
<tr class="<mvn:cssrow/>">
<td><span class="requiredfield">*</span> <fmt:message key="mvnforum.common.forum.forum_name"/>:</td>
<td><input type="text" name="ForumName" value="<%=forumBean.getForumName()%>" size="62" onkeyup="initTyper(this);" /></td>
</tr>
<tr class="<mvn:cssrow/>">
<td valign="top"><fmt:message key="mvnforum.common.forum.forum_description"/>:<br/>
<a href="javascript: __Open('<%=urlResolver.encodeURL(request, response, "bbcode")%>', 650, 250)" class="linkinfo"><fmt:message key="mvnforum.common.support_bbcode"/></a>
</td>
<td><textarea cols="60" rows="6" name="ForumDesc" onkeyup="initTyper(this);"><%=forumBean.getForumDesc()%></textarea></td>
</tr>
<tr class="<mvn:cssrow/>">
<td><fmt:message key="mvnforum.common.forum.forum_owner_name"/>:</td>
<td><input type="text" name="ForumOwnerName" value="<%=forumBean.getForumOwnerName()%>" size="30" /></td>
</tr>
<tr class="<mvn:cssrow/>">
<td><span class="requiredfield">*</span> <fmt:message key="mvnforum.common.forum.forum_order"/>:</td>
<td><input type="text" name="ForumOrder" value="<%=forumBean.getForumOrder()%>" size="30" maxlength="5" /></td>
</tr>
<tr class="<mvn:cssrow/>">
<td><fmt:message key="mvnforum.common.forum.status"/>:</td>
<td>
<select name="ForumStatus" style="width: 220px;">
<option value="0" <%if (forumBean.getForumStatus() == 0) {%> selected="selected" <%}%>><fmt:message key="mvnforum.common.forum.status.active"/></option>
<option value="1" <%if (forumBean.getForumStatus() == 1) {%> selected="selected" <%}%>><fmt:message key="mvnforum.common.forum.status.disabled"/></option>
<option value="2" <%if (forumBean.getForumStatus() == 2) {%> selected="selected" <%}%>><fmt:message key="mvnforum.common.forum.status.locked"/></option>
<option value="3" <%if (forumBean.getForumStatus() == 3) {%> selected="selected" <%}%>><fmt:message key="mvnforum.common.forum.status.closed"/></option>
</select>
</td>
</tr>
<tr class="<mvn:cssrow/>">
<td><fmt:message key="mvnforum.common.forum.type"/>:</td>
<td>
<select name="ForumType" style="width: 220px;">
<option value="0" <%if (forumBean.getForumType() == 0) {%> selected="selected" <%}%>><fmt:message key="mvnforum.common.forum.type.normal"/></option>
<option value="1" <%if (forumBean.getForumType() == 1) {%> selected="selected" <%}%>><fmt:message key="mvnforum.common.forum.type.private"/></option>
</select>
</td>
</tr>
<tr class="<mvn:cssrow/>">
<td><fmt:message key="mvnforum.common.forum.moderation_mode"/>:</td>
<td>
<select name="ForumModerationMode" style="width: 220px;">
<option value="0" <%if (forumBean.getForumModerationMode() == 0) {%> selected="selected" <%}%>><fmt:message key="mvnforum.common.forum.moderation_mode.default"/></option>
<option value="1" <%if (forumBean.getForumModerationMode() == 1) {%> selected="selected" <%}%>><fmt:message key="mvnforum.common.forum.moderation_mode.no"/></option>
<option value="2" <%if (forumBean.getForumModerationMode() == 2) {%> selected="selected" <%}%>><fmt:message key="mvnforum.common.forum.moderation_mode.thread_post"/></option>
<option value="3" <%if (forumBean.getForumModerationMode() == 3) {%> selected="selected" <%}%>><fmt:message key="mvnforum.common.forum.moderation_mode.thread"/></option>
<option value="4" <%if (forumBean.getForumModerationMode() == 4) {%> selected="selected" <%}%>><fmt:message key="mvnforum.common.forum.moderation_mode.post"/></option>
</select>
</td>
</tr>
<tr class="<mvn:cssrow/>">
<td><span class="requiredfield">*</span> <fmt:message key="mvnforum.common.prompt.current_password"/>:</td>
<td><input type="password" name="MemberCurrentMatkhau" size="30" /></td>
</tr>
<%if (currentLocale.equals("vi")) {/*vietnamese here*/%>
<tr class="<mvn:cssrow/>">
<td valign="top" nowrap="nowrap"><fmt:message key="mvnforum.common.vietnamese_type"/>:</td>
<td>
<input type="radio" name="vnselector" id="TELEX" value="TELEX" onclick="setTypingMode(1);" class="noborder" /> <fmt:message key="mvnforum.common.vietnamese_type.telex"/>
<input type="radio" name="vnselector" id="VNI" value="VNI" onclick="setTypingMode(2);" class="noborder" /> <fmt:message key="mvnforum.common.vietnamese_type.vni"/>
<input type="radio" name="vnselector" id="VIQR" value="VIQR" onclick="setTypingMode(3);" class="noborder" /> <fmt:message key="mvnforum.common.vietnamese_type.VIQR"/><br/>
<input type="radio" name="vnselector" id="NOVN" value="NOVN" onclick="setTypingMode(0);" class="noborder" /> <fmt:message key="mvnforum.common.vietnamese_type.not_use"/><br/>
<script type="text/javascript" language="JavaScript">initVNTyperMode();</script>
</td>
</tr>
<%}// end if vietnamese%>
<tr class="portlet-section-footer">
<td colspan="2" align="center">
<input type="button" name="submitbutton" value="<fmt:message key="mvnforum.common.action.save"/>" onclick="javascript:SubmitForm();" class="portlet-form-button" />
<input type="reset" value="<fmt:message key="mvnforum.common.action.reset"/>" class="liteoption" />
</td>
</tr>
</table>
</mvn:cssrows>
</form>
<br/>
<%@ include file="footer.jsp"%>
</mvn:body>
</mvn:html>
</fmt:bundle>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -