From: <jbo...@li...> - 2006-06-28 21:55:50
|
Author: unibrew Date: 2006-06-28 17:55:45 -0400 (Wed, 28 Jun 2006) New Revision: 4854 Added: labs/jbossforums/trunk/forums/src/resources/portal-forums-war/views/moderator/modcp_split.xhtml Log: [JBFORUMS-54] Adding split topic view. Added: labs/jbossforums/trunk/forums/src/resources/portal-forums-war/views/moderator/modcp_split.xhtml =================================================================== --- labs/jbossforums/trunk/forums/src/resources/portal-forums-war/views/moderator/modcp_split.xhtml 2006-06-28 20:37:05 UTC (rev 4853) +++ labs/jbossforums/trunk/forums/src/resources/portal-forums-war/views/moderator/modcp_split.xhtml 2006-06-28 21:55:45 UTC (rev 4854) @@ -0,0 +1,140 @@ +<!-- +/* +* JBoss, Home of Professional Open Source +* Copyright 2005, JBoss Inc., and individual contributors as indicated +* by the @authors tag. See the copyright.txt in the distribution for a +* full listing of individual contributors. +* +* This is free software; you can redistribute it and/or modify it +* under the terms of the GNU Lesser General Public License as +* published by the Free Software Foundation; either version 2.1 of +* the License, or (at your option) any later version. +* +* This software 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 +* Lesser General Public License for more details. +* +* You should have received a copy of the GNU Lesser General Public +* License along with this software; if not, write to the Free +* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA +* 02110-1301 USA, or see the FSF site: http://www.fsf.org. +*/ +--> + +<div xmlns="http://www.w3.org/1999/xhtml" + xmlns:ui="http://java.sun.com/jsf/facelets" + xmlns:c="http://java.sun.com/jstl/core" + xmlns:h="http://java.sun.com/jsf/html" + xmlns:f="http://java.sun.com/jsf/core" + xmlns:forums="http://www.jboss.com/products/jbossportal/forums" class="bb"> + + <ui:composition template="/views/common/common.xhtml"> + <ui:define name="mainContent"> +<c:if test="#{moderator.initialized && moderator.forum!=null && moderator.forum.id!=-1}"> + <forums:isAllowed fragment="acl://moderateForum" contextData="#{moderator.forum}"> + <h:messages layout="table" infoStyle="color:green" warnStyle="color:red"/> + +<form method="post" action="${n:out("S_SPLIT_ACTION")}"> + <table width="100%" cellspacing="2" cellpadding="2" border="0" align="center"> + <tr> + <td align="left" class="nav"><a href="${n:out("U_INDEX")}" class="nav">${n:i18n("L_INDEX")}</a><span + class="nav"> + -> <a href="${n:out("U_VIEW_FORUM")}" class="nav">${n:out("FORUM_NAME")}</a></span></td> + </tr> + </table> + <table width="100%" cellpadding="4" cellspacing="1" border="0" class="forumline"> + <tr> + <th height="25" class="thHead" colspan="3" nowrap="nowrap">${n:i18n("L_SPLIT_TOPIC")}</th> + </tr> + <tr> + <td class="row2" colspan="3" align="center"><span class="gensmall">${n:i18n("L_SPLIT_TOPIC_EXPLAIN")}</span> + </td> + </tr> + <tr> + <td class="row1" nowrap="nowrap"><span class="gen">${n:i18n("L_SPLIT_SUBJECT")}</span></td> + <td class="row2" colspan="2"><input class="post" type="text" size="35" style="width: 350px" maxlength="60" + name="subject"/></td> + </tr> + <tr> + <td class="row1" nowrap="nowrap"><span class="gen">${n:i18n("L_SPLIT_FORUM")}</span></td> + <td class="row2" colspan="2">${n:out("S_FORUM_SELECT")}</td> + </tr> + <tr> + <td class="catHead" colspan="3" height="28"> + <table width="60%" cellspacing="0" cellpadding="0" border="0" align="center"> + <tr> + <td width="50%" align="center"> + <input class="liteoption" type="submit" name="split_type_all" value="${n:i18n("L_SPLIT_POSTS")}"/> + </td> + <td width="50%" align="center"> + <input class="liteoption" type="submit" name="split_type_beyond" + value="${n:i18n("L_SPLIT_AFTER")}"/> + </td> + </tr> + </table> + </td> + </tr> + <tr> + <th class="thLeft" nowrap="nowrap">${n:i18n("L_AUTHOR")}</th> + <th nowrap="nowrap">${n:i18n("L_MESSAGE")}</th> + <th class="thRight" nowrap="nowrap">${n:i18n("L_SELECT")}</th> + </tr> + <n:iterate ctx="postrow"> + <tr> + <td align="left" valign="top" class="${n:out("postrow.ROW_CLASS")}"><span class="name"><a + name="${n:out("postrow.U_POST_ID")}"></a>${n:out("postrow.POSTER_NAME")}</span></td> + <td width="100%" valign="top" class="${n:out("postrow.ROW_CLASS")}"> + <table width="100%" cellspacing="0" cellpadding="3" border="0"> + <tr> + <td valign="middle"><img src="${n:out("postrow.IMG_MINIPOST")}" alt="${n:i18n("L_POST")}"><span + class="postdetails">${n:i18n("L_POSTED")}: + ${n:out("postrow.POST_DATE")} ${n:i18n("L_POST_SUBJECT")}: ${n:out("postrow.POST_SUBJECT")}</span> + </td> + </tr> + <tr> + <td valign="top"> + <hr size="1"/> + <span class="postbody">${n:out("postrow.MESSAGE")}</span></td> + </tr> + </table> + </td> + <td width="5%" align="center" + class="${n:out("postrow.ROW_CLASS")}"><%--${n:out("postrow.S_SPLIT_CHECKBOX")}--%> + <input type="checkbox" name="post_id_list[${n:out("postrow.POST_ROW_INDEX")}]" + value="${n:out("postrow.POST_ID")}"/> + </td> + </tr> + <tr> + <td colspan="3" height="1" class="row3"><img src="${n:out("postrow.IMG_SPACER")}" width="1" height="1" + alt="."></td> + </tr> + </n:iterate> + <tr> + <td class="catBottom" colspan="3" height="28"> + <table width="60%" cellspacing="0" cellpadding="0" border="0" align="center"> + <tr> + <td width="50%" align="center"> + <input class="liteoption" type="submit" name="split_type_all" value="${n:i18n("L_SPLIT_POSTS")}"/> + </td> + <td width="50%" align="center"> + <input class="liteoption" type="submit" name="split_type_beyond" + value="${n:i18n("L_SPLIT_AFTER")}"/> + ${n:out("S_HIDDEN_FIELDS")} </td> + </tr> + </table> + </td> + </tr> + </table> + <table width="100%" cellspacing="2" border="0" align="center" cellpadding="2"> + <tr> + <td align="right" valign="top"><span class="gensmall">${n:out("S_TIMEZONE")}</span></td> + </tr> + </table> +</form> + +</forums:isAllowed> +</c:if> +</ui:define> +</ui:composition> +</div> \ No newline at end of file |