[tuxdroid-svn] r5065 - software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/x
Status: Beta
Brought to you by:
ks156
|
From: remi <c2m...@c2...> - 2009-07-06 13:15:57
|
Author: remi
Date: 2009-07-06 15:15:50 +0200 (Mon, 06 Jul 2009)
New Revision: 5065
Modified:
software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/xsl/tools.xsl
Log:
* Added "Global settings" row in the "tools" page. (For now the content is "http://127.0.0.1:270")
Modified: software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/xsl/tools.xsl
===================================================================
--- software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/xsl/tools.xsl 2009-07-06 12:15:57 UTC (rev 5064)
+++ software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/xsl/tools.xsl 2009-07-06 13:15:50 UTC (rev 5065)
@@ -36,6 +36,9 @@
<script type="text/javascript" src="/data/web_interface/user_01/js/lightbox.js"></script>
<script language="javascript">
<![CDATA[
+ var icon1AlreadyPng = false;
+ var icon2AlreadyPng = false;
+
function initialization()
{
initializeLightbox();
@@ -55,7 +58,11 @@
function updateWindowAbout(uuid)
{
- setpng(document.getElementById("windowGadgetHelpIcon"));
+ if (!icon1AlreadyPng)
+ {
+ icon1AlreadyPng = true;
+ setpng(document.getElementById("windowGadgetHelpIcon"));
+ }
var skin = document.getElementById("skin").value;
var language = document.getElementById("language").value;
var src = "/wi_user_01/gadget_help?uuid=" + uuid;
@@ -64,6 +71,26 @@
src += "&rndParam=" + Math.random();
document.getElementById("windowAboutContentIFrame").src = src;
}
+
+ function updateWindowGlobalSettings(uuid)
+ {
+ if (!icon2AlreadyPng)
+ {
+ icon2AlreadyPng = true;
+ setpng(document.getElementById("windowGadgetConfigurationIcon"));
+ }
+ /*var skin = document.getElementById("skin").value;
+ var language = document.getElementById("language").value;
+ var src = "/wi_user_01/global_configuration?";
+ src += "language=" + language;
+ src += "&skin=" + skin;
+ src += "&rndParam=" + Math.random();*/
+ document.getElementById("windowGlobalSettingsContentIFrame").src = "http://127.0.0.1:270/";
+ }
+
+ function applyGlobalSettings()
+ {
+ }
]]>
</script>
</head>
@@ -130,6 +157,16 @@
<span class="toolsRowName"><xsl:value-of select="root/data/tux_controller/name"/></span>
<div class="frame01Sep"></div>
</xsl:if>
+ <!-- GLOBAL SETTINGS -->
+ <xsl:element name="a">
+ <xsl:attribute name="class">toolsBtnTitle toolsBtnShowEnable</xsl:attribute>
+ <xsl:attribute name="id">none</xsl:attribute>
+ <xsl:attribute name="name">lbOn</xsl:attribute>
+ <xsl:attribute name="rel">windowGlobalSettings</xsl:attribute>
+ <xsl:attribute name="href">#</xsl:attribute><xsl:value-of select="root/translations/show"/>
+ </xsl:element>
+ <span class="toolsRowName"><xsl:value-of select="root/translations/global_settings"/></span>
+ <div class="frame01Sep"></div>
<!-- ONLINE DOCUMENTATION -->
<xsl:element name="a">
<xsl:attribute name="class">toolsBtnTitle toolsBtnShowEnable</xsl:attribute>
@@ -185,6 +222,44 @@
</div>
<div class="windowFrame01Bottom"></div>
</div>
+ <!-- GLOBAL SETTINGS -->
+ <div id="windowGlobalSettings" class="window01Box" onfocus="updateWindowGlobalSettings();">
+ <div class="windowFrame01Top">
+ <div class="windowGadgetIcon">
+ <xsl:element name="img">
+ <xsl:attribute name="id">windowGadgetConfigurationIcon</xsl:attribute>
+ <xsl:attribute name="src"><xsl:value-of select="root/data/about/icon"/></xsl:attribute>
+ <xsl:attribute name="height">33</xsl:attribute>
+ <xsl:attribute name="width">33</xsl:attribute>
+ </xsl:element>
+ </div>
+ <span class="windowTitle" id="windowGadgetConfigurationTitle"><xsl:value-of select="root/translations/global_settings"/></span>
+ </div>
+ <div class="windowFrame01Middle">
+ <iframe class="windowContentIFrame"
+ id="windowGlobalSettingsContentIFrame"
+ name="windowGlobalSettingsContentIFrame"
+ frameborder="0"
+ scrolling="no"
+ src="">
+ </iframe>
+ <div style="display:table;float:left;height:34px;width:300px"></div>
+ <xsl:element name="a">
+ <xsl:attribute name="class">windowBtn</xsl:attribute>
+ <xsl:attribute name="name">lbOff</xsl:attribute>
+ <xsl:attribute name="onclick">javascript:applyGlobalSettings();</xsl:attribute>
+ <xsl:attribute name="rel">deactivate</xsl:attribute>
+ <xsl:attribute name="href">#</xsl:attribute><xsl:value-of select="root/translations/apply"/>
+ </xsl:element>
+ <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/cancel"/>
+ </xsl:element>
+ </div>
+ <div class="windowFrame01Bottom"></div>
+ </div>
</body>
</html>
</xsl:template>
|