alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  
<TD class="testo"> <TD class="testo">Nachricht mit Anhang <TD class="testo"> <TD class="testo">neue Nachricht <TD class="testo"> <TD class="testo">gelesene Nachricht <TD class="testo"> <TD class="testo">beantwortete Nachricht <TD class="testo"> <TD class="testo">gelöschte Nachricht </TR> </TABLE> </TD> </TR> <xsl:call-template name="navigation"/> </xsl:template> <xsl:template match="MESSAGELIST"> <TR> <TD width="5%" height="22" class="testoNero" align="center" bgcolor="#A6B1C0">&nbsp; <TD width="5%" class="testoGrande" bgcolor="#A6B1C0">Nr <TD width="7%" class="testoGrande" bgcolor="#A6B1C0">Mark. <TD width="28%" class="testoGrande" bgcolor="#A6B1C0">Betreff <TD width="25%" class="testoGrande" bgcolor="#A6B1C0">Absender <TD width="25%" class="testoGrande" bgcolor="#A6B1C0">Datum <TD width="5%" class="testoGrande" bgcolor="#A6B1C0">Größe </TR> <xsl:for-each select="MESSAGE[number(@msgnr) >= number(/USERMODEL/CURRENT[@type='folder']/@first_msg) and number(@msgnr) <= number(/USERMODEL/CURRENT[@type='folder']/@last_msg)]"> <xsl:sort select="@msgnr" data-type="number" order="descending"/> <!-- <xsl:variable name="bgcolor" select="##E2E6F0"/> --> <xsl:choose> <xsl:when test="@msgnr mod 2 = 1"> <TR bgcolor="#E2E6F0"> <xsl:call-template name="headerrow"/> </TR> </xsl:when> <xsl:otherwise> <TR bgcolor="#D1D7E7"> <xsl:call-template name="headerrow"/> </TR> </xsl:otherwise> </xsl:choose> </xsl:for-each> <TR> <TD colspan="4" width="45%" align="center" class="testoNero" bgcolor="#D1D7E7"> <SELECT NAME="MARK" class="testoNero"> <OPTION VALUE="MARK">setze <OPTION VALUE="UNMARK">entferne </SELECT> Markierung <SELECT NAME="MESSAGE FLAG" class="testoNero"> <OPTION VALUE="DELETED">gelöscht <OPTION VALUE="SEEN">gelesen <OPTION VALUE="ANSWERED">beantwortet <OPTION VALUE="RECENT">neu <OPTION VALUE="DRAFT">Entwurf </SELECT> <INPUT TYPE="SUBMIT" NAME="flagmsgs" VALUE="Ausführen!" class="testoNero"/> </TD> <TD colspan="3" width="55%" align="center" class="testoNero" bgcolor="#D1D7E7"> <SELECT NAME="COPYMOVE" class="testoNero"> <OPTION VALUE="COPY">kopiere <OPTION VALUE="MOVE">verschiebe </SELECT> Nachrichten in Ordner <SELECT NAME="TO" class="testoNero"> <xsl:for-each select="/USERMODEL/MAILHOST_MODEL//FOLDER"> <OPTION value="{@id}"> </xsl:for-each> </SELECT> <INPUT TYPE="SUBMIT" NAME="copymovemsgs" VALUE="Ausführen!" class="testoNero"/> </TD> </TR> </xsl:template> <xsl:template name="navigation"> <TR> <TD colspan="7" width="100%" height="22" class="testoNero" align="center"> <TABLE width="100%" border="0" cellspacing="0" cellpadding="0"> <TR> <xsl:choose> <xsl:when test="number(/USERMODEL/CURRENT[@type='folder']/@first_msg) > number(1)"> <TD class="testoBianco" width="3%" bgcolor="#697791" valign="middle" align="center"> <A HREF="{$base}/folder/list?session-id={$session-id}&folder-id={@id}&part={/USERMODEL/CURRENT[@type='folder']/@list_part + 1}"> <IMG SRC="{$imgbase}/images/back.gif" BORDER="0"/> </TD> <TD class="testoBianco" width="47%" bgcolor="#697791" valign="middle"> Vorige Nachrichten </TD> </xsl:when> <xsl:otherwise> <TD class="testoBianco" width="3%" bgcolor="#697791" valign="middle" align="center" height="22">   </TD> <TD class="testoBianco" width="47%" bgcolor="#697791" valign="middle" height="22">   </TD> </xsl:otherwise> </xsl:choose> <xsl:choose> <xsl:when test="number(/USERMODEL/CURRENT[@type='folder']/@list_part) > number(1)"> <TD class="testoBianco" width="47%" bgcolor="#697791" valign="middle" align="right"> <A HREF="{$base}/folder/list?session-id={$session-id}&folder-id={@id}&part={/USERMODEL/CURRENT[@type='folder']/@list_part - 1}"> Nächste Nachrichten </TD> <TD class="testoBianco" width="3%" bgcolor="#697791" valign="middle" align="center"> <A HREF="{$base}/folder/list?session-id={$session-id}&folder-id={@id}&part={/USERMODEL/CURRENT[@type='folder']/@list_part - 1}"> <IMG SRC="{$imgbase}/images/next.gif" BORDER="0"/> </xsl:when> <xsl:otherwise> <TD class="testoBianco" width="47%" bgcolor="#697791" valign="middle" align="right" height="22">   </TD> <TD class="testoBianco" width="3%" bgcolor="#697791" valign="middle" align="center">   </TD> </xsl:otherwise> </xsl:choose> </TR> </TABLE> </TD> </TR> </xsl:template> <xsl:template name="headerrow"> <TD width="5%" align="center" class="testoNero"> <TD width="5%" class="testoNero"> <TD width="7%"> <xsl:if test="@attachment='true'"> <IMG SRC="{$imgbase}/images/attach.gif" BORDER="0" hspace="2"/> </xsl:if> <xsl:if test="@recent='true'"> <IMG SRC="{$imgbase}/images/new.gif" BORDER="0" hspace="2"/> </xsl:if> <xsl:if test="@seen='true'"> <IMG SRC="{$imgbase}/images/seen.gif" BORDER="0" hspace="2"/> </xsl:if> <xsl:if test="@answered='true'"> <IMG SRC="{$imgbase}/images/reply.gif" BORDER="0" hspace="2"/> </xsl:if> <xsl:if test="@deleted='true'"> <IMG SRC="{$imgbase}/images/delete.gif" BORDER="0" hspace="2"/> </xsl:if> </TD> <TD width="28%" class="testoNero"> <xsl:choose> <xsl:when test="@seen='true'"> <A HREF="{$base}/folder/showmsg?session-id={$session-id}&folder-id={/USERMODEL/CURRENT[@type='folder']/@id}&message-nr={@msgnr}" class="seen"> </xsl:when> <xsl:otherwise> <A HREF="{$base}/folder/showmsg?session-id={$session-id}&folder-id={/USERMODEL/CURRENT[@type='folder']/@id}&message-nr={@msgnr}" class="unseen"> <xsl:apply-templates select="HEADER/SUBJECT"/> </A> </xsl:otherwise> </xsl:choose> </TD> <TD width="25%" class="testoNero"> <xsl:apply-templates select="HEADER/FROM"/> </TD> <TD width="25%" class="testoNero"> <xsl:apply-templates select="HEADER/DATE"/> </TD> <TD width="5%" class="testoNero"> <xsl:value-of select="@size"/> </TD> </xsl:template> <xsl:template match="DATE"> <xsl:value-of select="."/> </xsl:template> <xsl:template match="SUBJECT"> <xsl:value-of select="."/> </xsl:template> <xsl:template match="FROM"> <xsl:choose> <xsl:when test="contains(.,'<')"> <xsl:value-of select="substring-before(.,'<')"/>
<SPAN class="bold">EMail: </xsl:when> <xsl:otherwise> <BR/> <SPAN class="bold">EMail: </xsl:otherwise> </xsl:choose> </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" 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:template match="/">

    <HTML>
      <HEAD>
        <TITLE>WebMail Mailbox für : Nachrichtenliste (Ordner )
	<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">
        <TABLE width="100%" border="0" cellspacing="2" cellpadding="2">
	<xsl:variable name="current" select="/USERMODEL/CURRENT[@type='folder']/@id"/>
            <FORM ACTION="{$base}/folder/list?flag=1&session-id={$session-id}&folder-id={$current}&part={/USERMODEL/CURRENT[@type='folder']/@list_part}" METHOD="POST">
	<xsl:apply-templates select="/USERMODEL/MAILHOST_MODEL//FOLDER[@id=$current]"/>
		   </FORM>
		</TABLE>
      </BODY>
    </HTML>
  </xsl:template>


  <xsl:template match="FOLDER">
    <TR>
      <TD width="100%" colspan="7" height="22" class="testoNero">    
      Zeige Nachrichten <xsl:value-of select="/USERMODEL/CURRENT[@type='folder']/@first_msg"/> 
      bis <xsl:value-of select="/USERMODEL/CURRENT[@type='folder']/@last_msg"/> 
      in Ordner <xsl:value-of select="@name"/> (Hilfe).
     </TD>
    </TR>
    <xsl:call-template name="navigation"/>

    <xsl:apply-templates select="MESSAGELIST"/>

    <TR>
      <TD width="100%" colspan="7" align="center" class="testoNero" bgcolor="#A6B1C0">
	<TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
	  <TR>
	    <TD class="testo">Mögliche Markierungen:
... 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.