phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] admin/templates/default app_data.xsl,1.8,1.9


From: Bettina Gille <address@hidden>
Subject: [Phpgroupware-cvs] admin/templates/default app_data.xsl,1.8,1.9
Date: Tue, 11 Nov 2003 16:40:27 +0000

Update of /cvsroot/phpgroupware/admin/templates/default
In directory subversions:/tmp/cvs-serv28435/templates/default

Modified Files:
        app_data.xsl 
Log Message:
addressmaster

Index: app_data.xsl
===================================================================
RCS file: /cvsroot/phpgroupware/admin/templates/default/app_data.xsl,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** app_data.xsl        7 Nov 2003 16:02:29 -0000       1.8
--- app_data.xsl        11 Nov 2003 16:40:24 -0000      1.9
***************
*** 30,33 ****
--- 30,36 ----
                                <xsl:apply-templates 
select="addressmaster_list"/>
                        </xsl:when>
+                       <xsl:when test="addressmaster_edit">
+                               <xsl:apply-templates 
select="addressmaster_edit"/>
+                       </xsl:when>
                        <xsl:otherwise>
                                <xsl:apply-templates select="list"/>
***************
*** 67,71 ****
        <xsl:template match="app_row_noicon">
                <tr class="th_bright">
!                       <td colspan="2" width="100%" 
class="th_text">&nbsp;<xsl:value-of select="app_title"/></td>
                </tr>
                <xsl:apply-templates select="link_row"/>
--- 70,74 ----
        <xsl:template match="app_row_noicon">
                <tr class="th_bright">
!                       <td colspan="2" width="100%" 
class="th_text">&nbsp;[<xsl:value-of select="app_title"/>]</td>
                </tr>
                <xsl:apply-templates select="link_row"/>
***************
*** 186,188 ****
--- 189,298 ----
                        <td>&nbsp;</td>
                </tr>
+       </xsl:template>
+ 
+       <xsl:template match="addressmaster_edit">
+               <xsl:variable name="action_url" select="action_url"/>
+               <xsl:variable name="lang_save" select="lang_save"/>
+               <xsl:variable name="lang_cancel" select="lang_cancel"/>
+               <center>
+                       <xsl:value-of select="error_message"/>
+                       <table border="0" width="80%" cellpadding="2" 
cellspacing="2">
+                               <form method="POST" action="{$action_url}" 
name="app_form">
+                                       <tr>
+                                               <td valign="top"><xsl:value-of 
select="lang_select_addressmasters"/>:</td>
+                                               <td>
+                                                       <xsl:choose>
+                                                               <xsl:when 
test="select_user != ''">
+                                                                       
<xsl:apply-templates select="select_user"/>
+                                                               </xsl:when>
+                                                               <xsl:otherwise>
+                                                                       
<xsl:apply-templates select="popwin_user"/>
+                                                               </xsl:otherwise>
+                                                       </xsl:choose>
+                                               </td>
+                                       </tr>
+                                       <tr height="50" valign="bottom">
+                                               <td><input type="submit" 
name="save" value="{$lang_save}"/></td>
+                                               <td align="right"><input 
type="submit" name="cancel" value="{$lang_cancel}"/></td>
+                                       </tr>
+                               </form>
+                       </table>
+               </center>
+       </xsl:template>
+ 
+ <!-- BEGIN select -->
+ 
+       <xsl:template match="select_user">
+               <xsl:variable name="u_select_size" select="u_select_size"/>
+               <xsl:variable name="g_select_size" select="g_select_size"/>
+               <table>
+                       <tr>
+                               <td valign="top"><xsl:value-of 
select="lang_select_users"/>:</td>
+                               <td>
+                                       <select name="account_addressmaster[]" 
multiple="multiple" size="{$u_select_size}">
+                               <xsl:apply-templates select="user_list"/>
+                       </select>
+                               </td>
+                       </tr>
+                       <tr>
+                               <td valign="top"><xsl:value-of 
select="lang_select_groups"/>:</td>
+                               <td>
+                                       <select name="group_addressmaster[]" 
multiple="multiple" size="{$g_select_size}">
+                               <xsl:apply-templates select="group_list"/>
+                       </select>
+                               </td>
+                       </tr>
+               </table>
+       </xsl:template>
+ 
+ <!-- END select -->
+ 
+ <!-- BEGIN popwin -->
+ 
+       <xsl:template match="popwin_user">
+               <xsl:variable name="select_size" select="select_size"/>
+               <xsl:variable name="lang_open_popup" select="lang_open_popup"/>
+               <xsl:variable name="url" select="url"/>
+               <xsl:variable name="width" select="width"/>
+               <xsl:variable name="height" select="height"/>
+               <table>
+                       <tr>
+                               <td>
+                                       <select name="account_addressmaster[]" 
multiple="multiple" size="{$select_size}">
+                                               <xsl:if test="user_list != ''">
+                                                       <xsl:apply-templates 
select="user_list"/>
+                                               </xsl:if>
+                                       </select>
+                               </td>
+                               <td valign="top">
+                               <input type="button" value="{$lang_open_popup}" 
onClick="openwindow({$url},{$width},{$height})"/>
+                               </td>
+                       </tr>
+               </table>
+       </xsl:template>
+ 
+ <!-- END popwin -->
+ 
+       <xsl:template match="user_list">
+               <xsl:variable name="account_id" select="account_id"/>
+               <xsl:choose>
+                       <xsl:when test="select_value != ''">
+                               <option value="{$account_id}" 
selected="selected"><xsl:value-of select="fullname"/></option>
+                       </xsl:when>
+                       <xsl:otherwise>
+                               <option value="{$account_id}"><xsl:value-of 
select="fullname"/></option>
+                       </xsl:otherwise>
+               </xsl:choose>
+       </xsl:template>
+ 
+       <xsl:template match="group_list">
+               <xsl:variable name="account_id" select="account_id"/>
+               <xsl:choose>
+                       <xsl:when test="select_value != ''">
+                               <option value="{$account_id}" 
selected="selected"><xsl:value-of select="fullname"/></option>
+                       </xsl:when>
+                       <xsl:otherwise>
+                               <option value="{$account_id}"><xsl:value-of 
select="fullname"/></option>
+                       </xsl:otherwise>
+               </xsl:choose>
        </xsl:template>





reply via email to

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