2003-04-21 02:21:09 +02:00
|
|
|
<!-- $Id$ -->
|
|
|
|
|
|
|
|
<xsl:template name="groups">
|
|
|
|
<xsl:choose>
|
|
|
|
<xsl:when test="group_list">
|
|
|
|
<xsl:apply-templates select="group_list"/>
|
|
|
|
</xsl:when>
|
|
|
|
<xsl:when test="group_edit">
|
|
|
|
<xsl:apply-templates select="group_edit"/>
|
|
|
|
</xsl:when>
|
|
|
|
</xsl:choose>
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
<!-- BEGIN group_list -->
|
|
|
|
|
|
|
|
<xsl:template match="group_list">
|
|
|
|
<center>
|
|
|
|
<table border="0" cellspacing="2" cellpadding="2">
|
|
|
|
<tr>
|
|
|
|
<td colspan="3" width="100%">
|
|
|
|
<xsl:call-template name="nextmatchs"/>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td colspan="3" width="100%" align="right">
|
|
|
|
<xsl:choose>
|
|
|
|
<xsl:when test="search_access = 'yes'">
|
|
|
|
<xsl:call-template name="search_field"/>
|
|
|
|
</xsl:when>
|
|
|
|
</xsl:choose>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<xsl:apply-templates select="group_header"/>
|
|
|
|
<xsl:apply-templates select="group_data"/>
|
|
|
|
<xsl:apply-templates select="group_add"/>
|
|
|
|
</table>
|
|
|
|
</center>
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
<!-- BEGIN group_header -->
|
|
|
|
|
|
|
|
<xsl:template match="group_header">
|
|
|
|
<xsl:variable name="sort_name" select="sort_name"/>
|
|
|
|
<xsl:variable name="lang_sort_statustext" select="lang_sort_statustext"/>
|
|
|
|
<tr class="th">
|
|
|
|
<td width="20%"><a href="{$sort_name}" onMouseover="window.status='{$lang_sort_statustext}';return true;" onMouseout="window.status='';return true;" class="th_text"><xsl:value-of select="lang_name"/></a></td>
|
|
|
|
<td width="8%" align="center"><xsl:value-of select="lang_edit"/></td>
|
|
|
|
<td width="8%" align="center"><xsl:value-of select="lang_delete"/></td>
|
|
|
|
</tr>
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
<!-- BEGIN group_data -->
|
|
|
|
|
|
|
|
<xsl:template match="group_data">
|
|
|
|
<xsl:variable name="lang_edit_statustext"><xsl:value-of select="lang_edit_statustext"/></xsl:variable>
|
|
|
|
<xsl:variable name="lang_delete_statustext"><xsl:value-of select="lang_delete_statustext"/></xsl:variable>
|
|
|
|
<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><xsl:value-of select="group_name"/></td>
|
|
|
|
<td align="center">
|
|
|
|
<xsl:variable name="edit_url" select="edit_url"/>
|
|
|
|
<a href="{$edit_url}" onMouseover="window.status='{$lang_edit_statustext}';return true;" onMouseout="window.status='';return true;" class="th_text"><xsl:value-of select="lang_edit"/></a>
|
|
|
|
</td>
|
|
|
|
<td align="center">
|
|
|
|
<xsl:variable name="delete_url" select="delete_url"/>
|
|
|
|
<a href="{$delete_url}" onMouseover="window.status='{$lang_delete_statustext}';return true;" onMouseout="window.status='';return true;" class="th_text"><xsl:value-of select="lang_delete"/></a>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
<!-- BEGIN group_add -->
|
|
|
|
|
|
|
|
<xsl:template match="group_add">
|
2003-04-27 21:28:13 +02:00
|
|
|
<tr height="50">
|
|
|
|
<xsl:variable name="action_url"><xsl:value-of select="action_url"/></xsl:variable>
|
|
|
|
<form method="post" action="{$action_url}">
|
|
|
|
<td valign="bottom">
|
2003-04-21 02:21:09 +02:00
|
|
|
<xsl:choose>
|
|
|
|
<xsl:when test="add_access = 'yes'">
|
2003-04-27 21:28:13 +02:00
|
|
|
<xsl:variable name="lang_add"><xsl:value-of select="lang_add"/></xsl:variable>
|
|
|
|
<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>
|
2003-04-21 02:21:09 +02:00
|
|
|
</xsl:when>
|
|
|
|
</xsl:choose>
|
|
|
|
</td>
|
2003-04-27 21:28:13 +02:00
|
|
|
<td align="right" valign="bottom" colspan="2">
|
|
|
|
<xsl:variable name="lang_done"><xsl:value-of select="lang_done"/></xsl:variable>
|
|
|
|
<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>
|
2003-04-21 02:21:09 +02:00
|
|
|
</td>
|
2003-04-27 21:28:13 +02:00
|
|
|
</form>
|
2003-04-21 02:21:09 +02:00
|
|
|
</tr>
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
<!-- END group_list -->
|
|
|
|
|
|
|
|
<!-- BEGIN group_edit -->
|
|
|
|
|
|
|
|
<xsl:template match="group_edit">
|
2003-04-23 03:08:32 +02:00
|
|
|
<table border="0" cellpadding="2" cellspacing="2" align="center" width="79%">
|
2003-04-28 01:16:15 +02:00
|
|
|
<xsl:choose>
|
|
|
|
<xsl:when test="msgbox_data != ''">
|
|
|
|
<tr>
|
|
|
|
<td align="center"><xsl:call-template name="msgbox"/></td>
|
|
|
|
</tr>
|
|
|
|
</xsl:when>
|
|
|
|
</xsl:choose>
|
2003-04-21 02:21:09 +02:00
|
|
|
<tr>
|
|
|
|
<td valign="top">
|
2003-04-23 03:08:32 +02:00
|
|
|
<!-- {rows} -->
|
2003-04-21 02:21:09 +02:00
|
|
|
</td>
|
|
|
|
<td valign="top">
|
|
|
|
<table border="0" width="100%">
|
|
|
|
<xsl:variable name="edit_url"><xsl:value-of select="edit_url"/></xsl:variable>
|
2003-04-23 03:08:32 +02:00
|
|
|
<xsl:variable name="account_id" select="account_id"/>
|
|
|
|
<xsl:variable name="select_size" select="select_size"/>
|
2003-04-21 02:21:09 +02:00
|
|
|
<form action="{$edit_url}" method="POST">
|
2003-04-23 03:08:32 +02:00
|
|
|
<input type="hidden" name="values[account_id]" value="{$account_id}"/>
|
2003-04-21 02:21:09 +02:00
|
|
|
<tr>
|
|
|
|
<td><xsl:value-of select="lang_account_name"/></td>
|
2003-04-23 03:08:32 +02:00
|
|
|
<td><input name="values[account_name]">
|
|
|
|
<xsl:attribute name="value">
|
2003-04-21 02:21:09 +02:00
|
|
|
<xsl:value-of select="value_account_name"/>
|
|
|
|
</xsl:attribute>
|
|
|
|
</input>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td><xsl:value-of select="lang_include_user"/></td>
|
|
|
|
<td>
|
2003-04-23 03:08:32 +02:00
|
|
|
<select name="account_user[]" multiple="multiple" size="{$select_size}">
|
|
|
|
<xsl:apply-templates select="user_list"/>
|
2003-04-21 02:21:09 +02:00
|
|
|
</select>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td><xsl:value-of select="lang_file_space"/></td>
|
|
|
|
<td>
|
2003-04-23 03:08:32 +02:00
|
|
|
<!-- {account_file_space}{account_file_space_select} -->
|
2003-04-21 02:21:09 +02:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2003-04-23 03:08:32 +02:00
|
|
|
<td valign="top"><xsl:value-of select="lang_permissions"/></td>
|
2003-04-21 02:21:09 +02:00
|
|
|
<td>
|
2003-04-23 03:08:32 +02:00
|
|
|
<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"/>
|
2003-04-21 02:21:09 +02:00
|
|
|
</table>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2003-04-27 21:28:13 +02:00
|
|
|
<td>
|
2003-04-21 02:21:09 +02:00
|
|
|
<xsl:variable name="lang_save"><xsl:value-of select="lang_save"/></xsl:variable>
|
2003-04-23 03:08:32 +02:00
|
|
|
<input type="submit" name="values[save]" value="{$lang_save}"/>
|
2003-04-21 02:21:09 +02:00
|
|
|
</td>
|
2003-04-27 21:28:13 +02:00
|
|
|
<td align="right">
|
|
|
|
<xsl:variable name="lang_cancel"><xsl:value-of select="lang_cancel"/></xsl:variable>
|
|
|
|
<input type="submit" name="values[cancel]" value="{$lang_cancel}"/>
|
2003-04-21 02:21:09 +02:00
|
|
|
</td>
|
|
|
|
</tr>
|
2003-04-27 21:28:13 +02:00
|
|
|
</form>
|
2003-04-21 02:21:09 +02:00
|
|
|
</table>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</xsl:template>
|
2003-04-23 03:08:32 +02:00
|
|
|
|
|
|
|
<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>
|