alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  
</TR> <TR> <TD WIDTH="10%">Full Name: <TD WIDTH="40%"> <TD>Language: <TD> <SELECT NAME="LANGUAGE"> <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> </TR> <TR> <TD>Theme: <TD COLSPAN="3"> <SELECT NAME="THEME"> <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 COLSPAN="4" BGCOLOR="#aaaaaa" ALIGN="CENTER">Password settings </TR> <xsl:variable name="cptmpl" select="/USERMODEL/STATEDATA/VAR[@name='pass change tmpl']/@value"/> <TR> <TD WIDTH="100%" COLSPAN="4" ALIGN="CENTER"> <xsl:call-template name="changepass_header"> <xsl:with-param name="cptmpl" select="$cptmpl"/> <xsl:with-param name="sd" select="/USERMODEL/STATEDATA/VAR"/> <xsl:with-param name="verbose">yes </xsl:call-template> </TD> </TR> <TR> <TD WIDTH="10%">Password: <TD WIDTH="40%"> <xsl:call-template name="changepass_input"> <xsl:with-param name="cptmpl" select="$cptmpl"/> <xsl:with-param name="sd" select="/USERMODEL/STATEDATA/VAR"/> <xsl:with-param name="tag">PASSWORD </xsl:call-template> </TD> <TD WIDTH="10%">Verify: <TD WIDTH="40%"> <xsl:call-template name="changepass_input"> <xsl:with-param name="cptmpl" select="$cptmpl"/> <xsl:with-param name="sd" select="/USERMODEL/STATEDATA/VAR"/> <xsl:with-param name="tag">VERIFY </xsl:call-template> </TD> </TR> <TR> <TD COLSPAN="4" BGCOLOR="#aaaaaa" ALIGN="CENTER">Mailbox display settings </TR> <TR> <TD>Messages per page <TD> <TD>Navigation bar icon size <TD> </TR> <TR> <TD>Show fancy stuff <TD> <xsl:choose> <xsl:when test="/USERMODEL/USERDATA/BOOLVAR[@name='show fancy']/@value = 'yes'"> <INPUT TYPE="CHECKBOX" NAME="boolvar%show fancy" checked="checked"/> </xsl:when> <xsl:otherwise> <INPUT TYPE="CHECKBOX" NAME="boolvar%show fancy"/> </xsl:otherwise> </xsl:choose> </TD> <TD>Show att. images <TD> <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"/> </xsl:otherwise> </xsl:choose> </TD> </TR> <TR> <TD>Autoexpunge folders <TD> <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"/> </xsl:otherwise> </xsl:choose> </TD> <TD>Set message flags <TD> <xsl:choose> <xsl:when test="/USERMODEL/USERDATA/BOOLVAR[@name='set message flags']/@value = 'yes'"> <INPUT TYPE="CHECKBOX" NAME="boolvar%set message flags" checked="checked"/> </xsl:when> <xsl:otherwise> <INPUT TYPE="CHECKBOX" NAME="boolvar%set message flags"/> </xsl:otherwise> </xsl:choose> </TD> </TR> <TR> <TD>Break lines (show and compose) <TD> <xsl:choose> <xsl:when test="/USERMODEL/USERDATA/BOOLVAR[@name='break lines']/@value = 'yes'"> <INPUT TYPE="CHECKBOX" NAME="boolvar%break lines" checked="checked"/> </xsl:when> <xsl:otherwise> <INPUT TYPE="CHECKBOX" NAME="boolvar%break lines"/> </xsl:otherwise> </xsl:choose> </TD> <TD>max line length <TD> </TR> <TR> <TD COLSPAN="4" BGCOLOR="#aaaaaa" ALIGN="CENTER">Compose settings </TR> <TR> <TD>Save sent mail <TD> <xsl:choose> <xsl:when test="/USERMODEL/USERDATA/BOOLVAR[@name='save sent messages']/@value = 'yes'"> <INPUT TYPE="CHECKBOX" NAME="boolvar%save sent messages" checked="checked"/> </xsl:when> <xsl:otherwise> <INPUT TYPE="CHECKBOX" NAME="boolvar%save sent messages"/> </xsl:otherwise> </xsl:choose> </TD> <TD>in folder <TD> <SELECT NAME="SENTFOLDER"> <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>Email Address: <TD> <select name="EMAIL" size="1"> <xsl:for-each select="/USERMODEL/USERDATA/EMAIL/ADDY"> <xsl:choose> <xsl:when test="@default='yes'"> <option selected="selected"> <xsl:value-of select="."/> </option> </xsl:when> <xsl:otherwise> <option> <xsl:value-of select="."/> </option> </xsl:otherwise> </xsl:choose> </xsl:for-each> </select> </TD> <TD> <TD> </TR> <TR> <TD>Add new email: <TD> <TD> <TD>  </TR> <TR> <TD VALIGN="TOP">Signature: <TD COLSPAN="3"> <TEXTAREA ROWS="5" COLS="79" NAME="SIGNATURE"> </TD> </TR> <TR> <TD COLSPAN="2" BGCOLOR="#aaaaaa"> <CENTER> <INPUT TYPE="submit" VALUE="Submit"/> </CENTER> </TD> <TD COLSPAN="2" BGCOLOR="#aaaaaa"> <CENTER> <INPUT TYPE="reset" VALUE="Reset"/> </CENTER> </TD> </TR> </TABLE> </FORM> </BODY> </HTML> </xsl:template> <xsl:template match="/USERMODEL/STATEDATA/VAR"> <xsl:value-of select="@value"/> </xsl:template> <xsl:include href="changepass.xsl"/> </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="UTF-8"?>
<!--
 * 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.
-->
<!--
 * 9/24/2000 devink - changed the password setting look a bit to work with the idea
 * of per Authenticator help.
-->

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  <xsl:output method="html" encoding="UTF-8"/>
  
    <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:variable name="pass_change_file" select="/USERMODEL/STATEDATA/VAR[@name='pass change file']/@value"/>

    <xsl:template match="/">
    
    <HTML>
      <HEAD>
        <TITLE>WebMail Mailbox for : Title Frame
	<META CONTENT="AUTHOR" VALUE="Sebastian Schaffert"/>
      </HEAD>

      <BODY bgcolor="#ffffff">

	<FORM ACTION="{$base}/setup/submit?session-id={$session-id}" METHOD="POST">
	  <TABLE BGCOLOR="#dddddd" CELLSPACING="0" BORDER="0">
	    <TR>
	      <TD COLSPAN="2" VALIGN="CENTER">
		<IMG SRC="{$imgbase}/images/btn-setup.png"/>
	      </TD>
	      <TD COLSPAN="2" VALIGN="CENTER">
		<FONT SIZE="+2">JWebMail Setup for  (Help)
<EM>Login name
<EM>Account exists since </TD> </TR> <TR> <TD COLSPAN="4" BGCOLOR="#aaaaaa" ALIGN="CENTER">General settings
... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

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.