alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  
</xsl:when> <xsl:otherwise> <TD COLSPAN="4" ALIGN="center">新增使用者於網域: </xsl:otherwise> </xsl:choose> </TR> <TR> <TD COLSPAN="4" BGCOLOR="lightblue" ALIGN="CENTER">一般設定 </TR> <TR> <TD>帳號: <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> <TD>密碼: <TD> </TR> <TR> <TD>全名: <TD COLSPAN="3"> </TR> <TR> <TD>語言: <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">顯示設定 </TR> <TR> <TD>每頁顯示的信件數: <TD> <TD>導覽選單的小圖示大小: <TD> </TR> <TR> <TD>顯示漂漂的畫面: <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>顯示附件中的圖片: <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>過濾 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>設定信件旗標: <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>斷行(信件顯示與編輯): <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>單行的最大長度: <TD> </TR> <TR> <TD COLSPAN="4" BGCOLOR="lightblue" ALIGN="CENTER">信件編輯設定 </TR> <TR> <TD>電子郵件地址: <TD COLSPAN="3"> </TR> <TR> <TD VALIGN="TOP">簽名檔內容: <TD COLSPAN="3"> <TEXTAREA ROWS="5" COLS="79" NAME="user signature"> </TD> </TR> <TR bgcolor="#dddddd"> <TD COLSPAN="4" ALIGN="center">送出修改 </TR> <TR> <TD COLSPAN="4" ALIGN="center"> <xsl:choose> <xsl:when test="$ud != ''"> <INPUT TYPE="submit" name="change" value="修改"/> </xsl:when> <xsl:otherwise> <INPUT TYPE="submit" name="add" value="新增"/> </xsl:otherwise> </xsl:choose> <INPUT type="reset" name="reset" value="重填"/> </TD> </TR> </TABLE> </FORM> </BODY> </HTML> </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="/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 管理介面:使用者『』的設定
	  </xsl:when>
	  <xsl:otherwise>
	    <TITLE>WebMail 管理介面:新增使用者
	  </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">修改使用者『』,網域:
... 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.