phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] phpgwapi/templates/base search_field.xsl, 1.3 nextmat


From: ceb
Subject: [Phpgroupware-cvs] phpgwapi/templates/base search_field.xsl, 1.3 nextmatchs.xsl, 1.3 msgbox.xsl, 1.3 categories.xsl, 1.3 filter_select.xsl, 1.3
Date: Thu, 24 Feb 2005 15:59:03 -0000

Update of phpgwapi/templates/base

Modified Files:
     Branch: MAIN
            search_field.xsl lines: +28 -28
            nextmatchs.xsl lines: +178 -178
            msgbox.xsl lines: +28 -28
            categories.xsl lines: +54 -54
            filter_select.xsl lines: +36 -36

Log Message:
removed windoze Ms from xslt tpls

====================================================
Index: phpgwapi/templates/base/search_field.xsl
diff -u phpgwapi/templates/base/search_field.xsl:1.2 
phpgwapi/templates/base/search_field.xsl:1.3
--- phpgwapi/templates/base/search_field.xsl:1.2        Thu Dec 30 06:47:34 2004
+++ phpgwapi/templates/base/search_field.xsl    Tue Jan 18 23:51:15 2005
@@ -1,28 +1,28 @@
-<!-- $Id$ -->
-
-       <xsl:template name="search_field">
-               <xsl:apply-templates select="search_data"/>
-       </xsl:template>
-
-       <xsl:template match="search_data">
-               <xsl:variable name="select_url"><xsl:value-of 
select="select_url"/></xsl:variable>
-               <xsl:variable name="query"><xsl:value-of 
select="query"/></xsl:variable>
-               <xsl:variable name="lang_search"><xsl:value-of 
select="lang_search"/></xsl:variable>
-                       <form method="post" action="{$select_url}">
-                               <input type="text" name="query" 
value="{$query}" onMouseout="window.status='';return true;">
-                                       <xsl:attribute name="onMouseover">
-                                               
<xsl:text>window.status='</xsl:text>
-                                                       <xsl:value-of 
select="lang_searchfield_statustext"/>
-                                               <xsl:text>'; return 
true;</xsl:text>
-                                       </xsl:attribute>
-                               </input>
-                               <xsl:text> </xsl:text>
-                               <input type="submit" name="submit" 
value="{$lang_search}" onMouseout="window.status='';return true;">
-                                       <xsl:attribute name="onMouseover">
-                                               
<xsl:text>window.status='</xsl:text>
-                                                       <xsl:value-of 
select="lang_searchbutton_statustext"/>
-                                               <xsl:text>'; return 
true;</xsl:text>
-                                       </xsl:attribute>
-                               </input>
-                       </form>
-       </xsl:template>
+<!-- $Id$ -->
+
+       <xsl:template name="search_field">
+               <xsl:apply-templates select="search_data"/>
+       </xsl:template>
+
+       <xsl:template match="search_data">
+               <xsl:variable name="select_url"><xsl:value-of 
select="select_url"/></xsl:variable>
+               <xsl:variable name="query"><xsl:value-of 
select="query"/></xsl:variable>
+               <xsl:variable name="lang_search"><xsl:value-of 
select="lang_search"/></xsl:variable>
+                       <form method="post" action="{$select_url}">
+                               <input type="text" name="query" 
value="{$query}" onMouseout="window.status='';return true;">
+                                       <xsl:attribute name="onMouseover">
+                                               
<xsl:text>window.status='</xsl:text>
+                                                       <xsl:value-of 
select="lang_searchfield_statustext"/>
+                                               <xsl:text>'; return 
true;</xsl:text>
+                                       </xsl:attribute>
+                               </input>
+                               <xsl:text> </xsl:text>
+                               <input type="submit" name="submit" 
value="{$lang_search}" onMouseout="window.status='';return true;">
+                                       <xsl:attribute name="onMouseover">
+                                               
<xsl:text>window.status='</xsl:text>
+                                                       <xsl:value-of 
select="lang_searchbutton_statustext"/>
+                                               <xsl:text>'; return 
true;</xsl:text>
+                                       </xsl:attribute>
+                               </input>
+                       </form>
+       </xsl:template>

