Thread: [tuxdroid-svn] r5175 - in software_suite_v3/smart-core/smart-server/trunk: data/web_interface/user
Status: Beta
Brought to you by:
ks156
|
From: remi <c2m...@c2...> - 2009-07-27 14:53:06
|
Author: remi
Date: 2009-07-27 16:52:50 +0200 (Mon, 27 Jul 2009)
New Revision: 5175
Added:
software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/img/frame_01_bottom_4.png
software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/img/frame_01_middle_5.png
Modified:
software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/css/gadgets.css
software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/xsl/gadgets.xsl
software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/xsl/index.xsl
software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/xsl/online.xsl
software_suite_v3/smart-core/smart-server/trunk/resources/03_content_servers/02_resourceGagdetsServer.py
software_suite_v3/smart-core/smart-server/trunk/resources/07_web_interfaces/01_resourceWIUser01.py
software_suite_v3/smart-core/smart-server/trunk/translation/wi_user/default.pot
software_suite_v3/smart-core/smart-server/trunk/translation/wi_user/en.po
software_suite_v3/smart-core/smart-server/trunk/translation/wi_user/fr.po
software_suite_v3/smart-core/smart-server/trunk/util/applicationserver/gadget/GadgetOnline.py
software_suite_v3/smart-core/smart-server/trunk/util/applicationserver/gadget/GadgetsContainer.py
software_suite_v3/smart-core/smart-server/trunk/util/applicationserver/gadget/GadgetsOnlineContainer.py
Log:
* Added "Online" page.
Modified: software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/css/gadgets.css
===================================================================
--- software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/css/gadgets.css 2009-07-27 13:02:46 UTC (rev 5174)
+++ software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/css/gadgets.css 2009-07-27 14:52:50 UTC (rev 5175)
@@ -76,6 +76,16 @@
overflow: hidden;
}
+div.frame01Bottom2{
+ margin-top:0px;
+ font-family:Verdana, Bitstream Vera Sans;
+ background-image:url(/data/web_interface/user_01/img/frame_01_bottom_4.png);
+ background-repeat:no-repeat;
+ height:20px;
+ width:855px;
+ overflow: hidden;
+}
+
div.gadgetsListScrollbox{
height:465px;
width:845px;
@@ -91,6 +101,21 @@
background-image:url(/data/web_interface/user_01/img/frame_01_middle_3.png);
}
+div.gadgetsListScrollbox2{
+ height:465px;
+ width:845px;
+ border-color:black;
+ border-style:solid;
+ border-width:0px;
+ background-color:#DCDADB;
+ overflow-y:auto;
+ overflow-x:hidden;
+ margin-left:5px;
+ margin-right:5px;
+ margin-top:0px;
+ background-image:url(/data/web_interface/user_01/img/frame_01_middle_5.png);
+}
+
div.gadgetsVSpacer{
height:34px;
width:8px;
@@ -127,6 +152,24 @@
font-family:Verdana, Bitstream Vera Sans;
}
+.gadgetsRowName2{
+ width:680px;
+ height:34px;
+ margin-left:0px;
+ margin-top:2px;
+ display:table;
+ float:left;
+ line-height:34px;
+ font-size:12px;
+ color:#000;
+ text-align:left;
+ vertical-align:middle;
+ font-weight:bold;
+ overflow:hidden;
+ text-decoration:none;
+ font-family:Verdana, Bitstream Vera Sans;
+}
+
.gadgetsBtnTitle{
width:56px;
_width:72px;
Added: software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/img/frame_01_bottom_4.png
===================================================================
(Binary files differ)
Property changes on: software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/img/frame_01_bottom_4.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/img/frame_01_middle_5.png
===================================================================
(Binary files differ)
Property changes on: software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/img/frame_01_middle_5.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Modified: software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/xsl/gadgets.xsl
===================================================================
--- software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/xsl/gadgets.xsl 2009-07-27 13:02:46 UTC (rev 5174)
+++ software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/xsl/gadgets.xsl 2009-07-27 14:52:50 UTC (rev 5175)
@@ -53,7 +53,16 @@
translationStart = document.getElementById("translationStart").value;
translationStop = document.getElementById("translationStop").value;
translationDelete = document.getElementById("translationDelete").value;
- fillGadgetRows("on_demand");
+ var configureUuid = document.getElementById("configure_uuid").value;
+ if (configureUuid != "NULL")
+ {
+ fillGadgetRows("all_gadgets");
+ clickMe("configureId_" + configureUuid);
+ }
+ else
+ {
+ fillGadgetRows("on_demand");
+ }
updatePlayingGadgetUuid();
}
@@ -519,6 +528,14 @@
<xsl:value-of select="root/language"/>
</xsl:attribute>
</xsl:element>
+ <!-- UUID STORAGE -->
+ <xsl:element name="input">
+ <xsl:attribute name="type">hidden</xsl:attribute>
+ <xsl:attribute name="id">configure_uuid</xsl:attribute>
+ <xsl:attribute name="value">
+ <xsl:value-of select="root/uuid"/>
+ </xsl:attribute>
+ </xsl:element>
<!-- SOME TRANSLATIONS FOR JS -->
<xsl:element name="input">
<xsl:attribute name="type">hidden</xsl:attribute>
Modified: software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/xsl/index.xsl
===================================================================
--- software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/xsl/index.xsl 2009-07-27 13:02:46 UTC (rev 5174)
+++ software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/xsl/index.xsl 2009-07-27 14:52:50 UTC (rev 5175)
@@ -11,6 +11,8 @@
<script src="/data/web_interface/user_01/js/common.js" type="text/javascript"/>
<script language="javascript">
<![CDATA[
+ var uuid = "NULL";
+
function showContent()
{
var menu = document.getElementById("menu").value;
@@ -28,33 +30,34 @@
if (menu == "livewithtux")
{
menuLeft.className = "menuLeftActivate";
- frameUrl = "/wi_user_01/livewithtux?uuid=NULL";
+ frameUrl = "/wi_user_01/livewithtux?";
}
else if (menu == "gadgets")
{
menuCenter1.className = "menuCenterActivate";
- frameUrl = "/wi_user_01/gadgets?uuid=NULL";
+ frameUrl = "/wi_user_01/gadgets?";
}
else if (menu == "attitunes")
{
menuCenter2.className = "menuCenterActivate";
- frameUrl = "/wi_user_01/attitunes?uuid=NULL";
+ frameUrl = "/wi_user_01/attitunes?";
}
else if (menu == "tools")
{
menuCenter3.className = "menuCenterActivate";
- frameUrl = "/wi_user_01/tools?uuid=NULL";
+ frameUrl = "/wi_user_01/tools?";
}
else if (menu == "online")
{
menuRight.className = "menuRightActivate";
- frameUrl = "/wi_user_01/online?uuid=NULL";
+ frameUrl = "/wi_user_01/online?";
}
else
{
menuLeft.className = "menuLeftActivate";
- frameUrl = "/wi_user_01/page_livewithtux?uuid=NULL";
+ frameUrl = "/wi_user_01/page_livewithtux?";
}
+ frameUrl += "uuid=" + uuid;
frameUrl += "&language=" + document.getElementById('language').value;
frameUrl += "&skin='" + document.getElementById('skin').value + "'";
frameUrl += "&rndParam=" + Math.random();
@@ -67,6 +70,13 @@
document.getElementById("menu").value = menuName;
showContent();
}
+
+ function gotoGadgetsConfigure(thisUuid)
+ {
+ uuid = thisUuid;
+ gotoMenu("gadgets");
+ uuid = "NULL";
+ }
]]>
</script>
</head>
Modified: software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/xsl/online.xsl
===================================================================
--- software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/xsl/online.xsl 2009-07-27 13:02:46 UTC (rev 5174)
+++ software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/xsl/online.xsl 2009-07-27 14:52:50 UTC (rev 5175)
@@ -9,6 +9,7 @@
<html>
<head>
<link href="/data/web_interface/user_01/css/online.css" rel="stylesheet" type="text/css"/>
+ <link href="/data/web_interface/user_01/css/gadgets.css" rel="stylesheet" type="text/css"/>
<!-- CSS HACKS FOR BROWSERS -->
<xsl:choose>
<!-- IE -->
@@ -36,9 +37,234 @@
<script type="text/javascript" src="/data/web_interface/user_01/js/lightbox.js"></script>
<script language="javascript">
<![CDATA[
+ var lastGadgetSymbolicNameInAction = "0";
+ var lastGadgetNameInAction = "0";
+ var lastGadgetIconInAction = "0";
+ var knowedGadgetsDict = null;
+ var knowedGadgetsFilter = "all_gadgets";
+
function initialization()
{
+ fillGadgetRows("all_gadgets");
}
+
+ function fillGadgetRows(filter)
+ {
+ var language = document.getElementById("language").value;
+ var gadgets = requestData("/gadgets_server/get_online_gadgets_data",
+ {
+ 'filter' : filter,
+ 'language' : language
+ });
+ if (gadgets != null)
+ {
+ if (!gadgets.containsKey("data0"))
+ {
+ return;
+ }
+ }
+ else
+ {
+ return;
+ }
+ knowedGadgetsDict = gadgets;
+ var htmlContent = "";
+ var gadgetsCount = parseInt(gadgets.get("data0").get("gadgets_count"));
+ for (i = 0; i < gadgetsCount; i++)
+ {
+ symbolicName = gadgets.get("data0").get("gadget_" + i + "_symbolicName");
+ name = gadgets.get("data0").get("gadget_" + i + "_name");
+ icon = gadgets.get("data0").get("gadget_" + i + "_iconFile");
+ isAnUpdate = gadgets.get("data0").get("gadget_" + i + "_isAnUpdate");
+ htmlContent += addGadgetRow(symbolicName, name, icon, isAnUpdate);
+ }
+ document.getElementById("gadgetsListScrollbox").innerHTML = htmlContent;
+ // Set png effet for IE6
+ for (i = 0; i < gadgetsCount; i++)
+ {
+ var iconId = "gadgetsRowIcon_" + gadgets.get("data0").get("gadget_" + i + "_symbolicName");
+ setpng(document.getElementById(iconId));
+ }
+ // Show correct filter radio button
+ if (filter == 'all_gadgets')
+ {
+ document.getElementById("gadgetsFilterRadioAll").className = "gadgetsFilterRadio gadgetsFilterRadioActivate";
+ }
+ else
+ {
+ document.getElementById("gadgetsFilterRadioAll").className = "gadgetsFilterRadio gadgetsFilterRadioActivate";
+ }
+ knowedGadgetsFilter = filter;
+ initializeLightbox();
+ // Scroll up
+ var objDiv = document.getElementById("gadgetsListScrollbox");
+ objDiv.scrollTop = 0;
+ }
+
+ function addGadgetRow(symbolicName, name, icon, isAnUpdate)
+ {
+ var htmlContent = "";
+ var iconId = "gadgetsRowIcon_" + symbolicName;
+ htmlContent += '<div class="gadgetsVSpacer" style="width:10px;"></div>';
+ htmlContent += '<div class="gadgetsRowIcon"><img src="' + icon + '" height="34" width="34" id="' + iconId + '"></img></div>';
+ htmlContent += '<div class="gadgetsVSpacer" style="width:10px;"></div>';
+ htmlContent += '<span class="gadgetsRowName2">' + name + '</span>';
+ htmlContent += '<div class="gadgetsVSpacer" style="width:18px;"></div>';
+ htmlContent += '<a class="gadgetsBtnNoTitle gadgetsBtnHelp" id="helpId_' + symbolicName + '" onclick="" href="#" name="lbOn" rel="windowGadgetHelp"></a>';
+ htmlContent += '<div class="gadgetsVSpacer" style="width:8px;"></div>';
+ if (isAnUpdate == "True")
+ {
+ htmlContent += '<a class="gadgetsBtnNoTitle gadgetsBtnDuplicate" id="downloadId_' + symbolicName + '" onclick="" href="#" name="lbOn" rel="popupConfirmUpdate"></a>';
+ }
+ else
+ {
+ htmlContent += '<a class="gadgetsBtnNoTitle gadgetsBtnDuplicate" id="downloadId_' + symbolicName + '" onclick="" href="#" name="lbOn" rel="popupConfirmDownload"></a>';
+ }
+ htmlContent += '<div class="frame01Sep2"></div>';
+ return htmlContent;
+ }
+
+ function getGadgetNameFromSymbolicName(symbolicName)
+ {
+ if (knowedGadgetsDict != null)
+ {
+ var gadgets = knowedGadgetsDict;
+ var gadgetsCount = parseInt(gadgets.get("data0").get("gadgets_count"));
+ for (i = 0; i < gadgetsCount; i++)
+ {
+ gSymbolicName = gadgets.get("data0").get("gadget_" + i + "_symbolicName");
+ if (gSymbolicName == symbolicName)
+ {
+ return gadgets.get("data0").get("gadget_" + i + "_name");
+ }
+ }
+ }
+ return "";
+ }
+
+ function getGadgetIconFromSymbolicName(symbolicName)
+ {
+ if (knowedGadgetsDict != null)
+ {
+ var gadgets = knowedGadgetsDict;
+ var gadgetsCount = parseInt(gadgets.get("data0").get("gadgets_count"));
+ for (i = 0; i < gadgetsCount; i++)
+ {
+ gSymbolicName = gadgets.get("data0").get("gadget_" + i + "_symbolicName");
+ if (gSymbolicName == symbolicName)
+ {
+ return gadgets.get("data0").get("gadget_" + i + "_iconFile");
+ }
+ }
+ }
+ return "";
+ }
+
+ function getGadgetScgFromSymbolicName(symbolicName)
+ {
+ if (knowedGadgetsDict != null)
+ {
+ var gadgets = knowedGadgetsDict;
+ var gadgetsCount = parseInt(gadgets.get("data0").get("gadgets_count"));
+ for (i = 0; i < gadgetsCount; i++)
+ {
+ gSymbolicName = gadgets.get("data0").get("gadget_" + i + "_symbolicName");
+ if (gSymbolicName == symbolicName)
+ {
+ return gadgets.get("data0").get("gadget_" + i + "_scgFile");
+ }
+ }
+ }
+ return "";
+ }
+
+ function setLastGadgetInAction(symbolicName)
+ {
+ var idx = symbolicName.indexOf("_", 0) + 1;
+ symbolicName = symbolicName.slice(idx, symbolicName.length);
+ lastGadgetSymbolicNameInAction = symbolicName;
+ lastGadgetNameInAction = getGadgetNameFromSymbolicName(symbolicName);
+ lastGadgetIconInAction = getGadgetIconFromSymbolicName(symbolicName);
+ return true;
+ }
+
+ function updateWindowGadgetHelpContent(symbolicName)
+ {
+ if (!setLastGadgetInAction(symbolicName))
+ {
+ abortNextLightbox();
+ return;
+ }
+ document.getElementById("windowGadgetHelpIcon").src = lastGadgetIconInAction;
+ setpng(document.getElementById("windowGadgetHelpIcon"));
+ document.getElementById("windowGadgetHelpTitle").firstChild.nodeValue = lastGadgetNameInAction;
+ var skin = document.getElementById("skin").value;
+ var language = document.getElementById("language").value;
+ var src = "/wi_user_01/online_gadget_help?symbolic_name=" + lastGadgetSymbolicNameInAction;
+ src += "&language=" + language;
+ src += "&skin=" + skin;
+ src += "&rndParam=" + Math.random();
+ document.getElementById("windowGadgetHelpContentIFrame").src = src;
+ }
+
+ function updatePopupGadgetDownloadContent(symbolicName)
+ {
+ if (!setLastGadgetInAction(symbolicName))
+ {
+ abortNextLightbox();
+ return;
+ }
+ document.getElementById("popup01GadgetDownloadIcon").src = lastGadgetIconInAction;
+ setpng(document.getElementById("popup01GadgetDownloadIcon"));
+ }
+
+ function updatePopupGadgetUpdateContent(symbolicName)
+ {
+ if (!setLastGadgetInAction(symbolicName))
+ {
+ abortNextLightbox();
+ return;
+ }
+ document.getElementById("popup01GadgetUpdateIcon").src = lastGadgetIconInAction;
+ setpng(document.getElementById("popup01GadgetUpdateIcon"));
+ }
+
+ function downloadGadget()
+ {
+ if (lastGadgetSymbolicNameInAction == "0")
+ {
+ return;
+ }
+ var scgFile = getGadgetScgFromSymbolicName(lastGadgetSymbolicNameInAction);
+ var args = {
+ "path" : scgFile
+ }
+ getRequest("/gadgets_server/insert_gadget", args);
+ symbolicName = lastGadgetSymbolicNameInAction;
+ lastGadgetSymbolicNameInAction = "0";
+ var idx = symbolicName.indexOf("_", 0) + 1;
+ symbolicName = symbolicName.slice(idx, symbolicName.length);
+ if (window.top.gotoGadgetsConfigure)
+ {
+ window.top.gotoGadgetsConfigure(symbolicName);
+ }
+ }
+
+ function updateGadget()
+ {
+ if (lastGadgetSymbolicNameInAction == "0")
+ {
+ return;
+ }
+ var scgFile = getGadgetScgFromSymbolicName(lastGadgetSymbolicNameInAction);
+ var args = {
+ "path" : scgFile
+ }
+ getRequest("/gadgets_server/insert_gadget", args);
+ lastGadgetSymbolicNameInAction = "0";
+ fillGadgetRows(knowedGadgetsFilter);
+ setTimeout('clickMe("popupUpdatedShow")', 500);
+ }
]]>
</script>
</head>
@@ -81,11 +307,131 @@
top:0px;">
<!-- NOTIFICATION VIEW -->
<div class="frame01TopSpace">
+ <div class="gadgetsVSpacer" style="width:35px;height:40px;"></div>
+ <xsl:element name="a">
+ <xsl:attribute name="class">gadgetsFilterRadio gadgetsFilterRadioActivate</xsl:attribute>
+ <xsl:attribute name="id">gadgetsFilterRadioAll</xsl:attribute>
+ <xsl:attribute name="onclick">javascript:fillGadgetRows('all_gadgets'); return false;</xsl:attribute>
+ <xsl:attribute name="href">#</xsl:attribute><xsl:value-of select="root/translations/all"/>
+ </xsl:element>
</div>
- <div class="frame01Middle" style="height:495px;">
+ <div class="frame01Middle" style="height:465px;">
+ <div class="gadgetsListScrollbox2" id="gadgetsListScrollbox"></div>
</div>
- <div class="frame01Bottom"></div>
+ <div class="frame01Bottom2"></div>
</div>
+ <!-- POPUP CONFIRM DOWNLOAD -->
+ <div id="popupConfirmDownload" class="popup01Box" onfocus="updatePopupGadgetDownloadContent(arguments[0]);">
+ <div class="popupFrame01Top"></div>
+ <div class="popupFrame01Middle">
+ <div class="popup01GadgetIcon">
+ <xsl:element name="img">
+ <xsl:attribute name="id">popup01GadgetDownloadIcon</xsl:attribute>
+ <xsl:attribute name="src">/data/web_interface/user_01/img/empty.png</xsl:attribute>
+ <xsl:attribute name="height">34</xsl:attribute>
+ <xsl:attribute name="width">34</xsl:attribute>
+ </xsl:element>
+ </div>
+ <span class="popup01Message"><xsl:value-of select="root/translations/popup_confirm_download_gadget"/></span>
+ <xsl:element name="a">
+ <xsl:attribute name="class">popupBtn</xsl:attribute>
+ <xsl:attribute name="name">lbOff</xsl:attribute>
+ <xsl:attribute name="rel">deactivate</xsl:attribute>
+ <xsl:attribute name="onclick">javascript:downloadGadget();return false;</xsl:attribute>
+ <xsl:attribute name="href">#</xsl:attribute><xsl:value-of select="root/translations/yes"/>
+ </xsl:element>
+ <xsl:element name="a">
+ <xsl:attribute name="class">popupBtn</xsl:attribute>
+ <xsl:attribute name="name">lbOff</xsl:attribute>
+ <xsl:attribute name="id">closeLightbox</xsl:attribute>
+ <xsl:attribute name="rel">deactivate</xsl:attribute>
+ <xsl:attribute name="href">#</xsl:attribute><xsl:value-of select="root/translations/no"/>
+ </xsl:element>
+ </div>
+ <div class="popupFrame01Bottom"></div>
+ </div>
+ <!-- POPUP CONFIRM UPDATE -->
+ <div id="popupConfirmUpdate" class="popup01Box" onfocus="updatePopupGadgetUpdateContent(arguments[0]);">
+ <div class="popupFrame01Top"></div>
+ <div class="popupFrame01Middle">
+ <div class="popup01GadgetIcon">
+ <xsl:element name="img">
+ <xsl:attribute name="id">popup01GadgetUpdateIcon</xsl:attribute>
+ <xsl:attribute name="src">/data/web_interface/user_01/img/empty.png</xsl:attribute>
+ <xsl:attribute name="height">34</xsl:attribute>
+ <xsl:attribute name="width">34</xsl:attribute>
+ </xsl:element>
+ </div>
+ <span class="popup01Message"><xsl:value-of select="root/translations/popup_confirm_update_gadget"/></span>
+ <xsl:element name="a">
+ <xsl:attribute name="class">popupBtn</xsl:attribute>
+ <xsl:attribute name="name">lbOff</xsl:attribute>
+ <xsl:attribute name="rel">deactivate</xsl:attribute>
+ <xsl:attribute name="onclick">javascript:updateGadget();return false;</xsl:attribute>
+ <xsl:attribute name="href">#</xsl:attribute><xsl:value-of select="root/translations/yes"/>
+ </xsl:element>
+ <xsl:element name="a">
+ <xsl:attribute name="class">popupBtn</xsl:attribute>
+ <xsl:attribute name="name">lbOff</xsl:attribute>
+ <xsl:attribute name="id">closeLightbox</xsl:attribute>
+ <xsl:attribute name="rel">deactivate</xsl:attribute>
+ <xsl:attribute name="href">#</xsl:attribute><xsl:value-of select="root/translations/no"/>
+ </xsl:element>
+ </div>
+ <div class="popupFrame01Bottom"></div>
+ </div>
+ <!-- POPUP GADGET IS UP TO DATE -->
+ <div id="popupGadgetUpToDate" class="popup01Box" onfocus="return true;">
+ <div class="popupFrame01Top"></div>
+ <div class="popupFrame01Middle">
+ <span class="popup01Message" style="width:409px;text-align:center;"><xsl:value-of select="root/translations/popup_gadget_has_been_updated"/></span>
+ <xsl:element name="a">
+ <xsl:attribute name="class">popupBtn</xsl:attribute>
+ <xsl:attribute name="name">lbOff</xsl:attribute>
+ <xsl:attribute name="rel">deactivate</xsl:attribute>
+ <xsl:attribute name="href">#</xsl:attribute><xsl:value-of select="root/translations/close"/>
+ </xsl:element>
+ <xsl:element name="a">
+ <xsl:attribute name="id">popupUpdatedShow</xsl:attribute>
+ <xsl:attribute name="name">lbOn</xsl:attribute>
+ <xsl:attribute name="rel">popupGadgetUpToDate</xsl:attribute>
+ <xsl:attribute name="href">#</xsl:attribute>
+ </xsl:element>
+ </div>
+ <div class="popupFrame01Bottom"></div>
+ </div>
+ <!-- WINDOW GADGET HELP -->
+ <div id="windowGadgetHelp" class="window01Box" onfocus="updateWindowGadgetHelpContent(arguments[0]);" style="height:350px; margin-top:65px;">
+ <div class="windowFrame01Top">
+ <div class="windowGadgetIcon">
+ <xsl:element name="img">
+ <xsl:attribute name="id">windowGadgetHelpIcon</xsl:attribute>
+ <xsl:attribute name="src">/data/web_interface/user_01/img/empty.png</xsl:attribute>
+ <xsl:attribute name="height">33</xsl:attribute>
+ <xsl:attribute name="width">33</xsl:attribute>
+ </xsl:element>
+ </div>
+ <span class="windowTitle" id="windowGadgetHelpTitle"> . </span>
+ </div>
+ <div class="windowFrame01Middle" style="height:290px;">
+ <iframe class="windowContentIFrame"
+ id="windowGadgetHelpContentIFrame"
+ name="windowGadgetHelpContentIFrame"
+ frameborder="0"
+ scrolling="no"
+ style="height:240px"
+ src="">
+ </iframe>
+ <div style="display:table;float:left;height:34px;width:370px"></div>
+ <xsl:element name="a">
+ <xsl:attribute name="class">windowBtn</xsl:attribute>
+ <xsl:attribute name="name">lbOff</xsl:attribute>
+ <xsl:attribute name="rel">deactivate</xsl:attribute>
+ <xsl:attribute name="href">#</xsl:attribute><xsl:value-of select="root/translations/close"/>
+ </xsl:element>
+ </div>
+ <div class="windowFrame01Bottom"></div>
+ </div>
</body>
</html>
</xsl:template>
Modified: software_suite_v3/smart-core/smart-server/trunk/resources/03_content_servers/02_resourceGagdetsServer.py
===================================================================
--- software_suite_v3/smart-core/smart-server/trunk/resources/03_content_servers/02_resourceGagdetsServer.py 2009-07-27 13:02:46 UTC (rev 5174)
+++ software_suite_v3/smart-core/smart-server/trunk/resources/03_content_servers/02_resourceGagdetsServer.py 2009-07-27 14:52:50 UTC (rev 5175)
@@ -301,7 +301,40 @@
# Register the service into the resource
resourceGadgetsServer.addService(TDSServiceGadgetsServerGetGadgetData)
+# ------------------------------------------------------------------------------
+# Declaration of the service "get_online_gadgets_data".
+# ------------------------------------------------------------------------------
+class TDSServiceGadgetsServerGetOnlineGadgetsData(TDSService):
+ def configure(self):
+ self.parametersDict = {
+ 'filter' : 'string',
+ 'language' : 'string',
+ }
+ self.minimalUserLevel = TDS_CLIENT_LEVEL_ANONYMOUS
+ self.exclusiveExecution = False
+ self.name = "get_online_gadgets_data"
+ self.comment = "Get the data of the online gadgets."
+
+ def execute(self, id, parameters):
+ headersStruct = self.getDefaultHeadersStruct()
+ contentStruct = self.getDefaultContentStruct()
+ contentStruct['root']['result'] = getStrError(E_TDREST_SUCCESS)
+ filter = parameters['filter']
+ language = parameters['language']
+ gadgetsOnlineContainer = resourceGadgetsServer.getGadgetsContainer().getGadgetsOnlineContaine...
[truncated message content] |