egroupware/phpgwapi/templates/default/app_delete.xsl

135 lines
3.9 KiB
XML
Raw Normal View History

2002-09-26 03:49:15 +02:00
<!-- $Id$ -->
2002-11-02 23:25:14 +01:00
<xsl:template name="app_delete">
<xsl:apply-templates select="delete"/>
</xsl:template>
2002-09-26 03:49:15 +02:00
<xsl:template match="delete">
2002-09-27 03:09:37 +02:00
<table cellpadding="2" cellspacing="2" align="center">
2003-04-23 03:06:36 +02:00
<xsl:choose>
2003-04-28 02:31:33 +02:00
<xsl:when test="msgbox_data != ''">
<tr>
<td align="center" colspan="2"><xsl:call-template name="msgbox"/></td>
2003-04-23 03:06:36 +02:00
</tr>
</xsl:when>
</xsl:choose>
2003-04-21 00:14:39 +02:00
<tr>
2003-04-28 02:31:33 +02:00
<td align="center" colspan="2"><xsl:value-of select="lang_confirm_msg"/></td>
2002-09-26 03:49:15 +02:00
</tr>
2003-04-23 03:06:36 +02:00
<!-- delete sub -->
2003-04-28 02:31:33 +02:00
<xsl:variable name="delete_url"><xsl:value-of select="delete_url"/></xsl:variable>
<form method="POST" action="{$delete_url}">
2003-04-21 00:14:39 +02:00
<xsl:choose>
<xsl:when test="subs = 'yes'">
<tr>
2003-04-23 03:06:36 +02:00
<td align="center" colspan="2" class="row_off">
2003-04-21 00:14:39 +02:00
<table>
<tr>
<td><input type="radio" name="subs" value="move"/></td>
<td><xsl:value-of select="lang_sub_select_move"/></td>
</tr>
<tr>
<td><input type="radio" name="subs" value="drop"/></td>
<td><xsl:value-of select="lang_sub_select_drop"/></td>
</tr>
</table>
</td>
</tr>
</xsl:when>
</xsl:choose>
2003-04-23 03:06:36 +02:00
<!-- delete account -->
<xsl:choose>
<xsl:when test="owner_list">
<tr>
<td align="center" colspan="2" class="row_off">
<table>
<tr>
<td><xsl:value-of select="lang_new_owner"/></td>
<td><xsl:value-of select="lang_sub_select_move"/></td>
</tr>
</table>
</td>
</tr>
</xsl:when>
</xsl:choose>
<!-- delete group -->
<xsl:choose>
<xsl:when test="user_list">
<tr>
<td align="center" colspan="2" class="row_off">
<table>
<xsl:apply-templates select="user_list"/>
</table>
</td>
</tr>
<tr>
<td align="center" colspan="2" class="row_on">
<xsl:value-of select="lang_remove_user"/>
</td>
</tr>
</xsl:when>
</xsl:choose>
2002-09-26 03:49:15 +02:00
<tr>
2003-04-28 02:31:33 +02:00
<xsl:choose>
<xsl:when test="show_done != ''">
<xsl:variable name="lang_done"><xsl:value-of select="lang_done"/></xsl:variable>
<td>
<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>
</td>
</xsl:when>
<xsl:otherwise>
2003-04-27 21:28:13 +02:00
<xsl:variable name="lang_delete"><xsl:value-of select="lang_delete"/></xsl:variable>
2003-04-28 02:31:33 +02:00
<td>
2003-04-27 21:28:13 +02:00
<input type="submit" name="delete" value="{$lang_delete}" onMouseout="window.status='';return true;">
<xsl:attribute name="onMouseover">
<xsl:text>window.status='</xsl:text>
2003-04-28 02:31:33 +02:00
<xsl:value-of select="lang_delete_statustext"/>
2003-04-27 21:28:13 +02:00
<xsl:text>'; return true;</xsl:text>
</xsl:attribute>
</input>
2002-09-26 03:49:15 +02:00
</td>
<td align="right">
2003-04-27 21:28:13 +02:00
<xsl:variable name="lang_cancel"><xsl:value-of select="lang_cancel"/></xsl:variable>
<input type="submit" name="cancel" value="{$lang_cancel}" onMouseout="window.status='';return true;">
2002-10-03 05:47:43 +02:00
<xsl:attribute name="onMouseover">
<xsl:text>window.status='</xsl:text>
2003-04-27 21:28:13 +02:00
<xsl:value-of select="lang_cancel_statustext"/>
2002-10-03 05:47:43 +02:00
<xsl:text>'; return true;</xsl:text>
</xsl:attribute>
2003-04-27 21:28:13 +02:00
</input>
2002-09-26 03:49:15 +02:00
</td>
2003-04-28 02:31:33 +02:00
</xsl:otherwise>
</xsl:choose>
2002-09-26 03:49:15 +02:00
</tr>
2003-04-28 02:31:33 +02:00
</form>
2002-09-26 03:49:15 +02:00
</table>
</xsl:template>
2003-04-23 03:06:36 +02:00
<xsl:template match="user_list">
<xsl:variable name="user_url"><xsl:value-of select="user_url"/></xsl:variable>
<tr>
<td>
<a href="{$user_url}" onMouseout="window.status='';return true;">
<xsl:attribute name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of select="lang_user_url_statustext"/>
<xsl:text>'; return true;</xsl:text>
</xsl:attribute>
<xsl:value-of select="user_name"/>
</a>
</td>
</tr>
</xsl:template>