====================================================
Index: phpgwapi/templates/base/nextmatchs.xsl
diff -u phpgwapi/templates/base/nextmatchs.xsl:1.2 
phpgwapi/templates/base/nextmatchs.xsl:1.3
--- phpgwapi/templates/base/nextmatchs.xsl:1.2  Thu Dec 30 06:47:34 2004
+++ phpgwapi/templates/base/nextmatchs.xsl      Tue Jan 18 23:51:15 2005
@@ -1,178 +1,178 @@
-<!-- $Id$ -->
-
-<xsl:template name="nextmatchs">
-       <xsl:choose>
-               <xsl:when test="nm_data != ''">
-                       <xsl:apply-templates select="nm_data"/>
-               </xsl:when>
-       </xsl:choose>
-</xsl:template>
-
-<xsl:template match="nm_data">
-<!--   <xsl:param name="nextmatchs_params"/> -->
-       <xsl:variable name="allow_all_rows"><xsl:value-of 
select="allow_all_rows"/></xsl:variable>
-       <xsl:variable name="start_record"><xsl:value-of 
select="start_record"/></xsl:variable>
-       <xsl:variable name="cur_record"><xsl:value-of 
select="number($start_record) + number(1)"/></xsl:variable>
-       <xsl:variable name="record_limit"><xsl:value-of 
select="record_limit"/></xsl:variable>
-       <xsl:variable name="num_records"><xsl:value-of 
select="num_records"/></xsl:variable>
-       <xsl:variable name="all_records"><xsl:value-of 
select="all_records"/></xsl:variable>
-       <xsl:variable name="nextmatchs_url"><xsl:value-of 
select="nextmatchs_url"/></xsl:variable>
-       <xsl:variable name="first_img"><xsl:value-of 
select="first_img"/></xsl:variable>
-       <xsl:variable name="first_grey_img"><xsl:value-of 
select="first_grey_img"/></xsl:variable>
-       <xsl:variable name="left_img"><xsl:value-of 
select="left_img"/></xsl:variable>
-       <xsl:variable name="left_grey_img"><xsl:value-of 
select="left_grey_img"/></xsl:variable>
-       <xsl:variable name="right_img"><xsl:value-of 
select="right_img"/></xsl:variable>
-       <xsl:variable name="right_grey_img"><xsl:value-of 
select="right_grey_img"/></xsl:variable>
-       <xsl:variable name="last_img"><xsl:value-of 
select="last_img"/></xsl:variable>
-       <xsl:variable name="last_grey_img"><xsl:value-of 
select="last_grey_img"/></xsl:variable>
-       <xsl:variable name="all_img"><xsl:value-of 
select="all_img"/></xsl:variable>
-
-       <xsl:variable name="img_width"><xsl:value-of 
select="img_width"/></xsl:variable>
-       <xsl:variable name="img_height"><xsl:value-of 
select="img_height"/></xsl:variable>
-
-       <xsl:variable name="title_first"><xsl:value-of 
select="title_first"/></xsl:variable>
-       <xsl:variable name="title_previous"><xsl:value-of 
select="title_previous"/></xsl:variable>
-       <xsl:variable name="title_next"><xsl:value-of 
select="title_next"/></xsl:variable>
-       <xsl:variable name="title_last"><xsl:value-of 
select="title_last"/></xsl:variable>
-       <xsl:variable name="title_all"><xsl:value-of 
select="title_all"/></xsl:variable>
-
-       <table border="0" width="100%">
-               <tr>
-                       <xsl:choose>
-                               <xsl:when test="number($cur_record) > 
number(1)">
-                               <xsl:variable name="first"><xsl:value-of 
select="nextmatchs_url"/>&amp;start=0</xsl:variable>
-                                       <td width="25">
-                                               <a href="{$first}"><img 
src="{$first_img}" border="0" width="{$img_width}" height="{$img_height}" 
alt="{$title_first}" title="{$title_first}"/></a>
-                                       </td>
-                               </xsl:when>
-                               <xsl:otherwise>
-                                       <td width="25">
-                                               <img src="{$first_grey_img}" 
border="0" width="{$img_width}" height="{$img_height}"/>
-                                       </td>
-                               </xsl:otherwise>
-                       </xsl:choose>
-
-                       <xsl:choose>
-                               <xsl:when test="number($cur_record) > 
number(1)">
-                               <xsl:variable name="prev_num"><xsl:value-of 
select="number($cur_record) - number($record_limit)"/></xsl:variable>
-                                       <xsl:choose>
-                                               <xsl:when 
test="number($prev_num)+number(1) >= number(1)">
-                                                       <xsl:choose>
-                                                               <xsl:when 
test="number($cur_record) - number($record_limit) > number(0)">
-                                                               <xsl:variable 
name="prev_number"><xsl:value-of select="number($cur_record) - 
number($record_limit)"/></xsl:variable>
-                                                               <xsl:variable 
name="prev"><xsl:value-of select="nextmatchs_url"/>&amp;start=<xsl:value-of 
select="number($prev_number) - number(1)"/></xsl:variable>
-                                                                       <td 
width="25">
-                                                                               
<a href="{$prev}"><img src="{$left_img}" border="0" width="{$img_width}" 
height="{$img_height}" alt="{$title_previous}" title="{$title_previous}"/></a>
-                                                                       </td>
-                                                               </xsl:when>
-                                                               <xsl:otherwise>
-                                                               <xsl:variable 
name="prev"><xsl:value-of select="nextmatchs_url"/>&amp;start=0</xsl:variable>
-                                                                       <td 
width="25">
-                                                                               
<a href="{$prev}"><img src="{$left_grey_img}" border="0" width="{$img_width}" 
height="{$img_height}"/></a>
-                                                                       </td>
-                                                               </xsl:otherwise>
-                                                       </xsl:choose>
-                                               </xsl:when>
-                                               <xsl:otherwise>
-                                                       <td width="25">
-                                                               <img 
src="{$left_grey_img}" border="0" width="{$img_width}" height="{$img_height}"/>
-                                                       </td>
-                                               </xsl:otherwise>
-                                       </xsl:choose>
-                               </xsl:when>
-                               <xsl:otherwise>
-                                       <td width="25">
-                                               <img src="{$left_grey_img}" 
border="0" width="{$img_width}" height="{$img_height}"/>
-                                       </td>
-                               </xsl:otherwise>
-                       </xsl:choose>
-
-                       <!-- <xsl:choose>
-                               <xsl:when test="number($num_records) = 
number(0)">
-                                       <td nowrap="nowrap" align="center">0 - 
0 of 0&#160;</td>
-                               </xsl:when>
-                               <xsl:otherwise>
-                                       <xsl:choose>
-                                               <xsl:when 
test="number($cur_record) + number($record_limit) > number($num_records)">
-                                               <xsl:variable 
name="of_num"><xsl:value-of select="number($cur_record)+number($num_records) - 
number(1)"/></xsl:variable>
-                                                       <td nowrap="nowrap" 
align="center">
-                                                               <xsl:value-of 
select="$cur_record"/> - <xsl:value-of select="$of_num"/> of <xsl:value-of 
select="$all_records"/>&#160;
-                                                       </td>
-                                               </xsl:when>
-                                               <xsl:otherwise>
-                                               <xsl:variable 
name="of_num"><xsl:value-of select="number($cur_record) + number($record_limit) 
- number(1)"/></xsl:variable>
-                                                       <td nowrap="nowrap" 
align="center">
-                                                               <xsl:value-of 
select="$cur_record"/> - <xsl:value-of select="$of_num"/> of <xsl:value-of 
select="$all_records"/>&#160;
-                                                       </td>
-                                               </xsl:otherwise>
-                                       </xsl:choose>
-                               </xsl:otherwise>
-                       </xsl:choose> -->
-
-                       <td nowrap="nowrap" align="center"><xsl:value-of 
select="lang_showing"/></td>
-                       <xsl:choose>
-                               <xsl:when test="number($all_records) > 
(number($start_record) + number($record_limit))">
-                               <xsl:variable name="next_num"><xsl:value-of 
select="number($cur_record) + number($record_limit)"/></xsl:variable>
-                                       <xsl:choose>
-                                               <xsl:when 
test="number($all_records) > number($next_num)-number(1)">
-                                               <xsl:variable 
name="next"><xsl:value-of select="nextmatchs_url"/>&amp;start=<xsl:value-of 
select="number($next_num) - number(1)"/></xsl:variable>
-                                                       <td width="25" 
align="right">
-                                                               <a 
href="{$next}"><img src="{$right_img}" border="0" width="{$img_width}" 
height="{$img_height}" alt="{$title_next}" title="{$title_next}"/></a>
-                                                       </td>
-                                               </xsl:when>
-                                               <xsl:otherwise>
-                                                       <td width="25" 
align="right">
-                                                               <img 
src="{$right_grey_img}" border="0" width="{$img_width}" height="{$img_height}"/>
-                                                       </td>
-                                               </xsl:otherwise>
-                                       </xsl:choose>
-                               </xsl:when>
-                               <xsl:otherwise>
-                                       <td width="25" align="right">
-                                               <img src="{$right_grey_img}" 
border="0" width="{$img_width}" height="{$img_height}"/>
-                                       </td>
-                               </xsl:otherwise>
-                       </xsl:choose>
-
-                       <xsl:choose>
-                               <xsl:when test="number($all_records) > 
(number($start_record) + number($record_limit))">
-                               <xsl:variable name="last_num"><xsl:value-of 
select="number($all_records)-number($record_limit)+number(1)"/></xsl:variable>
-                                       <xsl:choose>
-                                               <xsl:when 
test="number($last_num) > number($cur_record)">
-                                               <xsl:variable 
name="last"><xsl:value-of select="nextmatchs_url"/>&amp;start=<xsl:value-of 
select="number($last_num)-number(1)"/></xsl:variable>
-                                                       <td width="25" 
align="right">
-                                                               <a 
href="{$last}"><img src="{$last_img}" border="0" width="{$img_width}" 
height="{$img_height}" alt="{$title_last}" title="{$title_last}"/></a>
-                                                       </td>
-                                               </xsl:when>
-                                               <xsl:otherwise>
-                                                       <td width="25" 
align="right">
-                                                               <img 
src="{$last_grey_img}" border="0" width="{$img_width}" height="{$img_height}"/>
-                                                       </td>
-                                               </xsl:otherwise>
-                                       </xsl:choose>
-                               </xsl:when>
-                               <xsl:otherwise>
-                                       <td width="25" align="right">
-                                               <img src="{$last_grey_img}" 
border="0" width="{$img_width}" height="{$img_height}"/>
-                                       </td>
-                               </xsl:otherwise>
-                       </xsl:choose>
-
-                       <xsl:choose>
-                       <!--<xsl:when test="number($all_records) =1"> -->
-                               <xsl:when test="allow_all_rows != ''">
-                               <xsl:variable name="all"><xsl:value-of 
select="nextmatchs_url"/>&amp;start=0</xsl:variable>
-                                       <td width="25" align="right">
-                                               <a href="{$all}"><img 
src="{$all_img}" border="0" alt="{$title_all}" title="{$title_all}"/></a>
-                                       </td>
-                               </xsl:when>
-                       <!--    <xsl:otherwise>
-                               <xsl:variable name="all"><xsl:value-of 
select="nextmatchs_url"/>&amp;allrows=1</xsl:variable>
-                                       <td width="25" align="right">
-                                               <a href="{$all}"><img 
src="{$all_img}" border="0"/></a>
-                                       </td>
-                               </xsl:otherwise> -->
-                       </xsl:choose>
-               </tr>
-       </table>
-</xsl:template>
+<!-- $Id$ -->
+
+<xsl:template name="nextmatchs">
+       <xsl:choose>
+               <xsl:when test="nm_data != ''">
+                       <xsl:apply-templates select="nm_data"/>
+               </xsl:when>
+       </xsl:choose>
+</xsl:template>
+
+<xsl:template match="nm_data">
+<!--   <xsl:param name="nextmatchs_params"/> -->
+       <xsl:variable name="allow_all_rows"><xsl:value-of 
select="allow_all_rows"/></xsl:variable>
+       <xsl:variable name="start_record"><xsl:value-of 
select="start_record"/></xsl:variable>
+       <xsl:variable name="cur_record"><xsl:value-of 
select="number($start_record) + number(1)"/></xsl:variable>
+       <xsl:variable name="record_limit"><xsl:value-of 
select="record_limit"/></xsl:variable>
+       <xsl:variable name="num_records"><xsl:value-of 
select="num_records"/></xsl:variable>
+       <xsl:variable name="all_records"><xsl:value-of 
select="all_records"/></xsl:variable>
+       <xsl:variable name="nextmatchs_url"><xsl:value-of 
select="nextmatchs_url"/></xsl:variable>
+       <xsl:variable name="first_img"><xsl:value-of 
select="first_img"/></xsl:variable>
+       <xsl:variable name="first_grey_img"><xsl:value-of 
select="first_grey_img"/></xsl:variable>
+       <xsl:variable name="left_img"><xsl:value-of 
select="left_img"/></xsl:variable>
+       <xsl:variable name="left_grey_img"><xsl:value-of 
select="left_grey_img"/></xsl:variable>
+       <xsl:variable name="right_img"><xsl:value-of 
select="right_img"/></xsl:variable>
+       <xsl:variable name="right_grey_img"><xsl:value-of 
select="right_grey_img"/></xsl:variable>
+       <xsl:variable name="last_img"><xsl:value-of 
select="last_img"/></xsl:variable>
+       <xsl:variable name="last_grey_img"><xsl:value-of 
select="last_grey_img"/></xsl:variable>
+       <xsl:variable name="all_img"><xsl:value-of 
select="all_img"/></xsl:variable>
+
+       <xsl:variable name="img_width"><xsl:value-of 
select="img_width"/></xsl:variable>
+       <xsl:variable name="img_height"><xsl:value-of 
select="img_height"/></xsl:variable>
+
+       <xsl:variable name="title_first"><xsl:value-of 
select="title_first"/></xsl:variable>
+       <xsl:variable name="title_previous"><xsl:value-of 
select="title_previous"/></xsl:variable>
+       <xsl:variable name="title_next"><xsl:value-of 
select="title_next"/></xsl:variable>
+       <xsl:variable name="title_last"><xsl:value-of 
select="title_last"/></xsl:variable>
+       <xsl:variable name="title_all"><xsl:value-of 
select="title_all"/></xsl:variable>
+
+       <table border="0" width="100%">
+               <tr>
+                       <xsl:choose>
+                               <xsl:when test="number($cur_record) > 
number(1)">
+                               <xsl:variable name="first"><xsl:value-of 
select="nextmatchs_url"/>&amp;start=0</xsl:variable>
+                                       <td width="25">
+                                               <a href="{$first}"><img 
src="{$first_img}" border="0" width="{$img_width}" height="{$img_height}" 
alt="{$title_first}" title="{$title_first}"/></a>
+                                       </td>
+                               </xsl:when>
+                               <xsl:otherwise>
+                                       <td width="25">
+                                               <img src="{$first_grey_img}" 
border="0" width="{$img_width}" height="{$img_height}"/>
+                                       </td>
+                               </xsl:otherwise>
+                       </xsl:choose>
+
+                       <xsl:choose>
+                               <xsl:when test="number($cur_record) > 
number(1)">
+                               <xsl:variable name="prev_num"><xsl:value-of 
select="number($cur_record) - number($record_limit)"/></xsl:variable>
+                                       <xsl:choose>
+                                               <xsl:when 
test="number($prev_num)+number(1) >= number(1)">
+                                                       <xsl:choose>
+                                                               <xsl:when 
test="number($cur_record) - number($record_limit) > number(0)">
+                                                               <xsl:variable 
name="prev_number"><xsl:value-of select="number($cur_record) - 
number($record_limit)"/></xsl:variable>
+                                                               <xsl:variable 
name="prev"><xsl:value-of select="nextmatchs_url"/>&amp;start=<xsl:value-of 
select="number($prev_number) - number(1)"/></xsl:variable>
+                                                                       <td 
width="25">
+                                                                               
<a href="{$prev}"><img src="{$left_img}" border="0" width="{$img_width}" 
height="{$img_height}" alt="{$title_previous}" title="{$title_previous}"/></a>
+                                                                       </td>
+                                                               </xsl:when>
+                                                               <xsl:otherwise>
+                                                               <xsl:variable 
name="prev"><xsl:value-of select="nextmatchs_url"/>&amp;start=0</xsl:variable>
+                                                                       <td 
width="25">
+                                                                               
<a href="{$prev}"><img src="{$left_grey_img}" border="0" width="{$img_width}" 
height="{$img_height}"/></a>
+                                                                       </td>
+                                                               </xsl:otherwise>
+                                                       </xsl:choose>
+                                               </xsl:when>
+                                               <xsl:otherwise>
+                                                       <td width="25">
+                                                               <img 
src="{$left_grey_img}" border="0" width="{$img_width}" height="{$img_height}"/>
+                                                       </td>
+                                               </xsl:otherwise>
+                                       </xsl:choose>
+                               </xsl:when>
+                               <xsl:otherwise>
+                                       <td width="25">
+                                               <img src="{$left_grey_img}" 
border="0" width="{$img_width}" height="{$img_height}"/>
+                                       </td>
+                               </xsl:otherwise>
+                       </xsl:choose>
+
+                       <!-- <xsl:choose>
+                               <xsl:when test="number($num_records) = 
number(0)">
+                                       <td nowrap="nowrap" align="center">0 - 
0 of 0&#160;</td>
+                               </xsl:when>
+                               <xsl:otherwise>
+                                       <xsl:choose>
+                                               <xsl:when 
test="number($cur_record) + number($record_limit) > number($num_records)">
+                                               <xsl:variable 
name="of_num"><xsl:value-of select="number($cur_record)+number($num_records) - 
number(1)"/></xsl:variable>
+                                                       <td nowrap="nowrap" 
align="center">
+                                                               <xsl:value-of 
select="$cur_record"/> - <xsl:value-of select="$of_num"/> of <xsl:value-of 
select="$all_records"/>&#160;
+                                                       </td>
+                                               </xsl:when>
+                                               <xsl:otherwise>
+                                               <xsl:variable 
name="of_num"><xsl:value-of select="number($cur_record) + number($record_limit) 
- number(1)"/></xsl:variable>
+                                                       <td nowrap="nowrap" 
align="center">
+                                                               <xsl:value-of 
select="$cur_record"/> - <xsl:value-of select="$of_num"/> of <xsl:value-of 
select="$all_records"/>&#160;
+                                                       </td>
+                                               </xsl:otherwise>
+                                       </xsl:choose>
+                               </xsl:otherwise>
+                       </xsl:choose> -->
+
+                       <td nowrap="nowrap" align="center"><xsl:value-of 
select="lang_showing"/></td>
+                       <xsl:choose>
+                               <xsl:when test="number($all_records) > 
(number($start_record) + number($record_limit))">
+                               <xsl:variable name="next_num"><xsl:value-of 
select="number($cur_record) + number($record_limit)"/></xsl:variable>
+                                       <xsl:choose>
+                                               <xsl:when 
test="number($all_records) > number($next_num)-number(1)">
+                                               <xsl:variable 
name="next"><xsl:value-of select="nextmatchs_url"/>&amp;start=<xsl:value-of 
select="number($next_num) - number(1)"/></xsl:variable>
+                                                       <td width="25" 
align="right">
+                                                               <a 
href="{$next}"><img src="{$right_img}" border="0" width="{$img_width}" 
height="{$img_height}" alt="{$title_next}" title="{$title_next}"/></a>
+                                                       </td>
+                                               </xsl:when>
+                                               <xsl:otherwise>
+                                                       <td width="25" 
align="right">
+                                                               <img 
src="{$right_grey_img}" border="0" width="{$img_width}" height="{$img_height}"/>
+                                                       </td>
+                                               </xsl:otherwise>
+                                       </xsl:choose>
+                               </xsl:when>
+                               <xsl:otherwise>
+                                       <td width="25" align="right">
+                                               <img src="{$right_grey_img}" 
border="0" width="{$img_width}" height="{$img_height}"/>
+                                       </td>
+                               </xsl:otherwise>
+                       </xsl:choose>
+
+                       <xsl:choose>
+                               <xsl:when test="number($all_records) > 
(number($start_record) + number($record_limit))">
+                               <xsl:variable name="last_num"><xsl:value-of 
select="number($all_records)-number($record_limit)+number(1)"/></xsl:variable>
+                                       <xsl:choose>
+                                               <xsl:when 
test="number($last_num) > number($cur_record)">
+                                               <xsl:variable 
name="last"><xsl:value-of select="nextmatchs_url"/>&amp;start=<xsl:value-of 
select="number($last_num)-number(1)"/></xsl:variable>
+                                                       <td width="25" 
align="right">
+                                                               <a 
href="{$last}"><img src="{$last_img}" border="0" width="{$img_width}" 
height="{$img_height}" alt="{$title_last}" title="{$title_last}"/></a>
+                                                       </td>
+                                               </xsl:when>
+                                               <xsl:otherwise>
+                                                       <td width="25" 
align="right">
+                                                               <img 
src="{$last_grey_img}" border="0" width="{$img_width}" height="{$img_height}"/>
+                                                       </td>
+                                               </xsl:otherwise>
+                                       </xsl:choose>
+                               </xsl:when>
+                               <xsl:otherwise>
+                                       <td width="25" align="right">
+                                               <img src="{$last_grey_img}" 
border="0" width="{$img_width}" height="{$img_height}"/>
+                                       </td>
+                               </xsl:otherwise>
+                       </xsl:choose>
+
+                       <xsl:choose>
+                       <!--<xsl:when test="number($all_records) =1"> -->
+                               <xsl:when test="allow_all_rows != ''">
+                               <xsl:variable name="all"><xsl:value-of 
select="nextmatchs_url"/>&amp;start=0</xsl:variable>
+                                       <td width="25" align="right">
+                                               <a href="{$all}"><img 
src="{$all_img}" border="0" alt="{$title_all}" title="{$title_all}"/></a>
+                                       </td>
+                               </xsl:when>
+                       <!--    <xsl:otherwise>
+                               <xsl:variable name="all"><xsl:value-of 
select="nextmatchs_url"/>&amp;allrows=1</xsl:variable>
+                                       <td width="25" align="right">
+                                               <a href="{$all}"><img 
src="{$all_img}" border="0"/></a>
+                                       </td>
+                               </xsl:otherwise> -->
+                       </xsl:choose>
+               </tr>
+       </table>
+</xsl:template>

