[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] CVS: property/templates/default admin.xsl, 1.9, 1.10
From: |
Sigurd Nes <address@hidden> |
Subject: |
[Phpgroupware-cvs] CVS: property/templates/default admin.xsl, 1.9, 1.10 |
Date: |
Thu, 10 Jul 2003 17:11:40 -0400 |
Update of /cvsroot/phpgroupware/property/templates/default
In directory subversions:/tmp/cvs-serv16116/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.9
retrieving revision 1.10
diff -C2 -r1.9 -r1.10
*** admin.xsl 3 Jul 2003 21:53:10 -0000 1.9
--- admin.xsl 10 Jul 2003 21:11:38 -0000 1.10
***************
*** 6,9 ****
--- 6,12 ----
<xsl:apply-templates select="edit_id"/>
</xsl:when>
+ <xsl:when test="list_grants">
+ <xsl:apply-templates select="list_grants"/>
+ </xsl:when>
<xsl:otherwise>
<xsl:apply-templates select="list_acl2"/>
***************
*** 11,14 ****
--- 14,281 ----
</xsl:choose>
</xsl:template>
+
+ <xsl:template match="list_grants">
+
+ <table width="100%" cellpadding="2" cellspacing="2"
align="center">
+ <xsl:choose>
+ <xsl:when test="msgbox_data != ''">
+ <tr>
+ <td align="left" colspan="3">
+ <xsl:call-template
name="msgbox"/>
+ </td>
+ </tr>
+ </xsl:when>
+ </xsl:choose>
+ <tr>
+ <td>
+ <xsl:call-template
name="filter_location"/>
+ </td>
+ <td align="center">
+ <xsl:call-template name="cat_filter"/>
+ </td>
+ <td align="right">
+ <xsl:call-template name="search_field"/>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="3" width="100%">
+ <xsl:call-template name="nextmatchs"/>
+ </td>
+ </tr>
+ </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}">
+ <tr class="th">
+ <xsl:choose>
+ <xsl:when
test="values_grants_groups!=''">
+ <td class="th_text" width="10%"
align="center">
+ <xsl:value-of
select="lang_groups"/>
+ </td>
+ <xsl:apply-templates
select="table_header_grants"/>
+ </xsl:when>
+ </xsl:choose>
+ </tr>
+ <xsl:apply-templates
select="values_grants_groups"/>
+ <tr class="th">
+ <xsl:choose>
+ <xsl:when
test="values_grants_users!=''">
+ <td class="th_text" width="10%"
align="center">
+ <xsl:value-of
select="lang_users"/>
+ </td>
+ <xsl:apply-templates
select="table_header_grants"/>
+ </xsl:when>
+ </xsl:choose>
+ </tr>
+ <xsl:apply-templates
select="values_grants_users"/>
+
+ <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="set_permission" 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_grants">
+ <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>
+ </xsl:template>
+
+ <xsl:template match="values_grants_groups">
+ <xsl:choose>
+ <xsl:when test="account_id !=''">
+ <tr>
+ <xsl:attribute name="class">
+ <xsl:choose>
+ <xsl:when test="@class">
+ <xsl:value-of
select="@class"/>
+ </xsl:when>
+ <xsl:when test="position() mod
2 = 0">
+
<xsl:text>row_off</xsl:text>
+ </xsl:when>
+ <xsl:otherwise>
+
<xsl:text>row_on</xsl:text>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:attribute>
+
+ <td align="left">
+ <xsl:value-of select="name"/>
+ </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>
+
+ <xsl:template match="values_grants_users">
+ <xsl:choose>
+ <xsl:when test="account_id !=''">
+ <tr>
+ <xsl:attribute name="class">
+ <xsl:choose>
+ <xsl:when test="@class">
+ <xsl:value-of
select="@class"/>
+ </xsl:when>
+ <xsl:when test="position() mod
2 = 0">
+
<xsl:text>row_off</xsl:text>
+ </xsl:when>
+ <xsl:otherwise>
+
<xsl:text>row_on</xsl:text>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:attribute>
+
+ <td align="left">
+ <xsl:value-of select="name"/>
+ </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>
+
<xsl:template match="list_acl2">
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] CVS: property/templates/default admin.xsl, 1.9, 1.10,
Sigurd Nes <address@hidden> <=
- Prev by Date:
[Phpgroupware-cvs] CVS: property/inc class.acl2.inc.php, 1.7, 1.8 class.boadmin.inc.php, 1.9, 1.10 class.solocation.inc.php, 1.20, 1.21 class.uiadmin.inc.php, 1.13, 1.14 hook_preferences.inc.php, 1.4, 1.5
- Next by Date:
[Phpgroupware-cvs] CVS: news_admin/templates/default admin_form.tpl, 1.1.2.1.2.2, 1.1.2.1.2.3
- Previous by thread:
[Phpgroupware-cvs] CVS: property/inc class.acl2.inc.php, 1.7, 1.8 class.boadmin.inc.php, 1.9, 1.10 class.solocation.inc.php, 1.20, 1.21 class.uiadmin.inc.php, 1.13, 1.14 hook_preferences.inc.php, 1.4, 1.5
- Next by thread:
[Phpgroupware-cvs] CVS: news_admin/templates/default admin_form.tpl, 1.1.2.1.2.2, 1.1.2.1.2.3
- Index(es):