phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] CVS: property/templates/default admin.xsl,1.2,1.3


From: Sigurd Nes <address@hidden>
Subject: [Phpgroupware-cvs] CVS: property/templates/default admin.xsl,1.2,1.3
Date: Sat, 08 Mar 2003 11:51:52 -0500

Update of /cvsroot/phpgroupware/property/templates/default
In directory subversions:/tmp/cvs-serv8572/templates/default

Modified Files:
        admin.xsl 
Log Message:
no message

Index: admin.xsl
===================================================================
RCS file: /cvsroot/phpgroupware/property/templates/default/admin.xsl,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** admin.xsl   11 Feb 2003 20:41:19 -0000      1.2
--- admin.xsl   8 Mar 2003 16:51:07 -0000       1.3
***************
*** 3,27 ****
        <xsl:template name="app_data">
                <xsl:choose>
-                       <xsl:when test="add">
-                               <xsl:apply-templates select="add"/>
-                       </xsl:when>
-                       <xsl:when test="edit_perm">
-                               <xsl:apply-templates select="edit_perm"/>
-                       </xsl:when>
                        <xsl:when test="edit_id">
                                <xsl:apply-templates select="edit_id"/>
                        </xsl:when>
                        <xsl:otherwise>
!                               <xsl:apply-templates select="list_perm"/>
                        </xsl:otherwise>
                </xsl:choose>
        </xsl:template>
!       
!       <xsl:template match="list_perm">
                <xsl:call-template name="app_header"/>
                <table width="100%" cellpadding="2" cellspacing="2" 
align="center">
                        <tr>
                                <td>
!                                       <xsl:call-template 
name="filter_submodule"/>
                                </td>
                                <td align="right">
--- 3,26 ----
        <xsl:template name="app_data">
                <xsl:choose>
                        <xsl:when test="edit_id">
                                <xsl:apply-templates select="edit_id"/>
                        </xsl:when>
                        <xsl:otherwise>
!                               <xsl:apply-templates select="list_acl2"/>
                        </xsl:otherwise>
                </xsl:choose>
        </xsl:template>
! 
!       <xsl:template match="list_acl2">
                <xsl:call-template name="app_header"/>
                <table width="100%" cellpadding="2" cellspacing="2" 
align="center">
                        <tr>
+                               <td class="th_text" colspan="2" align="center">
+                                       <xsl:value-of select="message"/>
+                               </td>
+                       </tr>
+                       <tr>
                                <td>
!                                       <xsl:call-template 
name="filter_location"/>
                                </td>
                                <td align="right">
***************
*** 36,46 ****
                </table>
                <table width="100%" cellpadding="2" cellspacing="2" 
align="center">
!                               <xsl:apply-templates select="table_header"/>
!                               <xsl:apply-templates select="values"/>
!                               <xsl:apply-templates select="table_add"/>
                </table>
        </xsl:template>
  
!       <xsl:template match="table_header">
                <xsl:variable name="sort_lid"><xsl:value-of 
select="sort_lid"/></xsl:variable>
                <xsl:variable name="sort_lastname"><xsl:value-of 
select="sort_lastname"/></xsl:variable>
--- 35,79 ----
                </table>
                <table width="100%" cellpadding="2" cellspacing="2" 
align="center">
!               <xsl:variable name="form_action"><xsl:value-of 
select="form_action"/></xsl:variable>
!               <form method="post" action="{$form_action}">
!                               <xsl:apply-templates 
select="table_header_acl2"/>
!                               <xsl:apply-templates select="values_acl2"/>
!                       <tr height="50">
!                               <td>
!                                       <xsl:variable 
name="location"><xsl:value-of select="location"/></xsl:variable>
!                                       <xsl:variable 
name="processed"><xsl:value-of select="processed"/></xsl:variable>
!                                       <xsl:variable 
name="lang_save"><xsl:value-of select="lang_save"/></xsl:variable>
!                                       <INPUT type="hidden" name="location" 
value="{$location}" ></INPUT>
!                                       <INPUT type="hidden" name="processed" 
value="{$processed}" ></INPUT>
!                                       <input type="submit" name="submit" 
value="{$lang_save}" onMouseout="window.status='';return true;">
!                                               <xsl:attribute 
name="onMouseover">
!                                                       
<xsl:text>window.status='</xsl:text>
!                                                               <xsl:value-of 
select="lang_save_statustext"/>
!                                                       <xsl:text>'; return 
true;</xsl:text>
!                                               </xsl:attribute>
!                                       </input>
!                               </td>
!                       </tr>
!                       </form>
!                       <tr>
!                               <td>
!                                       <xsl:variable 
name="done_action"><xsl:value-of select="done_action"/></xsl:variable>
!                                       <xsl:variable 
name="lang_done"><xsl:value-of select="lang_done"/></xsl:variable>
!                                       <form method="post" 
action="{$done_action}">
!                                               <input type="submit" 
name="done" value="{$lang_done}" onMouseout="window.status='';return true;">
!                                                       <xsl:attribute 
name="onMouseover">
!                                                               
<xsl:text>window.status='</xsl:text>
!                                                                       
<xsl:value-of select="lang_done_statustext"/>
!                                                               <xsl:text>'; 
return true;</xsl:text>
!                                                       </xsl:attribute>
!                                               </input>
!                                       </form>
!                               </td>
!                       </tr>
                </table>