====================================================
Index: phpgwapi/templates/base/msgbox.xsl
diff -u phpgwapi/templates/base/msgbox.xsl:1.2 
phpgwapi/templates/base/msgbox.xsl:1.3
--- phpgwapi/templates/base/msgbox.xsl:1.2      Thu Dec 30 06:47:34 2004
+++ phpgwapi/templates/base/msgbox.xsl  Tue Jan 18 23:51:15 2005
@@ -1,28 +1,28 @@
-<!-- $Id$ -->
-
-       <xsl:template name="msgbox">
-               <xsl:apply-templates select="msgbox_data"/>
-       </xsl:template>
-
-       <xsl:template match="msgbox_data">
-               <table cellpadding="2" cellspacing="0" align="center" 
class="msgbox">
-                       <tr>
-                               <td align="center" valign="middle">
-                                       <xsl:choose>
-                                               <xsl:when test="msgbox_img != 
''">
-                                               <xsl:variable 
name="msgbox_img"><xsl:value-of select="msgbox_img"/></xsl:variable>
-                                               <xsl:variable 
name="msgbox_img_alt"><xsl:value-of select="msgbox_img_alt"/></xsl:variable>
-                                                       <img 
src="{$msgbox_img}" alt="{$msgbox_img_alt}" title="{$msgbox_img_alt}" 
onMouseout="window.status='';return true;">
-                                                               <xsl:attribute 
name="onMouseover">
-                                                                       
<xsl:text>window.status='</xsl:text>
-                                                                               
<xsl:value-of select="lang_msgbox_statustext"/>
-                                                                       
<xsl:text>'; return true;</xsl:text>
-                                                               </xsl:attribute>
-                                                       
</img><xsl:text>&nbsp;</xsl:text>
-                                               </xsl:when>
-                                       </xsl:choose>
-                                       <xsl:value-of 
disable-output-escaping="yes" select="msgbox_text"/>
-                               </td>
-                       </tr>
-               </table>
-       </xsl:template>
+<!-- $Id$ -->
+
+       <xsl:template name="msgbox">
+               <xsl:apply-templates select="msgbox_data"/>
+       </xsl:template>
+
+       <xsl:template match="msgbox_data">
+               <table cellpadding="2" cellspacing="0" align="center" 
class="msgbox">
+                       <tr>
+                               <td align="center" valign="middle">
+                                       <xsl:choose>
+                                               <xsl:when test="msgbox_img != 
''">
+                                               <xsl:variable 
name="msgbox_img"><xsl:value-of select="msgbox_img"/></xsl:variable>
+                                               <xsl:variable 
name="msgbox_img_alt"><xsl:value-of select="msgbox_img_alt"/></xsl:variable>
+                                                       <img 
src="{$msgbox_img}" alt="{$msgbox_img_alt}" title="{$msgbox_img_alt}" 
onMouseout="window.status='';return true;">
+                                                               <xsl:attribute 
name="onMouseover">
+                                                                       
<xsl:text>window.status='</xsl:text>
+                                                                               
<xsl:value-of select="lang_msgbox_statustext"/>
+                                                                       
<xsl:text>'; return true;</xsl:text>
+                                                               </xsl:attribute>
+                                                       
</img><xsl:text>&nbsp;</xsl:text>
+                                               </xsl:when>
+                                       </xsl:choose>
+                                       <xsl:value-of 
disable-output-escaping="yes" select="msgbox_text"/>
+                               </td>
+                       </tr>
+               </table>
+       </xsl:template>

