[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] CVS: admin/templates/default app_data.xsl,1.3,1.4 gr
From: |
Bettina Gille <address@hidden> |
Subject: |
[Phpgroupware-cvs] CVS: admin/templates/default app_data.xsl,1.3,1.4 groups.xsl,1.1,1.2 |
Date: |
Tue, 22 Apr 2003 21:08:34 -0400 |
Update of /cvsroot/phpgroupware/admin/templates/default
In directory subversions:/tmp/cvs-serv28202/templates/default
Modified Files:
app_data.xsl groups.xsl
Log Message:
started updating to xslt and rework accounts classes
Index: app_data.xsl
===================================================================
RCS file: /cvsroot/phpgroupware/admin/templates/default/app_data.xsl,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** app_data.xsl 21 Apr 2003 00:20:49 -0000 1.3
--- app_data.xsl 23 Apr 2003 01:08:32 -0000 1.4
***************
*** 18,21 ****
--- 18,24 ----
<xsl:call-template name="groups"/>
</xsl:when>
+ <xsl:when test="delete">
+ <xsl:call-template name="app_delete"/>
+ </xsl:when>
<xsl:otherwise>
<xsl:apply-templates select="list"/>
Index: groups.xsl
===================================================================
RCS file: /cvsroot/phpgroupware/admin/templates/default/groups.xsl,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** groups.xsl 21 Apr 2003 00:20:38 -0000 1.1
--- groups.xsl 23 Apr 2003 01:08:32 -0000 1.2
***************
*** 125,142 ****
<xsl:template match="group_edit">
! <table border="0" cellpadding="2" cellspacing="2"
align="center">
<tr>
<td valign="top">
! {rows}
</td>
<td valign="top">
<table border="0" width="100%">
<xsl:variable
name="edit_url"><xsl:value-of select="edit_url"/></xsl:variable>
<form action="{$edit_url}"
method="POST">
! {hidden_vars}
<tr>
<td><xsl:value-of
select="lang_account_name"/></td>
! <td><input
name="account_name">
! <xsl:attribute
name="onMouseover">
<xsl:value-of select="value_account_name"/>
</xsl:attribute>
--- 125,147 ----
<xsl:template match="group_edit">
! <table border="0" cellpadding="2" cellspacing="2"
align="center" width="79%">
! <tr>
! <td><xsl:value-of select="error"/></td>
! </tr>
<tr>
<td valign="top">
! <!-- {rows} -->
</td>
<td valign="top">
<table border="0" width="100%">
<xsl:variable
name="edit_url"><xsl:value-of select="edit_url"/></xsl:variable>
+ <xsl:variable name="account_id"
select="account_id"/>
+ <xsl:variable
name="select_size" select="select_size"/>
<form action="{$edit_url}"
method="POST">
! <input type="hidden"
name="values[account_id]" value="{$account_id}"/>
<tr>
<td><xsl:value-of
select="lang_account_name"/></td>
! <td><input
name="values[account_name]">
! <xsl:attribute
name="value">
<xsl:value-of select="value_account_name"/>
</xsl:attribute>
***************
*** 147,152 ****
<td><xsl:value-of
select="lang_include_user"/></td>
<td>
! <select
name="account_user[]" multiple="multiple" size="{select_size}">
! {user_list}
</select>
</td>
--- 152,157 ----
<td><xsl:value-of
select="lang_include_user"/></td>
<td>
! <select
name="account_user[]" multiple="multiple" size="{$select_size}">
!
<xsl:apply-templates select="user_list"/>
</select>
</td>
***************
*** 155,166 ****
<td><xsl:value-of
select="lang_file_space"/></td>
<td>
! {account_file_space}{account_file_space_select}
</td>
</tr>
<tr>
! <td><xsl:value-of
select="lang_permissions"/></td>
<td>
! <table
width="100%" border="0" cols="6">
! {permissions_list}
</table>
</td>
--- 160,176 ----
<td><xsl:value-of
select="lang_file_space"/></td>
<td>
! <!-- {account_file_space}{account_file_space_select} -->
</td>
</tr>
<tr>
! <td
valign="top"><xsl:value-of select="lang_permissions"/></td>
<td>
! <table
width="100%" border="0" cellpadding="2" cellspacing="2">
! <tr
class="th">
!
<td><xsl:value-of select="lang_application"/></td>
!
<td> </td>
!
<td><xsl:value-of select="lang_acl"/></td>
! </tr>
!
<xsl:apply-templates select="app_list"/>
</table>
</td>
***************
*** 169,173 ****
<td colspan="2"
align="left">
<xsl:variable
name="lang_save"><xsl:value-of select="lang_save"/></xsl:variable>
! <input
type="submit" name="submit" value="{$lang_save}"/>
</td>
</tr>
--- 179,183 ----
<td colspan="2"
align="left">
<xsl:variable
name="lang_save"><xsl:value-of select="lang_save"/></xsl:variable>
! <input
type="submit" name="values[save]" value="{$lang_save}"/>
</td>
</tr>
***************
*** 175,179 ****
<tr>
<xsl:variable
name="done_url"><xsl:value-of select="done_url"/></xsl:variable>
! <xsl:variable
name="langdone"><xsl:value-of select="lang_done"/></xsl:variable>
<form method="POST"
action="{$done_url}">
<td align="left">
--- 185,189 ----
<tr>
<xsl:variable
name="done_url"><xsl:value-of select="done_url"/></xsl:variable>
! <xsl:variable
name="lang_done"><xsl:value-of select="lang_done"/></xsl:variable>
<form method="POST"
action="{$done_url}">
<td align="left">
***************
*** 186,188 ****
--- 196,250 ----
</tr>
</table>
+ </xsl:template>
+
+ <xsl:template match="user_list">
+ <xsl:variable name="account_id" select="account_id"/>
+ <xsl:choose>
+ <xsl:when test="selected != ''">
+ <option value="{$account_id}"
selected="selected"><xsl:value-of select="account_name"/></option>
+ </xsl:when>
+ <xsl:otherwise>
+ <option value="{$account_id}"><xsl:value-of
select="account_name"/></option>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:template>
+
+ <xsl:template match="app_list">
+ <xsl:variable name="checkbox_name" select="checkbox_name"/>
+ <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 width="40%"><xsl:value-of select="app_name"/></td>
+ <td width="5%" align="center">
+ <xsl:choose>
+ <xsl:when test="checked != ''">
+ <input type="checkbox"
name="{$checkbox_name}" value="True" checked="checked"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <input type="checkbox"
name="{$checkbox_name}" value="True"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ <td width="5%" align="center">
+ <xsl:choose>
+ <xsl:when test="acl_url != ''">
+ <xsl:variable name="acl_url"
select="acl_url"/>
+ <xsl:variable name="acl_img"
select="acl_img"/>
+ <xsl:variable name="img_name"
select="img_name"/>
+ <a href="{$acl_url}"><img
src="{$acl_img}" border="0" hspace="3" align="absmiddle" alt="{$img_name}"
name="{$img_name}"/></a>
+ </xsl:when>
+ </xsl:choose>
+ </td>
+ </tr>
</xsl:template>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] CVS: admin/templates/default app_data.xsl,1.3,1.4 groups.xsl,1.1,1.2,
Bettina Gille <address@hidden> <=
- Prev by Date:
[Phpgroupware-cvs] CVS: admin index.php,1.35,1.36
- Next by Date:
[Phpgroupware-cvs] CVS: admin/inc class.boaccounts.inc.php,1.28,1.29 class.uiaccounts.inc.php,1.30,1.31class.uicategories.inc.php,1.32,1.33 class.uimainscreen.inc.php,1.6,1.7 class.uiserver.inc.php,1.6,1.7 hook_admin.inc.php,1.28,1.29
- Previous by thread:
[Phpgroupware-cvs] CVS: admin index.php,1.35,1.36
- Next by thread:
[Phpgroupware-cvs] CVS: admin/inc class.boaccounts.inc.php,1.28,1.29 class.uiaccounts.inc.php,1.30,1.31class.uicategories.inc.php,1.32,1.33 class.uimainscreen.inc.php,1.6,1.7 class.uiserver.inc.php,1.6,1.7 hook_admin.inc.php,1.28,1.29
- Index(es):