c5e689483d
the Front Page
110 lines
4.1 KiB
Plaintext
110 lines
4.1 KiB
Plaintext
#*
|
|
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@silcom.com>,
|
|
for Silverwrist Design Studios. Portions created by Eric J. Bowersox are
|
|
Copyright (C) 2003 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved.
|
|
|
|
Contributor(s):
|
|
*#
|
|
#*
|
|
Parameters:
|
|
list = List of sidebox descriptors on our front page
|
|
notlist = List of sidebox descriptors not on our Front Page
|
|
*#
|
|
#header2( "Your Sidebox Configuration:" "Front Page" )
|
|
<div align="left">
|
|
<a href="#formatURL( "SERVLET" "top.js.vs" )">Return to Front Page</a>
|
|
</div>
|
|
|
|
#if( $list.size() > 0 )
|
|
#comment( "List of sideboxes" )
|
|
<p align="center"><table border="0" cellpadding="0" cellspacing="3">
|
|
#set( $max_i = $list.size() - 1 )
|
|
#set( $i = 0 )
|
|
#foreach( $d in $list )
|
|
<tr valign="middle">
|
|
<td align="center" width="16">
|
|
#if( $i < $max_i )
|
|
#set( $ix = $i + 1 )
|
|
<a href="#formatURL( "SERVLET" "sidebox_config_move.js.vs?sbid=${d.getID()}&to=$ix" )"><img
|
|
src="#formatURL( "IMAGE" "icn_down.gif" )" alt="[Down]" title="[Down]" width="16" height="16"
|
|
border="0" /></a>
|
|
#else
|
|
|
|
#end
|
|
</td>
|
|
<td align="center" width="16">
|
|
#if( $i > 0 )
|
|
#set( $ix = $i - 1 )
|
|
<a href="#formatURL( "SERVLET" "sidebox_config_move.js.vs?sbid=${d.getID()}&to=$ix" )"><img
|
|
src="#formatURL( "IMAGE" "icn_up.gif" )" alt="[Up]" title="[Up]" width="16" height="16"
|
|
border="0" /></a>
|
|
#else
|
|
|
|
#end
|
|
</td>
|
|
<td align="center" width="16">
|
|
<a href="#formatURL( "SERVLET" "sidebox_config_del.js.vs?sbid=${d.getID()}" )"><img
|
|
src="#formatURL( "IMAGE" "icn_x.gif" )" alt="[Remove]" title="[Remove]" width="16" height="16"
|
|
border="0" /></a>
|
|
</td>
|
|
<td align="left" class="content"><b>#encodeHTML( ${d.getDescription()} )</b></td>
|
|
</tr>
|
|
#set( $i = $i + 1 )
|
|
#end
|
|
</table></p>
|
|
|
|
#comment( "Explanation of the sidebox icons" )
|
|
<p><table border="0" cellpadding="2" cellspacing="0">
|
|
<tr valign="middle">
|
|
<td align="center" width="16">
|
|
<img src="#formatURL( "IMAGE" "icn_down.gif" )" alt="[Down]" title="[Down]" width="16" height="16"
|
|
border="0" />
|
|
</td>
|
|
<td align="left" class="content">
|
|
Click this symbol to move the specified sidebox down on your Front Page.
|
|
<td>
|
|
</tr>
|
|
<tr valign="middle">
|
|
<td align="center" width="16">
|
|
<img src="#formatURL( "IMAGE" "icn_up.gif" )" alt="[Up]" title="[Up]" width="16" height="16" border="0" />
|
|
</td>
|
|
<td align="left" class="content">
|
|
Click this symbol to move the specified sidebox up on your Front Page.
|
|
<td>
|
|
</tr>
|
|
<tr valign="middle">
|
|
<td align="center" width="16">
|
|
<img src="#formatURL( "IMAGE" "icn_x.gif" )" alt="[Remove]" title="[Remove]" width="16" height="16"
|
|
border="0" />
|
|
</td>
|
|
<td align="left" class="content">
|
|
Click this symbol to remove the specified sidebox from your Front Page.
|
|
<td>
|
|
</tr>
|
|
</table></p>
|
|
#else
|
|
<p align="center"><em>No sideboxes currently defined.</em></p>
|
|
#end
|
|
|
|
#if( $notlist.size() > 0 )
|
|
<div align="left"><form method="POST" action="#formatURL( "SERVLET" "sidebox_config_add.js.vs" )">
|
|
<b>Add new sidebox:</b>
|
|
<select name="sbid" size="1">
|
|
#foreach( $d in $notlist )
|
|
<option value="${d.getID()}">#encodeHTML( $d.getDescription() )</option>
|
|
#end
|
|
</select>
|
|
#button( "INPUT" "add" )
|
|
</form></div>
|
|
#end
|