|
What this is
Other links
The source code
<?xml version="1.0" encoding="ISO-8859-1"?>
<!--
* Copyright (C) 2000 Sebastian Schaffert
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="html" indent="yes"/>
<xsl:variable name="imgbase" select="/USERMODEL/STATEDATA/VAR[@name='img base uri']/@value"/>
<xsl:variable name="base" select="/USERMODEL/STATEDATA/VAR[@name='base uri']/@value"/>
<xsl:variable name="session-id" select="/USERMODEL/STATEDATA/VAR[@name='session id']/@value"/>
<xsl:template match="/">
<HTML>
<HEAD>
<TITLE>WebMail Casilla de Entrada para |
</TR>
<TR>
<TD COLSPAN="3" BGCOLOR="#aaaaaa" ALIGN="CENTER">
<STRONG>Borrar casillas de correo
</TD>
</TR>
<xsl:for-each select="/USERMODEL/USERDATA/MAILHOST">
<TR>
<TD>
<STRONG>
<xsl:value-of select="@name"/>
</STRONG>
</TD>
<TD>
<EM>
<xsl:apply-templates select="MH_URI"/>
</EM>
</TD>
<TD>
<A HREF="{$base}/folder/setup?session-id={$session-id}&method=mailbox&remove={@id}">Borrar
</TD>
</TR>
</xsl:for-each>
<TR>
<TD COLSPAN="3">
<xsl:text disable-output-escaping="yes">
</TD>
</TR>
<TR>
<TD COLSPAN="3" BGCOLOR="#aaaaaa" ALIGN="CENTER">
<STRONG>Agregar casilla de correo
</TD>
</TR>
<TR>
<TD COLSPAN="3">
<FORM ACTION="{$base}/folder/setup?session-id={$session-id}&method=mailbox&add=1" METHOD="POST">
<TABLE WIDTH="100%">
<TR>
<TD>
<STRONG>Nombre de la casilla de correo:
</TD>
<TD COLSPAN="3">
<INPUT TYPE="text" SIZE="30" NAME="mbox_name"/>
</TD>
</TR>
<TR>
<TD>
<STRONG>Nombre del Host:
</TD>
<TD>
<INPUT TYPE="text" SIZE="20" NAME="mbox_host"/>
</TD>
<TD>
<STRONG>Protocolo:
</TD>
<TD>
<SELECT NAME="mbox_proto">
<xsl:for-each select="/USERMODEL/STATEDATA/VAR[@name='protocol']">
<xsl:choose>
<xsl:when test="@value = /USERMODEL/SYSDATA//CONFIG[KEY='DEFAULT PROTOCOL']/VALUE">
<OPTION selected="selected">
<xsl:value-of select="@value"/>
</OPTION>
</xsl:when>
<xsl:otherwise>
<OPTION>
<xsl:value-of select="@value"/>
</OPTION>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
</SELECT>
</TD>
</TR>
<TR>
<TD>
<STRONG>Usuario:
</TD>
<TD>
<INPUT TYPE="text" SIZE="10" NAME="mbox_login"/>
</TD>
<TD>
<STRONG>Contraseña:
</TD>
<TD>
<INPUT TYPE="PASSWORD" SIZE="10" NAME="mbox_password"/>
</TD>
</TR>
<TR>
<TD COLSPAN="4" ALIGN="CENTER">
<INPUT TYPE="submit" NAME="submit" VALUE="Add Mailbox"/>
</TD>
</TR>
</TABLE>
</FORM>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>
</xsl:template>
<xsl:template match="/USERMODEL/STATEDATA/VAR">
<xsl:value-of select="@value"/>
</xsl:template>
</xsl:stylesheet>
| ... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.