+ 
        </xsl:template>
  
!       <xsl:template match="table_header_acl2">
                <xsl:variable name="sort_lid"><xsl:value-of 
select="sort_lid"/></xsl:variable>
                <xsl:variable name="sort_lastname"><xsl:value-of 
select="sort_lastname"/></xsl:variable>
***************
*** 56,69 ****
                                        <a 
href="{$sort_firstname}"><xsl:value-of select="lang_firstname"/></a>
                                </td>
!                               <td class="th_text" width="20%" align="center">
!                                       <xsl:value-of select="lang_rights"/>
                                </td>
!                               <td class="th_text" width="20%" align="center">
!                                       <xsl:value-of select="lang_roles"/>
                                </td>
                        </tr>
        </xsl:template>
  
!       <xsl:template match="values">
                        <tr>
                                <xsl:attribute name="class">
--- 89,113 ----
                                        <a 
href="{$sort_firstname}"><xsl:value-of select="lang_firstname"/></a>
                                </td>
!                               <td class="th_text" width="10%" align="center">
!                                       <xsl:value-of select="lang_read"/>
                                </td>
!                               <td class="th_text" width="10%" align="center">
!                                       <xsl:value-of select="lang_add"/>
!                               </td>
!                               <td class="th_text" width="10%" align="center">
!                                       <xsl:value-of select="lang_edit"/>
!                               </td>
!                               <td class="th_text" width="10%" align="center">
!                                       <xsl:value-of select="lang_delete"/>
!                               </td>
!                               <td class="th_text" width="10%" align="center">
!                                       <xsl:value-of select="lang_manager"/>
                                </td>
                        </tr>
        </xsl:template>
  
!       <xsl:template match="values_acl2">
!               <xsl:choose>
!                       <xsl:when test="account_id !=''">
                        <tr>
                                <xsl:attribute name="class">
***************
*** 91,263 ****
                                </td>
                                <td align="center">
!                                       <xsl:value-of select="rights"/>
                                </td>
                                <td align="center">
!                                       <xsl:value-of select="roles"/>
!                               </td>
!                       </tr>
!       </xsl:template>
! 
!       <xsl:template match="table_add">
!                       <tr>
!                               <td height="50">
!                                       <xsl:variable 
name="add_action"><xsl:value-of select="add_action"/></xsl:variable>
!                                       <xsl:variable 
name="lang_add"><xsl:value-of select="lang_add"/></xsl:variable>
!                                       <form method="post" 
action="{$add_action}">
!                                               <xsl:for-each 
select="hidden_vars" >
!                                                       <xsl:variable 
name="name"><xsl:value-of select="name"/></xsl:variable>
!                                                       <xsl:variable 
name="value"><xsl:value-of select="value"/></xsl:variable>
!                                                       <INPUT type="hidden" 
name="{$name}" value="{$value}" ></INPUT>
!                                               </xsl:for-each>
!                                               <xsl:call-template 
name="select_permission"/>
!                                               <input type="submit" name="add" 
value="{$lang_add}" onMouseout="window.status='';return true;">
!                                                       <xsl:attribute 
name="onMouseover">
!                                                               
<xsl:text>window.status='</xsl:text>
!                                                                       
<xsl:value-of select="lang_add_statustext"/>
!                                                               <xsl:text>'; 
return true;</xsl:text>
!                                                       </xsl:attribute>
!                                               </input>
!                                       </form>
!                               </td>
!                               <td height="50">
!                                       <xsl:variable 
name="done_action"><xsl:value-of select="done_action"/></xsl:variable>
!                                       <xsl:variable 
name="lang_done"><xsl:value-of select="lang_done"/></xsl:variable>
!                                       <form method="post" 
action="{$done_action}">
!                                               <input type="submit" 
name="done" value="{$lang_done}" onMouseout="window.status='';return true;">
!                                                       <xsl:attribute 
name="onMouseover">
!                                                               
<xsl:text>window.status='</xsl:text>
!                                                                       
<xsl:value-of select="lang_done_statustext"/>
!                                                               <xsl:text>'; 
return true;</xsl:text>
!                                                       </xsl:attribute>
!                                               </input>
!                                       </form>
!                               </td>
!                       </tr>
!       </xsl:template>
! 
! <!-- edit_perm -->
! 
!       <xsl:template match="edit_perm">
!               <div align="left">
!               <xsl:call-template name="app_header"/>
!               <table cellpadding="2" cellspacing="2" width="50%" 
align="center">
!                       <tr>
!                               <td colspan="2" align="left">
!                                       <xsl:value-of select="message"/>
!                               </td>
!                       </tr>
!                       <xsl:variable name="form_action"><xsl:value-of 
select="form_action"/></xsl:variable>
!                       <form method="post" action="{$form_action}">
!                       <tr class="th">
!                               <td align="left">
!                                       <xsl:value-of select="lang_group_list"/>
                                </td>