====================================================
Index: phpgwapi/templates/base/categories.xsl
diff -u phpgwapi/templates/base/categories.xsl:1.2 
phpgwapi/templates/base/categories.xsl:1.3
--- phpgwapi/templates/base/categories.xsl:1.2  Thu Dec 30 06:47:34 2004
+++ phpgwapi/templates/base/categories.xsl      Tue Jan 18 23:51:15 2005
@@ -1,54 +1,54 @@
-<!-- $Id$ -->
-
-       <xsl:template name="categories">
-               <xsl:choose>
-                       <xsl:when test="cat_filter != ''">
-                               <xsl:apply-templates select="cat_filter"/>
-                       </xsl:when>
-                       <xsl:when test="cat_select != ''">
-                               <xsl:apply-templates select="cat_select"/>
-                       </xsl:when>
-               </xsl:choose>
-       </xsl:template>
-
-       <xsl:template match="cat_filter">
-               <xsl:variable name="select_url"><xsl:value-of 
select="select_url"/></xsl:variable>
-               <xsl:variable name="select_name"><xsl:value-of 
select="select_name"/></xsl:variable>
-               <xsl:variable name="lang_submit"><xsl:value-of 
select="lang_submit"/></xsl:variable>
-               <form method="post" action="{$select_url}">
-                       <select name="{$select_name}" 
onChange="this.form.submit();" onMouseout="window.status='';return true;">
-                               <xsl:attribute name="onMouseover">
-                                       <xsl:text>window.status='</xsl:text>
-                                               <xsl:value-of 
select="lang_cat_statustext"/>
-                                       <xsl:text>'; return true;</xsl:text>
-                               </xsl:attribute>
-                               <option value="none"><xsl:value-of 
select="lang_no_cat"/></option>
-                                       <xsl:apply-templates select="cat_list"/>
-                       </select>
-                       <noscript>
-                               <xsl:text> </xsl:text>
-                               <input type="submit" name="submit" 
value="{$lang_submit}"/>
-                       </noscript>
-               </form>
-       </xsl:template>
-
-       <xsl:template match="cat_select">
-       <xsl:variable name="lang_cat_statustext"><xsl:value-of 
select="lang_cat_statustext"/></xsl:variable>
-       <xsl:variable name="select_name"><xsl:value-of 
select="select_name"/></xsl:variable>
-               <select name="{$select_name}" class="forms" 
onMouseover="window.status='{$lang_cat_statustext}'; return true;" 
onMouseout="window.status='';return true;">
-                       <option value="none"><xsl:value-of 
select="lang_no_cat"/></option>
-                               <xsl:apply-templates select="cat_list"/>
-               </select>
-       </xsl:template>
-
-       <xsl:template match="cat_list">
-       <xsl:variable name="cat_id"><xsl:value-of 
select="cat_id"/></xsl:variable>
-               <xsl:choose>
-                       <xsl:when test="selected != ''">
-                               <option value="{$cat_id}" 
selected="selected"><xsl:value-of disable-output-escaping="yes" 
select="name"/></option>
-                       </xsl:when>
-                       <xsl:otherwise>
-                               <option value="{$cat_id}"><xsl:value-of 
disable-output-escaping="yes" select="name"/></option>
-                       </xsl:otherwise>
-               </xsl:choose>
-       </xsl:template>
+<!-- $Id$ -->
+
+       <xsl:template name="categories">
+               <xsl:choose>
+                       <xsl:when test="cat_filter != ''">
+                               <xsl:apply-templates select="cat_filter"/>
+                       </xsl:when>
+                       <xsl:when test="cat_select != ''">
+                               <xsl:apply-templates select="cat_select"/>
+                       </xsl:when>
+               </xsl:choose>
+       </xsl:template>
+
+       <xsl:template match="cat_filter">
+               <xsl:variable name="select_url"><xsl:value-of 
select="select_url"/></xsl:variable>
+               <xsl:variable name="select_name"><xsl:value-of 
select="select_name"/></xsl:variable>
+               <xsl:variable name="lang_submit"><xsl:value-of 
select="lang_submit"/></xsl:variable>
+               <form method="post" action="{$select_url}">
+                       <select name="{$select_name}" 
onChange="this.form.submit();" onMouseout="window.status='';return true;">
+                               <xsl:attribute name="onMouseover">
+                                       <xsl:text>window.status='</xsl:text>
+                                               <xsl:value-of 
select="lang_cat_statustext"/>
+                                       <xsl:text>'; return true;</xsl:text>
+                               </xsl:attribute>
+                               <option value="none"><xsl:value-of 
select="lang_no_cat"/></option>
+                                       <xsl:apply-templates select="cat_list"/>
+                       </select>
+                       <noscript>
+                               <xsl:text> </xsl:text>
+                               <input type="submit" name="submit" 
value="{$lang_submit}"/>
+                       </noscript>
+               </form>
+       </xsl:template>
+
+       <xsl:template match="cat_select">
+       <xsl:variable name="lang_cat_statustext"><xsl:value-of 
select="lang_cat_statustext"/></xsl:variable>
+       <xsl:variable name="select_name"><xsl:value-of 
select="select_name"/></xsl:variable>
+               <select name="{$select_name}" class="forms" 
onMouseover="window.status='{$lang_cat_statustext}'; return true;" 
onMouseout="window.status='';return true;">
+                       <option value="none"><xsl:value-of 
select="lang_no_cat"/></option>
+                               <xsl:apply-templates select="cat_list"/>
+               </select>
+       </xsl:template>
+
+       <xsl:template match="cat_list">
+       <xsl:variable name="cat_id"><xsl:value-of 
select="cat_id"/></xsl:variable>
+               <xsl:choose>
+                       <xsl:when test="selected != ''">
+                               <option value="{$cat_id}" 
selected="selected"><xsl:value-of disable-output-escaping="yes" 
select="name"/></option>
+                       </xsl:when>
+                       <xsl:otherwise>
+                               <option value="{$cat_id}"><xsl:value-of 
disable-output-escaping="yes" select="name"/></option>
+                       </xsl:otherwise>
+               </xsl:choose>
+       </xsl:template>

