-
+ |
Search Results
#if( $is_form >= 1 )
(Displaying ${ndx_first}-${ndx_last} of ${fcount})
diff --git a/venice-data/velocity/find_communities.vm b/venice-data/velocity/find_communities.vm
new file mode 100644
index 0000000..12b1e46
--- /dev/null
+++ b/venice-data/velocity/find_communities.vm
@@ -0,0 +1,186 @@
+#*
+ 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 .
+
+ 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 ,
+ 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:
+ field = Search field (string equivalent)
+ mode = Search mode (string equivalent)
+ term = Search term
+ ofs = Offset within the search we're at right now
+ fcount = Total number of items found in current search
+ pagesize = Number of items to display per page
+ category = Current category (may be null)
+ results = Results list from find, a List of DynamoUser objects (may be null)
+ menu = Tab menu to render across the top
+*#
+#render( $menu )
+#header1( "Find Communities" )
+
+
+#if( $category )
+ #comment( "Category Name" )
+
+
+ Category:
+ #if ( $category.getCategoryID()<0 )
+ Top
+ #else
+ Top
+ #set( $limit = $category.getNumLevels() - 1 )
+ #foreach( $i in [0..$limit] )
+ #if( $i < $limit )
+ : #encodeHTML( $category.getTitleAtLevel($i) )
+ #else
+ : #encodeHTML( $category.getTitleAtLevel($i) )
+ #end
+ #end
+ #end
+
+
+ #set( $list = $category.getSubCategories() )
+ #if( $list.size() > 0 )
+ #comment( "Begin Category List" )
+
+ #comment( "End Category List" )
+ #end
+#end
+
+#if( $results )
+ ## Do a tricky set of computations here to figure out what we need to display in terms of the search results
+ ## and the form to the right that lets us page through results.
+ #set( $resultcount = $results.size() )
+ #set( $is_next = 0 )
+ #set( $is_prev = 0 )
+ #if( $resultcount > $pagesize )
+ #set( $resultcount = $pagesize )
+ #set( $is_next = 1 )
+ #end
+ #if( $ofs > 0 )
+ #set( $is_prev = 1 )
+ #end
+ #set( $is_form = $is_next + $is_prev )
+ #set( $ndx_first = $ofs + 1 )
+ #set( $ndx_last = $ofs + $pagesize )
+ #if( $ndx_last > $fcount )
+ #set( $ndx_last = $fcount )
+ #end
+
+ #comment( "Results display" )
+
+
+
+ #if( $category )
+ Communities In Category
+ #else
+ Search Results
+ #end
+ #if( $is_form >= 1 )
+ (Displaying ${ndx_first}-${ndx_last} of ${fcount})
+ #end
+ |
+
+ #if( $is_form >= 1 )
+ #comment( "Results navigation form" )
+
+ #else
+
+ #end
+ |
+
+
+ #if( $fcount > 0 )
+ #set( $prof_ns = "http://www.silverwrist.com/NS/venice/2003/05/29/community.profile" )
+ #set( $i = $resultcount )
+
+ #foreach( $comm in $results )
+ #set( $i = $i - 1 )
+ #if( $i >= 0 )
+ #set( $descr = $std.getProperty($comm,$prof_ns,"synopsis") )
+ #set( $mcount = $comm.getMemberGroup().getMemberCount() )
+
+ #bullet() |
+
+ #encodeHTML( $comm.Name )
+ Host: #encodeHTML( $comm.HostUser.Name )
+ - $mcount
+ #if( $mcount == 1 )
+ member
+ #else
+ members
+ #end
+ Latest activity: #formatActivity( $comm.LastUpdateDate )
+ #if( $descr )
+ #encodeHTML( $descr )
+ #end
+ |
+
+ #end
+ #end
+
+ #else
+ No communities found.
+ #end
+
+ #comment( "End results display" )
+#end
diff --git a/venice-data/velocity/find_users.vm b/venice-data/velocity/find_users.vm
index f15c3c9..724bf3e 100644
--- a/venice-data/velocity/find_users.vm
+++ b/venice-data/velocity/find_users.vm
@@ -74,7 +74,7 @@
#comment( "Results display" )
-
+ |
Search Results
#if( $is_form >= 1 )
(Displaying ${ndx_first}-${ndx_last} of ${fcount})
diff --git a/venice-data/velocity/stylesheets/adv_base.vm b/venice-data/velocity/stylesheets/adv_base.vm
index 8369092..c7b25f5 100644
--- a/venice-data/velocity/stylesheets/adv_base.vm
+++ b/venice-data/velocity/stylesheets/adv_base.vm
@@ -38,6 +38,13 @@ body td.smcontent, body div.smcontent, body p.smcontent {
font-size: x-small;
}
+body td.subhead, body div.subhead, body p.subhead {
+ font-size: small;
+ voice-family: "\"}\"";
+ voice-family: inherit;
+ font-size: medium;
+ }
+
body td.framefooter, body div.framefooter, body p.framefooter {
font-size: xx-small;
voice-family: "\"}\"";
@@ -85,6 +92,10 @@ html>body td.smcontent, html>body div.smcontent, html>body p.smcontent {
font-size: x-small;
}
+html>body td.subhead, html>body div.subhead, html>body p.subhead {
+ font-size: medium;
+ }
+
html>body td.framefooter, html>body div.framefooter, html>body p.framefooter {
font-size: x-small;
}
diff --git a/venice-data/velocity/stylesheets/normal_base.vm b/venice-data/velocity/stylesheets/normal_base.vm
index f10bf5a..592afbd 100644
--- a/venice-data/velocity/stylesheets/normal_base.vm
+++ b/venice-data/velocity/stylesheets/normal_base.vm
@@ -68,6 +68,12 @@ div.frametopright {
font-size: 9px;
}
+.subhead {
+ color: #000000;
+ background-color: #ffffff;
+ font-size: 15px;
+ }
+
.framefooter {
color: #000000;
background-color: #ffffff;
|
|