!               <table cellpadding="2" cellspacing="2" width="50%" 
align="center">
!                               
!                                               <xsl:for-each 
select="group_list" >
!                                                       <xsl:variable 
name="key_id"><xsl:value-of select="key_id"/></xsl:variable>
!                                                       <xsl:variable 
name="account_id"><xsl:value-of select="account_id"/></xsl:variable>
!                                                       <xsl:variable 
name="checked"><xsl:value-of select="checked"/></xsl:variable>
!                                                       <tr>
!                                                       <td><td>
!                                                       <xsl:choose>
!                                                               <xsl:when 
test="checked = 'checked'">
!                                                                       <INPUT 
type="checkbox" name="values[groups][{$key_id}]" value="{$account_id}" 
checked="checked"></INPUT>
!                                                               </xsl:when>
!                                                               <xsl:otherwise>
!                                                                       <INPUT 
type="checkbox" name="values[groups][{$key_id}]" value="{$account_id}"></INPUT>
!                                                               </xsl:otherwise>
!                                                       </xsl:choose>
! 
!                                                       </td>
!                                                       </td>
!                                                       <td><xsl:value-of 
select="account_firstname"/> &nbsp;<xsl:value-of 
select="account_lastname"/></td>
!                                                       </tr>
!                                               </xsl:for-each>
!                               </table>
!                       </tr>
!                       <tr class="th">
!                               <td align="left">
!                                       <xsl:value-of select="lang_user_list"/>
                                </td>
!               <table cellpadding="2" cellspacing="2" width="50%" 
align="center">
!                               
!                                               <xsl:for-each 
select="user_list" >
!                                                       <xsl:variable 
name="key_id"><xsl:value-of select="key_id"/></xsl:variable>
!                                                       <xsl:variable 
name="account_id"><xsl:value-of select="account_id"/></xsl:variable>
!                                                       <xsl:variable 
name="checked"><xsl:value-of select="checked"/></xsl:variable>
!                                                       <tr>
!                                                       <td><td>
!                                                       <xsl:choose>
!                                                               <xsl:when 
test="checked = 'checked'">
!                                                                       <INPUT 
type="checkbox" name="values[users][{$key_id}]" value="{$account_id}" 
checked="checked"></INPUT>
!                                                               </xsl:when>
!                                                               <xsl:otherwise>
!                                                                       <INPUT 
type="checkbox" name="values[users][{$key_id}]" value="{$account_id}"></INPUT>
!                                                               </xsl:otherwise>
!                                                       </xsl:choose>
! 
!                                                       </td>
!                                                       </td>
!                                                       <td><xsl:value-of 
select="account_firstname"/> &nbsp;<xsl:value-of 
select="account_lastname"/></td>
!                                                       </tr>
!                                               </xsl:for-each>
!                               </table>
!                               <xsl:variable name="submodule_id"><xsl:value-of 
select="submodule_id"/></xsl:variable>
!                               <xsl:variable name="permission"><xsl:value-of 
select="permission"/></xsl:variable>
!                               <INPUT type="hidden" 
name="values[submodule_id]" value="{$submodule_id}" ></INPUT>
!                               <INPUT type="hidden" name="values[permission]" 
value="{$permission}" ></INPUT>                          
!                       </tr>
!                       <tr height="50">
!                               <td>
!                                       <xsl:variable 
name="lang_save"><xsl:value-of select="lang_save"/></xsl:variable>
!                                       <input type="submit" 
name="values[save]" value="{$lang_save}" onMouseout="window.status='';return 
true;">
!                                               <xsl:attribute 
name="onMouseover">
!                                                       
<xsl:text>window.status='</xsl:text>
!                                                               <xsl:value-of 
select="lang_save_statustext"/>
!                                                       <xsl:text>'; return 
true;</xsl:text>
!                                               </xsl:attribute>
!                                       </input>
                                </td>
