home | career | drupal | java | mac | mysql | perl | scala | uml | unix  
</TR> <xsl:for-each select="/USERMODEL/USERDATA/MAILHOST"> <TR> <TD width="25%" height="35" class="testoNero" bgcolor="#E2E6F0"> <SPAN class="bold"> <xsl:value-of select="@name"/> </SPAN> </TD> <TD width="50%" colspan="2" bgcolor="#D1D7E7" class="testoNero"> <xsl:apply-templates select="MH_URI"/> </TD> <TD width="25%" class="testoNero" bgcolor="#E2E6F0">Remove </TR> </xsl:for-each> <TR> <TD bgcolor="#A6B1C0" colspan="4" height="22" align="center" class="testoGrande">Add Mailboxes </TR> <TR> <TD width="25%" bgcolor="#E2E6F0" class="testoNero">Mailbox Name: <TD width="75%" colspan="3" class="testoNero" bgcolor="#D1D7E7"> <INPUT TYPE="text" SIZE="25" NAME="mbox_name" class="testoNero"/> </TD> </TR> <TR> <TD width="25%" class="testoNero" bgcolor="#E2E6F0">Hostname: <TD width="25%" class="testoNero" bgcolor="#D1D7E7"> </TD> <TD width="25%" class="testoNero" bgcolor="#E2E6F0">Protocol: <TD width="25%" class="testoNero" bgcolor="#D1D7E7"> <SELECT NAME="mbox_proto" class="testoNero"> <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:when> <xsl:otherwise> <OPTION> </xsl:otherwise> </xsl:choose> </xsl:for-each> </SELECT> </TD> </TR> <TR> <TD width="25%" class="testoNero" bgcolor="#E2E6F0">Login: </TD> <TD width="25%" class="testoNero" bgcolor="#D1D7E7"> <INPUT TYPE="text" SIZE="10" NAME="mbox_login" class="testoNero"/> </TD> <TD width="25%" class="testoNero" bgcolor="#E2E6F0">Password: </TD> <TD width="25%" class="testoNero" bgcolor="#D1D7E7"> <INPUT TYPE="PASSWORD" SIZE="10" NAME="mbox_password" class="testoNero"/> </TD> </TR> <TR> <TD colspan="4" align="center" class="testoNero" bgcolor="#A6B1C0"> <INPUT TYPE="submit" NAME="submit" VALUE="Add Mailbox" class="testoNero"/> </TD> </TR> </FORM> </TABLE> </BODY> </HTML> </xsl:template> <xsl:template match="/USERMODEL/STATEDATA/VAR"> <xsl:value-of select="@value"/> </xsl:template> </xsl:stylesheet>

What this is

This file is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

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
 * 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="/">

        <TITLE>WebMail Mailbox for : Folder Setup
	<META CONTENT="AUTHOR" VALUE="Sebastian Schaffert"/>
	<link rel="stylesheet" href="{$base}/passthrough/webmail.css"/>
      <BODY bgcolor="#B5C1CF" topmargin="5" leftmargin="0" marginwidth="0" marginheight="5">

	<TABLE width="100%" border="0" cellspacing="2" cellpadding="4">
	 <FORM ACTION="{$base}/folder/setup?session-id={$session-id}&method=mailbox&add=1" METHOD="POST">
	    <TD colspan="4" height="22" class="testoNero">
	      <IMG SRC="{$imgbase}/images/icona_folder.gif" align="absmiddle"/>
	       WebMail Folder Setup for <xsl:value-of select="/USERMODEL/USERDATA/FULL_NAME"/> (Help)
	    <TD colspan="4" bgcolor="#697791" height="22" class="testoBianco">
	        Login name <xsl:value-of select="normalize-space(/USERMODEL/USERDATA/LOGIN)"/>
Account exists since <xsl:apply-templates select="/USERMODEL/STATEDATA/VAR[@name='first login']"/> </TD> </TR> <TR> <TD bgcolor="#A6B1C0" colspan="4" height="22" align="center" class="testoGrande">Remove Mailboxes

my book on functional programming


new blog posts


Copyright 1998-2019 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.