[tuxdroid-svn] r4605 - in softwares_suite_v3/kysoh/tuxware/server/branches/0.3.0-plugins-gadgets-co
Status: Beta
Brought to you by:
ks156
|
From: remi <c2m...@c2...> - 2009-05-01 08:36:14
|
Author: remi
Date: 2009-05-01 10:36:01 +0200 (Fri, 01 May 2009)
New Revision: 4605
Added:
softwares_suite_v3/kysoh/tuxware/server/branches/0.3.0-plugins-gadgets-confs/data/plugins/tuxdroid-gadget-pySkeleton.tpg
softwares_suite_v3/kysoh/tuxware/server/branches/0.3.0-plugins-gadgets-confs/data/web_interface/
softwares_suite_v3/kysoh/tuxware/server/branches/0.3.0-plugins-gadgets-confs/data/web_interface/01/
softwares_suite_v3/kysoh/tuxware/server/branches/0.3.0-plugins-gadgets-confs/data/web_interface/01/css/
softwares_suite_v3/kysoh/tuxware/server/branches/0.3.0-plugins-gadgets-confs/data/web_interface/01/css/default.css
softwares_suite_v3/kysoh/tuxware/server/branches/0.3.0-plugins-gadgets-confs/data/web_interface/01/gif/
softwares_suite_v3/kysoh/tuxware/server/branches/0.3.0-plugins-gadgets-confs/data/web_interface/01/gif/button_80.gif
softwares_suite_v3/kysoh/tuxware/server/branches/0.3.0-plugins-gadgets-confs/data/web_interface/01/xsl/
softwares_suite_v3/kysoh/tuxware/server/branches/0.3.0-plugins-gadgets-confs/data/web_interface/01/xsl/alert.xsl
softwares_suite_v3/kysoh/tuxware/server/branches/0.3.0-plugins-gadgets-confs/data/web_interface/01/xsl/gadget_preview.xsl
softwares_suite_v3/kysoh/tuxware/server/branches/0.3.0-plugins-gadgets-confs/data/web_interface/01/xsl/parameter.xsl
softwares_suite_v3/kysoh/tuxware/server/branches/0.3.0-plugins-gadgets-confs/data/web_interface/01/xsl/plugin_infos.xsl
softwares_suite_v3/kysoh/tuxware/server/branches/0.3.0-plugins-gadgets-confs/data/web_interface/01/xsl/plugin_to_gadget.xsl
softwares_suite_v3/kysoh/tuxware/server/branches/0.3.0-plugins-gadgets-confs/data/web_interface/common/
softwares_suite_v3/kysoh/tuxware/server/branches/0.3.0-plugins-gadgets-confs/data/web_interface/common/wiky/
softwares_suite_v3/kysoh/tuxware/server/branches/0.3.0-plugins-gadgets-confs/data/web_interface/common/wiky/wiky.js
softwares_suite_v3/kysoh/tuxware/server/branches/0.3.0-plugins-gadgets-confs/resources/01_robot_system/resourcePluginsServer.py
softwares_suite_v3/kysoh/tuxware/server/branches/0.3.0-plugins-gadgets-confs/resources/04_web_interface/
softwares_suite_v3/kysoh/tuxware/server/branches/0.3.0-plugins-gadgets-confs/resources/04_web_interface/resourceWIPlugin.py
Log:
* added plugin resource
* added gui resource
* added xsl css and other resources
* added a basic plugin for the tests
Added: softwares_suite_v3/kysoh/tuxware/server/branches/0.3.0-plugins-gadgets-confs/data/plugins/tuxdroid-gadget-pySkeleton.tpg
===================================================================
(Binary files differ)
Property changes on: softwares_suite_v3/kysoh/tuxware/server/branches/0.3.0-plugins-gadgets-confs/data/plugins/tuxdroid-gadget-pySkeleton.tpg
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Name: svn:keywords
+ Id
Added: softwares_suite_v3/kysoh/tuxware/server/branches/0.3.0-plugins-gadgets-confs/data/web_interface/01/css/default.css
===================================================================
--- softwares_suite_v3/kysoh/tuxware/server/branches/0.3.0-plugins-gadgets-confs/data/web_interface/01/css/default.css (rev 0)
+++ softwares_suite_v3/kysoh/tuxware/server/branches/0.3.0-plugins-gadgets-confs/data/web_interface/01/css/default.css 2009-05-01 08:36:01 UTC (rev 4605)
@@ -0,0 +1,270 @@
+a.button{
+ width:80px;
+ height:25px;
+ float:center;
+ display:table;
+ vertical-align:middle;
+ color:#DDDDDD;
+ font-size:12px;
+ font-weight:bold;
+ text-decoration:none;
+ font-family:Verdana, Bitstream Vera Sans, Arial, Helvetica, sans-serif;
+ text-align:center;
+ line-height:20px;
+ background-image:url(/data/web_interface/01/gif/button_80.gif);
+}
+
+a.button:hover{
+ color:#FFFFFF;
+}
+
+span.param_name{
+ font-weight:bold;
+ font-size:8pt;
+ font-family:Verdana, Bitstream Vera Sans;
+ color:#333333;
+}
+
+input.text{
+ font-family:Verdana, Bitstream Vera Sans;
+ font-size:8pt;
+ font-weight:none;
+ background-color:#DDDDDD;
+ border-color:#888888;
+ border-style:solid;
+ border-width:1px;
+ color:#000000;
+ width:197px;
+}
+
+input.text_2{
+ font-family:Verdana, Bitstream Vera Sans;
+ font-size:8pt;
+ font-weight:none;
+ background-color:#DDDDDD;
+ border-color:#888888;
+ border-style:solid;
+ border-width:1px;
+ color:#000000;
+ width:412px;
+}
+
+input.checkbox{
+}
+
+select.select{
+ font-family:Verdana, Bitstream Vera Sans;
+ font-size:8pt;
+ background-color:#DDDDDD;
+ border-color:#888888;
+ border-style:solid;
+ border-width:1px;
+ width:197px;
+}
+
+
+
+
+
+table.main{
+ font-family:Verdana, Bitstream Vera Sans;
+ position:absolute;
+ left:0px;
+ top:0px;
+ background-color:#888888;
+ border:0;
+ width:450px;
+}
+
+td.plugin_name{
+ font-family:Verdana, Bitstream Vera Sans;
+ font-size:18px;
+ font-weight:bold;
+ text-align:left;
+ background-color:#DDDDDD;
+ color:#333333;
+}
+
+table.description{
+ border:0;
+ width:450px;
+ height:60px;
+}
+
+img.plugin_icon{
+ position:absolute;
+ text-align:left;
+ margin:0 auto;
+ padding: 0;
+}
+
+div.description{
+ margin-left:90px;
+ margin-right:50px;
+}
+
+span.description{
+ font-weight:bold;
+ font-size:9pt;
+ font-family:Verdana, Bitstream Vera Sans;
+ color:#DDDDDD;
+}
+
+span.author{
+ font-size:6pt;
+ font-family:Verdana, Bitstream Vera Sans;
+ color:#000000;
+}
+
+td.section_title{
+ font-family:Verdana, Bitstream Vera Sans;
+ font-size:8pt;
+ font-weight:bold;
+ text-align:left;
+ vertical-align:middle;
+ color:#333333;
+ border-bottom:1px solid #333333;
+}
+
+td.param_indent{
+ width:30px;
+}
+
+td.param_name{
+ font-weight:bold;
+ font-size:8pt;
+ font-family:Verdana, Bitstream Vera Sans;
+ color:#333333;
+ text-align:right;
+ width:205px;
+ height:20px;
+ background-color:#DDDDDD;
+}
+
+td.param_value{
+ background-color:#DDDDDD;
+ font-size:8pt;
+ font-family:Verdana, Bitstream Vera Sans;
+ color:#333333;
+}
+
+td.param_value_centered{
+ background-color:#DDDDDD;
+ text-align:center;
+ font-size:8pt;
+ font-family:Verdana, Bitstream Vera Sans;
+ color:#333333;
+}
+
+td.ca_name{
+ font-weight:bold;
+ font-size:8pt;
+ text-decoration:underline;
+ font-family:Verdana, Bitstream Vera Sans;
+ color:#DDDDDD;
+ text-align:left;
+}
+
+td.ca_description{
+ font-weight:bold;
+ font-style:italic;
+ font-size:8pt;
+ font-family:Verdana, Bitstream Vera Sans;
+ color:#333333;
+ text-align:left;
+}
+
+div.help_box{
+ height:200px;
+ width:405px;
+ border-color:#333333;
+ border-style:solid;
+ border-width:1px;
+ background-color:#DDDDDD;
+ overflow: auto;
+ font-size:8pt;
+ font-family:Verdana, Bitstream Vera Sans;
+ color: #333333;
+ margin-left: 2%;
+ margin-right: 2%;
+}
+
+h1 {
+ font-weight:bold;
+ font-size:11pt;
+ color: black;
+ margin-left: 2%;
+ margin-right: 2%;
+ margin-bottom:0em;
+}
+
+h2 {
+ font-weight:bold;
+ font-size:9pt;
+ color: black;
+ margin-left: 2%;
+ margin-right: 2%;
+ margin-bottom:0em;
+}
+
+h3 {
+ font-weight:bold;
+ font-size:9pt;
+ margin-left: 2%;
+ margin-right: 2%;
+ border-collapse: collapse;
+}
+
+h4 {
+ font-weight:bold;
+ font-style:italic;
+ font-size:9pt;
+ margin-left: 2%;
+ margin-right: 2%;
+ border-collapse: collapse;
+}
+
+p {
+ margin-top:0em;
+ font-weight:none;
+ font-size:8pt;
+ margin-left:2%;
+ margin-right:2%;
+}
+
+dl {
+ margin-left:2%;
+ margin-right:2%;
+}
+
+li {
+ margin-top:0em;
+ font-weight:none;
+ font-size:8pt;
+}
+
+hr {
+ margin-left:2%;
+ text-align:right;
+ margin-top:0em;
+}
+
+select.select_time{
+ font-family:Verdana, Bitstream Vera Sans;
+ font-size:8pt;
+ background-color:#DDDDDD;
+ border-color:#888888;
+ border-style:solid;
+ border-width:1px;
+ width:40px;
+}
+
+select.select_year{
+ font-family:Verdana, Bitstream Vera Sans;
+ font-size:8pt;
+ background-color:#DDDDDD;
+ border-color:#888888;
+ border-style:solid;
+ border-width:1px;
+ width:55px;
+}
Property changes on: softwares_suite_v3/kysoh/tuxware/server/branches/0.3.0-plugins-gadgets-confs/data/web_interface/01/css/default.css
___________________________________________________________________
Name: svn:keywords
+ Id
Added: softwares_suite_v3/kysoh/tuxware/server/branches/0.3.0-plugins-gadgets-confs/data/web_interface/01/gif/button_80.gif
===================================================================
(Binary files differ)
Property changes on: softwares_suite_v3/kysoh/tuxware/server/branches/0.3.0-plugins-gadgets-confs/data/web_interface/01/gif/button_80.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Name: svn:keywords
+ Id
Added: softwares_suite_v3/kysoh/tuxware/server/branches/0.3.0-plugins-gadgets-confs/data/web_interface/01/xsl/alert.xsl
===================================================================
--- softwares_suite_v3/kysoh/tuxware/server/branches/0.3.0-plugins-gadgets-confs/data/web_interface/01/xsl/alert.xsl (rev 0)
+++ softwares_suite_v3/kysoh/tuxware/server/branches/0.3.0-plugins-gadgets-confs/data/web_interface/01/xsl/alert.xsl 2009-05-01 08:36:01 UTC (rev 4605)
@@ -0,0 +1,299 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet version="1.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:fo="http://www.w3.org/1999/XSL/Format">
+
+ <!-- OPTIONS LOOP -->
+ <xsl:template name="options_loop">
+ <xsl:param name="value"/>
+ <xsl:param name="counter"/>
+ <xsl:param name="max"/>
+ <xsl:element name="option">
+ <xsl:attribute name="value">
+ <xsl:value-of select="$counter"/>
+ </xsl:attribute>
+ <xsl:if test="$counter = $value">
+ <xsl:attribute name="selected">true</xsl:attribute>
+ </xsl:if>
+ <xsl:value-of select="$counter"/>
+ </xsl:element>
+ <xsl:if test="$counter < $max">
+ <xsl:call-template name="options_loop">
+ <xsl:with-param name="value" select="$value"/>
+ <xsl:with-param name="counter" select="$counter + 1"/>
+ <xsl:with-param name="max" select="$max"/>
+ </xsl:call-template>
+ </xsl:if>
+ </xsl:template>
+
+<!-- TIME RULES -->
+
+ <!-- HOUR SELECTER -->
+ <xsl:template name="hour_selecter">
+ <xsl:param name="time"/>
+ <xsl:param name="mask"/>
+ <xsl:if test="$mask/hour = 'True'">
+ <xsl:element name="select">
+ <xsl:attribute name="class">select_time</xsl:attribute>
+ <xsl:attribute name="id">req_task_<xsl:value-of select="name"/>_<xsl:value-of select="name($time)"/>_hour</xsl:attribute>
+ <xsl:call-template name="options_loop">
+ <xsl:with-param name="value" select="$time/hour"/>
+ <xsl:with-param name="counter" select="0"/>
+ <xsl:with-param name="max" select="23"/>
+ </xsl:call-template>
+ </xsl:element> H
+ </xsl:if>
+ </xsl:template>
+
+ <!-- MINUTE SELECTER -->
+ <xsl:template name="minute_selecter">
+ <xsl:param name="time"/>
+ <xsl:param name="mask"/>
+ <xsl:if test="$mask/minute = 'True'">
+ <xsl:element name="select">
+ <xsl:attribute name="class">select_time</xsl:attribute>
+ <xsl:attribute name="id">req_task_<xsl:value-of select="name"/>_<xsl:value-of select="name($time)"/>_minute</xsl:attribute>
+ <xsl:call-template name="options_loop">
+ <xsl:with-param name="value" select="$time/minute"/>
+ <xsl:with-param name="counter" select="0"/>
+ <xsl:with-param name="max" select="59"/>
+ </xsl:call-template>
+ </xsl:element> M
+ </xsl:if>
+ </xsl:template>
+
+ <!-- SECOND SELECTER -->
+ <xsl:template name="second_selecter">
+ <xsl:param name="time"/>
+ <xsl:param name="mask"/>
+ <xsl:if test="$mask/second = 'True'">
+ <xsl:element name="select">
+ <xsl:attribute name="class">select_time</xsl:attribute>
+ <xsl:attribute name="id">req_task_<xsl:value-of select="name"/>_<xsl:value-of select="name($time)"/>_second</xsl:attribute>
+ <xsl:call-template name="options_loop">
+ <xsl:with-param name="value" select="$time/second"/>
+ <xsl:with-param name="counter" select="0"/>
+ <xsl:with-param name="max" select="59"/>
+ </xsl:call-template>
+ </xsl:element> S
+ </xsl:if>
+ </xsl:template>
+
+ <!-- TIME SELECTER -->
+ <xsl:template name="time_selecter">
+ <xsl:param name="time"/>
+ <xsl:param name="mask"/>
+ <xsl:call-template name="hour_selecter">
+ <xsl:with-param name="time" select='$time' />
+ <xsl:with-param name="mask" select='$mask' />
+ </xsl:call-template>
+ <xsl:call-template name="minute_selecter">
+ <xsl:with-param name="time" select='$time' />
+ <xsl:with-param name="mask" select='$mask' />
+ </xsl:call-template>
+ <xsl:call-template name="second_selecter">
+ <xsl:with-param name="time" select='$time' />
+ <xsl:with-param name="mask" select='$mask' />
+ </xsl:call-template>
+ </xsl:template>
+
+<!-- DATE RULES -->
+
+ <!-- YEAR SELECTER -->
+ <xsl:template name="year_selecter">
+ <xsl:param name="date"/>
+ <xsl:element name="select">
+ <xsl:attribute name="class">select_year</xsl:attribute>
+ <xsl:attribute name="id">req_task_<xsl:value-of select="name"/>_date_year</xsl:attribute>
+ <xsl:call-template name="options_loop">
+ <xsl:with-param name="value" select="date/year"/>
+ <xsl:with-param name="counter" select="2009"/>
+ <xsl:with-param name="max" select="2050"/>
+ </xsl:call-template>
+ </xsl:element> /
+ </xsl:template>
+
+ <!-- MONTH SELECTER -->
+ <xsl:template name="month_selecter">
+ <xsl:param name="date"/>
+ <xsl:element name="select">
+ <xsl:attribute name="class">select_time</xsl:attribute>
+ <xsl:attribute name="id">req_task_<xsl:value-of select="name"/>_date_month</xsl:attribute>
+ <xsl:call-template name="options_loop">
+ <xsl:with-param name="value" select="date/month"/>
+ <xsl:with-param name="counter" select="1"/>
+ <xsl:with-param name="max" select="12"/>
+ </xsl:call-template>
+ </xsl:element> /
+ </xsl:template>
+
+ <!-- DAY SELECTER -->
+ <xsl:template name="day_selecter">
+ <xsl:param name="date"/>
+ <xsl:element name="select">
+ <xsl:attribute name="class">select_time</xsl:attribute>
+ <xsl:attribute name="id">req_task_<xsl:value-of select="name"/>_date_day</xsl:attribute>
+ <xsl:call-template name="options_loop">
+ <xsl:with-param name="value" select="date/day"/>
+ <xsl:with-param name="counter" select="1"/>
+ <xsl:with-param name="max" select="31"/>
+ </xsl:call-template>
+ </xsl:element>
+ </xsl:template>
+
+ <!-- DATE SELECTER -->
+ <xsl:template name="date_selecter">
+ <xsl:param name="date"/>
+ <xsl:call-template name="year_selecter">
+ <xsl:with-param name="date" select='$date' />
+ </xsl:call-template>
+ <xsl:call-template name="month_selecter">
+ <xsl:with-param name="date" select='$date' />
+ </xsl:call-template>
+ <xsl:call-template name="day_selecter">
+ <xsl:with-param name="date" select='$date' />
+ </xsl:call-template>
+ </xsl:template>
+
+<!-- WEEK RULES -->
+ <xsl:template name="week_mask">
+ <xsl:param name="week_mask"/>
+ <xsl:param name="type"/>
+ <!-- Week mask type is 'flat' show radio buttons -->
+ <xsl:if test="$type = 'flat'">
+ <!-- Monday -->
+ <xsl:element name="input">
+ <xsl:attribute name="class">checkbox</xsl:attribute>
+ <xsl:attribute name="type">checkbox</xsl:attribute>
+ <xsl:attribute name="id">req_task_<xsl:value-of select="name"/>_week_mask_day_0</xsl:attribute>
+ <xsl:if test="$week_mask/day_0 = 'True'">
+ <xsl:attribute name="checked">true</xsl:attribute>
+ </xsl:if>
+ </xsl:element> Monday
+ <xsl:element name="br"></xsl:element>
+ <!-- Tuesday -->
+ <xsl:element name="input">
+ <xsl:attribute name="class">checkbox</xsl:attribute>
+ <xsl:attribute name="type">checkbox</xsl:attribute>
+ <xsl:attribute name="id">req_task_<xsl:value-of select="name"/>_week_mask_day_1</xsl:attribute>
+ <xsl:if test="$week_mask/day_1 = 'True'">
+ <xsl:attribute name="checked">true</xsl:attribute>
+ </xsl:if>
+ </xsl:element> Tuesday
+ <xsl:element name="br"></xsl:element>
+ <!-- Wednesday -->
+ <xsl:element name="input">
+ <xsl:attribute name="class">checkbox</xsl:attribute>
+ <xsl:attribute name="type">checkbox</xsl:attribute>
+ <xsl:attribute name="id">req_task_<xsl:value-of select="name"/>_week_mask_day_2</xsl:attribute>
+ <xsl:if test="$week_mask/day_2 = 'True'">
+ <xsl:attribute name="checked">true</xsl:attribute>
+ </xsl:if>
+ </xsl:element> Wednesday
+ <xsl:element name="br"></xsl:element>
+ <!-- Thursday -->
+ <xsl:element name="input">
+ <xsl:attribute name="class">checkbox</xsl:attribute>
+ <xsl:attribute name="type">checkbox</xsl:attribute>
+ <xsl:attribute name="id">req_task_<xsl:value-of select="name"/>_week_mask_day_3</xsl:attribute>
+ <xsl:if test="$week_mask/day_3 = 'True'">
+ <xsl:attribute name="checked">true</xsl:attribute>
+ </xsl:if>
+ </xsl:element> Thursday
+ <xsl:element name="br"></xsl:element>
+ <!-- Friday -->
+ <xsl:element name="input">
+ <xsl:attribute name="class">checkbox</xsl:attribute>
+ <xsl:attribute name="type">checkbox</xsl:attribute>
+ <xsl:attribute name="id">req_task_<xsl:value-of select="name"/>_week_mask_day_4</xsl:attribute>
+ <xsl:if test="$week_mask/day_4 = 'True'">
+ <xsl:attribute name="checked">true</xsl:attribute>
+ </xsl:if>
+ </xsl:element> Friday
+ <xsl:element name="br"></xsl:element>
+ <!-- Saturday -->
+ <xsl:element name="input">
+ <xsl:attribute name="class">checkbox</xsl:attribute>
+ <xsl:attribute name="type">checkbox</xsl:attribute>
+ <xsl:attribute name="id">req_task_<xsl:value-of select="name"/>_week_mask_day_5</xsl:attribute>
+ <xsl:if test="$week_mask/day_5 = 'True'">
+ <xsl:attribute name="checked">true</xsl:attribute>
+ </xsl:if>
+ </xsl:element> Saturday
+ <xsl:element name="br"></xsl:element>
+ <!-- Sunday -->
+ <xsl:element name="input">
+ <xsl:attribute name="class">checkbox</xsl:attribute>
+ <xsl:attribute name="type">checkbox</xsl:attribute>
+ <xsl:attribute name="id">req_task_<xsl:value-of select="name"/>_week_mask_day_6</xsl:attribute>
+ <xsl:if test="$week_mask/day_6 = 'True'">
+ <xsl:attribute name="checked">true</xsl:attribute>
+ </xsl:if>
+ </xsl:element> Sunday
+ </xsl:if>
+ <!-- Week mask type is 'weekpart' show checkbox -->
+ <xsl:if test="$type = 'weekpart'">
+ <xsl:element name="input">
+ <xsl:attribute name="type">radio</xsl:attribute>
+ <xsl:attribute name="class">checkbox</xsl:attribute>
+ <xsl:attribute name="id">req_task_<xsl:value-of select="name"/>_week_mask_weekpart</xsl:attribute>
+ <xsl:attribute name="name">week</xsl:attribute>
+ <xsl:attribute name="value">0</xsl:attribute>
+ <xsl:attribute name="checked">true</xsl:attribute>
+ </xsl:element> All days
+ <xsl:element name="br"></xsl:element>
+ <xsl:element name="input">
+ <xsl:attribute name="type">radio</xsl:attribute>
+ <xsl:attribute name="class">checkbox</xsl:attribute>
+ <xsl:attribute name="id">req_task_<xsl:value-of select="name"/>_week_mask_weekpart</xsl:attribute>
+ <xsl:attribute name="name">week</xsl:attribute>
+ <xsl:attribute name="value">1</xsl:attribute>
+ </xsl:element> Only weeks
+ <xsl:element name="br"></xsl:element>
+ <xsl:element name="input">
+ <xsl:attribute name="type">radio</xsl:attribute>
+ <xsl:attribute name="class">checkbox</xsl:attribute>
+ <xsl:attribute name="id">req_task_<xsl:value-of select="name"/>_week_mask_weekpart</xsl:attribute>
+ <xsl:attribute name="name">week</xsl:attribute>
+ <xsl:attribute name="value">2</xsl:attribute>
+ </xsl:element> Only week-end
+ </xsl:if>
+ <!-- Week mask type is 'exclusive' show selecter -->
+ <xsl:if test="$type = 'exclusive'">
+ <xsl:element name="select">
+ <xsl:attribute name="class">select</xsl:attribute>
+ <xsl:attribute name="id">req_task_<xsl:value-of select="name"/>_week_mask_exclusive</xsl:attribute>
+ <xsl:element name="option">
+ <xsl:attribute name="value">0</xsl:attribute>
+ <xsl:attribute name="selected">true</xsl:attribute>
+ Monday
+ </xsl:element>
+ <xsl:element name="option">
+ <xsl:attribute name="value">1</xsl:attribute>
+ Tuesday
+ </xsl:element>
+ <xsl:element name="option">
+ <xsl:attribute name="value">2</xsl:attribute>
+ Wednesday
+ </xsl:element>
+ <xsl:element name="option">
+ <xsl:attribute name="value">3</xsl:attribute>
+ Thursday
+ </xsl:element>
+ <xsl:element name="option">
+ <xsl:attribute name="value">4</xsl:attribute>
+ Friday
+ </xsl:element>
+ <xsl:element name="option">
+ <xsl:attribute name="value">5</xsl:attribute>
+ Satuday
+ </xsl:element>
+ <xsl:element name="option">
+ <xsl:attribute name="value">6</xsl:attribute>
+ Sunday
+ </xsl:element>
+ </xsl:element>
+ </xsl:if>
+ </xsl:template>
+
+</xsl:stylesheet>
\ No newline at end of file
Property changes on: softwares_suite_v3/kysoh/tuxware/server/branches/0.3.0-plugins-gadgets-confs/data/web_interface/01/xsl/alert.xsl
___________________________________________________________________
Name: svn:keywords
+ Id
Added: softwares_suite_v3/kysoh/tuxware/server/branches/0.3.0-plugins-gadgets-confs/data/web_interface/01/xsl/gadget_preview.xsl
===================================================================
--- softwares_suite_v3/kysoh/tuxware/server/branches/0.3.0-plugins-gadgets-confs/data/web_interface/01/xsl/gadget_preview.xsl (rev 0)
+++ softwares_suite_v3/kysoh/tuxware/server/branches/0.3.0-plugins-gadgets-confs/data/web_interface/01/xsl/gadget_preview.xsl 2009-05-01 08:36:01 UTC (rev 4605)
@@ -0,0 +1,321 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet version="1.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:fo="http://www.w3.org/1999/XSL/Format">
+
+<xsl:include href="alert.xsl"/>
+<xsl:include href="parameter.xsl"/>
+
+<xsl:template match="/">
+<html>
+ <head>
+ <LINK href="/data/web_interface/01/css/default.css" rel="stylesheet" type="text/css"/>
+ <script src="/data/web_interface/common/wiky/wiky.js" type="text/javascript"/>
+ <script language="javascript">
+ <![CDATA[
+ function fillHelpBox()
+ {
+ document.getElementById("help_box").innerHTML = Wiky.toHtml(document.getElementById("req_help_content").value);
+ }
+
+ function setpng(img)
+ {
+ if (document.all && (IEver=parseFloat(navigator.appVersion.split("MSIE")[1])) && (IEver>=5.5) && (IEver<7) && document.body.filters && img)
+ {
+ var imgName = img.src.toUpperCase();
+ if (imgName.substring(imgName.length-3,imgName.length) == "PNG")
+ {
+ img.outerHTML= "<span "+(img.id?"id='"+img.id+"' ":"")+(img.className?"class='"+img.className+"' ":"")+(img.title?"title=\""+img.title+"\" ":"")
+ +"style=\"width:"+img.width+"px;height:"+img.height+"px;"+(img.align=="left"?"float:left;":(img.align=="right"?"float:right;":""))
+ +(img.parentElement.href?"cursor:hand;":"")+"display:inline-block;"+img.style.cssText+";"
+ +"filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+img.src+"',sizingMethod='scale');\"></span>";
+ }
+ }
+ }
+ ]]>
+ </script>
+ </head>
+
+<!-- Names list for request parameters
+== DESCRIPTION ==
+* req_gadget_name
+* req_gagdet_tts_name
+* req_gadget_description
+* req_gadget_author
+* req_gadget_version
+* req_icon_file
+* req_tags_list
+== PARAMETERS (loop on parameters list) ==
+* req_param_%s_visible <parameter name>
+* req_param_%s_value <parameter name>
+== TASKS (loop on tasks list) ==
+* req_task_%s_visible <task name>
+* req_task_%s_date <task name>
+* req_task_%s_hours_begin <task name>
+* req_task_%s_hours_end <task name>
+* req_task_%s_delay <task name>
+== ON DEMAND ==
+* req_task_on_demand_visible
+== HELP ==
+* req_help_content
+-->
+
+ <body onload="javascript:fillHelpBox();">
+ <xsl:for-each select="root/data">
+ <!-- PLUGIN UUID STORAGE -->
+ <xsl:element name="input">
+ <xsl:attribute name="type">hidden</xsl:attribute>
+ <xsl:attribute name="id">uuid</xsl:attribute>
+ <xsl:attribute name="value">
+ <xsl:value-of select="description/uuid"/>
+ </xsl:attribute>
+ </xsl:element>
+
+ <!-- SKIN STORAGE -->
+ <xsl:element name="input">
+ <xsl:attribute name="type">hidden</xsl:attribute>
+ <xsl:attribute name="id">skin</xsl:attribute>
+ <xsl:attribute name="value">
+ <xsl:value-of select="../skin"/>
+ </xsl:attribute>
+ </xsl:element>
+
+ <!-- LANGUAGE STORAGE -->
+ <xsl:element name="input">
+ <xsl:attribute name="type">hidden</xsl:attribute>
+ <xsl:attribute name="id">language</xsl:attribute>
+ <xsl:attribute name="value">
+ <xsl:value-of select="../language"/>
+ </xsl:attribute>
+ </xsl:element>
+
+ <!-- FAKE IMAGE FOR PLUGIN COMMANDS -->
+ <xsl:element name="img">
+ <xsl:attribute name="id">fake_image</xsl:attribute>
+ <xsl:attribute name="src"></xsl:attribute>
+ <xsl:attribute name="width">0</xsl:attribute>
+ <xsl:attribute name="height">0</xsl:attribute>
+ </xsl:element>
+
+ <!-- MAIN TABLE -->
+ <table class="main" >
+
+ <!-- PLUGIN NAME -->
+ <tr height="3"></tr>
+ <tr height="18">
+ <td class="plugin_name" colspan="2">
+ <xsl:value-of select="description/translated_name"/>
+ </td>
+ </tr>
+
+ <!-- DESCRIPTION -->
+ <tr>
+ <td align="center" colspan="2">
+ <table class="description">
+ <tr>
+ <xsl:element name="img">
+ <xsl:attribute name="style">
+ position:absolute;text-align: left;margin: 0 auto; padding: 0;
+ </xsl:attribute>
+ <xsl:attribute name="src">
+ <xsl:value-of select="description/icon_file"/>
+ </xsl:attribute>
+ <xsl:attribute name="onload">javascript:setpng(this);</xsl:attribute>
+ </xsl:element>
+ <td align="center" valign="center">
+ <div class="description">
+ <span class="description">
+ <xsl:value-of select="description/description"/>
+ </span>
+ <xsl:element name="br"></xsl:element>
+ <span class="author">- by <xsl:value-of select="description/author"/> -</span>
+ </div>
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+
+ <!-- PARAMETERS -->
+ <tr height="18">
+ <td class="section_title" colspan="2">
+ Parameters :
+ </td>
+ </tr>
+ <!-- PARAMETERS TABLE -->
+ <tr>
+ <td align="center" colspan="2">
+ <table border="0" width="450">
+ <!-- For all parameters -->
+ <xsl:for-each select="parameters/*">
+ <xsl:if test="visible = 'True'">
+ <tr>
+ <td class="param_indent">
+ </td>
+ <td class="param_name">
+ <xsl:value-of select="description"/>:
+ </td>
+ <td class="param_value">
+ <xsl:call-template name="show_parameter"/>
+ </td>
+ </tr>
+ </xsl:if>
+ </xsl:for-each>
+ </table>
+ </td>
+ </tr>
+
+ <!-- LIVE WITH TUX DROID -->
+ <tr height="18">
+ <td class="section_title" colspan="2">
+ Live with Tux Droid :
+ </td>
+ </tr>
+ <!-- LIVE WITH TUX DROID TABLE -->
+ <tr>
+ <td align="center" colspan="2">
+ <table border="0" width="450">
+ <!-- For all tasks -->
+ <xsl:for-each select="tasks/*">
+ <tr>
+ <td class="param_indent">
+ <xsl:element name="input">
+ <xsl:attribute name="class">checkbox</xsl:attribute>
+ <xsl:attribute name="type">checkbox</xsl:attribute>
+ </xsl:element>
+ </td>
+ <td class="ca_name" colspan="2">
+ <xsl:value-of select="translated_name"/>
+ </td>
+ </tr>
+ <tr>
+ <td class="param_indent"></td>
+ <td class="ca_description" colspan="2">
+ <xsl:value-of select="description"/>
+ </td>
+ </tr>
+ <xsl:if test="date_visible = 'True'">
+ <tr>
+ <td class="param_indent"></td>
+ <td class="param_name">
+ Date:
+ </td>
+ <td class="param_value">
+ <xsl:call-template name="date_selecter">
+ <xsl:with-param name="date" select='date' />
+ </xsl:call-template>
+ </td>
+ </tr>
+ </xsl:if>
+ <xsl:if test="hours_begin_visible = 'True'">
+ <tr>
+ <td class="param_indent"></td>
+ <td class="param_name">
+ Starting at:
+ </td>
+ <td class="param_value">
+ <xsl:call-template name="time_selecter">
+ <xsl:with-param name="time" select='hours_begin' />
+ <xsl:with-param name="mask" select='hours_begin_mask' />
+ </xsl:call-template>
+ </td>
+ </tr>
+ </xsl:if>
+ <xsl:if test="hours_end_visible = 'True'">
+ <tr>
+ <td class="param_indent"></td>
+ <td class="param_name">
+ Stopping at:
+ </td>
+ <td class="param_value">
+ <xsl:call-template name="time_selecter">
+ <xsl:with-param name="time" select='hours_end' />
+ <xsl:with-param name="mask" select='hours_end_mask' />
+ </xsl:call-template>
+ </td>
+ </tr>
+ </xsl:if>
+ <xsl:if test="delay_visible = 'True'">
+ <tr>
+ <td class="param_indent"></td>
+ <td class="param_name">
+ Delay:
+ </td>
+ <td class="param_value">
+ <xsl:call-template name="time_selecter">
+ <xsl:with-param name="time" select='delay' />
+ <xsl:with-param name="mask" select='delay_mask' />
+ </xsl:call-template>
+ </td>
+ </tr>
+ </xsl:if>
+ <xsl:if test="week_mask_visible = 'True'">
+ <tr>
+ <td class="param_indent"></td>
+ <td class="param_name">
+ My week:
+ </td>
+ <td class="param_value">
+ <xsl:call-template name="week_mask">
+ <xsl:with-param name="week_mask" select='week_mask' />
+ <xsl:with-param name="type" select='week_mask_type' />
+ </xsl:call-template>
+ </td>
+ </tr>
+ </xsl:if>
+ </xsl:for-each>
+ <!-- On demand -->
+ <xsl:if test="default_run_command = 'run'">
+ <tr>
+ <td class="param_indent">
+ <xsl:element name="input">
+ <xsl:attribute name="class">checkbox</xsl:attribute>
+ <xsl:attribute name="type">checkbox</xsl:attribute>
+ </xsl:element>
+ </td>
+ <td class="ca_name" colspan="2">
+ On demande
+ </td>
+ </tr>
+ <tr>
+ <td class="param_indent"></td>
+ <td class="ca_description" colspan="2">
+ This gadget will be accessible with the remote control.
+ </td>
+ </tr>
+ </xsl:if>
+ </table>
+ </td>
+ </tr>
+
+ <!-- HELP -->
+ <tr height="18">
+ <td class="section_title" colspan="2">
+ Help :
+ </td>
+ </tr>
+
+ <!-- HELP TABLE -->
+ <tr>
+ <td align="center" colspan="2">
+ <table border="0" width="450">
+ <tr>
+ <td class="param_indent"></td>
+ <td>
+ <div id="help_box" class="help_box">
+ <textarea id="req_help_content" style="visibility:hidden;">
+ <xsl:value-of select="description/help_file"/>
+ </textarea>
+ </div>
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ <tr height="10"></tr>
+ </table>
+ </xsl:for-each>
+ </body>
+</html>
+</xsl:template>
+</xsl:stylesheet>
Property changes on: softwares_suite_v3/kysoh/tuxware/server/branches/0.3.0-plugins-gadgets-confs/data/web_interface/01/xsl/gadget_preview.xsl
___________________________________________________________________
Name: svn:keywords
+ Id
Added: softwares_suite_v3/kysoh/tuxware/server/branches/0.3.0-plugins-gadgets-confs/data/web_interface/01/xsl/parameter.xsl
===================================================================
--- softwares_suite_v3/kysoh/tuxware/server/branches/0.3.0-plugins-gadgets-confs/data/web_interface/01/xsl/parameter.xsl (rev 0)
+++ softwares_suite_v3/kysoh/tuxware/server/branches/0.3.0-plugins-gadgets-confs/data/web_interface/01/xsl/parameter.xsl 2009-05-01 08:36:01 UTC (rev 4605)
@@ -0,0 +1,157 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet version="1.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:fo="http://www.w3.org/1999/XSL/Format">
+
+ <!-- SHOW PARAMETER -->
+ <xsl:template name="show_parameter">
+ <!-- Parameter is "string" then show it as "text" -->
+ <xsl:if test="type = 'string'">
+ <xsl:element name="input">
+ <xsl:attribute name="class">text</xsl:attribute>
+ <xsl:attribute name="type">text</xsl:attribute>
+ <xsl:attribute name="id">req_param_<xsl:value-of select="name"/>_value</xsl:attribute>
+ <xsl:attribute name="name">
+ <xsl:value-of select="name"/>
+ </xsl:attribute>
+ <xsl:attribute name="value">
+ <xsl:value-of select="default_value"/>
+ </xsl:attribute>
+ <xsl:attribute name="size">20</xsl:attribute>
+ </xsl:element>
+ </xsl:if>
+ <!-- Parameter is "file" then show it as "text" -->
+ <xsl:if test="type = 'file'">
+ <xsl:element name="input">
+ <xsl:attribute name="class">text</xsl:attribute>
+ <xsl:attribute name="type">text</xsl:attribute>
+ <xsl:attribute name="id">req_param_<xsl:value-of select="name"/>_value</xsl:attribute>
+ <xsl:attribute name="name">
+ <xsl:value-of select="name"/>
+ </xsl:attribute>
+ <xsl:attribute name="value">
+ <xsl:value-of select="default_value"/>
+ </xsl:attribute>
+ <xsl:attribute name="size">20</xsl:attribute>
+ </xsl:element>
+ </xsl:if>
+ <!-- Parameter is "directory" then show it as "text" -->
+ <xsl:if test="type = 'directory'">
+ <xsl:element name="input">
+ <xsl:attribute name="class">text</xsl:attribute>
+ <xsl:attribute name="type">text</xsl:attribute>
+ <xsl:attribute name="id">req_param_<xsl:value-of select="name"/>_value</xsl:attribute>
+ <xsl:attribute name="name">
+ <xsl:value-of select="name"/>
+ </xsl:attribute>
+ <xsl:attribute name="value">
+ <xsl:value-of select="default_value"/>
+ </xsl:attribute>
+ <xsl:attribute name="size">20</xsl:attribute>
+ </xsl:element>
+ </xsl:if>
+ <!-- Parameter is "increment" then show it as "text" -->
+ <xsl:if test="type = 'increment'">
+ <xsl:element name="input">
+ <xsl:attribute name="class">text</xsl:attribute>
+ <xsl:attribute name="type">text</xsl:attribute>
+ <xsl:attribute name="id">req_param_<xsl:value-of select="name"/>_value</xsl:attribute>
+ <xsl:attribute name="name">
+ <xsl:value-of select="name"/>
+ </xsl:attribute>
+ <xsl:attribute name="value">
+ <xsl:value-of select="default_value"/>
+ </xsl:attribute>
+ <xsl:attribute name="size">20</xsl:attribute>
+ </xsl:element>
+ </xsl:if>
+ <!-- Parameter is "booleans" then show it as "radio buttons" -->
+ <xsl:if test="type = 'booleans'">
+ <xsl:for-each select="enum_values/*">
+ <xsl:element name="input">
+ <xsl:attribute name="type">radio</xsl:attribute>
+ <xsl:attribute name="class">checkbox</xsl:attribute>
+ <xsl:attribute name="id">req_param_<xsl:value-of select="name"/>_value</xsl:attribute>
+ <xsl:attribute name="name">
+ <xsl:value-of select="../../name"/>
+ </xsl:attribute>
+ <xsl:attribute name="value">
+ <xsl:value-of select="."/>
+ </xsl:attribute>
+ <xsl:if test=". = ../../default_value">
+ <xsl:attribute name="checked">true</xsl:attribute>
+ </xsl:if>
+ </xsl:element>
+ <xsl:value-of select="."/><xsl:element name="br"/>
+ </xsl:for-each>
+ </xsl:if>
+ <!-- Parameter is "integer" then show it as "input" -->
+ <xsl:if test="type = 'integer'">
+ <xsl:element name="input">
+ <xsl:attribute name="class">text</xsl:attribute>
+ <xsl:attribute name="type">text</xsl:attribute>
+ <xsl:attribute name="id">req_param_<xsl:value-of select="name"/>_value</xsl:attribute>
+ <xsl:attribute name="name">
+ <xsl:value-of select="name"/>
+ </xsl:attribute>
+ <xsl:attribute name="value">
+ <xsl:value-of select="default_value"/>
+ </xsl:attribute>
+ <xsl:attribute name="size">20</xsl:attribute>
+ </xsl:element>
+ </xsl:if>
+ <!-- Parameter is "password" then show it as "input" -->
+ <xsl:if test="type = 'password'">
+ <xsl:element name="input">
+ <xsl:attribute name="class">text</xsl:attribute>
+ <xsl:attribute name="type">password</xsl:attribute>
+ <xsl:attribute name="id">req_param_<xsl:value-of select="name"/>_value</xsl:attribute>
+ <xsl:attribute name="name">
+ <xsl:value-of select="name"/>
+ </xsl:attribute>
+ <xsl:attribute name="value">
+ <xsl:value-of select="default_value"/>
+ </xsl:attribute>
+ <xsl:attribute name="size">20</xsl:attribute>
+ </xsl:element>
+ </xsl:if>
+ <!-- Parameter is "boolean" then show it as "checkbox" -->
+ <xsl:if test="type = 'boolean'">
+ <xsl:element name="input">
+ <xsl:attribute name="class">checkbox</xsl:attribute>
+ <xsl:attribute name="type">checkbox</xsl:attribute>
+ <xsl:attribute name="id">req_param_<xsl:value-of select="name"/>_value</xsl:attribute>
+ <xsl:attribute name="name">
+ <xsl:value-of select="name"/>
+ </xsl:attribute>
+ <xsl:if test="default_value = 'true'">
+ <xsl:attribute name="checked">
+ true
+ </xsl:attribute>
+ </xsl:if>
+ </xsl:element>
+ </xsl:if>
+ <!-- Parameter is "enum" then show it as "combobox" -->
+ <xsl:if test="type = 'enum'">
+ <xsl:element name="select">
+ <xsl:attribute name="class">select</xsl:attribute>
+ <xsl:attribute name="id">req_param_<xsl:value-of select="name"/>_value</xsl:attribute>
+ <xsl:attribute name="name">
+ <xsl:value-of select="name"/>
+ </xsl:attribute>
+ <xsl:for-each select="enum_values/*">
+ <xsl:element name="option">
+ <xsl:attribute name="value">
+ <xsl:value-of select="."/>
+ </xsl:attribute>
+ <xsl:if test=". = ../../default_value">
+ <xsl:attribute name="selected">true</xsl:attribute>
+ </xsl:if>
+ <xsl:value-of select="."/>
+ </xsl:element>
+ </xsl:for-each>
+ </xsl:element>
+ </xsl:if>
+ </xsl:template>
+
+</xsl:stylesheet>
\ No newline at end of file
Property changes on: softwares_suite_v3/kysoh/tuxware/server/branches/0.3.0-plugins-gadgets-confs/data/web_interface/01/xsl/parameter.xsl
___________________________________________________________________
Name: svn:keywords
+ Id
Added: softwares_suite_v3/kysoh/tuxware/server/branches/0.3.0-plugins-gadgets-confs/data/web_interface/01/xsl/plugin_infos.xsl
===================================================================
--- softwares_suite_v3/kysoh/tuxware/server/branches/0.3.0-plugins-gadgets-confs/data/web_interface/01/xsl/plugin_infos.xsl (rev 0)
+++ softwares_suite_v3/kysoh/tuxware/server/branches/0.3.0-plugins-gadgets-confs/data/web_interface/01/xsl/plugin_infos.xsl 2009-05-01 08:36:01 UTC (rev 4605)
@@ -0,0 +1,436 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet version="1.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:fo="http://www.w3.org/1999/XSL/Format">
+
+<xsl:include href="alert.xsl"/>
+<xsl:include href="parameter.xsl"/>
+
+<xsl:template match="/">
+<html>
+ <head>
+ <LINK href="/data/web_interface/01/css/default.css" rel="stylesheet" type="text/css"/>
+ <script src="/data/web_interface/common/wiky/wiky.js" type="text/javascript"/>
+ <script language="javascript">
+ <![CDATA[
+ function fillHelpBox()
+ {
+ document.getElementById("help_box").innerHTML = Wiky.toHtml(document.getElementById("help_wiki_source").value);
+ }
+
+ function startGadget(command)
+ {
+ var parametersString = "";
+ var uuid = document.getElementById("uuid").value;
+
+ var parameters = document.getElementsByTagName("input");
+
+ for (var i = 0; i < parameters.length; i++)
+ {
+ var param = parameters[i];
+ if (param.id == 'unvisible')
+ {
+ parametersString += param.name + '=' + param.value.replace('&', '&&') + '|';
+ }
+ }
+
+ for (var i = 0; i < parameters.length; i++)
+ {
+ var param = parameters[i];
+ if ((param.type != 'button') && (param.id != 'unvisible') && (param.name != ''))
+ {
+ if (param.type == 'checkbox')
+ {
+ parametersString += param.name + '=' + param.checked + '|';
+ }
+ else if (param.type == 'radio')
+ {
+ if (param.checked)
+ {
+ parametersString += param.name + '=' + param.value.replace('&', '&&') + '|';
+ }
+ }
+ else
+ {
+ parametersString += param.name + '=' + param.value.replace('&', '&&') + '|';
+ }
+ }
+ }
+
+ parameters = document.getElementsByTagName("select");
+ for (var i = 0; i < parameters.length; i++)
+ {
+ var param = parameters[i];
+ parametersString += param.name + '=' + param.value.replace('&', '&&') + '|';
+ }
+ var url = "/plugins_server/start_plugin?command=";
+ url += command + "&uuid=" + uuid;
+ url += "¶meters=" + parametersString;
+ url += "&rndTag=" + Math.random();
+ document.getElementById("fake_image").src = url;
+ }
+
+ function stopGadget()
+ {
+ var uuid = document.getElementById("uuid").value;
+ var url = "/plugins_server/stop_plugin?";
+ url += "uuid=" + uuid;
+ url += "&rndTag=" + Math.random();
+ document.getElementById("fake_image").src = url;
+ }
+
+ function setpng(img)
+ {
+ if (document.all && (IEver=parseFloat(navigator.appVersion.split("MSIE")[1])) && (IEver>=5.5) && (IEver<7) && document.body.filters && img)
+ {
+ imgName = img.src.toUpperCase();
+ if (imgName.substring(imgName.length-3,imgName.length) == "PNG")
+ {
+ img.outerHTML= "<span "+(img.id?"id='"+img.id+"' ":"")+(img.className?"class='"+img.className+"' ":"")+(img.title?"title=\""+img.title+"\" ":"")
+ +"style=\"width:"+img.width+"px;height:"+img.height+"px;"+(img.align=="left"?"float:left;":(img.align=="right"?"float:right;":""))
+ +(img.parentElement.href?"cursor:hand;":"")+"display:inline-block;"+img.style.cssText+";"
+ +"filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+img.src+"',sizingMethod='scale');\"></span>";
+ }
+ }
+ }
+ ]]>
+ </script>
+ </head>
+ <body onload="javascript:fillHelpBox();">
+ <xsl:for-each select="root/data">
+ <!-- PLUGIN UUID STORAGE -->
+ <xsl:element name="input">
+ <xsl:attribute name="type">hidden</xsl:attribute>
+ <xsl:attribute name="id">uuid</xsl:attribute>
+ <xsl:attribute name="value">
+ <xsl:value-of select="description/uuid"/>
+ </xsl:attribute>
+ </xsl:element>
+
+ <!-- FAKE IMAGE FOR PLUGIN COMMANDS -->
+ <xsl:element name="img">
+ <xsl:attribute name="id">fake_image</xsl:attribute>
+ <xsl:attribute name="src"></xsl:attribute>
+ <xsl:attribute name="width">0</xsl:attribute>
+ <xsl:attribute name="height">0</xsl:attribute>
+ </xsl:element>
+
+ <!-- MAIN TABLE -->
+ <table class="main" >
+
+ <!-- PLUGIN NAME -->
+ <tr height="3"></tr>
+ <tr height="18">
+ <td class="plugin_name" colspan="2">
+ <xsl:value-of select="description/translated_name"/>
+ </td>
+ </tr>
+
+ <!-- DESCRIPTION -->
+ <tr>
+ <td align="center" colspan="2">
+ <table class="description">
+ <tr>
+ <xsl:element name="img">
+ <xsl:attribute name="style">
+ position:absolute;text-align: left;margin: 0 auto; padding: 0;
+ </xsl:attribute>
+ <xsl:attribute name="src">
+ <xsl:value-of select="description/icon_file"/>
+ </xsl:attribute>
+ <xsl:attribute name="onload">javascript:setpng(this);</xsl:attribute>
+ </xsl:element>
+ <td align="center" valign="center">
+ <div class="description">
+ <span class="description">
+ <xsl:value-of select="description/description"/>
+ </span>
+ <xsl:element name="br"></xsl:element>
+ <span class="author">- by <xsl:value-of select="description/author"/> -</span>
+ </div>
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+
+ <!-- PARAMETERS -->
+ <tr height="18">
+ <td class="section_title" colspan="2">
+ Parameters list :
+ </td>
+ </tr>
+ <!-- PARAMETERS TABLE -->
+ <tr>
+ <td align="center" colspan="2">
+ <table border="0" width="450">
+ <!-- For all parameters -->
+ <xsl:for-each select="parameters/*">
+ <xsl:if test="visible = 'True'">
+ <tr>
+ <td class="param_indent"></td>
+ <td class="param_name">
+ <xsl:value-of select="description"/>:
+ </td>
+ <td class="param_value">
+ <xsl:call-template name="show_parameter"/>
+ </td>
+ </tr>
+ </xsl:if>
+ </xsl:for-each>
+ </table>
+ </td>
+ </tr>
+
+ <!-- ALERTS -->
+ <tr height="18">
+ <td class="section_title" colspan="2">
+ Alerts list :
+ </td>
+ </tr>
+ <!-- ALERTS TABLE -->
+ <tr>
+ <td align="center" colspan="2">
+ <table border="0" width="450">
+ <!-- For all tasks -->
+ <xsl:for-each select="tasks/*">
+ <tr>
+ <td class="param_indent"></td>
+ <td class="ca_name" colspan="2">
+ <xsl:value-of select="translated_name"/>
+ </td>
+ </tr>
+ <tr>
+ <td class="param_indent"></td>
+ <td class="ca_description" colspan="2">
+ <xsl:value-of select="description"/>
+ </td>
+ </tr>
+ <xsl:if test="date_visible = 'True'">
+ <tr>
+ <td class="param_indent"></td>
+ <td class="param_name">
+ Date:
+ </td>
+ <td class="param_value">
+ <xsl:call-template name="date_selecter">
+ <xsl:with-param name="date" select='date' />
+ </xsl:call-template>
+ </td>
+ </tr>
+ </xsl:if>
+ <xsl:if test="hours_begin_visible = 'True'">
+ <tr>
+ <td class="param_indent"></td>
+ <td class="param_name">
+ Starting at:
+ </td>
+ <td class="param_value">
+ <xsl:call-template name="time_selecter">
+ <xsl:with-param name="time" select='hours_begin' />
+ <xsl:with-param name="mask" select='hours_begin_mask' />
+ </xsl:call-template>
+ </td>
+ </tr>
+ </xsl:if>
+ <xsl:if test="hours_end_visible = 'True'">
+ <tr>
+ <td class="param_indent"></td>
+ <td class="param_name">
+ Stopping at:
+ </td>
+ <td class="param_value">
+ <xsl:call-template name="time_selecter">
+ <xsl:with-param name="time" select='hours_end' />
+ ...
[truncated message content] |