first draft of message importing and exporting to/from conferences (new host

tools)
This commit is contained in:
Eric J. Bowersox
2004-06-09 04:10:52 +00:00
parent f6d3d9494d
commit e6e94f3427
25 changed files with 2422 additions and 29 deletions

View File

@@ -0,0 +1,60 @@
<%--
The contents of this file are subject to the Mozilla Public License Version 1.1
(the "License"); you may not use this file except in compliance with the License.
You may obtain a copy of the License at <http://www.mozilla.org/MPL/>.
Software distributed under the License is distributed on an "AS IS" basis, WITHOUT
WARRANTY OF ANY KIND, either express or implied. See the License for the specific
language governing rights and limitations under the License.
The Original Code is the Venice Web Communities System.
The Initial Developer of the Original Code is Eric J. Bowersox <erbo@ricochet.com>,
for Silverwrist Design Studios. Portions created by Eric J. Bowersox are
Copyright (C) 2004 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved.
Contributor(s):
--%>
<%@ page import = "java.util.*" %>
<%@ page import = "com.silverwrist.venice.core.*" %>
<%@ page import = "com.silverwrist.venice.ui.conf.CurrentConference" %>
<%@ page import = "com.silverwrist.venice.ui.view.JSPView" %>
<%@ taglib uri="/tlds/util" prefix="util" %>
<%@ taglib uri="/tlds/community" prefix="comm" %>
<%@ taglib uri="/tlds/conference" prefix="conf" %>
<%
JSPView view = JSPView.get(request);
final List topics = (List)(view.getRequestAttribute("topic.list"));
%>
<util:header>
<util:title>Export Messages</util:title>
<util:subtitle><util:escape>Conference: <conf:name/></util:escape></util:subtitle>
</util:header>
<util:form action="conf/export.js.vs" type="servlet">
<input type="hidden" name="cc" value="<comm:ID/>" />
<input type="hidden" name="conf" value="<conf:ID/>" />
<div align="center"><table border="0" cellpadding="0" cellspacing="2">
<tr><td align="left" colspan="3">
<util:font color="content.fg" size="content"><b>Select Topics to Export:</b></util:font>
</td></tr>
<% for (Iterator it=topics.iterator(); it.hasNext(); ) { %>
<% TopicContext t = (TopicContext)(it.next()); %>
<tr>
<td align="center">
<input type="checkbox" name="tselect" value="<%= t.getTopicNumber() %>" checked="checked" />
</td>
<td align="right"><util:font color="content.fg" size="content"><%= t.getTopicNumber() %>.</util:font></td>
<td align="left"><util:font color="content.fg" size="content">
<util:escape><%= t.getName() %></util:escape>
</util:font></td>
</tr>
<% } // end for %>
</table></div><br />
<div align="center">
<util:button id="export" type="input" />&nbsp;&nbsp;<util:button id="cancel" type="input" />
</div>
</util:form>

View File

@@ -0,0 +1,53 @@
<%--
The contents of this file are subject to the Mozilla Public License Version 1.1
(the "License"); you may not use this file except in compliance with the License.
You may obtain a copy of the License at <http://www.mozilla.org/MPL/>.
Software distributed under the License is distributed on an "AS IS" basis, WITHOUT
WARRANTY OF ANY KIND, either express or implied. See the License for the specific
language governing rights and limitations under the License.
The Original Code is the Venice Web Communities System.
The Initial Developer of the Original Code is Eric J. Bowersox <erbo@ricochet.com>,
for Silverwrist Design Studios. Portions created by Eric J. Bowersox are
Copyright (C) 2004 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved.
Contributor(s):
--%>
<%@ page import = "java.util.*" %>
<%@ page import = "com.silverwrist.venice.core.*" %>
<%@ page import = "com.silverwrist.venice.ui.conf.CurrentConference" %>
<%@ page import = "com.silverwrist.venice.ui.view.JSPView" %>
<%@ taglib uri="/tlds/util" prefix="util" %>
<%@ taglib uri="/tlds/community" prefix="comm" %>
<%@ taglib uri="/tlds/conference" prefix="conf" %>
<%
JSPView view = JSPView.get(request);
%>
<util:header>
<util:title>Import Messages</util:title>
<util:subtitle><util:escape>Conference: <conf:name/></util:escape></util:subtitle>
</util:header>
<util:form action="conf/import.js.vs" type="servlet" isfile="true">
<input type="hidden" name="cc" value="<comm:ID/>" />
<input type="hidden" name="conf" value="<conf:ID/>" />
<div align="center">
<div align="left">
<util:font color="content.fg" size="content">Content data to be uploaded:</util:font>
<span class="cinput"><input type="file" name="the_file" size="48" /></span><br />
<util:font color="content.fg" size="content">
Match existing topics in the conference:
<select name="match" size="1">
<option value="<%= ConferenceContext.IMPORT_MATCH_NUM %>" selected="selected">By topic number</option>
<option value="<%= ConferenceContext.IMPORT_MATCH_NAME %>">By name</option>
</select><br />
<input type="checkbox" name="create" value="true" checked="checked" />
Create new topics if they don't exist
</util:font>
</div>
<util:button id="import" type="input" />&nbsp;&nbsp;<util:button id="cancel" type="input" />
</div>
</util:form>

View File

@@ -0,0 +1,48 @@
<%--
The contents of this file are subject to the Mozilla Public License Version 1.1
(the "License"); you may not use this file except in compliance with the License.
You may obtain a copy of the License at <http://www.mozilla.org/MPL/>.
Software distributed under the License is distributed on an "AS IS" basis, WITHOUT
WARRANTY OF ANY KIND, either express or implied. See the License for the specific
language governing rights and limitations under the License.
The Original Code is the Venice Web Communities System.
The Initial Developer of the Original Code is Eric J. Bowersox <erbo@ricochet.com>,
for Silverwrist Design Studios. Portions created by Eric J. Bowersox are
Copyright (C) 2004 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved.
Contributor(s):
--%>
<%@ page import = "java.util.*" %>
<%@ page import = "com.silverwrist.venice.core.*" %>
<%@ page import = "com.silverwrist.venice.ui.conf.CurrentConference" %>
<%@ page import = "com.silverwrist.venice.ui.view.JSPView" %>
<%@ taglib uri="/tlds/util" prefix="util" %>
<%@ taglib uri="/tlds/community" prefix="comm" %>
<%@ taglib uri="/tlds/conference" prefix="conf" %>
<%
JSPView view = JSPView.get(request);
List msgs = (List)(view.getRequestAttribute("output.list"));
%>
<util:comment>Import Messages - Results</util:comment>
<util:header>
<util:title>Results of Import</util:title>
<util:subtitle><util:escape>to Conference: <conf:name/></util:escape></util:subtitle>
</util:header>
<div class="content"><util:font color="content.fg" size="content">
<util:xlink>
<util:href type="servlet">conf/manage_conf.js.vs?cc=<comm:ID/>&conf=<conf:ID/></util:href>
<util:text>Return to Manage Conference Menu</util:text>
</util:xlink><p>
<% if (msgs.isEmpty()) { %>
<i>No error messages from import.</i>
<% } else { %>
<% for (Iterator it=msgs.iterator(); it.hasNext(); ) { %>
<% String s = (String)(it.next()); %>
<util:escape><%= s %></util:escape><br />
<% } // end for %>
<% } // end if %>
</util:font></div>

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB