[tuxdroid-svn] r4910 - 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-06-26 14:16:17
|
Author: remi
Date: 2009-06-26 15:47:52 +0200 (Fri, 26 Jun 2009)
New Revision: 4910
Added:
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/popup-ie6.css
software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/css/popup.css
software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/img/frame_01_bottom_2.png
software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/img/frame_01_middle_2.png
software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/img/frame_01_middle_3.png
software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/img/frame_01_sep.png
software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/img/frame_01_sep_2.png
software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/img/frame_01_top_2.png
software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/img/gadgets_btn_configure_activate.png
software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/img/gadgets_btn_configure_disable.png
software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/img/gadgets_btn_configure_enable.png
software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/img/gadgets_btn_delete_activate.png
software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/img/gadgets_btn_delete_disable.png
software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/img/gadgets_btn_delete_enable.png
software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/img/gadgets_btn_duplicate_activate.png
software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/img/gadgets_btn_duplicate_disable.png
software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/img/gadgets_btn_duplicate_enable.png
software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/img/gadgets_btn_help_activate.png
software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/img/gadgets_btn_help_disable.png
software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/img/gadgets_btn_help_enable.png
software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/img/gadgets_btn_play_activate.png
software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/img/gadgets_btn_play_disable.png
software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/img/gadgets_btn_play_enable.png
software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/img/gadgets_btn_stop_activate.png
software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/img/gadgets_btn_stop_disable.png
software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/img/gadgets_btn_stop_enable.png
software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/img/gadgets_filter_radio_activate.png
software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/img/gadgets_filter_radio_enable.png
software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/img/popup_btn_activate.png
software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/img/popup_btn_enable.png
software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/img/popup_frame01_bottom.png
software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/img/popup_frame01_middle.png
software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/img/popup_frame01_top.png
software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/xsl/gadgets.xsl
Modified:
software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/css/menu.css
software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/js/lightbox.js
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/livewithtux.xsl
software_suite_v3/smart-core/smart-server/trunk/resources/04_robot_content_interactions/00_resourceRobotContentInteractions.py
software_suite_v3/smart-core/smart-server/trunk/resources/07_web_interfaces/01_resourceWIUser01.py
Log:
* some gui fixes
* added gadgets page. (not yet finished)
* fixed lightbox js script
Added: 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 (rev 0)
+++ software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/css/gadgets.css 2009-06-26 13:47:52 UTC (rev 4910)
@@ -0,0 +1,320 @@
+*:focus {
+ outline: none;
+}
+
+*::-moz-focus-inner {
+ border: none;
+}
+
+div.frame01TopSpace{
+ margin-top:15px;
+ font-family:Verdana, Bitstream Vera Sans;
+ background-image:url(/data/web_interface/user_01/img/frame_01_top_2.png);
+ background-repeat:no-repeat;
+ height:40px;
+ width:855px;
+ overflow: hidden;
+}
+
+div.frame01Middle{
+ font-family:Verdana, Bitstream Vera Sans;
+ display:table;
+ background-image:url(/data/web_interface/user_01/img/frame_01_middle.png);
+ background-repeat:repeat;
+ height:1px;
+ width:855px;
+ overflow: hidden;
+}
+
+div.frame01Middle2{
+ font-family:Verdana, Bitstream Vera Sans;
+ display:table;
+ background-image:url(/data/web_interface/user_01/img/frame_01_middle_2.png);
+ background-repeat:repeat;
+ height:1px;
+ width:855px;
+ overflow: hidden;
+}
+
+div.frame01Sep{
+ font-family:Verdana, Bitstream Vera Sans;
+ display:table;
+ background-image:url(/data/web_interface/user_01/img/frame_01_sep.png);
+ background-repeat:repeat;
+ height:4px;
+ width:855px;
+ overflow: hidden;
+}
+
+div.frame01Sep2{
+ font-family:Verdana, Bitstream Vera Sans;
+ display:table;
+ background-image:url(/data/web_interface/user_01/img/frame_01_sep_2.png);
+ background-repeat:repeat;
+ height:2px;
+ width:845px;
+ overflow: hidden;
+}
+
+div.frame01Sep2{
+ margin-top:2px;
+ display:table;
+ background-image:url(/data/web_interface/user_01/img/frame_01_sep_2.png);
+ background-repeat:repeat;
+ height:2px;
+ width:845px;
+ overflow: hidden;
+}
+
+div.frame01Bottom{
+ margin-top:0px;
+ font-family:Verdana, Bitstream Vera Sans;
+ background-image:url(/data/web_interface/user_01/img/frame_01_bottom_2.png);
+ background-repeat:no-repeat;
+ height:20px;
+ width:855px;
+ overflow: hidden;
+}
+
+div.gadgetsListScrollbox{
+ 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_3.png);
+}
+
+div.gadgetsVSpacer{
+ height:34px;
+ width:8px;
+ margin-left:0px;
+ margin-top:0px;
+ display:table;
+ float:left;
+}
+
+.gadgetsRowIcon{
+ height:34px;
+ width:34px;
+ margin-left:0px;
+ margin-top:2px;
+ display:table;
+ float:left;
+}
+
+.gadgetsRowName{
+ width:390px;
+ 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, Arial, Helvetica, sans-serif;
+}
+
+.gadgetsBtnTitle{
+ width:56px;
+ _width:72px;
+ height:34px;
+ padding-left:16px;
+ padding-top:-1px;
+ margin-left:0px;
+ margin-top:2px;
+ display:table;
+ float:left;
+ line-height:34px;
+ font-size:10px;
+ color:#FFFFFF;
+ text-align:center;
+ vertical-align:middle;
+ font-weight:bold;
+ overflow:hidden;
+ text-decoration:none;
+ font-family:Verdana, Bitstream Vera Sans, Arial, Helvetica, sans-serif;
+}
+
+.gadgetsBtnNoTitle{
+ width:32px;
+ height:34px;
+ margin-left:0px;
+ margin-top:2px;
+ display:table;
+ float:left;
+ overflow:hidden;
+}
+
+.gadgetsBtnStartEnable{
+ width:59px;
+ _width:72px;
+ padding-left:13px;
+ background-image:url(/data/web_interface/user_01/img/gadgets_btn_play_enable.png);
+}
+
+.gadgetsBtnStartEnable:hover{
+ background-image:url(/data/web_interface/user_01/img/gadgets_btn_play_activate.png);
+}
+
+.gadgetsBtnStartActivate{
+ width:59px;
+ _width:72px;
+ padding-left:13px;
+ background-image:url(/data/web_interface/user_01/img/gadgets_btn_play_activate.png);
+}
+
+.gadgetsBtnStartDisable{
+ width:59px;
+ _width:72px;
+ padding-left:13px;
+ background-image:url(/data/web_interface/user_01/img/gadgets_btn_play_disable.png);
+}
+
+.gadgetsBtnStopEnable{
+ width:53px;
+ _width:72px;
+ padding-left:19px;
+ background-image:url(/data/web_interface/user_01/img/gadgets_btn_stop_enable.png);
+}
+
+.gadgetsBtnStopEnable:hover{
+ background-image:url(/data/web_interface/user_01/img/gadgets_btn_stop_activate.png);
+}
+
+.gadgetsBtnStopActivate{
+ width:53px;
+ _width:72px;
+ padding-left:19px;
+ background-image:url(/data/web_interface/user_01/img/gadgets_btn_stop_activate.png);
+}
+
+.gadgetsBtnStopDisable{
+ width:53px;
+ _width:72px;
+ padding-left:19px;
+ background-image:url(/data/web_interface/user_01/img/gadgets_btn_stop_disable.png);
+}
+
+.gadgetsBtnHelp{
+ background-image:url(/data/web_interface/user_01/img/gadgets_btn_help_enable.png);
+}
+
+.gadgetsBtnHelp:hover{
+ background-image:url(/data/web_interface/user_01/img/gadgets_btn_help_activate.png);
+}
+
+.gadgetsBtnHelpDisable{
+ background-image:url(/data/web_interface/user_01/img/gadgets_btn_help_disable.png);
+}
+
+.gadgetsBtnConfigure{
+ background-image:url(/data/web_interface/user_01/img/gadgets_btn_configure_enable.png);
+}
+
+.gadgetsBtnConfigure:hover{
+ background-image:url(/data/web_interface/user_01/img/gadgets_btn_configure_activate.png);
+}
+
+.gadgetsBtnConfigureDisable{
+ background-image:url(/data/web_interface/user_01/img/gadgets_btn_configure_disable.png);
+}
+
+.gadgetsBtnDuplicate{
+ background-image:url(/data/web_interface/user_01/img/gadgets_btn_duplicate_enable.png);
+}
+
+.gadgetsBtnDuplicate:hover{
+ background-image:url(/data/web_interface/user_01/img/gadgets_btn_duplicate_activate.png);
+}
+
+.gadgetsBtnDuplicateDisable{
+ background-image:url(/data/web_interface/user_01/img/gadgets_btn_duplicate_disable.png);
+}
+
+.gadgetsBtnDelete{
+ background-image:url(/data/web_interface/user_01/img/gadgets_btn_delete_enable.png);
+}
+
+.gadgetsBtnDelete:hover{
+ background-image:url(/data/web_interface/user_01/img/gadgets_btn_delete_activate.png);
+}
+
+.gadgetsBtnDeleteDisable{
+ background-image:url(/data/web_interface/user_01/img/gadgets_btn_delete_disable.png);
+}
+
+.gadgetsFilterRadio{
+ width:85px;
+ height:25px;
+ margin-left:0px;
+ margin-top:9px;
+ padding-top:-1px;
+ line-height:25px;
+ font-size:10px;
+ color:#FFFFFF;
+ text-align:center;
+ vertical-align:middle;
+ font-weight:bold;
+ overflow:hidden;
+ text-decoration:none;
+ display:table;
+ float:left;
+ font-family:Verdana, Bitstream Vera Sans, Arial, Helvetica, sans-serif;
+}
+
+.gadgetsFilterRadioEnable{
+ background-image:url(/data/web_interface/user_01/img/gadgets_filter_radio_enable.png);
+}
+
+.gadgetsFilterRadioEnable:hover{
+ background-image:url(/data/web_interface/user_01/img/gadgets_filter_radio_activate.png);
+}
+
+.gadgetsFilterRadioActivate{
+ background-image:url(/data/web_interface/user_01/img/gadgets_filter_radio_activate.png);
+}
+
+.leightbox {
+ color: #333;
+ display: none;
+ position: absolute;
+ top: 25%;
+ left: 25%;
+ width: 50%;
+ height: 50%;
+ padding: 1em;
+ border: 1em solid #B8B8B8;
+ background-color: white;
+ text-align: left;
+ z-index:1001;
+ overflow: auto;
+}
+
+#overlay{
+ display:none;
+ position:absolute;
+ top:0px;
+ left:0px;
+ width:855px;
+ height:535px;
+ z-index:1000;
+ background-color:#000000;
+ -moz-opacity: 0.7;
+ opacity:.70;
+ filter: alpha(opacity=70);
+}
+
+.lightbox[id]{ /* IE6 and below Can't See This */ position:fixed; }#overlay[id]{ /* IE6 and below Can't See This */ position:fixed; }
Modified: software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/css/menu.css
===================================================================
--- software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/css/menu.css 2009-06-26 12:33:37 UTC (rev 4909)
+++ software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/css/menu.css 2009-06-26 13:47:52 UTC (rev 4910)
@@ -128,13 +128,16 @@
#overlay{
display:none;
position:absolute;
+ margin-top:0px;
+ margin-left:0px;
top:0px;
left:0px;
- width:100%;
+ width:100% !important;
+ _width:110%;
height:100%;
z-index:1000;
background-color:#000000;
- -moz-opacity: 0.7;
+ -moz-opacity: 0.70;
opacity:.70;
filter: alpha(opacity=70);
}
Added: software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/css/popup-ie6.css
===================================================================
--- software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/css/popup-ie6.css (rev 0)
+++ software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/css/popup-ie6.css 2009-06-26 13:47:52 UTC (rev 4910)
@@ -0,0 +1,76 @@
+.popupFrame01Top{
+ height:10px;
+ width:490px;
+ overflow:hidden;
+ display:block;
+ filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="/data/web_interface/user_01/img/popup_frame01_top.png",sizingMethod="scale");
+}
+
+.popupFrame01Middle{
+ height:42px;
+ width:490px;
+ overflow:hidden;
+ display:block;
+ filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="/data/web_interface/user_01/img/popup_frame01_middle.png",sizingMethod="scale");
+}
+
+.popupFrame01Bottom{
+ height:10px;
+ width:490px;
+ overflow:hidden;
+ display:block;
+ filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="/data/web_interface/user_01/img/popup_frame01_bottom.png",sizingMethod="scale");
+}
+
+.popup01Message{
+ width:351px;
+ height:34px;
+ margin-left:10px;
+ margin-top:4px;
+ display:table;
+ float:left;
+ line-height:34px;
+ font-size:12px;
+ color:#000;
+ text-align:center;
+ vertical-align:middle;
+ font-weight:bold;
+ overflow:hidden;
+ text-decoration:none;
+ font-family:Verdana, Bitstream Vera Sans, Arial, Helvetica, sans-serif;
+}
+
+.popupBtn{
+ width:58px;
+ height:34px;
+ margin-left:2px;
+ margin-top:4px;
+ padding-top:-1px;
+ line-height:34px;
+ font-size:10px;
+ color:#FFFFFF;
+ text-align:center;
+ vertical-align:middle;
+ font-weight:bold;
+ overflow:hidden;
+ text-decoration:none;
+ display:table;
+ float:left;
+ font-family:Verdana, Bitstream Vera Sans, Arial, Helvetica, sans-serif;
+ background-image:url(/data/web_interface/user_01/img/popup_btn_enable.png);
+}
+
+.popupBtn:hover{
+ background-image:url(/data/web_interface/user_01/img/popup_btn_activate.png);
+}
+
+.popup01Box {
+ display: none;
+ position:absolute;
+ top:209px;
+ left:182px;
+ width:490px;
+ height:62px;
+ z-index:1001;
+ overflow:hidden;
+}
\ No newline at end of file
Added: software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/css/popup.css
===================================================================
--- software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/css/popup.css (rev 0)
+++ software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/css/popup.css 2009-06-26 13:47:52 UTC (rev 4910)
@@ -0,0 +1,76 @@
+.popupFrame01Top{
+ height:10px;
+ width:490px;
+ overflow:hidden;
+ display:block;
+ background-image:url(/data/web_interface/user_01/img/popup_frame01_top.png);
+}
+
+.popupFrame01Middle{
+ height:42px;
+ width:490px;
+ overflow:hidden;
+ display:block;
+ background-image:url(/data/web_interface/user_01/img/popup_frame01_middle.png);
+}
+
+.popupFrame01Bottom{
+ height:10px;
+ width:490px;
+ overflow:hidden;
+ display:block;
+ background-image:url(/data/web_interface/user_01/img/popup_frame01_bottom.png);
+}
+
+.popup01Message{
+ width:351px;
+ height:34px;
+ margin-left:10px;
+ margin-top:4px;
+ display:table;
+ float:left;
+ line-height:34px;
+ font-size:12px;
+ color:#000;
+ text-align:center;
+ vertical-align:middle;
+ font-weight:bold;
+ overflow:hidden;
+ text-decoration:none;
+ font-family:Verdana, Bitstream Vera Sans, Arial, Helvetica, sans-serif;
+}
+
+.popupBtn{
+ width:58px;
+ height:34px;
+ margin-left:2px;
+ margin-top:4px;
+ padding-top:-1px;
+ line-height:34px;
+ font-size:10px;
+ color:#FFFFFF;
+ text-align:center;
+ vertical-align:middle;
+ font-weight:bold;
+ overflow:hidden;
+ text-decoration:none;
+ display:table;
+ float:left;
+ font-family:Verdana, Bitstream Vera Sans, Arial, Helvetica, sans-serif;
+ background-image:url(/data/web_interface/user_01/img/popup_btn_enable.png);
+}
+
+.popupBtn:hover{
+ background-image:url(/data/web_interface/user_01/img/popup_btn_activate.png);
+}
+
+.popup01Box {
+ display: none;
+ position:absolute;
+ top:209px;
+ left:182px;
+ width:490px;
+ height:62px;
+ z-index:1001;
+ overflow:hidden;
+}
\ No newline at end of file
Added: software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/img/frame_01_bottom_2.png
===================================================================
(Binary files differ)
Property changes on: software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/img/frame_01_bottom_2.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_2.png
===================================================================
(Binary files differ)
Property changes on: software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/img/frame_01_middle_2.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_3.png
===================================================================
(Binary files differ)
Property changes on: software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/img/frame_01_middle_3.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_sep.png
===================================================================
(Binary files differ)
Property changes on: software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/img/frame_01_sep.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_sep_2.png
===================================================================
(Binary files differ)
Property changes on: software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/img/frame_01_sep_2.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_top_2.png
===================================================================
(Binary files differ)
Property changes on: software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/img/frame_01_top_2.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/img/gadgets_btn_configure_activate.png
===================================================================
(Binary files differ)
Property changes on: software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/img/gadgets_btn_configure_activate.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/img/gadgets_btn_configure_disable.png
===================================================================
(Binary files differ)
Property changes on: software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/img/gadgets_btn_configure_disable.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/img/gadgets_btn_configure_enable.png
===================================================================
(Binary files differ)
Property changes on: software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/img/gadgets_btn_configure_enable.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/img/gadgets_btn_delete_activate.png
===================================================================
(Binary files differ)
Property changes on: software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/img/gadgets_btn_delete_activate.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/img/gadgets_btn_delete_disable.png
===================================================================
(Binary files differ)
Property changes on: software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/img/gadgets_btn_delete_disable.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/img/gadgets_btn_delete_enable.png
===================================================================
(Binary files differ)
Property changes on: software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/img/gadgets_btn_delete_enable.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/img/gadgets_btn_duplicate_activate.png
===================================================================
(Binary files differ)
Property changes on: software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/img/gadgets_btn_duplicate_activate.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/img/gadgets_btn_duplicate_disable.png
===================================================================
(Binary files differ)
Property changes on: software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/img/gadgets_btn_duplicate_disable.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/img/gadgets_btn_duplicate_enable.png
===================================================================
(Binary files differ)
Property changes on: software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/img/gadgets_btn_duplicate_enable.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/img/gadgets_btn_help_activate.png
===================================================================
(Binary files differ)
Property changes on: software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/img/gadgets_btn_help_activate.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/img/gadgets_btn_help_disable.png
===================================================================
(Binary files differ)
Property changes on: software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/img/gadgets_btn_help_disable.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/img/gadgets_btn_help_enable.png
===================================================================
(Binary files differ)
Property changes on: software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/img/gadgets_btn_help_enable.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/img/gadgets_btn_play_activate.png
===================================================================
(Binary files differ)
Property changes on: software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/img/gadgets_btn_play_activate.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/img/gadgets_btn_play_disable.png
===================================================================
(Binary files differ)
Property changes on: software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/img/gadgets_btn_play_disable.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/img/gadgets_btn_play_enable.png
===================================================================
(Binary files differ)
Property changes on: software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/img/gadgets_btn_play_enable.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/img/gadgets_btn_stop_activate.png
===================================================================
(Binary files differ)
Property changes on: software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/img/gadgets_btn_stop_activate.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/img/gadgets_btn_stop_disable.png
===================================================================
(Binary files differ)
Property changes on: software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/img/gadgets_btn_stop_disable.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/img/gadgets_btn_stop_enable.png
===================================================================
(Binary files differ)
Property changes on: software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/img/gadgets_btn_stop_enable.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/img/gadgets_filter_radio_activate.png
===================================================================
(Binary files differ)
Property changes on: software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/img/gadgets_filter_radio_activate.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/img/gadgets_filter_radio_enable.png
===================================================================
(Binary files differ)
Property changes on: software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/img/gadgets_filter_radio_enable.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/img/popup_btn_activate.png
===================================================================
(Binary files differ)
Property changes on: software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/img/popup_btn_activate.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/img/popup_btn_enable.png
===================================================================
(Binary files differ)
Property changes on: software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/img/popup_btn_enable.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/img/popup_frame01_bottom.png
===================================================================
(Binary files differ)
Property changes on: software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/img/popup_frame01_bottom.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/img/popup_frame01_middle.png
===================================================================
(Binary files differ)
Property changes on: software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/img/popup_frame01_middle.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/img/popup_frame01_top.png
===================================================================
(Binary files differ)
Property changes on: software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/img/popup_frame01_top.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Modified: software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/js/lightbox.js
===================================================================
--- software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/js/lightbox.js 2009-06-26 12:33:37 UTC (rev 4909)
+++ software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/js/lightbox.js 2009-06-26 13:47:52 UTC (rev 4910)
@@ -57,7 +57,6 @@
/*-----------------------------------------------------------------------------------------------*/
-Event.observe(window, 'load', initialize, false);
Event.observe(window, 'load', getBrowserInfo, false);
Event.observe(window, 'unload', Event.unloadCache, false);
@@ -70,10 +69,11 @@
initialize: function(ctrl) {
this.content = ctrl.rel;
+ this.elementId = ctrl.id;
Event.observe(ctrl, 'click', this.activate.bindAsEventListener(this), false);
ctrl.onclick = function(){return false;};
},
-
+
// Turn everything on - mainly the IE fixes
activate: function(){
if (browser == 'Internet Explorer'){
@@ -84,18 +84,18 @@
}
this.displayLightbox("block");
},
-
+
// Ie requires height to 100% and overflow hidden or else you can scroll down past the lightbox
prepareIE: function(height, overflow){
bod = document.getElementsByTagName('body')[0];
bod.style.height = height;
bod.style.overflow = overflow;
-
+
htm = document.getElementsByTagName('html')[0];
htm.style.height = height;
- htm.style.overflow = overflow;
+ htm.style.overflow = overflow;
},
-
+
// In IE, select elements hover on top of the lightbox
hideSelects: function(visibility){
selects = document.getElementsByTagName('select');
@@ -103,40 +103,45 @@
selects[i].style.visibility = visibility;
}
},
-
+
// Taken from lightbox implementation found at http://www.huddletogether.com/projects/lightbox/
getScroll: function(){
if (self.pageYOffset) {
this.yPos = self.pageYOffset;
} else if (document.documentElement && document.documentElement.scrollTop){
- this.yPos = document.documentElement.scrollTop;
+ this.yPos = document.documentElement.scrollTop;
} else if (document.body) {
this.yPos = document.body.scrollTop;
}
},
-
+
setScroll: function(x, y){
- window.scrollTo(x, y);
+ window.scrollTo(x, y);
},
-
+
displayLightbox: function(display){
$('overlay').style.display = display;
parent.top.document.getElementById('overlay').style.display = display;
$(this.content).style.display = display;
- if(display != 'none') this.actions();
+ if (display != 'none')
+ {
+ $(this.content).onfocus(this.elementId);
+ }
+ if(display != 'none') this.actions();
},
-
+
// Search through new links within the lightbox, and attach click event
actions: function(){
- lbActions = document.getElementsByClassName('lbAction');
+ lbActions = document.getElementsByTagName('a');
+ for(i = 0; i < lbActions.length; i++)
+ {
+ if (lbActions[i].name == 'lbOff')
+ {
+ Event.observe(lbActions[i], 'click', this[lbActions[i].rel].bindAsEventListener(this), false);
+ }
+ }
+ },
- for(i = 0; i < lbActions.length; i++) {
- Event.observe(lbActions[i], 'click', this[lbActions[i].rel].bindAsEventListener(this), false);
- lbActions[i].onclick = function(){return false;};
- }
-
- },
-
// Example of creating your own functionality once lightbox is initiated
deactivate: function(){
if (browser == "Internet Explorer"){
@@ -144,7 +149,7 @@
this.prepareIE("auto", "auto");
this.hideSelects("visible");
}
-
+
this.displayLightbox("none");
}
}
@@ -152,7 +157,7 @@
/*-----------------------------------------------------------------------------------------------*/
// Onload, make all links that need to trigger a lightbox active
-function initialize(){
+function initializeLightbox(){
addLightboxMarkup();
lbox = document.getElementsByTagName('a');
for(i = 0; i < lbox.length; i++)
@@ -175,7 +180,7 @@
overlay.id = 'overlay';
bod.appendChild(overlay);
-
+
bodParent = window.top.document.getElementsByTagName('body')[0];
overlay = window.top.document.createElement('div');
overlay.id = 'overlay';
Added: 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 (rev 0)
+++ software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/xsl/gadgets.xsl 2009-06-26 13:47:52 UTC (rev 4910)
@@ -0,0 +1,312 @@
+<?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="plugin_gadget_common.xsl"/>
+
+<xsl:template match="/">
+<html>
+ <head>
+ <link href="/data/web_interface/user_01/css/gadgets.css" rel="stylesheet" type="text/css"/>
+ <!-- CSS HACKS FOR BROWSERS -->
+ <xsl:choose>
+ <!-- IE -->
+ <xsl:when test="system-property('xsl:vendor') = 'Microsoft'">
+ <!-- IE <= 7 -->
+ <xsl:comment><![CDATA[[if lte IE 7]>
+ <link href="/data/web_interface/user_01/css/popup-ie6.css" rel="stylesheet" type="text/css"/>
+ <![endif]]]></xsl:comment>
+ <!-- IE >= 8 -->
+ <xsl:comment><![CDATA[[if gte IE 8]>
+ <link href="/data/web_interface/user_01/css/popup.css" rel="stylesheet" type="text/css"/>
+ <![endif]]]></xsl:comment>
+ </xsl:when>
+ <!-- FIREFOX ETC... -->
+ <xsl:otherwise>
+ <link href="/data/web_interface/user_01/css/popup.css" rel="stylesheet" type="text/css"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ <script src="/data/web_interface/user_01/js/hashtable.js" type="text/javascript"/>
+ <script src="/data/web_interface/user_01/js/common.js" type="text/javascript"/>
+ <script type="text/javascript" src="/data/web_interface/user_01/js/prototype.js"></script>
+ <script type="text/javascript" src="/data/web_interface/user_01/js/lightbox.js"></script>
+ <script language="javascript">
+ <![CDATA[
+ var knowedGadgetsFilter = "all";
+ var knowedGadgetsDict = null;
+ var lastUuidAction = "0";
+
+ function initialization()
+ {
+ fillGadgetRows("all");
+ }
+
+ function fillGadgetRows(filter)
+ {
+ var gadgets = requestData("/robot_content_interactions/get_gadgets_data",{'filter' : filter});
+ if (gadgets != null)
+ {
+ if (!gadgets.containsKey("data0"))
+ {
+ return;
+ }
+ else
+ {
+ if (gadgets.get("data0").get("count") == '0')
+ {
+ return;
+ }
+ }
+ }
+ else
+ {
+ return;
+ }
+ knowedGadgetsDict = gadgets;
+ var htmlContent = "";
+ var gadgetsCount = parseInt(gadgets.get("data0").get("count"));
+ for (i = 0; i < gadgetsCount; i++)
+ {
+ uuid = gadgets.get("data0").get("gadget_" + i + "_uuid");
+ name = gadgets.get("data0").get("gadget_" + i + "_name");
+ icon = gadgets.get("data0").get("gadget_" + i + "_icon");
+ ondemand = gadgets.get("data0").get("gadget_" + i + "_ondemand");
+ htmlContent += addGadgetRow(uuid, name, icon, ondemand);
+ }
+ 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 + "_uuid");
+ setpng(document.getElementById(iconId));
+ }
+ // Show correct filter radio button
+ if (filter == 'all')
+ {
+ document.getElementById("gadgetsFilterRadioAll").className = "gadgetsFilterRadio gadgetsFilterRadioActivate";
+ document.getElementById("gadgetsFilterRadioOnDemand").className = "gadgetsFilterRadio gadgetsFilterRadioEnable";
+ document.getElementById("gadgetsFilterRadioAlerts").className = "gadgetsFilterRadio gadgetsFilterRadioEnable";
+ }
+ else if (filter == 'on_demand')
+ {
+ document.getElementById("gadgetsFilterRadioAll").className = "gadgetsFilterRadio gadgetsFilterRadioEnable";
+ document.getElementById("gadgetsFilterRadioOnDemand").className = "gadgetsFilterRadio gadgetsFilterRadioActivate";
+ document.getElementById("gadgetsFilterRadioAlerts").className = "gadgetsFilterRadio gadgetsFilterRadioEnable";
+ }
+ else
+ {
+ document.getElementById("gadgetsFilterRadioAll").className = "gadgetsFilterRadio gadgetsFilterRadioEnable";
+ document.getElementById("gadgetsFilterRadioOnDemand").className = "gadgetsFilterRadio gadgetsFilterRadioEnable";
+ document.getElementById("gadgetsFilterRadioAlerts").className = "gadgetsFilterRadio gadgetsFilterRadioActivate";
+ }
+ knowedGadgetsFilter = filter;
+ initializeLightbox();
+ }
+
+ function addGadgetRow(uuid, name, icon, ondemand)
+ {
+ var htmlContent = "";
+ var iconId = "gadgetsRowIcon_" + uuid;
+ 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="gadgetsRowName">' + name + '</span>';
+ htmlContent += '<div class="gadgetsVSpacer" style="width:10px;"></div>';
+ if (ondemand == 'true')
+ {
+ htmlContent += '<a class="gadgetsBtnTitle gadgetsBtnStartEnable" id="startId_' + uuid + '" onclick="" href="#" name="lbOn" rel="popupNotYetImplemented">Start</a>';
+ }
+ else
+ {
+ htmlContent += '<a class="gadgetsBtnTitle gadgetsBtnStartDisable" id="startId_' + uuid + '" onclick="return false;" href="#">Start</a>';
+ }
+ htmlContent += '<div class="gadgetsVSpacer" style="width:8px;"></div>';
+ if (ondemand == 'true')
+ {
+ htmlContent += '<a class="gadgetsBtnTitle gadgetsBtnStopEnable" id="stopId_' + uuid + '" onclick="" href="#" name="lbOn" rel="popupNotYetImplemented">Stop</a>';
+ }
+ else
+ {
+ htmlContent += '<a class="gadgetsBtnTitle gadgetsBtnStopDisable" id="stopId_' + uuid + '" onclick="javascript:return false;" href="#">Stop</a>';
+ }
+ htmlContent += '<div class="gadgetsVSpacer" style="width:18px;"></div>';
+ htmlContent += '<a class="gadgetsBtnNoTitle gadgetsBtnHelp" id="helpId_' + uuid + '" onclick="" href="#" name="lbOn" rel="popupNotYetImplemented"></a>';
+ htmlContent += '<div class="gadgetsVSpacer" style="width:8px;"></div>';
+ htmlContent += '<a class="gadgetsBtnNoTitle gadgetsBtnConfigure" id="configureId_' + uuid + '" onclick="" href="#" name="lbOn" rel="popupNotYetImplemented"></a>';
+ htmlContent += '<div class="gadgetsVSpacer" style="width:8px;"></div>';
+ htmlContent += '<a class="gadgetsBtnNoTitle gadgetsBtnDuplicate" id="duplicateId_' + uuid + '" onclick="javascript:setUuidAction(\''+uuid+'\');duplicateUgc();return false;" href="#"></a>';
+ htmlContent += '<div class="gadgetsVSpacer" style="width:18px;"></div>';
+ htmlContent += '<a class="gadgetsBtnTitle gadgetsBtnDelete" id="deleteId_' + uuid + '" onclick="" href="#" name="lbOn" rel="popupConfirmDelete">Delete</a>';
+ htmlContent += '<div class="frame01Sep2"></div>';
+ return htmlContent;
+ }
+
+ function disableAllGadgetButtons(uuid)
+ {
+ disableStartStopGadgetButtons(uuid);
+ disableEditGadgetButtons(uuid);
+ }
+
+ function enableAllGadgetButtons(uuid)
+ {
+ enableStartStopGadgetButtons(uuid);
+ enableEditGadgetButtons(uuid);
+ }
+
+ function disableStartStopGadgetButtons(uuid)
+ {
+ document.getElementById("startId_" + uuid).className = "gadgetsBtnTitle gadgetsBtnStartDisable";
+ document.getElementById("stopId_" + uuid).className = "gadgetsBtnTitle gadgetsBtnStopDisable";
+ }
+
+ function enableStartStopGadgetButtons(uuid)
+ {
+ document.getElementById("startId_" + uuid).className = "gadgetsBtnTitle gadgetsBtnStartEnable";
+ document.getElementById("stopId_" + uuid).className = "gadgetsBtnTitle gadgetsBtnStopActivate";
+ }
+
+ function disableEditGadgetButtons(uuid)
+ {
+ document.getElementById("helpId_" + uuid).className = "gadgetsBtnNoTitle gadgetsBtnHelpDisable";
+ document.getElementById("configureId_" + uuid).className = "gadgetsBtnNoTitle gadgetsBtnConfigureDisable";
+ document.getElementById("duplicateId_" + uuid).className = "gadgetsBtnNoTitle gadgetsBtnDuplicateDisable";
+ document.getElementById("deleteId_" + uuid).className = "gadgetsBtnTitle gadgetsBtnDeleteDisable";
+ }
+
+ function enableEditGadgetButtons(uuid)
+ {
+ document.getElementById("helpId_" + uuid).className = "gadgetsBtnNoTitle gadgetsBtnHelp";
+ document.getElementById("configureId_" + uuid).className = "gadgetsBtnNoTitle gadgetsBtnConfigure";
+ document.getElementById("duplicateId_" + uuid).className = "gadgetsBtnNoTitle gadgetsBtnDuplicate";
+ document.getElementById("deleteId_" + uuid).className = "gadgetsBtnTitle gadgetsBtnDelete";
+ }
+
+ function startGadget(uuid)
+ {
+ }
+
+ function stopGadget(uuid)
+ {
+ }
+
+ function setUuidAction(uuid)
+ {
+ var idx = uuid.indexOf("_", 0) + 1;
+ lastUuidAction = uuid.slice(idx, uuid.length);
+ }
+
+ function duplicateUgc()
+ {
+ if (lastUuidAction == "0")
+ {
+ return;
+ }
+ var language = document.getElementById("language").value;
+ var args = {
+ "uuid" : lastUuidAction,
+ "language" : language
+ }
+ getRequest("/wi_devel/ugc_duplicate", args);
+ lastUuidAction = "0";
+ fillGadgetRows(knowedGadgetsFilter);
+ }
+
+ function deleteUgc()
+ {
+ if (lastUuidAction == "0")
+ {
+ return;
+ }
+ var args = {
+ "uuid" : lastUuidAction
+ }
+ getRequest("/ugc_server/remove_ugc", args);
+ lastUuidAction = "0";
+ fillGadgetRows(knowedGadgetsFilter);
+ }
+ ]]>
+ </script>
+ </head>
+
+ <body bgcolor="#EFEFEF" onLoad="initialization();">
+ <!-- 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="root/language"/>
+ </xsl:attribute>
+ </xsl:element>
+ <!-- MAIN DIV FRAME -->
+ <div style="position:absolute;
+ left:0px;
+ 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');return false;</xsl:attribute>
+ <xsl:attribute name="href">#</xsl:attribute>All
+ </xsl:element>
+ <div class="gadgetsVSpacer" style="width:5px;height:40px;"></div>
+ <xsl:element name="a">
+ <xsl:attribute name="class">gadgetsFilterRadio gadgetsFilterRadioEnable</xsl:attribute>
+ <xsl:attribute name="id">gadgetsFilterRadioOnDemand</xsl:attribute>
+ <xsl:attribute name="onclick">javascript:fillGadgetRows('on_demand');return false;</xsl:attribute>
+ <xsl:attribute name="href">#</xsl:attribute>On demand
+ </xsl:element>
+ <div class="gadgetsVSpacer" style="width:5px;height:40px;"></div>
+ <xsl:element name="a">
+ <xsl:attribute name="class">gadgetsFilterRadio gadgetsFilterRadioEnable</xsl:attribute>
+ <xsl:attribute name="id">gadgetsFilterRadioAlerts</xsl:attribute>
+ <xsl:attribute name="onclick">javascript:fillGadgetRows('alerts');return false;</xsl:attribute>
+ <xsl:attribute name="href">#</xsl:attribute>Alerts
+ </xsl:element>
+ </div>
+ <div class="frame01Middle" style="height:465px;">
+ <div class="gadgetsListScrollbox" id="gadgetsListScrollbox"></div>
+ </div>
+ <div class="frame01Bottom"></div>
+ </div>
+ <!-- POPUP CONFIRM DELETE -->
+ <div id="popupConfirmDelete" class="popup01Box" onfocus="setUuidAction(arguments[0]);">
+ <div class="popupFrame01Top"></div>
+ <div class="popupFrame01Middle">
+ <span class="popup01Message">This action will delete this gadget. Continue ?</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:deleteUgc();return false;</xsl:attribute>
+ <xsl:attribute name="href">#</xsl:attribute>Yes
+ </xsl:element>
+ <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>No
+ </xsl:element>
+ </div>
+ <div class="popupFrame01Bottom"></div>
+ </div>
+ <!-- POPUP NOT YET IMPLEMENTED -->
+ <div id="popupNotYetImplemented" class="popup01Box" onfocus="return false;">
+ <div class="popupFrame01Top"></div>
+ <div class="popupFrame01Middle">
+ <span class="popup01Message" style="width:409px;">Not yet implemented</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>Close
+ </xsl:element>
+ </div>
+ <div class="popupFrame01Bottom"></div>
+ </div>
+ </body>
+</html>
+</xsl:template>
+</xsl:stylesheet>
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-06-26 12:33:37 UTC (rev 4909)
+++ software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/xsl/index.xsl 2009-06-26 13:47:52 UTC (rev 4910)
@@ -32,7 +32,7 @@
else if (menu == "gadgets")
{
menuCenter1.className = "menuCenterActivate";
- frameUrl = "/wi_user_01/gadgets?";
+ frameUrl = "/wi_user_01/gadgets?uuid=NULL";
}
else if (menu == "attitunes")
{
Modified: software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/xsl/livewithtux.xsl
===================================================================
--- software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/xsl/livewithtux.xsl 2009-06-26 12:33:37 UTC (rev 4909)
+++ software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/xsl/livewithtux.xsl 2009-06-26 13:47:52 UTC (rev 4910)
@@ -188,6 +188,7 @@
function initialization()
{
setpng(document.getElementById('thumbnailBarTooltip'));
+ updateCurrentAlertGadget("0", "0", "0");
updateStates();
}
Modified: software_suite_v3/smart-core/smart-server/trunk/resources/04_robot_content_interactions/00_resourceRobotContentInteractions.py
===================================================================
--- software_suite_v3/smart-core/smart-server/trunk/resources/04_robot_content_interactions/00_resourceRobotContentInteractions.py 2009-06-26 12:33:37 UTC (rev 4909)
+++ software_suite_v3/smart-core/smart-server/trunk/resources/04_robot_content_interactions/00_resourceRobotContentInteractions.py 2009-06-26 13:47:52 UTC (rev 4910)
@@ -461,6 +461,55 @@
fillByIndex(3, 7)
self.__onDemandDictForThumbnailBarMutex.release()
+ def getGadgetsDictOnDemand(self):
+ """
+ """
+ result = {}
+ count = 0
+ for ugcObj in resourceUgcServer.getUgcContainer().getUgcs():
+ if ugcObj.getDescription().onDemandIsActivated() == 'true':
+ result["gadget_%d_name" % count] = ugcObj.getDescription().getName()
+ result["gadget_%d_uuid" % count] = ugcObj.getDescription().getUuid()
+ result["gadget_%d_icon" % count] = "/%s/icon.png" % ugcObj.getParentGadget().getDescription().getUuid()
+ result["gadget_%d_ondemand" % count] = ugcObj.getParentGadget().getDescription().onDemandIsAble()
+ count += 1
+ result['count'] = count
+ return result
+
+ def getGadgetsDictAll(self):
+ """
+ """
+ result = {}
+ count = 0
+ for ugcObj in resourceUgcServer.getUgcContainer().getUgcs():
+ result["gadget_%d_name" % count] = ugcObj.getDescription().getName()
+ result["gadget_%d_uuid" % count] = ugcObj.getDescription().getUuid()
+ result["gadget_%d_icon" % count] = "/%s/icon.png" % ugcObj.getParentGadget().getDescription().getUuid()
+ result["gadget_%d_ondemand" % count] = ugcObj.getParentGadget().getDescription().onDemandIsAble()
+ count += 1
+ result['count'] = count
+ return result
+
+ def getGadgetsDictAlerts(self):
+ """
+ """
+ result = {}
+ count = 0
+ for ugcObj in resourceUgcServer.getUgcContainer().getUgcs():
+ taskActive = False
+ for task in ugcObj.getTasks():
+ if task.isActivated():
+ taskActive = True
+ break
+ if taskActive:
+ result["gadget_%d_name" % count] = ugcObj.getDescription().getName()
+ result["gadget_%d_uuid" % count] = ugcObj.getDescription().getUuid()
+ result["gadget_%d_icon" % count] = "/%s/icon.png" % ugcObj.getParentGadget().getDescription().getUuid()
+ result["gadget_%d_ondemand" % count] = ugcObj.getParentGadget().getDescription().onDemandIsAble()
+ count += 1
+ result['count'] = count
+ return result
+
def getOnDemandDictForThumbnailBar(self):
"""
"""
@@ -1259,3 +1308,35 @@
# Register the service into the resource
resourceRobotContentInteractions.addService(TDSServiceRobotContentInteractionsStartStopGadget)
+
+# ------------------------------------------------------------------------------
+# Declaration of the service "get_gadgets_data".
+# ------------------------------------------------------------------------------
+class TDSServiceRobotContentInteractionsGetGadgetsData(TDSService):
+
+ def configure(self):
+ self.parametersDict = {
+ 'filter' : 'string',
+ }
+ self.minimalUserLevel = TDS_CLIENT_LEVEL_ANONYMOUS
+ self.exclusiveExecution = True
+ self.name = "get_gadgets_data"
+ self.comment = "Get gadgets data."
+
+ def execute(self, id, parameters):
+ headersStruct = self.getDefaultHeadersStruct()
+ contentStruct = self.getDefaultContentStruct()
+ filter = parameters['filter']
+ if filter == 'on_demand':
+ contentStruct['root']['data'] = resourceRobotContentInteractions.getPguContextsManager().getGadgetsDictOnDemand()
+ elif filter == 'all':
+ contentStruct['root']['data'] = resourceRobotContentInteractions.getPguContextsManager().getGadgetsDictAll()
+ elif filter == 'alerts':
+ contentStruct['root']['data'] = resourceRobotContentInteractions.getPguContextsManager().getGadgetsDictAlerts()
+ else:
+ pass
+ contentStruct['root']['result'] = getStrError(E_TDREST_SUCCESS)
+ return headersStruct, contentStruct
+
+# Register the service into the resource
+resourceRobotContentInteractions.addService(TDSServiceRobotContentInteractionsGetGadgetsData)
Modified: software_suite_v3/smart-core/smart-server/trunk/resources/07_web_interfaces/01_resourceWIUser01.py
===================================================================
--- software_suite_v3/smart-core/smart-server/trunk/resources/07_web_interfaces/01_resourceWIUser01.py 2009-06-26 12:33:37 UTC (rev 4909)
+++ software_suite_v3/smart-core/smart-server/trunk/resources/07_web_interfaces/01_resourceWIUser01.py 2009-06-26 13:47:52 UTC (rev 4910)
@@ -146,6 +146,38 @@
resourceWIUser01.addService(TDSServiceWIUser01LiveWithTux)
# ------------------------------------------------------------------------------
+# Declaration of the service "gadgets".
+# ------------------------------------------------------------------------------
+class TDSServiceWIUser01Gadgets(TDSService):
+
+ def configure(self):
+ self.parametersDict = {
+ 'language' : 'string',
+ 'skin' : 'string',
+ }
+ self.minimalUserLevel = TDS_CLIENT_LEVEL_ANONYMOUS
+ self.exclusiveExecution = False
+ self.name = "gadgets"
+ self.comment = "Show the gadgets page."
+
+ def execute(self, id, parameters):
+ headersStruct = self.getDefaultHeadersStruct()
+ contentStruct = self.getDefaultContentStruct()
+ contentStruct['root']['result'] = getStrError(E_TDREST_SUCCESS)
+ language = parameters['language']
+ skin = ...
[truncated message content] |