home | career | drupal | java | mac | mysql | perl | scala | uml | unix  
</TR> <TR> <TD bgcolor="#E2E6F0" class="testoNero">Full Name: <TD class="testoNero" bgcolor="#D1D7E7"> <TD class="testoNero" bgcolor="#E2E6F0">Password: <TD class="testoNero" bgcolor="#D1D7E7"> </TR> <TR> <TD bgcolor="#E2E6F0" class="testoNero">Language: <TD class="testoNero" bgcolor="#D1D7E7"> <SELECT NAME="LANGUAGE" class="testoNero"> <xsl:for-each select="/USERMODEL/STATEDATA/VAR[@name='language']"> <xsl:choose> <xsl:when test="@value = /USERMODEL/USERDATA/LOCALE"> <OPTION selected="selected"> </xsl:when> <xsl:otherwise> <OPTION> </xsl:otherwise> </xsl:choose> </xsl:for-each> </SELECT> </TD> <TD class="testoNero" bgcolor="#E2E6F0">Verify: <TD class="testoNero" bgcolor="#D1D7E7"> </TR> <TR> <TD class="testoNero">Theme: <TD class="testoNero" COLSPAN="3" bgcolor="#D1D7E7"> <SELECT NAME="THEME" class="testoNero"> <xsl:for-each select="/USERMODEL/STATEDATA/VAR[@name=$themeset]"> <xsl:choose> <xsl:when test="@value = /USERMODEL/USERDATA/THEME"> <OPTION selected="selected"> </xsl:when> <xsl:otherwise> <OPTION> </xsl:otherwise> </xsl:choose> </xsl:for-each> </SELECT> </TD> </TR> <TR> <TD width="100%" bgcolor="#A6B1C0" height="22" align="center" colspan="4" class="testoGrande">Mailbox display settings </TR> <TR> <TD bgcolor="#E2E6F0" class="testoNero">Messages per page <TD class="testoNero" bgcolor="#D1D7E7"> <TD class="testoNero" bgcolor="#E2E6F0">Navigation bar icon size <TD class="testoNero" bgcolor="#D1D7E7"> </TR> <TR> <TD bgcolor="#E2E6F0" class="testoNero">Show fancy stuff <TD class="testoNero" bgcolor="#D1D7E7"> <xsl:choose> <xsl:when test="/USERMODEL/USERDATA/BOOLVAR[@name='show fancy']/@value = 'yes'"> <INPUT TYPE="CHECKBOX" NAME="boolvar%show fancy" checked="checked" class="testoNero"/> </xsl:when> <xsl:otherwise> <INPUT TYPE="CHECKBOX" NAME="boolvar%show fancy"/> </xsl:otherwise> </xsl:choose> </TD> <TD class="testoNero" bgcolor="#E2E6F0">Show att. images <TD class="testoNero" bgcolor="#D1D7E7"> <xsl:choose> <xsl:when test="/USERMODEL/USERDATA/BOOLVAR[@name='show images']/@value = 'yes'"> <INPUT TYPE="CHECKBOX" NAME="boolvar%show images" checked="checked"/> </xsl:when> <xsl:otherwise> <INPUT TYPE="CHECKBOX" NAME="boolvar%show images" class="testoNero"/> </xsl:otherwise> </xsl:choose> </TD> </TR> <TR> <TD bgcolor="#E2E6F0" class="testoNero">Autoexpunge folders <TD class="testoNero" bgcolor="#D1D7E7"> <xsl:choose> <xsl:when test="/USERMODEL/USERDATA/BOOLVAR[@name='autoexpunge']/@value = 'yes'"> <INPUT TYPE="CHECKBOX" NAME="boolvar%autoexpunge" checked="checked"/> </xsl:when> <xsl:otherwise> <INPUT TYPE="CHECKBOX" NAME="boolvar%autoexpunge" class="testoNero"/> </xsl:otherwise> </xsl:choose> </TD> <TD class="testoNero" bgcolor="#E2E6F0">Set message flags <TD class="testoNero" bgcolor="#D1D7E7"> <xsl:choose> <xsl:when test="/USERMODEL/USERDATA/BOOLVAR[@name='set message flags']/@value = 'yes'"> <INPUT TYPE="CHECKBOX" NAME="boolvar%set message flags" checked="checked" class="testoNero"/> </xsl:when> <xsl:otherwise> <INPUT TYPE="CHECKBOX" NAME="boolvar%set message flags"/> </xsl:otherwise> </xsl:choose> </TD> </TR> <TR> <TD bgcolor="#E2E6F0" class="testoNero">Break lines (show and compose) <TD class="testoNero" bgcolor="#D1D7E7"> <xsl:choose> <xsl:when test="/USERMODEL/USERDATA/BOOLVAR[@name='break lines']/@value = 'yes'"> <INPUT TYPE="CHECKBOX" NAME="boolvar%break lines" checked="checked" class="testoNero"/> </xsl:when> <xsl:otherwise> <INPUT TYPE="CHECKBOX" NAME="boolvar%break lines" class="testoNero"/> </xsl:otherwise> </xsl:choose> </TD> <TD class="testoNero" bgcolor="#E2E6F0">max line length <TD class="testoNero" bgcolor="#D1D7E7"> </TR> <TR> <TD height="22" colspan="4" bgcolor="#A6B1C0" align="center" class="testoGrande">Compose settings </TR> <TR> <TD bgcolor="#E2E6F0" class="testoNero">Save sent mail <TD class="testoNero" bgcolor="#D1D7E7"> <xsl:choose> <xsl:when test="/USERMODEL/USERDATA/BOOLVAR[@name='save sent messages']/@value = 'yes'"> <INPUT TYPE="CHECKBOX" NAME="boolvar%save sent messages" checked="checked" class="testoNero"/> </xsl:when> <xsl:otherwise> <INPUT TYPE="CHECKBOX" NAME="boolvar%save sent messages"/> </xsl:otherwise> </xsl:choose> </TD> <TD class="testoNero" bgcolor="#E2E6F0"> in folder <TD class="testoNero" bgcolor="#D1D7E7"> <SELECT NAME="SENTFOLDER" class="testoNero"> <xsl:for-each select="/USERMODEL/MAILHOST_MODEL//FOLDER"> <xsl:choose> <xsl:when test="normalize-space(/USERMODEL/USERDATA/SENT_FOLDER) = @id"> <OPTION value="{@id}" selected="selected"> </xsl:when> <xsl:otherwise> <OPTION value="{@id}"> </xsl:otherwise> </xsl:choose> </xsl:for-each> </SELECT> </TD> </TR> <TR> <TD bgcolor="#E2E6F0" class="testoNero">Email Address: <TD class="testoNero" bgcolor="#D1D7E7"> <TD class="testoNero" bgcolor="#E2E6F0">  <TD class="testoNero" bgcolor="#D1D7E7">  </TR> <TR> <TD bgcolor="#E2E6F0" class="testoNero">Signature: <TD class="testoNero" bgcolor="#D1D7E7" colspan="3"> <TEXTAREA ROWS="4" COLS="40" NAME="SIGNATURE" class="testoNero"> </TD> </TR> <TR> <TD bgcolor="#E2E6F0" class="testoNero" align="center"> <INPUT TYPE="reset" VALUE="Reset" class="testoNero"/> </TD> <TD class="testoNero" bgcolor="#D1D7E7" colspan="3" align="center"> <INPUT TYPE="submit" VALUE="Submit" class="testoNero"/> </TD> </TR> <TR> <TD width="100%" height="22" colspan="4" bgcolor="#A6B1C0" align="center" class="testoGrande">  </TD> </TR> </TABLE> </FORM> </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
 * 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:variable name="themeset" select="/USERMODEL/STATEDATA/VAR[@name='themeset']/@value"/>

    <xsl:template match="/">
    
    <HTML>
      <HEAD>
        <TITLE>WebMail Mailbox for : Title Frame
	<META CONTENT="AUTHOR" VALUE="Sebastian Schaffert"/>
	<link rel="stylesheet" href="{$base}/passthrough/webmail.css"/>
      </HEAD>

      <BODY bgcolor="#B5C1CF" topmargin="5" leftmargin="0" marginwidth="0" marginheight="5">

	<FORM ACTION="{$base}/setup/submit?session-id={$session-id}" METHOD="POST">
	  <TABLE width="100%" border="0" cellspacing="2" cellpadding="4">
	    <TR>
	      <TD width="100%" colspan="4" height="22" class="testoNero">
		<IMG SRC="{$imgbase}/images/icona_user.gif" align="absmiddle"/>
	      WebMail Setup for <xsl:value-of select="normalize-space(/USERMODEL/USERDATA/FULL_NAME)"/> (Help)
		</TD>
	    </TR>
	    <TR>
		<TD width="100%" 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 colspan="4" bgcolor="#A6B1C0" height="22" align="center" class="testoGrande">General settings


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.