[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] hrm/templates/base admin.xsl,1.2
From: |
sigurdne |
Subject: |
[Phpgroupware-cvs] hrm/templates/base admin.xsl,1.2 |
Date: |
Fri, 25 Nov 2005 12:58:00 +0100 |
Update of hrm/templates/base
Modified Files:
Branch: MAIN
admin.xsl lines: +372 -17
Log Message:
Improved acl
====================================================
Index: hrm/templates/base/admin.xsl
diff -u hrm/templates/base/admin.xsl:1.1 hrm/templates/base/admin.xsl:1.2
--- hrm/templates/base/admin.xsl:1.1 Mon Nov 21 12:01:20 2005
+++ hrm/templates/base/admin.xsl Fri Nov 25 11:58:29 2005
@@ -146,6 +146,12 @@
<tr>
<xsl:call-template
name="right"/>
</tr>
+ <tr>
+ <xsl:call-template name="mask"/>
+ </tr>
+ <tr>
+ <xsl:call-template
name="result"/>
+ </tr>
</table>
</td>
@@ -183,14 +189,23 @@
<tr>
<xsl:call-template
name="right"/>
</tr>
+ <tr>
+ <xsl:call-template name="mask"/>
+ </tr>
+ <tr>
+ <xsl:call-template
name="result"/>
+ </tr>
</table>
- </td>
+ </td>
+
</tr>
</xsl:when>
</xsl:choose>
</xsl:template>
<xsl:template name="value_header">
+ <td>
+ </td>
<td class="th_text" align="center">
<xsl:value-of select="lang_read"/>
</td>
@@ -210,63 +225,402 @@
</td>
</xsl:when>
</xsl:choose>
+ <xsl:choose>
+ <xsl:when test="//location='.invoice'
and //permission= 1 ">
+ <td class="th_text"
align="center">
+ <xsl:value-of
select="lang_janitor"/>
+ </td>
+ <td class="th_text"
align="center">
+ <xsl:value-of
select="lang_supervisor"/>
+ </td>
+ <td class="th_text"
align="center">
+ <xsl:value-of
select="lang_budget_responsible"/>
+ </td>
+ <td class="th_text"
align="center">
+ <xsl:value-of
select="lang_initials"/>
+ </td>
+ </xsl:when>
+ </xsl:choose>
</xsl:template>
<xsl:template name="right">
- <td align="center">
+ <td align="left">
+ <xsl:value-of select="lang_right"/>
+ </td>
+ <td align="center">
+ <xsl:choose>
+ <xsl:when test="type = 'users'">
<xsl:choose>
<xsl:when test="read_right =
'checked'">
<INPUT type="checkbox"
name="values[right][{account_id}_1]" value="1" checked="checked"></INPUT>
</xsl:when>
+ <xsl:when test="read_right =
'from_group'">
+ <INPUT type="checkbox"
name="" checked="checked" disabled="disabled"></INPUT>
+ </xsl:when>
<xsl:otherwise>
<INPUT type="checkbox"
name="values[right][{account_id}_1]" value="1"></INPUT>
</xsl:otherwise>
</xsl:choose>
- </td>
- <td align="center">
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:choose>
+ <xsl:when test="read_right =
'checked'">
+ <INPUT type="checkbox"
name="values[right][{account_id}_1]" value="1" checked="checked"></INPUT>
+ </xsl:when>
+ <xsl:when test="read_right =
'from_group'">
+ <INPUT type="checkbox"
name="values[right][{account_id}_1]" value="1" checked="checked"></INPUT>
+ </xsl:when>
+ <xsl:otherwise>
+ <INPUT type="checkbox"
name="values[right][{account_id}_1]" value="1"></INPUT>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ <td align="center">
+ <xsl:choose>
+ <xsl:when test="type = 'users'">
<xsl:choose>
<xsl:when test="add_right =
'checked'">
<INPUT type="checkbox"
name="values[right][{account_id}_2]" value="2" checked="checked"></INPUT>
</xsl:when>
+ <xsl:when test="add_right =
'from_group'">
+ <INPUT type="checkbox"
name="" checked="checked" disabled="disabled"></INPUT>
+ </xsl:when>
<xsl:otherwise>
<INPUT type="checkbox"
name="values[right][{account_id}_2]" value="2"></INPUT>
</xsl:otherwise>
</xsl:choose>
- </td>
- <td align="center">
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:choose>
+ <xsl:when test="add_right =
'checked'">
+ <INPUT type="checkbox"
name="values[right][{account_id}_2]" value="2" checked="checked"></INPUT>
+ </xsl:when>
+ <xsl:when test="add_right =
'from_group'">
+ <INPUT type="checkbox"
name="values[right][{account_id}_2]" value="2" checked="checked"></INPUT>
+ </xsl:when>
+ <xsl:otherwise>
+ <INPUT type="checkbox"
name="values[right][{account_id}_2]" value="2"></INPUT>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ <td align="center">
+ <xsl:choose>
+ <xsl:when test="type = 'users'">
<xsl:choose>
<xsl:when test="edit_right =
'checked'">
<INPUT type="checkbox"
name="values[right][{account_id}_4]" value="4" checked="checked"></INPUT>
</xsl:when>
+ <xsl:when test="edit_right =
'from_group'">
+ <INPUT type="checkbox"
name="" checked="checked" disabled="disabled"></INPUT>
+ </xsl:when>
<xsl:otherwise>
<INPUT type="checkbox"
name="values[right][{account_id}_4]" value="4"></INPUT>
</xsl:otherwise>
</xsl:choose>
- </td>
- <td align="center">
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:choose>
+ <xsl:when test="edit_right =
'checked'">
+ <INPUT type="checkbox"
name="values[right][{account_id}_4]" value="4" checked="checked"></INPUT>
+ </xsl:when>
+ <xsl:when test="edit_right =
'from_group'">
+ <INPUT type="checkbox"
name="values[right][{account_id}_4]" value="4" checked="checked"></INPUT>
+ </xsl:when>
+ <xsl:otherwise>
+ <INPUT type="checkbox"
name="values[right][{account_id}_4]" value="4"></INPUT>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ <td align="center">
+ <xsl:choose>
+ <xsl:when test="type = 'users'">
<xsl:choose>
<xsl:when test="delete_right =
'checked'">
<INPUT type="checkbox"
name="values[right][{account_id}_8]" value="8" checked="checked"></INPUT>
</xsl:when>
+ <xsl:when test="delete_right =
'from_group'">
+ <INPUT type="checkbox"
name="" checked="checked" disabled="disabled"></INPUT>
+ </xsl:when>
<xsl:otherwise>
<INPUT type="checkbox"
name="values[right][{account_id}_8]" value="8"></INPUT>
</xsl:otherwise>
</xsl:choose>
- </td>
- <xsl:choose>
- <xsl:when test="//permission= 1">
- <td align="center">
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:choose>
+ <xsl:when test="delete_right =
'checked'">
+ <INPUT type="checkbox"
name="values[right][{account_id}_8]" value="8" checked="checked"></INPUT>
+ </xsl:when>
+ <xsl:when test="delete_right =
'from_group'">
+ <INPUT type="checkbox"
name="values[right][{account_id}_8]" value="8" checked="checked"></INPUT>
+ </xsl:when>
+ <xsl:otherwise>
+ <INPUT type="checkbox"
name="values[right][{account_id}_8]" value="8"></INPUT>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ <xsl:choose>
+ <xsl:when test="//permission= 1">
+ <td align="center">
+ <xsl:choose>
+ <xsl:when test="type = 'users'">
<xsl:choose>
<xsl:when
test="manage_right = 'checked'">
<INPUT
type="checkbox" name="values[right][{account_id}_16]" value="16"
checked="checked"></INPUT>
</xsl:when>
+ <xsl:when
test="manage_right = 'from_group'">
+ <INPUT
type="checkbox" name="" checked="checked" disabled="disabled"></INPUT>
+ </xsl:when>
<xsl:otherwise>
<INPUT
type="checkbox" name="values[right][{account_id}_16]" value="16"></INPUT>
</xsl:otherwise>
</xsl:choose>
- </td>
- </xsl:when>
- </xsl:choose>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:choose>
+ <xsl:when
test="manage_right = 'checked'">
+ <INPUT
type="checkbox" name="values[right][{account_id}_16]" value="16"
checked="checked"></INPUT>
+ </xsl:when>
+ <xsl:when
test="manage_right = 'from_group'">
+ <INPUT
type="checkbox" name="values[right][{account_id}_16]" value="16"
checked="checked"></INPUT>
+ </xsl:when>
+ <xsl:otherwise>
+ <INPUT
type="checkbox" name="values[right][{account_id}_16]" value="16"></INPUT>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ </xsl:when>
+ </xsl:choose>
+ </xsl:template>
+
+ <xsl:template name="mask">
+ <td align="left">
+ <xsl:value-of select="lang_mask"/>
+ </td>
+ <td align="center">
+ <xsl:choose>
+ <xsl:when test="type = 'users'">
+ <xsl:choose>
+ <xsl:when test="read_mask =
'checked'">
+ <INPUT type="checkbox"
name="values[mask][{account_id}_1]" value="1" checked="checked"></INPUT>
+ </xsl:when>
+ <xsl:when test="read_mask =
'from_group'">
+ <INPUT type="checkbox"
name="" checked="checked" disabled="disabled"></INPUT>
+ </xsl:when>
+ <xsl:otherwise>
+ <INPUT type="checkbox"
name="values[mask][{account_id}_1]" value="1"></INPUT>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:choose>
+ <xsl:when test="read_mask =
'checked'">
+ <INPUT type="checkbox"
name="values[mask][{account_id}_1]" value="1" checked="checked"></INPUT>
+ </xsl:when>
+ <xsl:when test="read_mask =
'from_group'">
+ <INPUT type="checkbox"
name="values[mask][{account_id}_1]" value="1" checked="checked"></INPUT>
+ </xsl:when>
+ <xsl:otherwise>
+ <INPUT type="checkbox"
name="values[mask][{account_id}_1]" value="1"></INPUT>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ <td align="center">
+ <xsl:choose>
+ <xsl:when test="type = 'users'">
+ <xsl:choose>
+ <xsl:when test="add_mask =
'checked'">
+ <INPUT type="checkbox"
name="values[mask][{account_id}_2]" value="2" checked="checked"></INPUT>
+ </xsl:when>
+ <xsl:when test="add_mask =
'from_group'">
+ <INPUT type="checkbox"
name="" checked="checked" disabled="disabled"></INPUT>
+ </xsl:when>
+ <xsl:otherwise>
+ <INPUT type="checkbox"
name="values[mask][{account_id}_2]" value="2"></INPUT>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:choose>
+ <xsl:when test="add_mask =
'checked'">
+ <INPUT type="checkbox"
name="values[mask][{account_id}_2]" value="2" checked="checked"></INPUT>
+ </xsl:when>
+ <xsl:when test="add_mask =
'from_group'">
+ <INPUT type="checkbox"
name="values[mask][{account_id}_2]" value="2" checked="checked"></INPUT>
+ </xsl:when>
+ <xsl:otherwise>
+ <INPUT type="checkbox"
name="values[mask][{account_id}_2]" value="2"></INPUT>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ <td align="center">
+ <xsl:choose>
+ <xsl:when test="type = 'users'">
+ <xsl:choose>
+ <xsl:when test="edit_mask =
'checked'">
+ <INPUT type="checkbox"
name="values[mask][{account_id}_4]" value="4" checked="checked"></INPUT>
+ </xsl:when>
+ <xsl:when test="edit_mask =
'from_group'">
+ <INPUT type="checkbox"
name="" checked="checked" disabled="disabled"></INPUT>
+ </xsl:when>
+ <xsl:otherwise>
+ <INPUT type="checkbox"
name="values[mask][{account_id}_4]" value="4"></INPUT>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:choose>
+ <xsl:when test="edit_mask =
'checked'">
+ <INPUT type="checkbox"
name="values[mask][{account_id}_4]" value="4" checked="checked"></INPUT>
+ </xsl:when>
+ <xsl:when test="edit_mask =
'from_group'">
+ <INPUT type="checkbox"
name="values[mask][{account_id}_4]" value="4" checked="checked"></INPUT>
+ </xsl:when>
+ <xsl:otherwise>
+ <INPUT type="checkbox"
name="values[mask][{account_id}_4]" value="4"></INPUT>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ <td align="center">
+ <xsl:choose>
+ <xsl:when test="type = 'users'">
+ <xsl:choose>
+ <xsl:when test="delete_mask =
'checked'">
+ <INPUT type="checkbox"
name="values[mask][{account_id}_8]" value="8" checked="checked"></INPUT>
+ </xsl:when>
+ <xsl:when test="delete_mask =
'from_group'">
+ <INPUT type="checkbox"
name="" checked="checked" disabled="disabled"></INPUT>
+ </xsl:when>
+ <xsl:otherwise>
+ <INPUT type="checkbox"
name="values[mask][{account_id}_8]" value="8"></INPUT>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:choose>
+ <xsl:when test="delete_mask =
'checked'">
+ <INPUT type="checkbox"
name="values[mask][{account_id}_8]" value="8" checked="checked"></INPUT>
+ </xsl:when>
+ <xsl:when test="delete_mask =
'from_group'">
+ <INPUT type="checkbox"
name="values[mask][{account_id}_8]" value="8" checked="checked"></INPUT>
+ </xsl:when>
+ <xsl:otherwise>
+ <INPUT type="checkbox"
name="values[mask][{account_id}_8]" value="8"></INPUT>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ <xsl:choose>
+ <xsl:when test="//permission= 1">
+ <td align="center">
+ <xsl:choose>
+ <xsl:when test="type = 'users'">
+ <xsl:choose>
+ <xsl:when
test="manage_mask = 'checked'">
+ <INPUT
type="checkbox" name="values[mask][{account_id}_16]" value="16"
checked="checked"></INPUT>
+ </xsl:when>
+ <xsl:when
test="manage_mask = 'from_group'">
+ <INPUT
type="checkbox" name="" checked="checked" disabled="disabled"></INPUT>
+ </xsl:when>
+ <xsl:otherwise>
+ <INPUT
type="checkbox" name="values[mask][{account_id}_16]" value="16"></INPUT>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:choose>
+ <xsl:when
test="manage_mask = 'checked'">
+ <INPUT
type="checkbox" name="values[mask][{account_id}_16]" value="16"
checked="checked"></INPUT>
+ </xsl:when>
+ <xsl:when
test="manage_mask = 'from_group'">
+ <INPUT
type="checkbox" name="values[mask][{account_id}_16]" value="16"
checked="checked"></INPUT>
+ </xsl:when>
+ <xsl:otherwise>
+ <INPUT
type="checkbox" name="values[mask][{account_id}_16]" value="16"></INPUT>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ </xsl:when>
+ </xsl:choose>
+ </xsl:template>
+
+ <xsl:template name="result">
+ <td align="left">
+ <xsl:value-of select="lang_result"/>
+ </td>
+ <td align="center">
+ <xsl:choose>
+ <xsl:when test="read_result = 'checked'">
+ <INPUT type="checkbox" name=""
checked="checked" disabled="disabled"></INPUT>
+ </xsl:when>
+ <xsl:otherwise>
+ <INPUT type="checkbox" name=""
disabled="disabled"></INPUT>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ <td align="center">
+ <xsl:choose>
+ <xsl:when test="add_result = 'checked'">
+ <INPUT type="checkbox" name=""
checked="checked" disabled="disabled"></INPUT>
+ </xsl:when>
+ <xsl:otherwise>
+ <INPUT type="checkbox" name=""
disabled="disabled"></INPUT>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ <td align="center">
+ <xsl:choose>
+ <xsl:when test="edit_result = 'checked'">
+ <INPUT type="checkbox" name=""
checked="checked" disabled="disabled"></INPUT>
+ </xsl:when>
+ <xsl:otherwise>
+ <INPUT type="checkbox" name=""
disabled="disabled"></INPUT>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ <td align="center">
+ <xsl:choose>
+ <xsl:when test="delete_result = 'checked'">
+ <INPUT type="checkbox" name=""
checked="checked" disabled="disabled"></INPUT>
+ </xsl:when>
+ <xsl:otherwise>
+ <INPUT type="checkbox" name=""
disabled="disabled"></INPUT>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ <xsl:choose>
+ <xsl:when test="//permission= 1">
+ <td align="center">
+ <xsl:choose>
+ <xsl:when test="manage_result =
'checked'">
+ <INPUT type="checkbox"
name="" checked="checked" disabled="disabled"></INPUT>
+ </xsl:when>
+ <xsl:otherwise>
+ <INPUT type="checkbox"
name="" disabled="disabled"></INPUT>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ </xsl:when>
+ </xsl:choose>
</xsl:template>
<!-- edit_id -->
@@ -291,7 +645,8 @@
</xsl:attribute>
<td align="right">
- <INPUT type="checkbox"
name="values[select][{$key_id}]" value="true"></INPUT>
</td>
+ <INPUT type="checkbox"
name="values[select][{$key_id}]" value="true"></INPUT>
+ </td>
<td align="right">
<xsl:value-of select="descr"/>
</td>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] hrm/templates/base admin.xsl,1.2,
sigurdne <=