!                       </tr>
!                       </form>
!                       <tr>
!                               <td>
!                                       <xsl:variable 
name="submodule_id"><xsl:value-of select="submodule_id"/></xsl:variable>
!                                       <xsl:variable 
name="done_action"><xsl:value-of select="done_action"/></xsl:variable>
!                                       <xsl:variable 
name="lang_done"><xsl:value-of select="lang_done"/></xsl:variable>
!                                       <form method="post" 
action="{$done_action}">
!                                               <INPUT type="hidden" 
name="submodule_id" value="{$submodule_id}" ></INPUT>
!                                               <input type="submit" 
name="done" value="{$lang_done}" onMouseout="window.status='';return true;">
!                                                       <xsl:attribute 
name="onMouseover">
!                                                               
<xsl:text>window.status='</xsl:text>
!                                                                       
<xsl:value-of select="lang_done_statustext"/>
!                                                               <xsl:text>'; 
return true;</xsl:text>
!                                                       </xsl:attribute>
!                                               </input>
!                                       </form>
                                </td>
                        </tr>
-               </table>
-               </div>
-       </xsl:template>
- 
- 
- <!-- group_list -->   
- 
-       <xsl:template match="group_list">
-       <xsl:variable name="account_id"><xsl:value-of 
select="account_id"/></xsl:variable>
-               <xsl:choose>
-                       <xsl:when test="selected">
-                               <option value="{$account_id}" 
selected="selected"><xsl:value-of disable-output-escaping="yes" 
select="account_lid"/></option>
                        </xsl:when>
-                       <xsl:otherwise>
-                               <option value="{$account_id}"><xsl:value-of 
disable-output-escaping="yes" select="account_lid"/></option>
-                       </xsl:otherwise>
                </xsl:choose>
        </xsl:template>
  
- 
- 
  <!-- edit_id -->      
  
--- 135,192 ----
                                </td>
                                <td align="center">
!                                       <xsl:choose>
!                                               <xsl:when test="read = 
'checked'">
!                                                       <INPUT type="checkbox" 
name="values[{account_id}_1]" value="1" checked="checked"></INPUT>
!                                               </xsl:when>
!                                               <xsl:otherwise>
!                                                       <INPUT type="checkbox" 
name="values[{account_id}_1]" value="1"></INPUT>
!                                               </xsl:otherwise>
!                                       </xsl:choose>
                                </td>
                                <td align="center">
!                                       <xsl:choose>
!                                               <xsl:when test="add = 
'checked'">
!                                                       <INPUT type="checkbox" 
name="values[{account_id}_2]" value="2" checked="checked"></INPUT>
!                                               </xsl:when>
!                                               <xsl:otherwise>
!                                                       <INPUT type="checkbox" 
name="values[{account_id}_2]" value="2"></INPUT>
!                                               </xsl:otherwise>
!                                       </xsl:choose>
                                </td>
!                               <td align="center">
!                                       <xsl:choose>
!                                               <xsl:when test="edit = 
'checked'">
!                                                       <INPUT type="checkbox" 
name="values[{account_id}_4]" value="4" checked="checked"></INPUT>
!                                               </xsl:when>
!                                               <xsl:otherwise>
!                                                       <INPUT type="checkbox" 
name="values[{account_id}_4]" value="4"></INPUT>
!                                               </xsl:otherwise>
!                                       </xsl:choose>
                                </td>
!                               <td align="center">
!                                       <xsl:choose>
!                                               <xsl:when test="delete = 
'checked'">
!                                                       <INPUT type="checkbox" 
name="values[{account_id}_8]" value="8" checked="checked"></INPUT>
!                                               </xsl:when>
!                                               <xsl:otherwise>
!                                                       <INPUT type="checkbox" 
name="values[{account_id}_8]" value="8"></INPUT>
!                                               </xsl:otherwise>
!                                       </xsl:choose>
                                </td>
!                               <td align="center">
!                                       <xsl:choose>
!                                               <xsl:when test="manager = 
'checked'">
!                                                       <INPUT type="checkbox" 
name="values[{account_id}_16]" value="16" checked="checked"></INPUT>
!                                               </xsl:when>
!                                               <xsl:otherwise>
!                                                       <INPUT type="checkbox" 
name="values[{account_id}_16]" value="16"></INPUT>
!                                               </xsl:otherwise>
!                                       </xsl:choose>
                                </td>
                        </tr>
                        </xsl:when>
                </xsl:choose>
        </xsl:template>
  
  <!-- edit_id -->      
  
***************
*** 355,358 ****
                </table>
        </xsl:template>
- 
- 
--- 284,285 ----





reply via email to

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