====================================================
Index: phpgwapi/templates/base/filter_select.xsl
diff -u phpgwapi/templates/base/filter_select.xsl:1.2 
phpgwapi/templates/base/filter_select.xsl:1.3
--- phpgwapi/templates/base/filter_select.xsl:1.2       Thu Dec 30 06:47:34 2004
+++ phpgwapi/templates/base/filter_select.xsl   Tue Jan 18 23:51:15 2005
@@ -1,36 +1,36 @@
-<!-- $Id$ -->
-
-       <xsl:template name="filter_select">
-               <xsl:apply-templates select="filter_data"/>
-       </xsl:template>
-
-       <xsl:template match="filter_data">
-               <xsl:variable name="select_url"><xsl:value-of 
select="select_url"/></xsl:variable>
-               <xsl:variable name="lang_submit"><xsl:value-of 
select="lang_submit"/></xsl:variable>
-               <form method="post" action="{$select_url}">
-                       <select name="filter" onChange="this.form.submit()" 
onMouseout="window.status='';return true;">
-                               <xsl:attribute name="onMouseover">
-                                       <xsl:text>window.status='</xsl:text>
-                                               <xsl:value-of 
select="lang_filter_statustext"/>
-                                       <xsl:text>'; return true;</xsl:text>
-                               </xsl:attribute>
-                               <xsl:apply-templates select="filter_list"/>
-                       </select>
-                       <noscript>
-                               <xsl:text> </xsl:text>
-                               <input type="submit" class="forms" 
name="submit" value="{$lang_submit}"/>
-                       </noscript>
-               </form>
-       </xsl:template>
-
-       <xsl:template match="filter_list">
-       <xsl:variable name="key"><xsl:value-of select="key"/></xsl:variable>
-               <xsl:choose>
-                       <xsl:when test="selected = 'yes'">
-                               <option value="{$key}" 
selected="selected"><xsl:value-of select="lang"/></option>
-                       </xsl:when>
-                       <xsl:otherwise>
-                               <option value="{$key}"><xsl:value-of 
select="lang"/></option>
-                       </xsl:otherwise>
-               </xsl:choose>
-       </xsl:template>
+<!-- $Id$ -->
+
+       <xsl:template name="filter_select">
+               <xsl:apply-templates select="filter_data"/>
+       </xsl:template>
+
+       <xsl:template match="filter_data">
+               <xsl:variable name="select_url"><xsl:value-of 
select="select_url"/></xsl:variable>
+               <xsl:variable name="lang_submit"><xsl:value-of 
select="lang_submit"/></xsl:variable>
+               <form method="post" action="{$select_url}">
+                       <select name="filter" onChange="this.form.submit()" 
onMouseout="window.status='';return true;">
+                               <xsl:attribute name="onMouseover">
+                                       <xsl:text>window.status='</xsl:text>
+                                               <xsl:value-of 
select="lang_filter_statustext"/>
+                                       <xsl:text>'; return true;</xsl:text>
+                               </xsl:attribute>
+                               <xsl:apply-templates select="filter_list"/>
+                       </select>
+                       <noscript>
+                               <xsl:text> </xsl:text>
+                               <input type="submit" class="forms" 
name="submit" value="{$lang_submit}"/>
+                       </noscript>
+               </form>
+       </xsl:template>
+
+       <xsl:template match="filter_list">
+       <xsl:variable name="key"><xsl:value-of select="key"/></xsl:variable>
+               <xsl:choose>
+                       <xsl:when test="selected = 'yes'">
+                               <option value="{$key}" 
selected="selected"><xsl:value-of select="lang"/></option>
+                       </xsl:when>
+                       <xsl:otherwise>
+                               <option value="{$key}"><xsl:value-of 
select="lang"/></option>
+                       </xsl:otherwise>
+               </xsl:choose>
+       </xsl:template>






reply via email to

[Prev in Thread] Current Thread [Next in Thread]