alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  
</TR> <TR> <TD bgcolor="#E2E6F0" class="testoNero">全名: <TD class="testoNero" bgcolor="#D1D7E7"> <TD class="testoNero" bgcolor="#E2E6F0">密碼: <TD class="testoNero" bgcolor="#D1D7E7"> </TR> <TR> <TD bgcolor="#E2E6F0" class="testoNero">語言: <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">確認: <TD class="testoNero" bgcolor="#D1D7E7"> </TR> <TR> <TD class="testoNero">畫面主題: <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">信箱顯示設定 </TR> <TR> <TD bgcolor="#E2E6F0" class="testoNero">每頁的顯示信件數: <TD class="testoNero" bgcolor="#D1D7E7"> <TD class="testoNero" bgcolor="#E2E6F0">導覽選單的小圖示大小: <TD class="testoNero" bgcolor="#D1D7E7"> </TR> <TR> <TD bgcolor="#E2E6F0" class="testoNero">顯示漂漂的畫面: <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">顯示附件中的圖片: <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">自動清除收信匣: <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">設定信件旗標: <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">斷行(顯示與編輯信件) <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">單行的最大長度: <TD class="testoNero" bgcolor="#D1D7E7"> </TR> <TR> <TD height="22" colspan="4" bgcolor="#A6B1C0" align="center" class="testoGrande">信件編輯設定 </TR> <TR> <TD bgcolor="#E2E6F0" class="testoNero">儲存已送出的信件: <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">於收信匣: <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">電子郵件地址: <TD class="testoNero" bgcolor="#D1D7E7"> <TD class="testoNero" bgcolor="#E2E6F0">  <TD class="testoNero" bgcolor="#D1D7E7">  </TR> <TR> <TD bgcolor="#E2E6F0" class="testoNero">簽名檔內容: <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="重填" class="testoNero"/> </TD> <TD class="testoNero" bgcolor="#D1D7E7" colspan="3" align="center"> <INPUT TYPE="submit" VALUE="儲存設定" 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="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" 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 信箱:標題框
	<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"/>
	      <xsl:value-of select="normalize-space(/USERMODEL/USERDATA/FULL_NAME)"/> 的 WebMail 使用者設定 (求救)
		</TD>
	    </TR>
	    <TR>
		<TD width="100%" colspan="4" bgcolor="#697791" height="22" class="testoBianco">
		登入帳號 <xsl:value-of select="normalize-space(/USERMODEL/USERDATA/LOGIN)"/>
此帳號從 <xsl:apply-templates select="/USERMODEL/STATEDATA/VAR[@name='first login']"/> 開始使用 </TD> </TR> <TR> <TD colspan="4" bgcolor="#A6B1C0" height="22" align="center" class="testoGrande">一般設定
... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

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