alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  
</xsl:when> <xsl:otherwise> <TD COLSPAN="4" ALIGN="center">Creating new user in domain </xsl:otherwise> </xsl:choose> </TR> <TR> <TD COLSPAN="4" BGCOLOR="lightblue" ALIGN="CENTER">General settings </TR> <TR> <TD>Login: <TD> <xsl:choose> <xsl:when test="$ud != ''"> <xsl:value-of select="$ud/LOGIN"/> <INPUT TYPE="hidden" NAME="user" VALUE="{$ud/LOGIN}"/> </xsl:when> <xsl:otherwise> <INPUT TYPE="text" NAME="user" SIZE="10"/> </xsl:otherwise> </xsl:choose> </TD> </TR> <TR> <TD>Full Name: <TD COLSPAN="3"> </TR> <TR> <TD>Language: <TD COLSPAN="3"> <SELECT NAME="user language"> <xsl:for-each select="/GENERICMODEL/STATEDATA/VAR[@name='language']"> <xsl:choose> <xsl:when test="@value = $ud/LOCALE"> <OPTION selected="selected"> </xsl:when> <xsl:otherwise> <OPTION> </xsl:otherwise> </xsl:choose> </xsl:for-each> </SELECT> </TD> </TR> <TR> <TD COLSPAN="4" BGCOLOR="lightblue" ALIGN="CENTER"> <EM>Password settings </TD> </TR> <xsl:variable name="cptmpl" select="/GENERICMODEL/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="/GENERICMODEL/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="/GENERICMODEL/STATEDATA/VAR"/> <xsl:with-param name="tag">user password </xsl:call-template> </TD> </TR> <TR> <TD COLSPAN="4" BGCOLOR="lightblue" ALIGN="CENTER">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="$ud/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="$ud/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>Filter JavaScript <TD> <xsl:choose> <xsl:when test="$ud/BOOLVAR[@name='filter javascript']/@value = 'yes'"> <INPUT TYPE="CHECKBOX" NAME="boolvar%filter javascript" checked="checked"/> </xsl:when> <xsl:otherwise> <INPUT TYPE="CHECKBOX" NAME="boolvar%filter javascript"/> </xsl:otherwise> </xsl:choose> </TD> <TD>Set message flags <TD> <xsl:choose> <xsl:when test="$ud/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="$ud/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="lightblue" ALIGN="CENTER">Compose settings </TR> <TR> <TD>EMail Address: <TD COLSPAN="3"> </TR> <TR> <TD VALIGN="TOP">Signature: <TD COLSPAN="3"> <TEXTAREA ROWS="5" COLS="79" NAME="user signature"> </TD> </TR> <TR bgcolor="#dddddd"> <TD COLSPAN="4" ALIGN="center">Submit changes </TR> <TR> <TD COLSPAN="4" ALIGN="center"> <xsl:choose> <xsl:when test="$ud != ''"> <INPUT TYPE="submit" name="change" value="Change"/> </xsl:when> <xsl:otherwise> <INPUT TYPE="submit" name="add" value="Add"/> </xsl:otherwise> </xsl:choose> <INPUT type="reset" name="reset" value="Reset"/> </TD> </TR> </TABLE> </FORM> </BODY> </HTML> </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.
-->


<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="/GENERICMODEL/STATEDATA/VAR[@name='img base uri']/@value"/>
  <xsl:variable name="base" select="/GENERICMODEL/STATEDATA/VAR[@name='base uri']/@value"/>
  <xsl:variable name="session-id" select="/GENERICMODEL/STATEDATA/VAR[@name='session id']/@value"/>
  <xsl:variable name="ud" select="/GENERICMODEL/STATEDATA/USERDATA"/>

  <xsl:template match="/">

    <HTML>
      <HEAD>
	<xsl:choose>
	  <xsl:when test="$ud != ''">
	    <TITLE>WebMail Administration Interface: User Setup for user 
	  </xsl:when>
	  <xsl:otherwise>
	    <TITLE>WebMail Administration Interface: Creating new user
	  </xsl:otherwise>
	</xsl:choose>
	<META CONTENT="AUTHOR" VALUE="Sebastian Schaffert"/>
      </HEAD>
	
      <BODY BGCOLOR="white">

	<FORM ACTION="{$base}/admin/user/edit?session-id={$session-id}" METHOD="POST">

	  <TABLE WIDTH="100%" CELLSPACING="0" CELLPADDING="0">
	    <TR bgcolor="#dddddd">
	      <xsl:choose>
		<xsl:when test="$ud != ''">
		  <TD COLSPAN="4" ALIGN="center">Editing user , Domain 
... 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.