|
From: Chris W. <la...@us...> - 2001-10-11 15:14:34
|
Update of /cvsroot/openinteract/OpenInteract/template
In directory usw-pr-cvs1:/tmp/cvs-serv16791
Modified Files:
search_results_page_listing
Log Message:
create a break point so that resultsets with lots of pages don't make
the page 1200+ pixels wide (since we use )
Index: search_results_page_listing
===================================================================
RCS file: /cvsroot/openinteract/OpenInteract/template/search_results_page_listing,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** search_results_page_listing 2001/10/08 20:20:00 1.1
--- search_results_page_listing 2001/10/11 15:14:31 1.2
***************
*** 1,18 ****
[%########################################
! search_results_page_listing( table_width, total_pages, current_page,
! search_results_key, search_id, align, base_url )
Generate a table of the specified width with the search results
listing in it.
########################################-%]
! [%- DEFAULT align = 'right';
! DEFAULT table_width = '90%'; -%]
<table border="0" width="[% table_width %]"
cellpadding="2" cellspacing="0">
<tr><td align="[% align %]">
! [%- return_url = "$base_url?$search_results_key=$search_id" -%]
! [%- OI.comp( 'page_count', total_pages = total_pages,
! current_pagenum = current_page,
! url = return_url ) -%]
</td></tr>
</table>
--- 1,37 ----
[%########################################
! search_results_page_listing( table_width, search_results_key, search_id, align,
! base_url, total_pages, current_page )
Generate a table of the specified width with the search results
listing in it.
+
+ Parameters
+ table_width - width of the table
+ search_results_key - name of field to set the search results key to
+ search_id - ID to retrieve search results
+ align - align the listing
+ base_url - URL to which we append ?$search_results_key=$search_id;pagenum=x
+ so we can get more search results
+ total_pages - total pages in resultset
+ current_page - what page you're on
+
+ Defaults
+ align - 'right'
+ table_width - '90%'
+ search_results_key - 'search_id'
+
########################################-%]
! [%- DEFAULT align = 'right';
! DEFAULT table_width = '90%';
! DEFAULT search_results_key = 'search_id'; -%]
<table border="0" width="[% table_width %]"
cellpadding="2" cellspacing="0">
<tr><td align="[% align %]">
! [%- return_url = "$base_url?$search_results_key=$search_id" -%]
! <font size="-1">
! [%- PROCESS page_count( total_pages = total_pages,
! current_pagenum = current_page,
! url = return_url ) -%]
! </font>
</td></tr>
</table>
|