| career | drupal | java | mac | mysql | perl | scala | uml | unix  
</TR> <xsl:if test='/GENERICMODEL/STATEDATA/VAR[@name="http server status"]/@value != ""'> <TR> <TD>HTTP 伺服器 <TD COLSPAN="2">
</TR> </xsl:if> <xsl:if test='/GENERICMODEL/STATEDATA/VAR[@name="ssl server status"]/@value != ""'> <TR> <TD>SSL 伺服器 <TD COLSPAN="2">
</TR> </xsl:if> <xsl:if test='/GENERICMODEL/STATEDATA/VAR[@name="servlet status"]/@value != ""'> <TR> <TD>Servlet <TD COLSPAN="2">
</TR> </xsl:if> <xsl:if test='/GENERICMODEL/STATEDATA/VAR[@name="storage status"]/@value != ""'> <TR> <TD>Storage <TD COLSPAN="2">
</TR> </xsl:if> <TR bgcolor="#dddddd"> <TD COLSPAN="3" ALIGN="center">執行中的連線 </TR> <xsl:for-each select="/GENERICMODEL/STATEDATA/SESSION"> <xsl:sort select="@type" order="ascending"/> <xsl:choose> <xsl:when test="position() mod 2 = 1"> <TR bgcolor="#f7f3a8"> <xsl:apply-templates select="."/> </TR> </xsl:when> <xsl:otherwise> <TR> <xsl:apply-templates select="."/> </TR> </xsl:otherwise> </xsl:choose> </xsl:for-each> <TR bgcolor="#dddddd"> <TD COLSPAN="3" ALIGN="center">關閉系統/重新啟動 </TR> <TR> <FORM ACTION="{$base}/admin/control?session-id={$session-id}" METHOD="POST"> <TD>關閉系統/重新啟動 <TD>於 秒鐘之後 <TD> </FORM> </TR> </TABLE> </BODY> </HTML> </xsl:template> <xsl:template match="SESSION"> <FORM ACTION="{$base}/admin/control/kill?session-id={$session-id}&kill={SESS_CODE}" METHOD="POST"> <TD> <xsl:choose> <xsl:when test="@type = 'admin'"> <STRONG>管理員的連線 </xsl:when> <xsl:otherwise> <STRONG>使用者的連線 (使用者: ) </xsl:otherwise> </xsl:choose> </TD> <TD> <STRONG>遠端位址: , 閒置時間:
<xsl:if test="count(SESS_CONN) > 0"> <STRONG>active mail connections:
<UL> <xsl:for-each select="SESS_CONN"> <LI> </xsl:for-each> </UL> </xsl:if> </TD> <TD> <INPUT TYPE="submit" NAME="submit" VALUE="踢出系統"/> </TD> </FORM> </xsl:template> </xsl:stylesheet>

What this is

This file is included in the "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
 * 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="" 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:template match="/">

        <TITLE>WebMail 管理介面:系統狀態
	<META CONTENT="AUTHOR" VALUE="Sebastian Schaffert"/>
      <BODY BGCOLOR="white">
	  <TR bgcolor="#dddddd">
	    <TD COLSPAN="3" ALIGN="center">執行中的伺服器執行緒:
... this post is sponsored by my books ...

#1 New Release!

FP Best Seller


new blog posts


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