diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 9348f1f23e..907c73d6d1 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,44 @@ +2007-01-05 Sancho Lerena + + Importing data from Azabel brach. This commit is a little + chaotic :-). Almost all code it's break apart, so no problems + should not be generated. New graphical console will be called + "Active console", as temporal name. + + + * pandora_graphical_console.sql: New SQL for active console. + + * pandora_graphical_console_data.sql: New SQL data for A.C. + + * images/op9.gif: New icon for operation menu. + + * operation/active_console/index.php: Main index for A.C. this + includes now a require function for config.php. + + * operation/active_console/imagenes/*: Lots of images for + A.C. Need to be ordered or something. + + * operation/active_console/scripts/*: Most of the Javascript code + for the A.C is here. + + * operation/active_console/lib/*: Main include PHP code for A.C + + * operation/active_console/styles/*: CSS Styles for A.C. + + * pandora_graphical_console.INSTALL: How to install A.C + + * include/styles/cb/: Unused, deleted. + + * include/styles/op.css: Changes need to activate new A.C option. + + * include/languages/language_en.php: New string for A.C + + * operation/menu.php: New menu option. + + * include/config.php: New version and set error reporting to 0. At + this time A.C reports many warnings and notices and dont work + properly, so keep this low at the moment. + 2007-01-04 Manuel Arostegui * pandora_console.spec: Now pandora console is installed diff --git a/pandora_console/images/op9.gif b/pandora_console/images/op9.gif new file mode 100644 index 0000000000..c5f984d7bd Binary files /dev/null and b/pandora_console/images/op9.gif differ diff --git a/pandora_console/include/config.php b/pandora_console/include/config.php index 1b508d0f04..c185a61c77 100644 --- a/pandora_console/include/config.php +++ b/pandora_console/include/config.php @@ -20,7 +20,7 @@ // This is the base config file //Pandora Version -$build_version="PC061215"; //PCyymmdd +$build_version="PC080105"; //PCyymmdd $pandora_version="v1.3 devel"; // Database configuration @@ -36,8 +36,8 @@ $config_fontpath = "../reporting/FreeSans.ttf"; // Change this to your font fold // error_reporting(0); // Display all errores, warnings and notices -error_reporting(E_ALL); - +// error_reporting(E_ALL); +error_reporting(0); // Read rest of config from DB if (! mysql_connect($dbhost,$dbuser,$dbpassword)){ //Non-persistent connection. If you want persistent conn change it to mysql_pconnect() diff --git a/pandora_console/include/languages/language_en.php b/pandora_console/include/languages/language_en.php index 95298f03ac..d9727b5443 100644 --- a/pandora_console/include/languages/language_en.php +++ b/pandora_console/include/languages/language_en.php @@ -657,6 +657,10 @@ $lang_label["no_monitors_g"]="This group doesn't have any monitor"; $lang_label["reporting"]="Reporting"; $lang_label["agent_general_reporting"]="Agent overview"; +// 5 de Enero 2007 +$lang_label["active_console"]="Active console"; + + global $lang_label; global $help_label; ?> \ No newline at end of file diff --git a/pandora_console/include/styles/cb/build_all.bat b/pandora_console/include/styles/cb/build_all.bat deleted file mode 100644 index f9d0cdf59b..0000000000 --- a/pandora_console/include/styles/cb/build_all.bat +++ /dev/null @@ -1,14 +0,0 @@ -@echo off - -echo - Begin X Library Batch Build - - -rem Create a list of all .js files in x/lib, that file will be used by x.xcp. - -del lib\x_files.txt -for %%f in (lib\*.js) do echo %%~nf >> lib\x_files.txt - -rem Run XC on all .xcp files in the current dirctory. - -for %%f in (*.xcp) do xc\xc %%~nf - -echo - End X Library Batch Build - diff --git a/pandora_console/include/styles/cb/docs/xc_reference.html b/pandora_console/include/styles/cb/docs/xc_reference.html deleted file mode 100644 index f009d609d7..0000000000 --- a/pandora_console/include/styles/cb/docs/xc_reference.html +++ /dev/null @@ -1,337 +0,0 @@ - - - - -XC: X Library Compiler - - - - - - - - - - -
- -
- - - -

X Library Compiler

- -

Summary

-
-

XC is a companion utility for X. XC scans your application files and creates a custom X library file (with optional compression) which contains only those X functions and objects used in your application. XC also allows you to create a library file containing only the X functions and objects you specify.

-
- -

Feedback

-
-

XC is still in its infancy and is very simple. The format for the project file is very simple. The symbol parser and compression are very simple. These may be (will be) improved but for now XC works well enough to test its utility. I am open to any comments/suggestions you may have.

-
- -

Looking Ahead

-
-

Now that I've had a chance to use XC I see lots of things I'd like to improve...

-

The project file format could be better.

-

I now have all documentation in xml files. This opens up many possibilities. The X Viewer is my first application.

-

I'm playing with the idea of conditional compilation.

-

Eventually I'd like to port XC to PHP.

-
- -

For XC Users

- -

XC Usage

-
-

XC is a Win32 command-line program (a VC++ project) written in C. It is invoked as follows: -

  xc prj_name
-

XC will open the file 'prj_name.xcp' in the current directory and create the output files, prj_name.js and prj_name.log, also in the current directory.

-
- -

XC Project File

-
-

Format

-
-

The project file must have a '.xcp' extension (XC Project). The xcp parser looks for three directives: options, libpath and appfiles. The general format is as follows.

-
-; comments are from ';' to end of line
-options -cmp -dep +log +dbg ; See option descriptions below.
-libpath ..\   ; X library files directory (requires trailing backslash).
-appfiles      ; Application file pathnames from next line to end of file.
-App file pathname 1
-App file pathname 2
-...
-App file pathname n
-
-
-

Options

-
-

Following the 'options' directive is a space-delimited list of zero or more of the following. Prefix with '-' for false and '+' (or no prefix) for true.

-

cmp true = Compression applied to output lib js file. Default = true. - Compression removes leading white space, new lines and blank lines. - Also removes "//" comments but does not remove multi-line comments "/* */".

-

lws true = Retain leading white space. Default = false.

-

nln true = Retain newline chars on non-blank lines. Default = false.

-

bln true = Retain blank lines. Default = false.

-

log true = Generate log file. Default = false.

-

lib true = Generate lib file. Default = true.

-

glb true = Include globals.js. Default = true.

-

dbg true = Debug info in log file. Sets options.log to true. Default = false.

-

dep true = Dependents included in output. Default = true. - When false it is useful for creating a lib file from a list of X symbols. - I use -dep to create x_core.js, x_event.js, etc. - The list of symbols is put in the xcp file (commented with ';') - and the only app file is the xcp file itself. - See x/x_core.xcp for an example.

-
-

Examples

-
-

The following project file builds a library that I use for two demos, floater bar and floater box.

-
-; XC Project: floater_xlib
-
-options
-libpath ..\
-appfiles
-..\..\examples\floater.php
-..\..\examples\floater_bar.php
-
-

-

Before I had all X functions and objects in separate files I had them categorized into x_core.js, x_event.js, etc. For backwards-compatibility I still provide those files, but now I generate those files with XC. In the /x directory you will find these files, along with the .xcp file for each. In that directory is also a batch file, build_all.bat, which will run XC on all .xcp files in that directory.

-

The following is one of the .xcp files from the /x directory. -

-; XC Project: x_anim
-
-options -dep -glb
-
-; If you don't want the library file to be
-; compressed then add -cmp to the above options.
-
-libpath lib\
-
-appfiles
-
-x_anim.xcp
-
-; This project file is the only app file fed to XC.
-; The following X symbols will be included in the
-; library file. They are commented-out so XC will
-; not see them as more app files.
-
-; xEllipse
-; xParaEq
-; xSlideCornerTo
-
-
-
- -

For X Contributors

- -

X Library Files

-
-

By convention all X functions, objects and global variables begin with 'x' and are camel-cased. All X functions and objects should be put in separate files with the following standard header, where 'xSymbol' is the name of the function or object. The name of the file should be xsymbol.js (use all lower-case for the filename). If you are the author you should use your own copyright info instead of mine. I do not require copyright assignment for code contributions to X.

-
-// xSymbol, Copyright 2001-2005 Michael Foster (Cross-Browser.com)
-// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL
-
-

Since XC's compression option removes newlines, you cannot use implicit statement termination. For example in the following the ';' is required because this is an assignment expression...

-
-xObject.prototype.method = function()
-{
-  // statements...
-}; // <- this semicolon is required to support compression
-
-

Another example where a semicolon is required in a place where most of us don't usually use a semicolon...

-
-function myObjectPrototype(id)
-{
-  var img = document.getElementById(id);
-  
-  img.onmouseover = function()
-  {
-    this.src = urlOver;
-  }; // <- this semicolon is required to support compression
-  
-  function foo()
-  {
-  }
-}
-
-
- -

X Documentation Files

-
-

For every xsymbol.js file there should be an xsymbol.xml file which contains documentation and author copyright statements for xSymbol. All doc files are now in xml. The xml structure I have for now is as follows.

-
-<?xml version="1.0" encoding="ISO-8859-1"?>
-
-<xlib_symbol id=''>
-
-<copyright>Copyright 2001-2005 Michael Foster (Cross-Browser.com)</copyright>
-
-<license>Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL</license>
-
-<groups>
-  <grp></grp>
-</groups>
-
-<type>Function</type>
-
-<description><![CDATA[]]></description>
-
-<syntax></syntax>
-
-<parameters>
-  <par><name></name><note><![CDATA[]]></note></par>
-</parameters>
-
-<properties>
-  <prop><name></name><note><![CDATA[]]></note></prop>
-</properties>
-
-<methods>
-  <meth><name></name><note><![CDATA[]]></note></meth>
-</methods>
-
-<return><![CDATA[]]></return>
-
-<dependencies>
-  <dep></dep>
-</dependencies>
-
-<demos>
-  <demo><url>http://cross-browser.com/toys/</url><note><![CDATA[Index of all X demos.]]></note></demo>
-</demos>
-
-<tests>
-  <test><date></date><author>mf</author><url></url><note><![CDATA[]]></note></test>
-</tests>
-
-<comments>
-  <comment><date></date><author>mf</author><note><![CDATA[]]></note></comment>
-</comments>
-
-<revisions>
-  <rev><num></num><date></date><author>mf</author><note><![CDATA[]]></note></rev>
-</revisions>
-
-</xlib_symbol>
-
-
- -

For XC Developers

-
-

If you would like to write XC in a different language or port it to a different platform please adhere to the general specifications in this file so all XC implementations will be compatible. My XC Win32 C code is available under the terms of the GNU LGPL.

-

I'll try to come up with a more formal specification. For now I just have a few odd bits of info.

-

A high-level look at XC's flow of execution:

-
-  Read project file:
-    Read options, libpath and appfiles from project file.
-
-  Open log file.
-
-  Read current X version from xversion.js.
-
-  Create symbol table:
-    get_valid_syms
-      All filenames, minus extensions, in the libpath directory
-      which match "x*.js" constitute the set of valid X symbols.
-    get_lib_file_deps:
-      Update symbol table with dependency info from the X lib file symbols[sym_idx].
-      Excludes symbols found in "//" comments.
-    
-  Get symbols from app files.
-    Determine which X lib files get included in the output library
-    by searching application files for X symbols.
-
-  Create output lib.
-    For every symbol which has 'symbols[sym_idx].inc == true'
-    include the corresponding X lib file in the output lib.
-    Compression removes all "//" comments but not "/**/" comments.
-
-  Report results.
-    Display filenames created and finalize log file.
-
-
- - - -
- - - -
- -
-
-

License

-
-

By your use of X and/or CBE and/or any Javascript from this site you consent to the LGPL License - please read it.

-
-

Developer Support

-
-

Get your questions answered faster by posting at one of the following forums. I browse these forums every day.

-

SitePoint.com

-

HFTOnline.com

-

CodingForums.com

-
-

Search

-
-
-

-

-

Cross-Browser.com

-

World Wide Web

-

-
- - - - - - - -
-
-
- -
-
- - - diff --git a/pandora_console/include/styles/cb/lib/_template.xml b/pandora_console/include/styles/cb/lib/_template.xml deleted file mode 100644 index 1d83778164..0000000000 --- a/pandora_console/include/styles/cb/lib/_template.xml +++ /dev/null @@ -1,53 +0,0 @@ - - - - -Copyright 2001-2005 Michael Foster (Cross-Browser.com) - -Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - - - - - -Function - - - - - - - - - - - - - - - - - - - - - - - - - http://cross-browser.com/toys/ - - - - mf - - - - mf - - - - mf - - - diff --git a/pandora_console/include/styles/cb/lib/globals.js b/pandora_console/include/styles/cb/lib/globals.js deleted file mode 100644 index b7bba52149..0000000000 --- a/pandora_console/include/styles/cb/lib/globals.js +++ /dev/null @@ -1,19 +0,0 @@ -// globals, Copyright 2001-2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -var xOp7Up,xOp6Dn,xIE4Up,xIE4,xIE5,xNN4,xUA=navigator.userAgent.toLowerCase(); -if(window.opera){ - var i=xUA.indexOf('opera'); - if(i!=-1){ - var v=parseInt(xUA.charAt(i+6)); - xOp7Up=v>=7; - xOp6Dn=v<7; - } -} -else if(navigator.vendor!='KDE' && document.all && xUA.indexOf('msie')!=-1){ - xIE4Up=parseFloat(navigator.appVersion)>=4; - xIE4=xUA.indexOf('msie 4')!=-1; - xIE5=xUA.indexOf('msie 5')!=-1; -} -else if(document.layers){xNN4=true;} -xMac=xUA.indexOf('mac')!=-1; diff --git a/pandora_console/include/styles/cb/lib/x_files.txt b/pandora_console/include/styles/cb/lib/x_files.txt deleted file mode 100644 index 1a6d0f45dc..0000000000 --- a/pandora_console/include/styles/cb/lib/x_files.txt +++ /dev/null @@ -1,97 +0,0 @@ -globals -xaddeventlistener -xappendchild -xbackground -xbar -xcapitalize -xcardinalposition -xclientheight -xclientwidth -xclip -xcollapsible -xcolor -xcreateelement -xdef -xdeg -xdeletecookie -xdisabledrag -xdisplay -xellipse -xenabledrag -xevaltextarea -xevent -xfenster -xfirstchild -xgetcomputedstyle -xgetcookie -xgetelementbyid -xgetelementsbyattribute -xgetelementsbyclassname -xgetelementsbytagname -xgetelepropsarray -xgetelepropsstring -xgeturlarguments -xhaspoint -xheight -xhex -xhide -ximgasyncwait -ximgrollsetup -xinclude -xinnerhtml -xintersection -xleft -xlinearscale -xloadscript -xmenu1 -xmenu1a -xmenu1b -xmenu5 -xmoveto -xname -xnextsib -xnum -xoffsetleft -xoffsettop -xpad -xpagex -xpagey -xparaeq -xparent -xparentchain -xpopup -xpreventdefault -xprevsib -xrad -xremoveeventlistener -xresizeto -xscrollleft -xscrolltop -xselect -xsetcookie -xsetietitle -xshow -xslidecornerto -xslideto -xstoppropagation -xstr -xtablecellvisibility -xtablecoldisplay -xtablecursor -xtableiterate -xtablerowdisplay -xtabpanelgroup -xtimer -xtooltipgroup -xtop -xtristateimage -xversion -xvisibility -xwalkeletree -xwalktree -xwidth -xwinclass -xwindow -xwinopen -xwinscrollto -xzindex diff --git a/pandora_console/include/styles/cb/lib/xaddeventlistener.js b/pandora_console/include/styles/cb/lib/xaddeventlistener.js deleted file mode 100644 index 82edc476f8..0000000000 --- a/pandora_console/include/styles/cb/lib/xaddeventlistener.js +++ /dev/null @@ -1,29 +0,0 @@ -// xAddEventListener, Copyright 2001-2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xAddEventListener(e,eT,eL,cap) -{ - if(!(e=xGetElementById(e))) return; - eT=eT.toLowerCase(); - if((!xIE4Up && !xOp7Up) && e==window) { - if(eT=='resize') { window.xPCW=xClientWidth(); window.xPCH=xClientHeight(); window.xREL=eL; xResizeEvent(); return; } - if(eT=='scroll') { window.xPSL=xScrollLeft(); window.xPST=xScrollTop(); window.xSEL=eL; xScrollEvent(); return; } - } - var eh='e.on'+eT+'=eL'; - if(e.addEventListener) e.addEventListener(eT,eL,cap); - else if(e.attachEvent) e.attachEvent('on'+eT,eL); - else eval(eh); -} -// called only from the above -function xResizeEvent() -{ - if (window.xREL) setTimeout('xResizeEvent()', 250); - var cw = xClientWidth(), ch = xClientHeight(); - if (window.xPCW != cw || window.xPCH != ch) { window.xPCW = cw; window.xPCH = ch; if (window.xREL) window.xREL(); } -} -function xScrollEvent() -{ - if (window.xSEL) setTimeout('xScrollEvent()', 250); - var sl = xScrollLeft(), st = xScrollTop(); - if (window.xPSL != sl || window.xPST != st) { window.xPSL = sl; window.xPST = st; if (window.xSEL) window.xSEL(); } -} diff --git a/pandora_console/include/styles/cb/lib/xaddeventlistener.xml b/pandora_console/include/styles/cb/lib/xaddeventlistener.xml deleted file mode 100644 index 08fdb0fd3f..0000000000 --- a/pandora_console/include/styles/cb/lib/xaddeventlistener.xml +++ /dev/null @@ -1,82 +0,0 @@ - - - - -Copyright 2001-2005 Michael Foster (Cross-Browser.com) -Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - - Event - DOM - -Function - - - -xAddEventListener(ele, sEventType, fnEventListener[, bCapture]) - - - - ele - - - - sEventType - - - - fnEventListener - - - - bCapture - - - - - - xIE4Up - xOp7Up - xGetElementById - xClientWidth - xClientHeight - xScrollLeft - xScrollTop - - - - - http://cross-browser.com/x/examples/drag2.php - - - - - - - 13Mar05 - mf - - - - - - - 3 - 25Apr05 - mf - - - - 2 - 14Mar05 - mf - - - - 1 - 31Mar04 - mf - - - - - diff --git a/pandora_console/include/styles/cb/lib/xappendchild.js b/pandora_console/include/styles/cb/lib/xappendchild.js deleted file mode 100644 index 83bf185f6f..0000000000 --- a/pandora_console/include/styles/cb/lib/xappendchild.js +++ /dev/null @@ -1,8 +0,0 @@ -// xAppendChild, Copyright 2001-2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xAppendChild(oParent, oChild) -{ - if (oParent.appendChild) return oParent.appendChild(oChild); - else return null; -} diff --git a/pandora_console/include/styles/cb/lib/xappendchild.xml b/pandora_console/include/styles/cb/lib/xappendchild.xml deleted file mode 100644 index c6ed9e1210..0000000000 --- a/pandora_console/include/styles/cb/lib/xappendchild.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - - -Copyright 2001-2005 Michael Foster (Cross-Browser.com) -Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - - DOM - -Function - - - -xAppendChild(oParent, oChild) - - - - oParent - - - - oChild - - - - - - - - - - - http://cross-browser.com/toys/ - - - - - - - 1 - 11Mar05 - mf - - - - - diff --git a/pandora_console/include/styles/cb/lib/xbackground.js b/pandora_console/include/styles/cb/lib/xbackground.js deleted file mode 100644 index 97c2172382..0000000000 --- a/pandora_console/include/styles/cb/lib/xbackground.js +++ /dev/null @@ -1,18 +0,0 @@ -// xBackground, Copyright 2001-2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xBackground(e,c,i) -{ - if(!(e=xGetElementById(e))) return ''; - var bg=''; - if(e.style) { - if(xStr(c)) { - if(!xOp6Dn) e.style.backgroundColor=c; - else e.style.background=c; - } - if(xStr(i)) e.style.backgroundImage=(i!='')? 'url('+i+')' : null; - if(!xOp6Dn) bg=e.style.backgroundColor; - else bg=e.style.background; - } - return bg; -} diff --git a/pandora_console/include/styles/cb/lib/xbackground.xml b/pandora_console/include/styles/cb/lib/xbackground.xml deleted file mode 100644 index e901506bdf..0000000000 --- a/pandora_console/include/styles/cb/lib/xbackground.xml +++ /dev/null @@ -1,67 +0,0 @@ - - - - -Copyright 2001-2005 Michael Foster (Cross-Browser.com) -Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - - Presentation - -Function - - - -xBackground(ele[, sColor[, sImage]]) - - - - ele - - - - sColor - - - - sImage - - - - -'style.backgroundColor', a string - - - xGetElementById - xStr - xOp6Dn - - - - - http://cross-browser.com/toys/ - - - - - - - 3 - 25Apr05 - mf - - - - 2 - 15Mar05 - mf - - - - 1 - 31Mar04 - mf - - - - - diff --git a/pandora_console/include/styles/cb/lib/xbar.js b/pandora_console/include/styles/cb/lib/xbar.js deleted file mode 100644 index 4dc27df9d9..0000000000 --- a/pandora_console/include/styles/cb/lib/xbar.js +++ /dev/null @@ -1,94 +0,0 @@ -// xBar, Copyright 2003,2004,2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -// Bar-Graph Object - -function xBar(dir, // direction, 'ltr', 'rtl', 'ttb', or 'btt' - conStyle, barStyle) // container and bar style class names -{ - //// Public Properties - - this.value = 0; // current value, read-only - - //// Public Methods - - // Update current value - this.update = function(v) - { - if (v < 0) v = 0; - else if (v > this.inMax) v = this.inMax; - this.con.title = this.bar.title = this.value = v; - switch(this.dir) { - case 'ltr': // left to right - v = this.scale(v, this.w); - xLeft(this.bar, v - this.w); - break; - case 'rtl': // right to left - v = this.scale(v, this.w); - xLeft(this.bar, this.w - v); - break; - case 'btt': // bottom to top - v = this.scale(v, this.h); - xTop(this.bar, this.h - v); - break; - case 'ttb': // top to bottom - v = this.scale(v, this.h); - xTop(this.bar, v - this.h); - break; - } - }; - - // Change position and/or size - this.paint = function(x, y, // container position - w, h) // container size - { - if (xNum(x)) this.x = x; - if (xNum(y)) this.y = y; - if (xNum(w)) this.w = w; - if (xNum(h)) this.h = h; - xResizeTo(this.con, this.w, this.h); - xMoveTo(this.con, this.x, this.y); - xResizeTo(this.bar, this.w, this.h); - xMoveTo(this.bar, 0, 0); - }; - - // Change scale and/or start value - this.reset = function(max, start) // non-scaled values - { - if (xNum(max)) this.inMax = max; - if (xNum(start)) this.start = start; - this.update(this.start); - }; - - //// Private Methods - - this.scale = function(v, outMax) - { - return Math.round(xLinearScale(v, 0, this.inMax, 0, outMax)); - }; - - //// Private Properties - - this.dir = dir; - this.x = 0; - this.y = 0; - this.w = 100; - this.h = 100; - this.inMax = 100; - this.start = 0; - this.conStyle = conStyle; - this.barStyle = barStyle; - - //// Constructor - - // Create container - this.con = document.createElement('DIV'); - this.con.className = this.conStyle; - // Create bar - this.bar = document.createElement('DIV'); - this.bar.className = this.barStyle; - // Insert in object tree - this.con.appendChild(this.bar); - document.body.appendChild(this.con); - -} // end xBar diff --git a/pandora_console/include/styles/cb/lib/xbar.xml b/pandora_console/include/styles/cb/lib/xbar.xml deleted file mode 100644 index c0a7093999..0000000000 --- a/pandora_console/include/styles/cb/lib/xbar.xml +++ /dev/null @@ -1,57 +0,0 @@ - - - - -Copyright 2001-2005 Michael Foster (Cross-Browser.com) -Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - - Object - Animation - -Object - - - -xBar(sDir, sConStyle, sBarStyle) - - - - sDir - - - - sConStyle - - - - sBarStyle - - - - - - xLeft - xTop - xNum - xResizeTo - xMoveTo - xLinearScale - - - - - http://cross-browser.com/x/examples/bargraph.html - - - - - - - 1 - 1Dec03 - mf - - - - - diff --git a/pandora_console/include/styles/cb/lib/xcapitalize.js b/pandora_console/include/styles/cb/lib/xcapitalize.js deleted file mode 100644 index 4724083ace..0000000000 --- a/pandora_console/include/styles/cb/lib/xcapitalize.js +++ /dev/null @@ -1,30 +0,0 @@ -// xCapitalize, Copyright 2001-2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -// Capitalize the first letter of every word in str. - -function xCapitalize(str) -{ - var i, c, wd, s='', cap = true; - - for (i = 0; i < str.length; ++i) { - c = str.charAt(i); - wd = isWordDelim(c); - if (wd) { - cap = true; - } - if (cap && !wd) { - c = c.toUpperCase(); - cap = false; - } - s += c; - } - return s; - - function isWordDelim(c) - { - // add other word delimiters as needed - // (for example '-' and other punctuation) - return c == ' ' || c == '\n' || c == '\t'; - } -} diff --git a/pandora_console/include/styles/cb/lib/xcapitalize.xml b/pandora_console/include/styles/cb/lib/xcapitalize.xml deleted file mode 100644 index a48b497eaa..0000000000 --- a/pandora_console/include/styles/cb/lib/xcapitalize.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - -Copyright 2003-2005 Michael Foster (Cross-Browser.com) -Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - - String - -Function - - - -xCapitalize(str) - - - - str - - - - -A string with all words capitalized. Does not modify str. - - - - http://cross-browser.com/x/examples/capitalize.html - - - - - - - 1 - 11Mar05 - mf - - - - - diff --git a/pandora_console/include/styles/cb/lib/xcardinalposition.js b/pandora_console/include/styles/cb/lib/xcardinalposition.js deleted file mode 100644 index ef2929355a..0000000000 --- a/pandora_console/include/styles/cb/lib/xcardinalposition.js +++ /dev/null @@ -1,36 +0,0 @@ -// xCardinalPosition, Copyright 2004-2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xCardinalPosition(e, cp, margin, outside) -{ - if(!(e=xGetElementById(e))) return; - if (typeof(cp)!='string'){window.status='xCardinalPosition error: cp=' + cp + ', id=' + e.id; return;} - var x=xLeft(e), y=xTop(e), w=xWidth(e), h=xHeight(e); - var pw,ph,p = xParent(e); - if (p == document || p.nodeName.toLowerCase() == 'html') {pw = xClientWidth(); ph = xClientHeight();} - else {pw=xWidth(p); ph=xHeight(p);} - var sx=xScrollLeft(p), sy=xScrollTop(p); - var right=sx + pw, bottom=sy + ph; - var cenLeft=sx + Math.floor((pw-w)/2), cenTop=sy + Math.floor((ph-h)/2); - if (!margin) margin=0; - else{ - if (outside) margin=-margin; - sx +=margin; sy +=margin; right -=margin; bottom -=margin; - } - switch (cp.toLowerCase()){ - case 'n': x=cenLeft; if (outside) y=sy - h; else y=sy; break; - case 'ne': if (outside){x=right; y=sy - h;}else{x=right - w; y=sy;}break; - case 'e': y=cenTop; if (outside) x=right; else x=right - w; break; - case 'se': if (outside){x=right; y=bottom;}else{x=right - w; y=bottom - h}break; - case 's': x=cenLeft; if (outside) y=sy - h; else y=bottom - h; break; - case 'sw': if (outside){x=sx - w; y=bottom;}else{x=sx; y=bottom - h;}break; - case 'w': y=cenTop; if (outside) x=sx - w; else x=sx; break; - case 'nw': if (outside){x=sx - w; y=sy - h;}else{x=sx; y=sy;}break; - case 'cen': x=cenLeft; y=cenTop; break; - case 'cenh': x=cenLeft; break; - case 'cenv': y=cenTop; break; - } - var o = new Object(); - o.x = x; o.y = y; - return o; -} diff --git a/pandora_console/include/styles/cb/lib/xcardinalposition.xml b/pandora_console/include/styles/cb/lib/xcardinalposition.xml deleted file mode 100644 index f8f9906464..0000000000 --- a/pandora_console/include/styles/cb/lib/xcardinalposition.xml +++ /dev/null @@ -1,80 +0,0 @@ - - - - -Copyright 2004-2005 Michael Foster (Cross-Browser.com) -Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - - Position - -Function - - - -xCardinalPosition(ele, cp[, margin[, outside]]) - - - - ele - - - - cp - - - - margin - - - - outside - - - - -An object with 'x' and 'y' properties - - - xGetElementById - xleft - xtop - xwidth - xheight - xparent - xclientwidth - xclientheight - xscrollleft - xscrolltop - - - - - http://cross-browser.com/toys/ - - - - - - - 2004 - mf - - - - - - - 2 - 23May05 - mf - - - - 1 - 11Mar05 - mf - - - - - diff --git a/pandora_console/include/styles/cb/lib/xclientheight.js b/pandora_console/include/styles/cb/lib/xclientheight.js deleted file mode 100644 index 02c2304744..0000000000 --- a/pandora_console/include/styles/cb/lib/xclientheight.js +++ /dev/null @@ -1,17 +0,0 @@ -// xClientHeight, Copyright 2001-2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xClientHeight() -{ - var h=0; - if(xOp6Dn) h=window.innerHeight; - else if(document.compatMode == 'CSS1Compat' && !window.opera && document.documentElement && document.documentElement.clientHeight) - h=document.documentElement.clientHeight; - else if(document.body && document.body.clientHeight) - h=document.body.clientHeight; - else if(xDef(window.innerWidth,window.innerHeight,document.width)) { - h=window.innerHeight; - if(document.width>window.innerWidth) h-=16; - } - return h; -} diff --git a/pandora_console/include/styles/cb/lib/xclientheight.xml b/pandora_console/include/styles/cb/lib/xclientheight.xml deleted file mode 100644 index 82d275a19b..0000000000 --- a/pandora_console/include/styles/cb/lib/xclientheight.xml +++ /dev/null @@ -1,52 +0,0 @@ - - - - -Copyright 2001-2005 Michael Foster (Cross-Browser.com) -Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - - Size - Window - -Function - - - -xClientHeight() - -Integer - - - xDef - xOp6Dn - - - - - http://cross-browser.com/toys/ - - - - - - - 3 - 25Apr05 - mf - - - - 2 - 27Jan05 - mf - - - - 1 - 31Mar04 - mf - - - - - diff --git a/pandora_console/include/styles/cb/lib/xclientwidth.js b/pandora_console/include/styles/cb/lib/xclientwidth.js deleted file mode 100644 index 962c5d854b..0000000000 --- a/pandora_console/include/styles/cb/lib/xclientwidth.js +++ /dev/null @@ -1,17 +0,0 @@ -// xClientWidth, Copyright 2001-2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xClientWidth() -{ - var w=0; - if(xOp6Dn) w=window.innerWidth; - else if(document.compatMode == 'CSS1Compat' && !window.opera && document.documentElement && document.documentElement.clientWidth) - w=document.documentElement.clientWidth; - else if(document.body && document.body.clientWidth) - w=document.body.clientWidth; - else if(xDef(window.innerWidth,window.innerHeight,document.height)) { - w=window.innerWidth; - if(document.height>window.innerHeight) w-=16; - } - return w; -} diff --git a/pandora_console/include/styles/cb/lib/xclientwidth.xml b/pandora_console/include/styles/cb/lib/xclientwidth.xml deleted file mode 100644 index 8f6b234574..0000000000 --- a/pandora_console/include/styles/cb/lib/xclientwidth.xml +++ /dev/null @@ -1,52 +0,0 @@ - - - - -Copyright 2001-2005 Michael Foster (Cross-Browser.com) -Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - - Size - Window - -Function - - - -xClientWidth() - -Integer - - - xDef - xOp6Dn - - - - - http://cross-browser.com/toys/ - - - - - - - 3 - 25Apr05 - mf - - - - 2 - 27Jan05 - mf - - - - 1 - 31Mar04 - mf - - - - - diff --git a/pandora_console/include/styles/cb/lib/xclip.js b/pandora_console/include/styles/cb/lib/xclip.js deleted file mode 100644 index 3661ca304f..0000000000 --- a/pandora_console/include/styles/cb/lib/xclip.js +++ /dev/null @@ -1,11 +0,0 @@ -// xClip, Copyright 2001-2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xClip(e,t,r,b,l) -{ - if(!(e=xGetElementById(e))) return; - if(e.style) { - if (xNum(l)) e.style.clip='rect('+t+'px '+r+'px '+b+'px '+l+'px)'; - else e.style.clip='rect(0 '+parseInt(e.style.width)+'px '+parseInt(e.style.height)+'px 0)'; - } -} diff --git a/pandora_console/include/styles/cb/lib/xclip.xml b/pandora_console/include/styles/cb/lib/xclip.xml deleted file mode 100644 index 52651ab0c2..0000000000 --- a/pandora_console/include/styles/cb/lib/xclip.xml +++ /dev/null @@ -1,70 +0,0 @@ - - - - -Copyright 2001-2005 Michael Foster (Cross-Browser.com) -Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - - Size - -Function - - - -xClip(ele[,iTop,iRight,iBottom,iLeft]) - - - - ele - - - - iTop - - - - iRight - - - - iBottom - - - - iLeft - - - - -element.style.clip - - - xGetElementById - xNum - nn4:xWidth - nn4:xHeight - - - - - http://cross-browser.com/toys/ - - - - - - - 2 - 15Mar05 - mf - - - - 1 - 31Mar04 - mf - - - - - diff --git a/pandora_console/include/styles/cb/lib/xcollapsible.js b/pandora_console/include/styles/cb/lib/xcollapsible.js deleted file mode 100644 index 3a351dbafe..0000000000 --- a/pandora_console/include/styles/cb/lib/xcollapsible.js +++ /dev/null @@ -1,62 +0,0 @@ -// xCollapsible, Copyright 2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xCollapsible(outerEle, bShow) // object prototype -{ - // Constructor - - var container = xGetElementById(outerEle); - if (!container) {return null;} - var isUL = container.nodeName.toUpperCase() == 'UL'; - var i, trg, aTgt = xGetElementsByTagName(isUL ? 'UL':'DIV', container); - for (i = 0; i < aTgt.length; ++i) { - trg = xPrevSib(aTgt[i]); - if (trg && (isUL || trg.nodeName.charAt(0).toUpperCase() == 'H')) { - aTgt[i].xTrgPtr = trg; - aTgt[i].style.display = bShow ? 'block' : 'none'; - trg.style.cursor = 'pointer'; - trg.xTgtPtr = aTgt[i]; - trg.onclick = trg_onClick; - } - } - - // Private - - function trg_onClick() - { - var tgt = this.xTgtPtr.style; - if (tgt.display == 'none') { - tgt.display = 'block'; - } - else { - tgt.display = 'none'; - } - } - - // Public - - this.displayAll = function(bShow) - { - for (var i = 0; i < aTgt.length; ++i) { - if (aTgt[i].xTrgPtr) { - xDisplay(aTgt[i], bShow ? "block":"none"); - } - } - }; - - // The unload listener is for IE's circular reference memory leak bug. - this.onUnload = function() - { - if (!xIE4Up || !container || !aTgt) {return;} - for (i = 0; i < aTgt.length; ++i) { - trg = aTgt[i].xTrgPtr; - if (trg) { - if (trg.xTgtPtr) { - trg.xTgtPtr.TrgPtr = null; - trg.xTgtPtr = null; - } - trg.onclick = null; - } - } - }; -} diff --git a/pandora_console/include/styles/cb/lib/xcollapsible.xml b/pandora_console/include/styles/cb/lib/xcollapsible.xml deleted file mode 100644 index 6044f121ae..0000000000 --- a/pandora_console/include/styles/cb/lib/xcollapsible.xml +++ /dev/null @@ -1,90 +0,0 @@ - - - - -Copyright 2004-2005 Michael Foster (Cross-Browser.com) -Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - - Object - -Object - - - -new xCollapsible(outerEle, bShow) - - - - outerEle - - - - bShow - - - - - - - displayAll - - - - onUnload - - - - - - xGetElementById - xGetElementsByTagName - xPrevSib - - - - - http://cross-browser.com/x/examples/xmenu5.php - - - - - - - 28Apr05 - mf - - - - - mf - - - - - - - 3 - 28Apr05 - mf - - - - 2 - 25Apr05 - mf - - - - 1 - 7Mar05 - mf - - - - - diff --git a/pandora_console/include/styles/cb/lib/xcolor.js b/pandora_console/include/styles/cb/lib/xcolor.js deleted file mode 100644 index b6c9330f7e..0000000000 --- a/pandora_console/include/styles/cb/lib/xcolor.js +++ /dev/null @@ -1,13 +0,0 @@ -// xColor, Copyright 2001-2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xColor(e,s) -{ - if(!(e=xGetElementById(e))) return ''; - var c=''; - if(e.style && xDef(e.style.color)) { - if(xStr(s)) e.style.color=s; - c=e.style.color; - } - return c; -} diff --git a/pandora_console/include/styles/cb/lib/xcolor.xml b/pandora_console/include/styles/cb/lib/xcolor.xml deleted file mode 100644 index d55abf99a9..0000000000 --- a/pandora_console/include/styles/cb/lib/xcolor.xml +++ /dev/null @@ -1,57 +0,0 @@ - - - - -Copyright 2001-2005 Michael Foster (Cross-Browser.com) -Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - - Presentation - -Function - - - -xColor(ele[, sColor]) - - - - ele - - - - sColor - - - - -string, element.style.color - - - xGetElementById - xDef - xStr - - - - - http://cross-browser.com/toys/ - - - - - - - 2 - 15Mar05 - mf - - - - 1 - 31Mar04 - mf - - - - - diff --git a/pandora_console/include/styles/cb/lib/xcreateelement.js b/pandora_console/include/styles/cb/lib/xcreateelement.js deleted file mode 100644 index 598c2ecb6e..0000000000 --- a/pandora_console/include/styles/cb/lib/xcreateelement.js +++ /dev/null @@ -1,8 +0,0 @@ -// xCreateElement, Copyright 2001-2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xCreateElement(sTag) -{ - if (document.createElement) return document.createElement(sTag); - else return null; -} diff --git a/pandora_console/include/styles/cb/lib/xcreateelement.xml b/pandora_console/include/styles/cb/lib/xcreateelement.xml deleted file mode 100644 index c13889ad87..0000000000 --- a/pandora_console/include/styles/cb/lib/xcreateelement.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - -Copyright 2001-2005 Michael Foster (Cross-Browser.com) -Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - - DOM - -Function - - - -xCreateElement(sTag) - - - - sTag - - - - -The object created or null. - - - - http://cross-browser.com/toys/ - - - - - - - 1 - 31Mar04 - mf - - - - - diff --git a/pandora_console/include/styles/cb/lib/xdef.js b/pandora_console/include/styles/cb/lib/xdef.js deleted file mode 100644 index 50a005912c..0000000000 --- a/pandora_console/include/styles/cb/lib/xdef.js +++ /dev/null @@ -1,8 +0,0 @@ -// xDef, Copyright 2001-2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xDef() -{ - for(var i=0; i - - - -Copyright 2001-2005 Michael Foster (Cross-Browser.com) -Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - - Type - - -Function - - - -xDef(ref[, ...]) - - - - ... - - - - -True if none of the arguments == 'undefined', else false. - - - - http://cross-browser.com/toys/ - - - - - - - 1 - 31Mar04 - mf - - - - - diff --git a/pandora_console/include/styles/cb/lib/xdeg.js b/pandora_console/include/styles/cb/lib/xdeg.js deleted file mode 100644 index f0b3fadb59..0000000000 --- a/pandora_console/include/styles/cb/lib/xdeg.js +++ /dev/null @@ -1,7 +0,0 @@ -// xDeg, Copyright 2001-2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xDeg(rad) -{ - return rad * (180 / Math.PI); -} diff --git a/pandora_console/include/styles/cb/lib/xdeg.xml b/pandora_console/include/styles/cb/lib/xdeg.xml deleted file mode 100644 index 0c27dd7f59..0000000000 --- a/pandora_console/include/styles/cb/lib/xdeg.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - -Copyright 2001-2005 Michael Foster (Cross-Browser.com) -Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - - Math - -Function - - - -xDeg(rad) - - - - rad - - - - -integer, in degrees - - - - http://cross-browser.com/toys/ - - - - - - - 1 - 11Mar05 - mf - - - - - diff --git a/pandora_console/include/styles/cb/lib/xdeletecookie.js b/pandora_console/include/styles/cb/lib/xdeletecookie.js deleted file mode 100644 index 2990205a15..0000000000 --- a/pandora_console/include/styles/cb/lib/xdeletecookie.js +++ /dev/null @@ -1,11 +0,0 @@ -// xDeleteCookie, Copyright 2001-2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xDeleteCookie(name, path) -{ - if (xGetCookie(name)) { - document.cookie = name + "=" + - "; path=" + ((!path) ? "/" : path) + - "; expires=" + new Date(0).toGMTString(); - } -} diff --git a/pandora_console/include/styles/cb/lib/xdeletecookie.xml b/pandora_console/include/styles/cb/lib/xdeletecookie.xml deleted file mode 100644 index ce01b53ef1..0000000000 --- a/pandora_console/include/styles/cb/lib/xdeletecookie.xml +++ /dev/null @@ -1,53 +0,0 @@ - - - - -Copyright 2001-2005 Michael Foster (Cross-Browser.com) -Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - - Cookie - -Function - - - -xDeleteCookie(name, path) - - - - name - - - - path - - - - - - xGetCookie - - - - - http://cross-browser.com/toys/ - - - - - - - 4 - 27Jan05 - mf - - - - 3 - 2001 - mf - - - - - diff --git a/pandora_console/include/styles/cb/lib/xdisabledrag.js b/pandora_console/include/styles/cb/lib/xdisabledrag.js deleted file mode 100644 index 6e145231d1..0000000000 --- a/pandora_console/include/styles/cb/lib/xdisabledrag.js +++ /dev/null @@ -1,17 +0,0 @@ -// xDisableDrag, Copyright 2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xDisableDrag(id, last) -{ - if (!window._xDrgMgr) return; - var ele = xGetElementById(id); - ele.xDraggable = false; - ele.xODS = null; - ele.xOD = null; - ele.xODE = null; - xRemoveEventListener(ele, 'mousedown', _xOMD, false); - if (_xDrgMgr.mm && last) { - _xDrgMgr.mm = false; - xRemoveEventListener(document, 'mousemove', _xOMM, false); - } -} diff --git a/pandora_console/include/styles/cb/lib/xdisabledrag.xml b/pandora_console/include/styles/cb/lib/xdisabledrag.xml deleted file mode 100644 index aa9d2fb0f8..0000000000 --- a/pandora_console/include/styles/cb/lib/xdisabledrag.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - -Copyright 2001-2005 Michael Foster (Cross-Browser.com) -Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - - - - -Function - - - -function xDisableDrag(id, last) - - - - id - - - - last - - - - - - xGetElementById - xRemoveEventListener - - - - - http://cross-browser.com/x/examples/drag1.php - - - - http://cross-browser.com/x/examples/drag2.php - - - - - - - 2 - 16Mar05 - mf - - - - 1 - 7Mar05 - mf - - - - - diff --git a/pandora_console/include/styles/cb/lib/xdisplay.js b/pandora_console/include/styles/cb/lib/xdisplay.js deleted file mode 100644 index 69220c8aa2..0000000000 --- a/pandora_console/include/styles/cb/lib/xdisplay.js +++ /dev/null @@ -1,12 +0,0 @@ -// xDisplay, Copyright 2003,2004,2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xDisplay(e,s) -{ - if(!(e=xGetElementById(e))) return null; - if(e.style && xDef(e.style.display)) { - if (xStr(s)) e.style.display = s; - return e.style.display; - } - return null; -} diff --git a/pandora_console/include/styles/cb/lib/xdisplay.xml b/pandora_console/include/styles/cb/lib/xdisplay.xml deleted file mode 100644 index 3f40a587a9..0000000000 --- a/pandora_console/include/styles/cb/lib/xdisplay.xml +++ /dev/null @@ -1,57 +0,0 @@ - - - - -Copyright 2003-2005 Michael Foster (Cross-Browser.com) -Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - - Presentation - -Function - - - -xDisplay(e, sProp) - - - - e - - - - sProp - - - - -string, element.style.display if it exists else null - - - xGetElementById - xDef - xStr - - - - - http://cross-browser.com/toys/ - - - - - - - 2 - 15Mar05 - mf - - - - 1 - 11Mar05 - mf - - - - - diff --git a/pandora_console/include/styles/cb/lib/xellipse.js b/pandora_console/include/styles/cb/lib/xellipse.js deleted file mode 100644 index fb62e69f61..0000000000 --- a/pandora_console/include/styles/cb/lib/xellipse.js +++ /dev/null @@ -1,51 +0,0 @@ -// xEllipse, Copyright 2004,2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xEllipse(e, xRadius, yRadius, radiusInc, totalTime, startAngle, stopAngle) -{ - if (!(e=xGetElementById(e))) return; - if (!e.timeout) e.timeout = 25; - e.xA = xRadius; - e.yA = yRadius; - e.radiusInc = radiusInc; - e.slideTime = totalTime; - startAngle *= (Math.PI / 180); - stopAngle *= (Math.PI / 180); - var startTime = (startAngle * e.slideTime) / (stopAngle - startAngle); - e.stopTime = e.slideTime + startTime; - e.B = (stopAngle - startAngle) / e.slideTime; - e.xD = xLeft(e) - Math.round(e.xA * Math.cos(e.B * startTime)); // center point - e.yD = xTop(e) - Math.round(e.yA * Math.sin(e.B * startTime)); - e.xTarget = Math.round(e.xA * Math.cos(e.B * e.stopTime) + e.xD); // end point - e.yTarget = Math.round(e.yA * Math.sin(e.B * e.stopTime) + e.yD); - var d = new Date(); - e.C = d.getTime() - startTime; - if (!e.moving) {e.stop=false; _xEllipse(e);} -} -function _xEllipse(e) -{ - if (!(e=xGetElementById(e))) return; - var now, t, newY, newX; - now = new Date(); - t = now.getTime() - e.C; - if (e.stop) { e.moving = false; } - else if (t < e.stopTime) { - setTimeout("_xEllipse('"+e.id+"')", e.timeout); - if (e.radiusInc) { - e.xA += e.radiusInc; - e.yA += e.radiusInc; - } - newX = Math.round(e.xA * Math.cos(e.B * t) + e.xD); - newY = Math.round(e.yA * Math.sin(e.B * t) + e.yD); - xMoveTo(e, newX, newY); - e.moving = true; - } - else { - if (e.radiusInc) { - e.xTarget = Math.round(e.xA * Math.cos(e.B * e.slideTime) + e.xD); - e.yTarget = Math.round(e.yA * Math.sin(e.B * e.slideTime) + e.yD); - } - xMoveTo(e, e.xTarget, e.yTarget); - e.moving = false; - } -} diff --git a/pandora_console/include/styles/cb/lib/xellipse.xml b/pandora_console/include/styles/cb/lib/xellipse.xml deleted file mode 100644 index 718ada5e42..0000000000 --- a/pandora_console/include/styles/cb/lib/xellipse.xml +++ /dev/null @@ -1,70 +0,0 @@ - - - - -Copyright 2004-2005 Michael Foster (Cross-Browser.com) -Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - - Animation - -Function - - - -xEllipse(ele, xRadius, yRadius, radiusInc, totalTime, startAngle, stopAngle) - - - - ele - - - - xRadius - - - - yRadius - - - - radiusInc - - - - totalTime - - - - startAngle - - - - stopAngle - - - - - - xGetElementById - xLeft - xTop - xMoveTo - - - - - http://cross-browser.com/x/examples/xellipse.php - - - - - - - 1 - 21Jun04 - mf - - - - - diff --git a/pandora_console/include/styles/cb/lib/xenabledrag.js b/pandora_console/include/styles/cb/lib/xenabledrag.js deleted file mode 100644 index 2d51f3e7f1..0000000000 --- a/pandora_console/include/styles/cb/lib/xenabledrag.js +++ /dev/null @@ -1,68 +0,0 @@ -// xEnableDrag, Copyright 2002,2003,2004,2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -//// Private Data -var _xDrgMgr = {ele:null, mm:false}; -//// Public Functions -function xEnableDrag(id,fS,fD,fE) -{ - var ele = xGetElementById(id); - ele.xDraggable = true; - ele.xODS = fS; - ele.xOD = fD; - ele.xODE = fE; - xAddEventListener(ele, 'mousedown', _xOMD, false); - if (!_xDrgMgr.mm) { - _xDrgMgr.mm = true; - xAddEventListener(document, 'mousemove', _xOMM, false); - } -} -//// Private Event Listeners -function _xOMD(e) // drag start -{ - var evt = new xEvent(e); - var ele = evt.target; - while(ele && !ele.xDraggable) { - ele = xParent(ele); - } - if (ele) { - xPreventDefault(e); - ele.xDPX = evt.pageX; - ele.xDPY = evt.pageY; - _xDrgMgr.ele = ele; - xAddEventListener(document, 'mouseup', _xOMU, false); - if (ele.xODS) { - ele.xODS(ele, evt.pageX, evt.pageY); - } - } -} -function _xOMM(e) // drag -{ - var evt = new xEvent(e); - if (_xDrgMgr.ele) { - xPreventDefault(e); - var ele = _xDrgMgr.ele; - var dx = evt.pageX - ele.xDPX; - var dy = evt.pageY - ele.xDPY; - ele.xDPX = evt.pageX; - ele.xDPY = evt.pageY; - if (ele.xOD) { - ele.xOD(ele, dx, dy); - } - else { - xMoveTo(ele, xLeft(ele) + dx, xTop(ele) + dy); - } - } -} -function _xOMU(e) // drag end -{ - if (_xDrgMgr.ele) { - xPreventDefault(e); - xRemoveEventListener(document, 'mouseup', _xOMU, false); - if (_xDrgMgr.ele.xODE) { - var evt = new xEvent(e); - _xDrgMgr.ele.xODE(_xDrgMgr.ele, evt.pageX, evt.pageY); - } - _xDrgMgr.ele = null; - } -} diff --git a/pandora_console/include/styles/cb/lib/xenabledrag.xml b/pandora_console/include/styles/cb/lib/xenabledrag.xml deleted file mode 100644 index 8cb4a2e3da..0000000000 --- a/pandora_console/include/styles/cb/lib/xenabledrag.xml +++ /dev/null @@ -1,65 +0,0 @@ - - - - -Copyright 2002-2005 Michael Foster (Cross-Browser.com) -Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - - Event - -Function - - - -xEnableDrag(ele[, fnDragStart[, fnDrag[, fnDragEnd]]]) - - - - ele - - - - fnDragStart - - - - fnDrag - - - - fnDragEnd - - - - - - xGetElementById - xAddEventListener - xRemoveEventListener - xEvent - xParent - xMoveTo - xPreventDefault - - - - - http://cross-browser.com/x/examples/drag1.php - - - - http://cross-browser.com/x/examples/drag2.php - - - - - - - 1 - 16Mar05 - mf - - - - - diff --git a/pandora_console/include/styles/cb/lib/xevaltextarea.js b/pandora_console/include/styles/cb/lib/xevaltextarea.js deleted file mode 100644 index 1efc8c6d8b..0000000000 --- a/pandora_console/include/styles/cb/lib/xevaltextarea.js +++ /dev/null @@ -1,20 +0,0 @@ -// xEvalTextarea, Copyright 2001-2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xEvalTextarea() -{ - var f = document.createElement('FORM'); - f.onsubmit = 'return false'; - var t = document.createElement('TEXTAREA'); - t.id='xDebugTA'; - t.name='xDebugTA'; - t.rows='20'; - t.cols='60'; - var b = document.createElement('INPUT'); - b.type = 'button'; - b.value = 'Evaluate'; - b.onclick = function() {eval(this.form.xDebugTA.value);}; - f.appendChild(t); - f.appendChild(b); - document.body.appendChild(f); -} diff --git a/pandora_console/include/styles/cb/lib/xevaltextarea.xml b/pandora_console/include/styles/cb/lib/xevaltextarea.xml deleted file mode 100644 index b26bdfe615..0000000000 --- a/pandora_console/include/styles/cb/lib/xevaltextarea.xml +++ /dev/null @@ -1,32 +0,0 @@ - - - - -Copyright 2001-2005 Michael Foster (Cross-Browser.com) -Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - - Debug - -Function - - - -xEvalTextarea() - - - - http://cross-browser.com/x/examples/bookmarklets.html - - - - - - - 1 - 12Mar05 - mf - - - - - diff --git a/pandora_console/include/styles/cb/lib/xevent.js b/pandora_console/include/styles/cb/lib/xevent.js deleted file mode 100644 index cbe1cba85b..0000000000 --- a/pandora_console/include/styles/cb/lib/xevent.js +++ /dev/null @@ -1,93 +0,0 @@ -// xEvent, Copyright 2001-2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xEvent(evt) // object prototype -{ - var e = evt || window.event; - if(!e) return; - if(e.type) this.type = e.type; - if(e.target) this.target = e.target; - else if(e.srcElement) this.target = e.srcElement; - - // Section B - if (e.relatedTarget) this.relatedTarget = e.relatedTarget; - else if (e.type == 'mouseover' && e.fromElement) this.relatedTarget = e.fromElement; - else if (e.type == 'mouseout') this.relatedTarget = e.toElement; - // End Section B - - if(xOp6Dn) { this.pageX = e.clientX; this.pageY = e.clientY; } - else if(xDef(e.pageX,e.pageY)) { this.pageX = e.pageX; this.pageY = e.pageY; } - else if(xDef(e.clientX,e.clientY)) { this.pageX = e.clientX + xScrollLeft(); this.pageY = e.clientY + xScrollTop(); } - - // Section A - if (xDef(e.offsetX,e.offsetY)) { - this.offsetX = e.offsetX; - this.offsetY = e.offsetY; - } - else if (xDef(e.layerX,e.layerY)) { - this.offsetX = e.layerX; - this.offsetY = e.layerY; - } - else { - this.offsetX = this.pageX - xPageX(this.target); - this.offsetY = this.pageY - xPageY(this.target); - } - // End Section A - - if (e.keyCode) { this.keyCode = e.keyCode; } // for moz/fb, if keyCode==0 use which - else if (xDef(e.which) && e.type.indexOf('key')!=-1) { this.keyCode = e.which; } - - this.shiftKey = e.shiftKey; - this.ctrlKey = e.ctrlKey; - this.altKey = e.altKey; -} - -// I need someone with IE/Mac to compare test snippets 1 and 2 in section A. - -// // Snippet 1 -// if(xDef(e.offsetX,e.offsetY)) { -// this.offsetX = e.offsetX; -// this.offsetY = e.offsetY; -// if (xIE4Up && xMac) { -// this.offsetX += xScrollLeft(); -// this.offsetY += xScrollTop(); -// } -// } -// else if (xDef(e.layerX,e.layerY)) { -// this.offsetX = e.layerX; -// this.offsetY = e.layerY; -// } -// else { -// this.offsetX = this.pageX - xPageX(this.target); -// this.offsetY = this.pageY - xPageY(this.target); -// } - -// // Snippet 2 -// if (xDef(e.offsetX,e.offsetY) && !(xIE4Up && xMac)) { -// this.offsetX = e.offsetX; -// this.offsetY = e.offsetY; -// } -// else if (xDef(e.layerX,e.layerY)) { -// this.offsetX = e.layerX; -// this.offsetY = e.layerY; -// } -// else { -// this.offsetX = this.pageX - xPageX(this.target); -// this.offsetY = this.pageY - xPageY(this.target); -// } - -// This was in section B: - -// if (e.relatedTarget) this.relatedTarget = e.relatedTarget; -// else if (xIE4Up) { -// if (e.type == 'mouseover') this.relatedTarget = e.fromElement; -// else if (e.type == 'mouseout') this.relatedTarget = e.toElement; -// } -// changed to remove sniffer after discussion with Hallvord - -// Possible optimization: - -// if (e.keyCode) { this.keyCode = e.keyCode; } // for moz/fb, if keyCode==0 use which -// else if (xDef(e.which) && e.type.indexOf('key')!=-1) { this.keyCode = e.which; } -// // replace the above 2 lines with the following? -// // this.keyCode = e.keyCode || e.which || 0; diff --git a/pandora_console/include/styles/cb/lib/xevent.xml b/pandora_console/include/styles/cb/lib/xevent.xml deleted file mode 100644 index b3a094e508..0000000000 --- a/pandora_console/include/styles/cb/lib/xevent.xml +++ /dev/null @@ -1,117 +0,0 @@ - - - - -Copyright 2001-2005 Michael Foster (Cross-Browser.com) -Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - - Event - -Object - - - -new xEvent(oEvent) - - - - oEvent - - - - - - - type - - - - target - - - - pageX - - - - pageY - - - - offsetX - - - - offsetY - - - - keyCode - - - - shiftKey - - - - ctrlKey - - - - altKey - - - - - - xDef - xScrollLeft - xScrollTop - xPageX - xPageY - nn4:xLayerFromPoint - - - - - http://cross-browser.com/toys/ - - - - - - - 2002 - mf - - - - - - - 4 - 2May05 - mf - - - - 3 - 25Apr05 - mf - - - - 2 - 24Mar05 - mf - - - - 1 - 31Mar04 - mf - - - - - diff --git a/pandora_console/include/styles/cb/lib/xfenster.js b/pandora_console/include/styles/cb/lib/xfenster.js deleted file mode 100644 index c6cbcbeb8f..0000000000 --- a/pandora_console/include/styles/cb/lib/xfenster.js +++ /dev/null @@ -1,70 +0,0 @@ -// xFenster, Copyright 2004-2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xFenster(eleId, iniX, iniY, barId, resBtnId, maxBtnId) // object prototype -{ - // Private Properties - var me = this; - var ele = xGetElementById(eleId); - var rBtn = xGetElementById(resBtnId); - var mBtn = xGetElementById(maxBtnId); - var x, y, w, h, maximized = false; - // Public Methods - this.onunload = function() - { - if (xIE4Up) { // clear cir refs - xDisableDrag(barId); - xDisableDrag(rBtn); - mBtn.onclick = ele.onmousedown = null; - me = ele = rBtn = mBtn = null; - } - } - this.paint = function() - { - xMoveTo(rBtn, xWidth(ele) - xWidth(rBtn), xHeight(ele) - xHeight(rBtn)); - xMoveTo(mBtn, xWidth(ele) - xWidth(rBtn), 0); - } - // Private Event Listeners - function barOnDrag(e, mdx, mdy) - { - xMoveTo(ele, xLeft(ele) + mdx, xTop(ele) + mdy); - } - function resOnDrag(e, mdx, mdy) - { - xResizeTo(ele, xWidth(ele) + mdx, xHeight(ele) + mdy); - me.paint(); - } - function fenOnMousedown() - { - xZIndex(ele, xFenster.z++); - } - function maxOnClick() - { - if (maximized) { - maximized = false; - xResizeTo(ele, w, h); - xMoveTo(ele, x, y); - } - else { - w = xWidth(ele); - h = xHeight(ele); - x = xLeft(ele); - y = xTop(ele); - xMoveTo(ele, xScrollLeft(), xScrollTop()); - maximized = true; - xResizeTo(ele, xClientWidth(), xClientHeight()); - } - me.paint(); - } - // Constructor Code - xFenster.z++; - xMoveTo(ele, iniX, iniY); - this.paint(); - xEnableDrag(barId, null, barOnDrag, null); - xEnableDrag(rBtn, null, resOnDrag, null); - mBtn.onclick = maxOnClick; - ele.onmousedown = fenOnMousedown; - xShow(ele); -} // end xFenster object prototype - -xFenster.z = 0; // xFenster static property diff --git a/pandora_console/include/styles/cb/lib/xfenster.xml b/pandora_console/include/styles/cb/lib/xfenster.xml deleted file mode 100644 index d7d25cc460..0000000000 --- a/pandora_console/include/styles/cb/lib/xfenster.xml +++ /dev/null @@ -1,94 +0,0 @@ - - - - -Copyright 2004-2005 Michael Foster (Cross-Browser.com) -Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - - Event - -Object - - - -new xFenster(eleId, iniX, iniY, barId, resBtnId, maxBtnId) - - - - eleId - - - - iniX - - - - iniY - - - - barId - - - - resBtnId - - - - maxBtnId - - - - - - - - - - - - - - - - - - - - - xGetElementById - xDisableDrag - xMoveTo - xWidth - xHeight - xResizeTo - xZIndex - xEnableDrag - xShow - - - - - http://cross-browser.com/x/examples/drag2.php - - - - - - - - mf - - - - - - - 1 - 9May05 - mf - - - - - diff --git a/pandora_console/include/styles/cb/lib/xfirstchild.js b/pandora_console/include/styles/cb/lib/xfirstchild.js deleted file mode 100644 index ec61370513..0000000000 --- a/pandora_console/include/styles/cb/lib/xfirstchild.js +++ /dev/null @@ -1,10 +0,0 @@ -// xFirstChild, Copyright 2001-2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xFirstChild(e, t) -{ - var c = e ? e.firstChild : null; - if (t) while (c && c.nodeName != t) { c = c.nextSibling; } - else while (c && c.nodeType != 1) { c = c.nextSibling; } - return c; -} diff --git a/pandora_console/include/styles/cb/lib/xfirstchild.xml b/pandora_console/include/styles/cb/lib/xfirstchild.xml deleted file mode 100644 index ac676a27a9..0000000000 --- a/pandora_console/include/styles/cb/lib/xfirstchild.xml +++ /dev/null @@ -1,51 +0,0 @@ - - - - -Copyright 2004-2005 Michael Foster (Cross-Browser.com) -Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - - DOM - -Function - - - -xFirstChild(ele[, tag]) - - - - ele - - - - tag - - - - -If tag is defined, returns first child (or first child's sibling) with nodeName == tag, else with nodeType == 1. - - - - http://cross-browser.com/toys/ - - - - - - - 2 - 11Mar05 - mf - - - - 1 - 27Jan05 - mf - - - - - diff --git a/pandora_console/include/styles/cb/lib/xgetcomputedstyle.js b/pandora_console/include/styles/cb/lib/xgetcomputedstyle.js deleted file mode 100644 index 544808d9a3..0000000000 --- a/pandora_console/include/styles/cb/lib/xgetcomputedstyle.js +++ /dev/null @@ -1,25 +0,0 @@ -// xGetComputedStyle, Copyright 2001-2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xGetComputedStyle(oEle, sProp, bInt) -{ - var s, p = 'undefined'; - var dv = document.defaultView; - if(dv && dv.getComputedStyle){ - s = dv.getComputedStyle(oEle,''); - if (s) p = s.getPropertyValue(sProp); - } - else if(oEle.currentStyle) { - // convert css property name to object property name for IE - var a = sProp.split('-'); - sProp = a[0]; - for (var i=1; i - - - -Copyright 2002-2005 Michael Foster (Cross-Browser.com) -Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - - Style - -Function - - - -xGetComputedStyle(oEle, sProp[, bInt]) - - - - oEle - - - - sProp - - - - bInt - - - - -String, or integer if bInt is true. - - - - http://cross-browser.com/toys/ - - - - - - - - mf - - - - - - - 514Mar05mf - - - - 412Mar05mf - - - - 3mf - - - - 223Aug04mf - - - - 131Mar04mf - - - - - diff --git a/pandora_console/include/styles/cb/lib/xgetcookie.js b/pandora_console/include/styles/cb/lib/xgetcookie.js deleted file mode 100644 index 7f4acd6a61..0000000000 --- a/pandora_console/include/styles/cb/lib/xgetcookie.js +++ /dev/null @@ -1,17 +0,0 @@ -// xGetCookie, Copyright 2001-2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xGetCookie(name) -{ - var value=null, search=name+"="; - if (document.cookie.length > 0) { - var offset = document.cookie.indexOf(search); - if (offset != -1) { - offset += search.length; - var end = document.cookie.indexOf(";", offset); - if (end == -1) end = document.cookie.length; - value = unescape(document.cookie.substring(offset, end)); - } - } - return value; -} diff --git a/pandora_console/include/styles/cb/lib/xgetcookie.xml b/pandora_console/include/styles/cb/lib/xgetcookie.xml deleted file mode 100644 index 15ec72fe2c..0000000000 --- a/pandora_console/include/styles/cb/lib/xgetcookie.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - -Copyright 2001-2005 Michael Foster (Cross-Browser.com) -Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - - Cookie - -Function - - - -xGetCookie(sName) - - - - sName - - - - -string - - - - http://cross-browser.com/toys/ - - - - - - - 1 - - mf - - - - - diff --git a/pandora_console/include/styles/cb/lib/xgetelementbyid.js b/pandora_console/include/styles/cb/lib/xgetelementbyid.js deleted file mode 100644 index c15d1cca10..0000000000 --- a/pandora_console/include/styles/cb/lib/xgetelementbyid.js +++ /dev/null @@ -1,11 +0,0 @@ -// xGetElementById, Copyright 2001-2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xGetElementById(e) -{ - if(typeof(e)!='string') return e; - if(document.getElementById) e=document.getElementById(e); - else if(document.all) e=document.all[e]; - else e=null; - return e; -} diff --git a/pandora_console/include/styles/cb/lib/xgetelementbyid.xml b/pandora_console/include/styles/cb/lib/xgetelementbyid.xml deleted file mode 100644 index 03b0706db9..0000000000 --- a/pandora_console/include/styles/cb/lib/xgetelementbyid.xml +++ /dev/null @@ -1,42 +0,0 @@ - - - - -Copyright 2001-2005 Michael Foster (Cross-Browser.com) -Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - - DOM - - -Function - - - -xGetElementById(ele) - - - - ele - - - - -object reference or null - - - - http://cross-browser.com/toys/ - - - - - - - 1 - 31Mar04 - mf - - - - - diff --git a/pandora_console/include/styles/cb/lib/xgetelementsbyattribute.js b/pandora_console/include/styles/cb/lib/xgetelementsbyattribute.js deleted file mode 100644 index aa6d61b9d1..0000000000 --- a/pandora_console/include/styles/cb/lib/xgetelementsbyattribute.js +++ /dev/null @@ -1,17 +0,0 @@ -// xGetElementsByAttribute, Copyright 2001-2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xGetElementsByAttribute(sTag, sAtt, sRE, fn) -{ - var a, list, found = new Array(), re = new RegExp(sRE, 'i'); - list = xGetElementsByTagName(sTag); - for (var i = 0; i < list.length; ++i) { - a = list[i].getAttribute(sAtt); - if (!a) {a = list[i][sAtt];} - if (typeof(a)=='string' && a.search(re) != -1) { - found[found.length] = list[i]; - if (fn) fn(list[i]); - } - } - return found; -} diff --git a/pandora_console/include/styles/cb/lib/xgetelementsbyattribute.xml b/pandora_console/include/styles/cb/lib/xgetelementsbyattribute.xml deleted file mode 100644 index 64a35918f2..0000000000 --- a/pandora_console/include/styles/cb/lib/xgetelementsbyattribute.xml +++ /dev/null @@ -1,63 +0,0 @@ - - - - -Copyright 2002-2005 Michael Foster (Cross-Browser.com) -Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - - DOM - -Function - - - -xGetElementsByAttribute(sTag, sAtt, sRE[, fn]) - - - - sTag - - - - sAtt - - - - sRE - - - - fn - - - - -array - - - xGetElementsByTagName - - - - - http://cross-browser.com/toys/ - - - - - - - 2 - 15May04 - mf - - - - 1 - 31Mar04 - mf - - - - - diff --git a/pandora_console/include/styles/cb/lib/xgetelementsbyclassname.js b/pandora_console/include/styles/cb/lib/xgetelementsbyclassname.js deleted file mode 100644 index 431132021e..0000000000 --- a/pandora_console/include/styles/cb/lib/xgetelementsbyclassname.js +++ /dev/null @@ -1,16 +0,0 @@ -// xGetElementsByClassName, Copyright 2001-2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xGetElementsByClassName(c,p,t,f) -{ - var found = new Array(); - var re = new RegExp('\\b'+c+'\\b', 'i'); - var list = xGetElementsByTagName(t, p); - for (var i = 0; i < list.length; ++i) { - if (list[i].className && list[i].className.search(re) != -1) { - found[found.length] = list[i]; - if (f) f(list[i]); - } - } - return found; -} diff --git a/pandora_console/include/styles/cb/lib/xgetelementsbyclassname.xml b/pandora_console/include/styles/cb/lib/xgetelementsbyclassname.xml deleted file mode 100644 index a20e11c852..0000000000 --- a/pandora_console/include/styles/cb/lib/xgetelementsbyclassname.xml +++ /dev/null @@ -1,76 +0,0 @@ - - - - -Copyright 2002-2005 Michael Foster (Cross-Browser.com) -Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - - DOM - -Function - - - -xGetElementsByClassName(sClsName, oParentEle, sTagName, fn) - - - - sClsName - - - - oParentEle - - - - sTagName - - - - fn - - - - - - - - - xGetElementsByTagName - - - - - http://cross-browser.com/toys/ - - - - - - - 4 - 15Mar05 - mf - - - - 3 - 7Mar05 - mf - - - - 2 - 15May04 - mf - - - - 1 - 31Mar04 - mf - - - - - diff --git a/pandora_console/include/styles/cb/lib/xgetelementsbytagname.js b/pandora_console/include/styles/cb/lib/xgetelementsbytagname.js deleted file mode 100644 index d8ff99b136..0000000000 --- a/pandora_console/include/styles/cb/lib/xgetelementsbytagname.js +++ /dev/null @@ -1,15 +0,0 @@ -// xGetElementsByTagName, Copyright 2001-2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xGetElementsByTagName(t,p) -{ - var list = null; - t = t || '*'; - p = p || document; - if (xIE4 || xIE5) { - if (t == '*') list = p.all; - else list = p.all.tags(t); - } - else if (p.getElementsByTagName) list = p.getElementsByTagName(t); - return list || new Array(); -} diff --git a/pandora_console/include/styles/cb/lib/xgetelementsbytagname.xml b/pandora_console/include/styles/cb/lib/xgetelementsbytagname.xml deleted file mode 100644 index 5e0d98f95d..0000000000 --- a/pandora_console/include/styles/cb/lib/xgetelementsbytagname.xml +++ /dev/null @@ -1,106 +0,0 @@ - - - - -Copyright 2002-2005 Michael Foster (Cross-Browser.com) -Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - - DOM - -Function - - - -xGetElementsByTagName(tagName[, parentEle]) - - - - tagName - - - - parentEle - - - - -node list - - - xIE4 - xIE5 - - - - - http://cross-browser.com/toys/ - - - - - - - 2May05 - mf - - - - 2002 - mf - - - - - - - 2 - 16Mar05 - mf - - - - 1 - 31Mar04 - mf - - - - - - - diff --git a/pandora_console/include/styles/cb/lib/xgetelepropsarray.js b/pandora_console/include/styles/cb/lib/xgetelepropsarray.js deleted file mode 100644 index 0e63a16db4..0000000000 --- a/pandora_console/include/styles/cb/lib/xgetelepropsarray.js +++ /dev/null @@ -1,86 +0,0 @@ -// xGetElePropsArray, Copyright 2001-2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xGetElePropsArray(ele, eleName) -{ - var u = 'undefined'; - var i = 0, a = new Array(); - - nv('Element', eleName); - nv('id', (xDef(ele.id) ? ele.id : u)); - nv('tagName', (xDef(ele.tagName) ? ele.tagName : u)); - - nv('xWidth()', xWidth(ele)); - nv('style.width', (xDef(ele.style) && xDef(ele.style.width) ? ele.style.width : u)); - nv('offsetWidth', (xDef(ele.offsetWidth) ? ele.offsetWidth : u)); - nv('scrollWidth', (xDef(ele.offsetWidth) ? ele.offsetWidth : u)); - nv('clientWidth', (xDef(ele.clientWidth) ? ele.clientWidth : u)); - - nv('xHeight()', xHeight(ele)); - nv('style.height', (xDef(ele.style) && xDef(ele.style.height) ? ele.style.height : u)); - nv('offsetHeight', (xDef(ele.offsetHeight) ? ele.offsetHeight : u)); - nv('scrollHeight', (xDef(ele.offsetHeight) ? ele.offsetHeight : u)); - nv('clientHeight', (xDef(ele.clientHeight) ? ele.clientHeight : u)); - - nv('xLeft()', xLeft(ele)); - nv('style.left', (xDef(ele.style) && xDef(ele.style.left) ? ele.style.left : u)); - nv('offsetLeft', (xDef(ele.offsetLeft) ? ele.offsetLeft : u)); - nv('style.pixelLeft', (xDef(ele.style) && xDef(ele.style.pixelLeft) ? ele.style.pixelLeft : u)); - - nv('xTop()', xTop(ele)); - nv('style.top', (xDef(ele.style) && xDef(ele.style.top) ? ele.style.top : u)); - nv('offsetTop', (xDef(ele.offsetTop) ? ele.offsetTop : u)); - nv('style.pixelTop', (xDef(ele.style) && xDef(ele.style.pixelTop) ? ele.style.pixelTop : u)); - - nv('', ''); - nv('xGetComputedStyle()', ''); - - nv('top'); - nv('right'); - nv('bottom'); - nv('left'); - - nv('width'); - nv('height'); - - nv('color'); - nv('background-color'); - nv('font-family'); - nv('font-size'); - nv('text-align'); - nv('line-height'); - nv('content'); - - nv('float'); - nv('clear'); - - nv('margin'); - nv('padding'); - nv('padding-top'); - nv('padding-right'); - nv('padding-bottom'); - nv('padding-left'); - - nv('border-top-width'); - nv('border-right-width'); - nv('border-bottom-width'); - nv('border-left-width'); - - nv('position'); - nv('overflow'); - nv('visibility'); - nv('display'); - nv('z-index'); - nv('clip'); - nv('cursor'); - - return a; - - function nv(name, value) - { - a[i] = new Object(); - a[i].name = name; - a[i].value = typeof(value)=='undefined' ? xGetComputedStyle(ele, name) : value; - ++i; - } -} diff --git a/pandora_console/include/styles/cb/lib/xgetelepropsarray.xml b/pandora_console/include/styles/cb/lib/xgetelepropsarray.xml deleted file mode 100644 index 623e8497c0..0000000000 --- a/pandora_console/include/styles/cb/lib/xgetelepropsarray.xml +++ /dev/null @@ -1,54 +0,0 @@ - - - - -Copyright 2002-2005 Michael Foster (Cross-Browser.com) -Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - - Debug - -Function - - - -xGetElePropsArray(ele, eleName) - - - - ele - - - - eleName - - - - -an array of element properties - - - xDef - xWidth - xHeight - xLeft - xTop - xGetComputedStyle - - - - - http://cross-browser.com/x/examples/properties_report.php - - - - - - - 1 - 12Mar05 - mf - - - - - diff --git a/pandora_console/include/styles/cb/lib/xgetelepropsstring.js b/pandora_console/include/styles/cb/lib/xgetelepropsstring.js deleted file mode 100644 index 24b4091740..0000000000 --- a/pandora_console/include/styles/cb/lib/xgetelepropsstring.js +++ /dev/null @@ -1,11 +0,0 @@ -// xGetElePropsString, Copyright 2001-2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xGetElePropsString(ele, eleName, newLine) -{ - var s = '', a = xGetElePropsArray(ele, eleName); - for (var i = 0; i < a.length; ++i) { - s += a[i].name + ' = ' + a[i].value + (newLine || '\n'); - } - return s; -} diff --git a/pandora_console/include/styles/cb/lib/xgetelepropsstring.xml b/pandora_console/include/styles/cb/lib/xgetelepropsstring.xml deleted file mode 100644 index 464991766e..0000000000 --- a/pandora_console/include/styles/cb/lib/xgetelepropsstring.xml +++ /dev/null @@ -1,53 +0,0 @@ - - - - -Copyright 2002-2005 Michael Foster (Cross-Browser.com) -Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - - Debug - -Function - - - -xGetElePropsString(ele, eleName[, newLine]) - - - - ele - - - - eleName - - - - newLine - - - - -a string of element properties - - - xGetElePropsArray - - - - - http://cross-browser.com/x/examples/properties_report.php - - - - - - - 1 - 12Mar05 - mf - - - - - diff --git a/pandora_console/include/styles/cb/lib/xgeturlarguments.js b/pandora_console/include/styles/cb/lib/xgeturlarguments.js deleted file mode 100644 index 89da126eb6..0000000000 --- a/pandora_console/include/styles/cb/lib/xgeturlarguments.js +++ /dev/null @@ -1,17 +0,0 @@ -// xGetURLArguments, Copyright 2001-2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xGetURLArguments() -{ - var idx = location.href.indexOf('?'); - var params = new Array(); - if (idx != -1) { - var pairs = location.href.substring(idx+1, location.href.length).split('&'); - for (var i=0; i - - - -Copyright 2001-2005 Michael Foster (Cross-Browser.com) -Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - - String - -Function - - - -xGetURLArguments() - -an array of name/value pairs, can be indexed by name - - - - http://cross-browser.com/toys/ - - - - - - - 2 - 11Mar05 - mf - - - - 1 - - mf - - - - - - diff --git a/pandora_console/include/styles/cb/lib/xglobals.xml b/pandora_console/include/styles/cb/lib/xglobals.xml deleted file mode 100644 index 14a72e1ff2..0000000000 --- a/pandora_console/include/styles/cb/lib/xglobals.xml +++ /dev/null @@ -1,83 +0,0 @@ - - - - -Copyright 2001-2005 Michael Foster (Cross-Browser.com) -Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - - Var - -Var - - - - - - - mf - - - - - mf - - - - - mf - - - - - - - 3 - 27Apr05 - mf - - - - 2 - - mf - - - - 1 - 31Mar04 - mf - - - - - diff --git a/pandora_console/include/styles/cb/lib/xhaspoint.js b/pandora_console/include/styles/cb/lib/xhaspoint.js deleted file mode 100644 index cfe85c9084..0000000000 --- a/pandora_console/include/styles/cb/lib/xhaspoint.js +++ /dev/null @@ -1,12 +0,0 @@ -// xHasPoint, Copyright 2001-2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xHasPoint(e,x,y,t,r,b,l) -{ - if (!xNum(t)){t=r=b=l=0;} - else if (!xNum(r)){r=b=l=t;} - else if (!xNum(b)){l=r; b=t;} - var eX = xPageX(e), eY = xPageY(e); - return (x >= eX + l && x <= eX + xWidth(e) - r && - y >= eY + t && y <= eY + xHeight(e) - b ); -} diff --git a/pandora_console/include/styles/cb/lib/xhaspoint.xml b/pandora_console/include/styles/cb/lib/xhaspoint.xml deleted file mode 100644 index 0d5c32e1fd..0000000000 --- a/pandora_console/include/styles/cb/lib/xhaspoint.xml +++ /dev/null @@ -1,81 +0,0 @@ - - - - -xHasPoint - -Copyright 2001-2005 Michael Foster (Cross-Browser.com) -Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - - Position - -Function - - - -xHasPoint(ele, iLeft, iTop[, iClpT[, iClpR[, iClpB[, iClpL]]]]) - - - - ele - - - - iLeft - - - - iTop - - - - iClpT - - - - iClpR - - - - iClpB - - - - iClpL - - - - -true if iLeft,iTop is contained within the clipped area of ele - - - xNum - xPageX - xPageY - xWidth - xHeight - - - - - http://cross-browser.com/toys/ - - - - - - - 2 - 16Mar05 - mf - - - - 1 - 31Mar04 - mf - - - - - diff --git a/pandora_console/include/styles/cb/lib/xheight.js b/pandora_console/include/styles/cb/lib/xheight.js deleted file mode 100644 index 692a1f4283..0000000000 --- a/pandora_console/include/styles/cb/lib/xheight.js +++ /dev/null @@ -1,45 +0,0 @@ -// xHeight, Copyright 2001-2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xHeight(e,h) -{ - if(!(e=xGetElementById(e))) return 0; - if (xNum(h)) { - if (h<0) h = 0; - else h=Math.round(h); - } - else h=-1; - var css=xDef(e.style); - if (e == document || e.tagName.toLowerCase() == 'html' || e.tagName.toLowerCase() == 'body') { - h = xClientHeight(); - } - else if(css && xDef(e.offsetHeight) && xStr(e.style.height)) { - if(h>=0) { - var pt=0,pb=0,bt=0,bb=0; - if (document.compatMode=='CSS1Compat') { - var gcs = xGetComputedStyle; - pt=gcs(e,'padding-top',1); - if (pt !== null) { - pb=gcs(e,'padding-bottom',1); - bt=gcs(e,'border-top-width',1); - bb=gcs(e,'border-bottom-width',1); - } - // Should we try this as a last resort? - // At this point getComputedStyle and currentStyle do not exist. - else if(xDef(e.offsetHeight,e.style.height)){ - e.style.height=h+'px'; - pt=e.offsetHeight-h; - } - } - h-=(pt+pb+bt+bb); - if(isNaN(h)||h<0) return; - else e.style.height=h+'px'; - } - h=e.offsetHeight; - } - else if(css && xDef(e.style.pixelHeight)) { - if(h>=0) e.style.pixelHeight=h; - h=e.style.pixelHeight; - } - return h; -} diff --git a/pandora_console/include/styles/cb/lib/xheight.xml b/pandora_console/include/styles/cb/lib/xheight.xml deleted file mode 100644 index a420513ca3..0000000000 --- a/pandora_console/include/styles/cb/lib/xheight.xml +++ /dev/null @@ -1,71 +0,0 @@ - - - - -Copyright 2001-2005 Michael Foster (Cross-Browser.com) -Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - - Size - -Function - - - -xHeight(ele[, uH]) - - - - ele - - - - uH - - - - -integer - - - xgetelementbyid - xnum - xdef - xstr - xgetcomputedstyle - - - - - http://cross-browser.com/toys/ - - - - - - - 4 - 7Apr05 - mf - - - - 3 - 12Mar05 - mf - - - - 2 - 14May04 - mf - - - - 1 - 31Mar04 - mf - - - - - diff --git a/pandora_console/include/styles/cb/lib/xhex.js b/pandora_console/include/styles/cb/lib/xhex.js deleted file mode 100644 index 0de69964e1..0000000000 --- a/pandora_console/include/styles/cb/lib/xhex.js +++ /dev/null @@ -1,13 +0,0 @@ -// xHex, Copyright 2001-2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xHex(n, digits, prefix) -{ - var p = '', n = Math.ceil(n); - if (prefix) p = prefix; - n = n.toString(16); - for (var i=0; i < digits - n.length; ++i) { - p += '0'; - } - return p + n; -} diff --git a/pandora_console/include/styles/cb/lib/xhex.xml b/pandora_console/include/styles/cb/lib/xhex.xml deleted file mode 100644 index 91b8d56544..0000000000 --- a/pandora_console/include/styles/cb/lib/xhex.xml +++ /dev/null @@ -1,49 +0,0 @@ - - - - -Copyright 2001-2005 Michael Foster (Cross-Browser.com) -Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - - String - -Function - - - -xHex(n, digits, prefix) - - - - n - - - - digits - - - - prefix - - - - -string - - - - http://cross-browser.com/toys/ - - - - - - - 1 - 11Mar05 - mf - - - - - diff --git a/pandora_console/include/styles/cb/lib/xhide.js b/pandora_console/include/styles/cb/lib/xhide.js deleted file mode 100644 index 81b2019c53..0000000000 --- a/pandora_console/include/styles/cb/lib/xhide.js +++ /dev/null @@ -1,4 +0,0 @@ -// xHide, Copyright 2001-2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xHide(e){return xVisibility(e,0);} diff --git a/pandora_console/include/styles/cb/lib/xhide.xml b/pandora_console/include/styles/cb/lib/xhide.xml deleted file mode 100644 index e3fa3ce38c..0000000000 --- a/pandora_console/include/styles/cb/lib/xhide.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - -Copyright 2001-2005 Michael Foster (Cross-Browser.com) -Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - - Style - -Function - - - -xHide(ele) - - - - ele - - - - -element.style.visibility - - - xVisibility - - - - - 2004 - mf - - - - - - - 3 - 27Jan05 - mf - - - - 2 - 2004 - mf - - - - 1 - 31Mar04 - mf - - - - - diff --git a/pandora_console/include/styles/cb/lib/ximgasyncwait.js b/pandora_console/include/styles/cb/lib/ximgasyncwait.js deleted file mode 100644 index 6a0be231ea..0000000000 --- a/pandora_console/include/styles/cb/lib/ximgasyncwait.js +++ /dev/null @@ -1,76 +0,0 @@ -// xImgAsyncWait, Copyright 2001-2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xImgAsyncWait(fnStatus, fnInit, fnError, sErrorImg, sAbortImg, imgArray) -{ - var i, imgs = imgArray || document.images; - - for (i = 0; i < imgs.length; ++i) { - imgs[i].onload = imgOnLoad; - imgs[i].onerror = imgOnError; - imgs[i].onabort = imgOnAbort; - } - - xIAW.fnStatus = fnStatus; - xIAW.fnInit = fnInit; - xIAW.fnError = fnError; - xIAW.imgArray = imgArray; - - xIAW(); - - function imgOnLoad() - { - this.wasLoaded = true; - } - function imgOnError() - { - if (sErrorImg && !this.wasError) { - this.src = sErrorImg; - } - this.wasError = true; - } - function imgOnAbort() - { - if (sAbortImg && !this.wasAborted) { - this.src = sAbortImg; - } - this.wasAborted = true; - } -} -// end xImgAsyncWait() - -// Don't call xIAW() directly. It is only called from xImgAsyncWait(). - -function xIAW() -{ - var me = arguments.callee; - if (!me) { - return; // I could have used a global object instead of callee - } - var i, imgs = me.imgArray ? me.imgArray : document.images; - var c = 0, e = 0, a = 0, n = imgs.length; - for (i = 0; i < n; ++i) { - if (imgs[i].wasError) { - ++e; - } - else if (imgs[i].wasAborted) { - ++a; - } - else if (imgs[i].complete || imgs[i].wasLoaded) { - ++c; - } - } - if (me.fnStatus) { - me.fnStatus(n, c, e, a); - } - if (c + e + a == n) { - if ((e || a) && me.fnError) { - me.fnError(n, c, e, a); - } - else if (me.fnInit) { - me.fnInit(); - } - } - else setTimeout('xIAW()', 250); -} -// end xIAW() diff --git a/pandora_console/include/styles/cb/lib/ximgasyncwait.xml b/pandora_console/include/styles/cb/lib/ximgasyncwait.xml deleted file mode 100644 index 84d9495067..0000000000 --- a/pandora_console/include/styles/cb/lib/ximgasyncwait.xml +++ /dev/null @@ -1,67 +0,0 @@ - - - - -Copyright 2003-2005 Michael Foster (Cross-Browser.com) -Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - - Image - Event - -Function - - - -xImgAsyncWait(fnStatus, fnInit, fnError, sErrorImg, sAbortImg, imgArray) - - - - fnStatus - - - fnInit - - - fnError - - - sErrorImg - - - sAbortImg - - - imgArray - - - - - - http://cross-browser.com/x/examples/ximgasyncwait.php - - - - - - - 2 - 28Jul04 - mf - - - - 1 - - mf - - - - - - diff --git a/pandora_console/include/styles/cb/lib/ximgrollsetup.js b/pandora_console/include/styles/cb/lib/ximgrollsetup.js deleted file mode 100644 index 9b9f6393ea..0000000000 --- a/pandora_console/include/styles/cb/lib/ximgrollsetup.js +++ /dev/null @@ -1,29 +0,0 @@ -// xImgRollSetup, Copyright 2002,2003,2004,2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xImgRollSetup(p,s,x) -{ - var ele, id; - for (var i=3; i - - - -Copyright 2002-2005 Michael Foster (Cross-Browser.com) -Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - - Image - Event - -Function - - - -xImgRollSetup(sPath, sOvrSuffix, sFileExt, sImgEleId[, ...]) - - - - sPath - - - - sOvrSuffix - - - - sFileExt - - - - sImgEleId - - - - - - xGetElementById - - - - - http://cross-browser.com/toys/ - - - - - - - 3 - 16Mar05 - mf - - - - 2 - 28Jul04 - mf - - - - 1 - 31Mar04 - mf - - - - - diff --git a/pandora_console/include/styles/cb/lib/xinclude.js b/pandora_console/include/styles/cb/lib/xinclude.js deleted file mode 100644 index 5d5f817770..0000000000 --- a/pandora_console/include/styles/cb/lib/xinclude.js +++ /dev/null @@ -1,59 +0,0 @@ -// xInclude, Copyright 2004,2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xInclude(url1, url2, etc) -{ - if (document.getElementById || document.all || document.layers) { // minimum dhtml support required - var h, f, i, j, a, n, inc; - - for (var i=0; i"; - } - - // else is it a .css file? - else if (f.indexOf('.css') != -1) { // CSS file - h = ""; - } - - // write the link or script element into the document - if (h.length) { document.writeln(h); } - - } // end if (!inc) - } // end outer for - return true; - } // end if (min dhtml support) - return false; -} diff --git a/pandora_console/include/styles/cb/lib/xinclude.xml b/pandora_console/include/styles/cb/lib/xinclude.xml deleted file mode 100644 index 0b5030015b..0000000000 --- a/pandora_console/include/styles/cb/lib/xinclude.xml +++ /dev/null @@ -1,20 +0,0 @@ - - - - -Copyright 2001-2005 Michael Foster (Cross-Browser.com) -Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL -Function - - - -xInclude(url1, url2, etc) - - - - url - - - - - diff --git a/pandora_console/include/styles/cb/lib/xinnerhtml.js b/pandora_console/include/styles/cb/lib/xinnerhtml.js deleted file mode 100644 index 3223a04775..0000000000 --- a/pandora_console/include/styles/cb/lib/xinnerhtml.js +++ /dev/null @@ -1,10 +0,0 @@ -// xInnerHtml, Copyright 2001-2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xInnerHtml(e,h) -{ - if(!(e=xGetElementById(e)) || !xStr(e.innerHTML)) return null; - var s = e.innerHTML; - if (xStr(h)) {e.innerHTML = h;} - return s; -} diff --git a/pandora_console/include/styles/cb/lib/xinnerhtml.xml b/pandora_console/include/styles/cb/lib/xinnerhtml.xml deleted file mode 100644 index 8c51edd329..0000000000 --- a/pandora_console/include/styles/cb/lib/xinnerhtml.xml +++ /dev/null @@ -1,50 +0,0 @@ - - - - -Copyright 2001-2005 Michael Foster (Cross-Browser.com) -Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - - - -Function - - - -xInnerHtml(e, sHtml) - - - - e - - - - sHtml - - - - -string, element.innerHTML if it exists else null - - - xGetElementById - xStr - - - - - http://cross-browser.com/toys/ - - - - - - - 1 - 31Mar04 - mf - - - - - diff --git a/pandora_console/include/styles/cb/lib/xintersection.js b/pandora_console/include/styles/cb/lib/xintersection.js deleted file mode 100644 index 762cd524ee..0000000000 --- a/pandora_console/include/styles/cb/lib/xintersection.js +++ /dev/null @@ -1,45 +0,0 @@ -// xIntersection, Copyright 2001-2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xIntersection(e1, e2, o) -{ - var ix1, iy2, iw, ih, intersect = true; - var e1x1 = xPageX(e1); - var e1x2 = e1x1 + xWidth(e1); - var e1y1 = xPageY(e1); - var e1y2 = e1y1 + xHeight(e1); - var e2x1 = xPageX(e2); - var e2x2 = e2x1 + xWidth(e2); - var e2y1 = xPageY(e2); - var e2y2 = e2y1 + xHeight(e2); - // horizontal - if (e1x1 <= e2x1) { - ix1 = e2x1; - if (e1x2 < e2x1) intersect = false; - else iw = Math.min(e1x2, e2x2) - e2x1; - } - else { - ix1 = e1x1; - if (e2x2 < e1x1) intersect = false; - else iw = Math.min(e1x2, e2x2) - e1x1; - } - // vertical - if (e1y2 >= e2y2) { - iy2 = e2y2; - if (e1y1 > e2y2) intersect = false; - else ih = e2y2 - Math.max(e1y1, e2y1); - } - else { - iy2 = e1y2; - if (e2y1 > e1y2) intersect = false; - else ih = e1y2 - Math.max(e1y1, e2y1); - } - // intersected rectangle - if (intersect && typeof(o)=='object') { - o.x = ix1; - o.y = iy2 - ih; - o.w = iw; - o.h = ih; - } - return intersect; -} diff --git a/pandora_console/include/styles/cb/lib/xintersection.xml b/pandora_console/include/styles/cb/lib/xintersection.xml deleted file mode 100644 index 39309e44d5..0000000000 --- a/pandora_console/include/styles/cb/lib/xintersection.xml +++ /dev/null @@ -1,63 +0,0 @@ - - - - -Copyright 2001-2005 Michael Foster (Cross-Browser.com) -Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - - Position - Size - -Function - - - -xIntersection(ele1, ele2, obj) - - - - ele1 - - - - ele2 - - - - obj - - - - -Returns true if the two elements intersect and assigns properties to obj which describe the intersected rectangle: x, y, w, and h. - - - xpagex - xwidth - xpagey - xheight - - - - - http://cross-browser.com/toys/ - - - - - - - 2 - 21Apr04 - mf - - - - 1 - 31Mar04 - mf - - - - - diff --git a/pandora_console/include/styles/cb/lib/xleft.js b/pandora_console/include/styles/cb/lib/xleft.js deleted file mode 100644 index f53e12d6bb..0000000000 --- a/pandora_console/include/styles/cb/lib/xleft.js +++ /dev/null @@ -1,20 +0,0 @@ -// xLeft, Copyright 2001-2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xLeft(e, iX) -{ - if(!(e=xGetElementById(e))) return 0; - var css=xDef(e.style); - if (css && xStr(e.style.left)) { - if(xNum(iX)) e.style.left=iX+'px'; - else { - iX=parseInt(e.style.left); - if(isNaN(iX)) iX=0; - } - } - else if(css && xDef(e.style.pixelLeft)) { - if(xNum(iX)) e.style.pixelLeft=iX; - else iX=e.style.pixelLeft; - } - return iX; -} diff --git a/pandora_console/include/styles/cb/lib/xleft.xml b/pandora_console/include/styles/cb/lib/xleft.xml deleted file mode 100644 index bf30e2bde1..0000000000 --- a/pandora_console/include/styles/cb/lib/xleft.xml +++ /dev/null @@ -1,53 +0,0 @@ - - - - -Copyright 2001-2005 Michael Foster (Cross-Browser.com) -Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - - Position - Style - -Function - - - -xLeft(ele[, iX]) - - - - ele - - - - iX - - - - -integer - - - xGetElementById - xDef - xStr - xNum - - - - - http://cross-browser.com/toys/ - - - - - - - 1 - 31Mar04 - mf - - - - - diff --git a/pandora_console/include/styles/cb/lib/xlinearscale.js b/pandora_console/include/styles/cb/lib/xlinearscale.js deleted file mode 100644 index 6e782ddd6f..0000000000 --- a/pandora_console/include/styles/cb/lib/xlinearscale.js +++ /dev/null @@ -1,9 +0,0 @@ -// xLinearScale, Copyright 2001-2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xLinearScale(val,iL,iH,oL,oH) -{ - var m=(oH-oL)/(iH-iL); - var b=oL-(iL*m); - return m*val+b; -} diff --git a/pandora_console/include/styles/cb/lib/xlinearscale.xml b/pandora_console/include/styles/cb/lib/xlinearscale.xml deleted file mode 100644 index 8b38983570..0000000000 --- a/pandora_console/include/styles/cb/lib/xlinearscale.xml +++ /dev/null @@ -1,65 +0,0 @@ - - - - -xLinearScale - -Copyright 2001-2005 Michael Foster (Cross-Browser.com) -Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - - Math - -Function - - - -xLinearScale(value, inMin, inMax, outMin, outMax) - - - - value - - - - inMin - - - - inMax - - - - outMin - - - - outMax - - - - -the scaled value - - - - http://cross-browser.com/x/examples/bargraph.html - - - - - - - 2 - 16Mar05 - mf - - - - 1 - 31Mar04 - mf - - - - - diff --git a/pandora_console/include/styles/cb/lib/xloadscript.js b/pandora_console/include/styles/cb/lib/xloadscript.js deleted file mode 100644 index a95c9562c5..0000000000 --- a/pandora_console/include/styles/cb/lib/xloadscript.js +++ /dev/null @@ -1,14 +0,0 @@ -// xLoadScript, Copyright 2001-2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xLoadScript(url) -{ - if (document.createElement && document.getElementsByTagName) { - var s = document.createElement('script'); - var h = document.getElementsByTagName('head'); - if (s && h.length) { - s.src = url; - h[0].appendChild(s); - } - } -} diff --git a/pandora_console/include/styles/cb/lib/xloadscript.xml b/pandora_console/include/styles/cb/lib/xloadscript.xml deleted file mode 100644 index 272cdfd353..0000000000 --- a/pandora_console/include/styles/cb/lib/xloadscript.xml +++ /dev/null @@ -1,39 +0,0 @@ - - - - -Copyright 2001-2005 Michael Foster (Cross-Browser.com) -Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - - Debug - -Function - - - -xLoadScript(url) - - - - url - - - - - - - http://cross-browser.com/toys/ - - - - - - - 1 - 12Mar05 - mf - - - - - diff --git a/pandora_console/include/styles/cb/lib/xmenu1.js b/pandora_console/include/styles/cb/lib/xmenu1.js deleted file mode 100644 index 92097adbff..0000000000 --- a/pandora_console/include/styles/cb/lib/xmenu1.js +++ /dev/null @@ -1,32 +0,0 @@ -// xMenu1, Copyright 2001-2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xMenu1(triggerId, menuId, mouseMargin, openEvent) -{ - var isOpen = false; - var trg = xGetElementById(triggerId); - var mnu = xGetElementById(menuId); - if (trg && mnu) { - xAddEventListener(trg, openEvent, onOpen, false); - } - function onOpen() - { - if (!isOpen) { - xMoveTo(mnu, xPageX(trg), xPageY(trg) + xHeight(trg)); - xShow(mnu); - xAddEventListener(document, 'mousemove', onMousemove, false); - isOpen = true; - } - } - function onMousemove(ev) - { - var e = new xEvent(ev); - if (!xHasPoint(mnu, e.pageX, e.pageY, -mouseMargin) && - !xHasPoint(trg, e.pageX, e.pageY, -mouseMargin)) - { - xHide(mnu); - xRemoveEventListener(document, 'mousemove', onMousemove, false); - isOpen = false; - } - } -} // end xMenu1 diff --git a/pandora_console/include/styles/cb/lib/xmenu1.xml b/pandora_console/include/styles/cb/lib/xmenu1.xml deleted file mode 100644 index e5d1db9c5c..0000000000 --- a/pandora_console/include/styles/cb/lib/xmenu1.xml +++ /dev/null @@ -1,63 +0,0 @@ - - - - -Copyright 2001-2005 Michael Foster (Cross-Browser.com) -Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - - Navigation - -Object - - - -new xMenu1(triggerId, menuId, mouseMargin, openEvent) - - - - triggerId - - - - menuId - - - - mouseMargin - - - - openEvent - - - - - - - - - - - - - xgetelementbyid - xaddeventlistener - xmoveto - xpagex - xpagey - xheight - xshow - xevent - xhaspoint - xhide - xremoveeventlistener - - - - - http://cross-browser.loc/x/menus/xmenu1.php - - - - - diff --git a/pandora_console/include/styles/cb/lib/xmenu1a.js b/pandora_console/include/styles/cb/lib/xmenu1a.js deleted file mode 100644 index 9bfa9b07e7..0000000000 --- a/pandora_console/include/styles/cb/lib/xmenu1a.js +++ /dev/null @@ -1,35 +0,0 @@ -// xMenu1A, Copyright 2001-2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xMenu1A(triggerId, menuId, mouseMargin, slideTime, openEvent) -{ - var isOpen = false; - var trg = xGetElementById(triggerId); - var mnu = xGetElementById(menuId); - if (trg && mnu) { - xHide(mnu); - xAddEventListener(trg, openEvent, onOpen, false); - } - function onOpen() - { - if (!isOpen) { - xMoveTo(mnu, xPageX(trg), xPageY(trg)); - xShow(mnu); - xSlideTo(mnu, xPageX(trg), xPageY(trg) + xHeight(trg), slideTime); - xAddEventListener(document, 'mousemove', onMousemove, false); - isOpen = true; - } - } - function onMousemove(ev) - { - var e = new xEvent(ev); - if (!xHasPoint(mnu, e.pageX, e.pageY, -mouseMargin) && - !xHasPoint(trg, e.pageX, e.pageY, -mouseMargin)) - { - xRemoveEventListener(document, 'mousemove', onMousemove, false); - xSlideTo(mnu, xPageX(trg), xPageY(trg), slideTime); - setTimeout("xHide('" + menuId + "')", slideTime); - isOpen = false; - } - } -} // end xMenu1A diff --git a/pandora_console/include/styles/cb/lib/xmenu1a.xml b/pandora_console/include/styles/cb/lib/xmenu1a.xml deleted file mode 100644 index 076568f99f..0000000000 --- a/pandora_console/include/styles/cb/lib/xmenu1a.xml +++ /dev/null @@ -1,68 +0,0 @@ - - - - -Copyright 2001-2005 Michael Foster (Cross-Browser.com) -Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - - Navigation - -Object - - - -xMenu1A(triggerId, menuId, mouseMargin, slideTime, openEvent) - - - - triggerId - - - - menuId - - - - mouseMargin - - - - slideTime - - - - openEvent - - - - - - - - - - - - - xgetelementbyid - xhide - xaddeventlistener - xmoveto - xpagex - xpagey - xshow - xslideto - xheight - xevent - xhaspoint - xremoveeventlistener - - - - - http://cross-browser.loc/x/menus/xmenu1.php - - - - - diff --git a/pandora_console/include/styles/cb/lib/xmenu1b.js b/pandora_console/include/styles/cb/lib/xmenu1b.js deleted file mode 100644 index a742633d8e..0000000000 --- a/pandora_console/include/styles/cb/lib/xmenu1b.js +++ /dev/null @@ -1,43 +0,0 @@ -// xMenu1B, Copyright 2001-2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xMenu1B(openTriggerId, closeTriggerId, menuId, slideTime, bOnClick) -{ - xMenu1B.instances[xMenu1B.instances.length] = this; - var isOpen = false; - var oTrg = xGetElementById(openTriggerId); - var cTrg = xGetElementById(closeTriggerId); - var mnu = xGetElementById(menuId); - if (oTrg && cTrg && mnu) { - xHide(mnu); - if (bOnClick) oTrg.onclick = openOnEvent; - else oTrg.onmouseover = openOnEvent; - cTrg.onclick = closeOnClick; - } - function openOnEvent() - { - if (!isOpen) { - for (var i = 0; i < xMenu1B.instances.length; ++i) { - xMenu1B.instances[i].close(); - } - xMoveTo(mnu, xPageX(oTrg), xPageY(oTrg)); - xShow(mnu); - xSlideTo(mnu, xPageX(oTrg), xPageY(oTrg) + xHeight(oTrg), slideTime); - isOpen = true; - } - } - function closeOnClick() - { - if (isOpen) { - xSlideTo(mnu, xPageX(oTrg), xPageY(oTrg), slideTime); - setTimeout("xHide('" + menuId + "')", slideTime); - isOpen = false; - } - } - this.close = function() - { - closeOnClick(); - } -} // end xMenu1B - -xMenu1B.instances = new Array(); // static member of xMenu1B diff --git a/pandora_console/include/styles/cb/lib/xmenu1b.xml b/pandora_console/include/styles/cb/lib/xmenu1b.xml deleted file mode 100644 index 72e55d8e75..0000000000 --- a/pandora_console/include/styles/cb/lib/xmenu1b.xml +++ /dev/null @@ -1,64 +0,0 @@ - - - - -Copyright 2001-2005 Michael Foster (Cross-Browser.com) -Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - - Navigation - -Object - - - -xMenu1B(openTriggerId, closeTriggerId, menuId, slideTime, bOnClick) - - - - openTriggerId - - - - closeTriggerId - - - - menuId - - - - slideTime - - - - bOnClick - - - - - - - - - - - - - xgetelementbyid - xhide - xmoveto - xpagex - xpagey - xshow - xslideto - xheight - - - - - http://cross-browser.loc/x/menus/xmenu1.php - - - - - diff --git a/pandora_console/include/styles/cb/lib/xmenu5.js b/pandora_console/include/styles/cb/lib/xmenu5.js deleted file mode 100644 index 2bea5cca41..0000000000 --- a/pandora_console/include/styles/cb/lib/xmenu5.js +++ /dev/null @@ -1,77 +0,0 @@ -// xMenu5, Copyright 2004,2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xMenu5(idUL, btnClass, idAutoOpen) // object prototype -{ - // Constructor - - var i, ul, btns, mnu = xGetElementById(idUL); - btns = xGetElementsByClassName(btnClass, mnu, 'DIV'); - for (i = 0; i < btns.length; ++i) { - ul = xNextSib(btns[i], 'UL'); - btns[i].xClpsTgt = ul; - btns[i].onclick = btn_onClick; - set_display(btns[i], 0); - } - if (idAutoOpen) { - var e = xGetElementById(idAutoOpen); - while (e && e != mnu) { - if (e.xClpsTgt) set_display(e, 1); - while (e && e != mnu && e.nodeName != 'LI') e = e.parentNode; - e = e.parentNode; // UL - while (e && !e.xClpsTgt) e = xPrevSib(e); - } - } - - // Private - - function btn_onClick() - { - var thisLi, fc, pUl; - if (this.xClpsTgt.style.display == 'none') { - set_display(this, 1); - // get this label's parent LI - var li = this.parentNode; - thisLi = li; - pUl = li.parentNode; // get this LI's parent UL - li = xFirstChild(pUl); // get the UL's first LI child - // close all labels' ULs on this level except for thisLI's label - while (li) { - if (li != thisLi) { - fc = xFirstChild(li); - if (fc && fc.xClpsTgt) { - set_display(fc, 0); - } - } - li = xNextSib(li); - } - } - else { - set_display(this, 0); - } - } - - function set_display(ele, bBlock) - { - if (bBlock) { - ele.xClpsTgt.style.display = 'block'; - ele.innerHTML = '-'; - } - else { - ele.xClpsTgt.style.display = 'none'; - ele.innerHTML = '+'; - } - } - - // Public - - this.onUnload = function() - { - for (i = 0; i < btns.length; ++i) { - btns[i].xClpsTgt = null; - btns[i].onclick = null; - } - } -} // end xMenu5 prototype - - diff --git a/pandora_console/include/styles/cb/lib/xmenu5.xml b/pandora_console/include/styles/cb/lib/xmenu5.xml deleted file mode 100644 index d605ecbe38..0000000000 --- a/pandora_console/include/styles/cb/lib/xmenu5.xml +++ /dev/null @@ -1,106 +0,0 @@ - - - - -Copyright 2004-2005 Michael Foster (Cross-Browser.com) -Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - - Navigation - -Object - - - -new xMenu5(idUL, btnClass[, idAutoOpen]) - - - - idUL - - - - btnClass - - - - idAutoOpen - - - - - - - onUnload - - - - - - xgetelementbyid - xgetelementsbyclassname - xnextsib - xprevsib - xfirstchild - - - - - http://cross-browser.com/x/menus/xmenu5.php - - - - - - - 2004 - mf - - - - - - - - - mf - - - - - diff --git a/pandora_console/include/styles/cb/lib/xmoveto.js b/pandora_console/include/styles/cb/lib/xmoveto.js deleted file mode 100644 index c7e03db9ab..0000000000 --- a/pandora_console/include/styles/cb/lib/xmoveto.js +++ /dev/null @@ -1,8 +0,0 @@ -// xMoveTo, Copyright 2001-2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xMoveTo(e,x,y) -{ - xLeft(e,x); - xTop(e,y); -} diff --git a/pandora_console/include/styles/cb/lib/xmoveto.xml b/pandora_console/include/styles/cb/lib/xmoveto.xml deleted file mode 100644 index 1299387a94..0000000000 --- a/pandora_console/include/styles/cb/lib/xmoveto.xml +++ /dev/null @@ -1,52 +0,0 @@ - - - - -Copyright 2001-2005 Michael Foster (Cross-Browser.com) -Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - - Position - -Function - - - -xMoveTo(ele, iX, iY) - - - - ele - - - - iX - - - - iY - - - - - - xLeft - xTop - - - - - http://cross-browser.com/toys/ - - - - - - - 1 - 11Mar05 - mf - - - - - diff --git a/pandora_console/include/styles/cb/lib/xname.js b/pandora_console/include/styles/cb/lib/xname.js deleted file mode 100644 index 18829ed3ac..0000000000 --- a/pandora_console/include/styles/cb/lib/xname.js +++ /dev/null @@ -1,12 +0,0 @@ -// xName, Copyright 2001-2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xName(e) -{ - if (!e) return e; - else if (e.id && e.id != "") return e.id; - else if (e.name && e.name != "") return e.name; - else if (e.nodeName && e.nodeName != "") return e.nodeName; - else if (e.tagName && e.tagName != "") return e.tagName; - else return e; -} diff --git a/pandora_console/include/styles/cb/lib/xname.xml b/pandora_console/include/styles/cb/lib/xname.xml deleted file mode 100644 index 5f98dda47e..0000000000 --- a/pandora_console/include/styles/cb/lib/xname.xml +++ /dev/null @@ -1,32 +0,0 @@ - - - - -Copyright 2001-2005 Michael Foster (Cross-Browser.com) -Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - - Debug - -Function - - - -xName(e) - - - - e - - - - -string - - - - http://cross-browser.com/toys/ - - - - - diff --git a/pandora_console/include/styles/cb/lib/xnextsib.js b/pandora_console/include/styles/cb/lib/xnextsib.js deleted file mode 100644 index f51bb4a5dd..0000000000 --- a/pandora_console/include/styles/cb/lib/xnextsib.js +++ /dev/null @@ -1,10 +0,0 @@ -// xNextSib, Copyright 2001-2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xNextSib(e,t) -{ - var s = e ? e.nextSibling : null; - if (t) while (s && s.nodeName != t) { s = s.nextSibling; } - else while (s && s.nodeType != 1) { s = s.nextSibling; } - return s; -} diff --git a/pandora_console/include/styles/cb/lib/xnextsib.xml b/pandora_console/include/styles/cb/lib/xnextsib.xml deleted file mode 100644 index 7ecb5c90e4..0000000000 --- a/pandora_console/include/styles/cb/lib/xnextsib.xml +++ /dev/null @@ -1,51 +0,0 @@ - - - - -Copyright 2001-2005 Michael Foster (Cross-Browser.com) -Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - - DOM - -Function - - - -xNextSib(ele, tag) - - - - ele - - - - tag - - - - -If tag is defined, returns next sibling with nodeName == tag, else with nodeType == 1. - - - - http://cross-browser.com/toys/ - - - - - - - 2 - 11Mar05 - mf - - - - 1 - 27Jan05 - mf - - - - - diff --git a/pandora_console/include/styles/cb/lib/xnum.js b/pandora_console/include/styles/cb/lib/xnum.js deleted file mode 100644 index c17bf42e24..0000000000 --- a/pandora_console/include/styles/cb/lib/xnum.js +++ /dev/null @@ -1,8 +0,0 @@ -// xNum, Copyright 2001-2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xNum() -{ - for(var i=0; i - - - -Copyright 2001-2005 Michael Foster (Cross-Browser.com) -Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - - Type - - -Function - - - -xNum(ref, etc) - - - - ref - - - - -Return true if all arguments are of type 'number', else false. Also returns false if isNaN. - - - - http://cross-browser.com/toys/ - - - - - - - 2 - 2Apr05 - mf - - - - 1 - 31Mar04 - mf - - - - - diff --git a/pandora_console/include/styles/cb/lib/xoffsetleft.js b/pandora_console/include/styles/cb/lib/xoffsetleft.js deleted file mode 100644 index dc472269f5..0000000000 --- a/pandora_console/include/styles/cb/lib/xoffsetleft.js +++ /dev/null @@ -1,9 +0,0 @@ -// xOffsetLeft, Copyright 2001-2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xOffsetLeft(e) -{ - if (!(e=xGetElementById(e))) return 0; - if (xDef(e.offsetLeft)) return e.offsetLeft; - else return 0; -} diff --git a/pandora_console/include/styles/cb/lib/xoffsetleft.xml b/pandora_console/include/styles/cb/lib/xoffsetleft.xml deleted file mode 100644 index 8b1f1964c5..0000000000 --- a/pandora_console/include/styles/cb/lib/xoffsetleft.xml +++ /dev/null @@ -1,46 +0,0 @@ - - - - -Copyright 2001-2005 Michael Foster (Cross-Browser.com) -Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - - Position - -Function - - - -xOffsetLeft(ele) - - - - ele - - - - -the element's X offset within its parent element. - - - xGetElementById - xDef - - - - - http://cross-browser.com/toys/ - - - - - - - 1 - 31Mar04 - mf - - - - - diff --git a/pandora_console/include/styles/cb/lib/xoffsettop.js b/pandora_console/include/styles/cb/lib/xoffsettop.js deleted file mode 100644 index f99fe97740..0000000000 --- a/pandora_console/include/styles/cb/lib/xoffsettop.js +++ /dev/null @@ -1,9 +0,0 @@ -// xOffsetTop, Copyright 2001-2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xOffsetTop(e) -{ - if (!(e=xGetElementById(e))) return 0; - if (xDef(e.offsetTop)) return e.offsetTop; - else return 0; -} diff --git a/pandora_console/include/styles/cb/lib/xoffsettop.xml b/pandora_console/include/styles/cb/lib/xoffsettop.xml deleted file mode 100644 index e23963ec97..0000000000 --- a/pandora_console/include/styles/cb/lib/xoffsettop.xml +++ /dev/null @@ -1,46 +0,0 @@ - - - - -Copyright 2001-2005 Michael Foster (Cross-Browser.com) -Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - - Position - -Function - - - -xOffsetTop(ele) - - - - ele - - - - -the element's Y offset within its parent element - - - xGetElementById - xDef - - - - - http://cross-browser.com/toys/ - - - - - - - 1 - 31Mar04 - mf - - - - - diff --git a/pandora_console/include/styles/cb/lib/xpad.js b/pandora_console/include/styles/cb/lib/xpad.js deleted file mode 100644 index 517b603baf..0000000000 --- a/pandora_console/include/styles/cb/lib/xpad.js +++ /dev/null @@ -1,10 +0,0 @@ -// xPad, Copyright 2001-2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xPad(s,len,c,left) -{ - if(typeof s != 'string') s=s+''; - if(left) {for(var i=s.length; i - - - -Copyright 2001-2005 Michael Foster (Cross-Browser.com) -Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - - String - -Function - - - -xPad(str, finalLen, padChar, bLeft) - - - - str - - - - finalLen - - - - padChar - - - - bLeft - - - - -str, after padding - - - - http://cross-browser.com/toys/ - - - - - - - 2 - 17Mar05 - mf - - - - 1 - 11Mar05 - mf - - - - - diff --git a/pandora_console/include/styles/cb/lib/xpagex.js b/pandora_console/include/styles/cb/lib/xpagex.js deleted file mode 100644 index ecc54a66a8..0000000000 --- a/pandora_console/include/styles/cb/lib/xpagex.js +++ /dev/null @@ -1,13 +0,0 @@ -// xPageX, Copyright 2001-2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xPageX(e) -{ - if (!(e=xGetElementById(e))) return 0; - var x = 0; - while (e) { - if (xDef(e.offsetLeft)) x += e.offsetLeft; - e = xDef(e.offsetParent) ? e.offsetParent : null; - } - return x; -} diff --git a/pandora_console/include/styles/cb/lib/xpagex.xml b/pandora_console/include/styles/cb/lib/xpagex.xml deleted file mode 100644 index 3c10f3993e..0000000000 --- a/pandora_console/include/styles/cb/lib/xpagex.xml +++ /dev/null @@ -1,54 +0,0 @@ - - - - -Copyright 2001-2005 Michael Foster (Cross-Browser.com) -Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - - Position - -Function - - - -xPageX(ele) - - - - ele - - - - -the page relative X position of ele - - - xGetElementById - xDef - - - - - http://cross-browser.com/toys/ - - - - - - - - mf - - - - - - - 1 - 31Mar04 - mf - - - - - diff --git a/pandora_console/include/styles/cb/lib/xpagey.js b/pandora_console/include/styles/cb/lib/xpagey.js deleted file mode 100644 index 5410ff3294..0000000000 --- a/pandora_console/include/styles/cb/lib/xpagey.js +++ /dev/null @@ -1,14 +0,0 @@ -// xPageY, Copyright 2001-2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xPageY(e) -{ - if (!(e=xGetElementById(e))) return 0; - var y = 0; - while (e) { - if (xDef(e.offsetTop)) y += e.offsetTop; - e = xDef(e.offsetParent) ? e.offsetParent : null; - } -// if (xOp7Up) return y - document.body.offsetTop; // v3.14, temporary hack for opera bug 130324 (reported 1nov03) - return y; -} diff --git a/pandora_console/include/styles/cb/lib/xpagey.xml b/pandora_console/include/styles/cb/lib/xpagey.xml deleted file mode 100644 index 9ffe2c5fe6..0000000000 --- a/pandora_console/include/styles/cb/lib/xpagey.xml +++ /dev/null @@ -1,60 +0,0 @@ - - - - -Copyright 2001-2005 Michael Foster (Cross-Browser.com) -Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - - Position - -Function - - - -xPageY(ele) - - - - ele - - - - -the page relative Y position of ele - - - xGetElementById - xDef - - - - - http://cross-browser.com/toys/ - - - - - - - - mf - - - - - - - 2 - 25Apr05 - mf - - - - 1 - 31Mar04 - mf - - - - - diff --git a/pandora_console/include/styles/cb/lib/xparaeq.js b/pandora_console/include/styles/cb/lib/xparaeq.js deleted file mode 100644 index 29a8fe0265..0000000000 --- a/pandora_console/include/styles/cb/lib/xparaeq.js +++ /dev/null @@ -1,40 +0,0 @@ -// xParaEq, Copyright 2004,2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -// Animation with Parametric Equations - -function xParaEq(e, xExpr, yExpr, totalTime) -{ - if (!(e=xGetElementById(e))) return; - e.t = 0; - e.tStep = .008; - if (!e.timeout) e.timeout = 25; - e.xExpr = xExpr; - e.yExpr = yExpr; - e.slideTime = totalTime; - var d = new Date(); - e.C = d.getTime(); - if (!e.moving) {e.stop=false; _xParaEq(e);} -} -function _xParaEq(e) -{ - if (!(e=xGetElementById(e))) return; - var now = new Date(); - var et = now.getTime() - e.C; - e.t += e.tStep; - t = e.t; - if (e.stop) { e.moving = false; } - else if (!e.slideTime || et < e.slideTime) { - setTimeout("_xParaEq('"+e.id+"')", e.timeout); - var p = xParent(e), centerX, centerY; - centerX = (xWidth(p)/2)-(xWidth(e)/2); - centerY = (xHeight(p)/2)-(xHeight(e)/2); - e.xTarget = Math.round((eval(e.xExpr) * centerX) + centerX) + xScrollLeft(p); - e.yTarget = Math.round((eval(e.yExpr) * centerY) + centerY) + xScrollTop(p); - xMoveTo(e, e.xTarget, e.yTarget); - e.moving = true; - } - else { - e.moving = false; - } -} diff --git a/pandora_console/include/styles/cb/lib/xparaeq.xml b/pandora_console/include/styles/cb/lib/xparaeq.xml deleted file mode 100644 index 50f59ea76d..0000000000 --- a/pandora_console/include/styles/cb/lib/xparaeq.xml +++ /dev/null @@ -1,78 +0,0 @@ - - - - -Copyright 2004-2005 Michael Foster (Cross-Browser.com) -Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - - Animation - -Function - - - -xParaEq(ele, xExpr, yExpr, totalTime) - - - - ele - - - - xExpr - - - - yExpr - - - - totalTime - - - - - - - stop - - - - moving - - - - - - xgetelementbyid - xparent - xwidth - xheight - xscrollleft - xscrolltop - xmoveto - - - - - http://cross-browser.com/x/examples/xparaeq.php - - - - - - - 2 - 6Apr05 - mf - - - - 1 - 21Jun04 - mf - - - - - diff --git a/pandora_console/include/styles/cb/lib/xparent.js b/pandora_console/include/styles/cb/lib/xparent.js deleted file mode 100644 index c08c5c23b6..0000000000 --- a/pandora_console/include/styles/cb/lib/xparent.js +++ /dev/null @@ -1,12 +0,0 @@ -// xParent, Copyright 2001-2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xParent(e, bNode) -{ - if (!(e=xGetElementById(e))) return null; - var p=null; - if (!bNode && xDef(e.offsetParent)) p=e.offsetParent; - else if (xDef(e.parentNode)) p=e.parentNode; - else if (xDef(e.parentElement)) p=e.parentElement; - return p; -} diff --git a/pandora_console/include/styles/cb/lib/xparent.xml b/pandora_console/include/styles/cb/lib/xparent.xml deleted file mode 100644 index 5af3fc584a..0000000000 --- a/pandora_console/include/styles/cb/lib/xparent.xml +++ /dev/null @@ -1,52 +0,0 @@ - - - - -xParent - -Copyright 2001-2005 Michael Foster (Cross-Browser.com) -Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - - DOM - -Function - - - -xParent(e, bNode) - - - - ele - - - - bNode - - - - -a reference to the element's parent element, or null if not found - - - xGetElementById - xDef - - - - - http://cross-browser.com/toys/ - - - - - - - 1 - 31Mar04 - mf - - - - - diff --git a/pandora_console/include/styles/cb/lib/xparentchain.js b/pandora_console/include/styles/cb/lib/xparentchain.js deleted file mode 100644 index 2510d02507..0000000000 --- a/pandora_console/include/styles/cb/lib/xparentchain.js +++ /dev/null @@ -1,14 +0,0 @@ -// xParentChain, Copyright 2001-2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xParentChain(e,delim,bNode) -{ - if (!(e=xGetElementById(e))) return; - var lim=100, s = "", d = delim || "\n"; - while(e) { - s += xName(e) + ', ofsL:'+e.offsetLeft + ', ofsT:'+e.offsetTop + d; - e = xParent(e,bNode); - if (!lim--) break; - } - return s; -} diff --git a/pandora_console/include/styles/cb/lib/xparentchain.xml b/pandora_console/include/styles/cb/lib/xparentchain.xml deleted file mode 100644 index 6bbb89ce11..0000000000 --- a/pandora_console/include/styles/cb/lib/xparentchain.xml +++ /dev/null @@ -1,55 +0,0 @@ - - - - -Copyright 2001-2005 Michael Foster (Cross-Browser.com) -Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - - Debug - -Function - - - -xParentChain(ele, sDelim, bNode) - - - - ele - - - - sDelim - ']]> - - - bNode - - - - -string - - - xGetElementById - xName - xParent - - - - - http://cross-browser.com/toys/ - - - - - - - 1 - 12Mar05 - mf - - - - - diff --git a/pandora_console/include/styles/cb/lib/xpopup.js b/pandora_console/include/styles/cb/lib/xpopup.js deleted file mode 100644 index 069591caca..0000000000 --- a/pandora_console/include/styles/cb/lib/xpopup.js +++ /dev/null @@ -1,62 +0,0 @@ -// xPopup, Copyright 2001-2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xPopup(sTmrType, uTimeout, sPos1, sPos2, sPos3, sStyle, sId, sUrl) -{ - if (document.getElementById && document.createElement && - document.body && document.body.appendChild) - { - // create popup element - //var e = document.createElement('DIV'); - var e = document.createElement('IFRAME'); - this.ele = e; - e.id = sId; - e.style.position = 'absolute'; - e.className = sStyle; - //e.innerHTML = sHtml; - e.src = sUrl; - document.body.appendChild(e); - xShow(e); - this.tmr = xTimer.set(sTmrType, this, sTmrType, uTimeout); - // init - this.open = false; - this.margin = 10; - this.pos1 = sPos1; - this.pos2 = sPos2; - this.pos3 = sPos3; - this.slideTime = 500; // slide time in ms - this.interval(); - } -} // end xPopup -// methods -xPopup.prototype.show = function() -{ - this.interval(); -}; -xPopup.prototype.hide = function() -{ - this.timeout(); -}; -// timer event listeners -xPopup.prototype.timeout = function() // hide popup -{ - if (this.open) { - var e = this.ele; - var pos = xCardinalPosition(e, this.pos3, this.margin, true); - xSlideTo(e, pos.x, pos.y, this.slideTime); - setTimeout("xHide('" + e.id + "')", this.slideTime); - this.open = false; - } -}; -xPopup.prototype.interval = function() // size, position and show popup -{ - if (!this.open) { - var e = this.ele; - var pos = xCardinalPosition(e, this.pos1, this.margin, true); - xMoveTo(e, pos.x, pos.y); - xShow(e); - pos = xCardinalPosition(e, this.pos2, this.margin, false); - xSlideTo(e, pos.x, pos.y, this.slideTime); - this.open = true; - } -}; diff --git a/pandora_console/include/styles/cb/lib/xpopup.xml b/pandora_console/include/styles/cb/lib/xpopup.xml deleted file mode 100644 index e63191ac14..0000000000 --- a/pandora_console/include/styles/cb/lib/xpopup.xml +++ /dev/null @@ -1,86 +0,0 @@ - - - - -Copyright 2002-2005 Michael Foster (Cross-Browser.com) -Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - - Object - -Object - - - -xPopup(sTmrType, uTimeout, sPos1, sPos2, sPos3, sStyle, sId, sUrl) - - - - sTmrType - - - - uTimeout - - - - sPos1 - - - - sPos2 - - - - sPos3 - - - - sStyle - - - - sId - - - - sUrl - - - - - - - slideTime - - - - - - xshow - xtimer - xcardinalposition - xslideto - xmoveto - - - - - http://cross-browser.com/examples/popup.php - - - - - - - - mf - - - - - mf - - - - - diff --git a/pandora_console/include/styles/cb/lib/xpreventdefault.js b/pandora_console/include/styles/cb/lib/xpreventdefault.js deleted file mode 100644 index bf18e792af..0000000000 --- a/pandora_console/include/styles/cb/lib/xpreventdefault.js +++ /dev/null @@ -1,8 +0,0 @@ -// xPreventDefault, Copyright 2004,2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xPreventDefault(e) -{ - if (e && e.preventDefault) e.preventDefault(); - else if (window.event) window.event.returnValue = false; -} diff --git a/pandora_console/include/styles/cb/lib/xpreventdefault.xml b/pandora_console/include/styles/cb/lib/xpreventdefault.xml deleted file mode 100644 index f6d4cbbaf3..0000000000 --- a/pandora_console/include/styles/cb/lib/xpreventdefault.xml +++ /dev/null @@ -1,39 +0,0 @@ - - - - -Copyright 2004-2005 Michael Foster (Cross-Browser.com) -Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - - Event - -Function - - - -xPreventDefault(evt) - - - - evt - - - - - - - http://cross-browser.com/toys/ - - - - - - - 1 - 30Jul04 - mf - - - - - diff --git a/pandora_console/include/styles/cb/lib/xprevsib.js b/pandora_console/include/styles/cb/lib/xprevsib.js deleted file mode 100644 index 4ca8112801..0000000000 --- a/pandora_console/include/styles/cb/lib/xprevsib.js +++ /dev/null @@ -1,10 +0,0 @@ -// xPrevSib, Copyright 2001-2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xPrevSib(e,t) -{ - var s = e ? e.previousSibling : null; - if (t) while(s && s.nodeName != t) {s=s.previousSibling;} - else while(s && s.nodeType != 1) {s=s.previousSibling;} - return s; -} diff --git a/pandora_console/include/styles/cb/lib/xprevsib.xml b/pandora_console/include/styles/cb/lib/xprevsib.xml deleted file mode 100644 index ecd38580d7..0000000000 --- a/pandora_console/include/styles/cb/lib/xprevsib.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - -Copyright 2005 Michael Foster (Cross-Browser.com) -Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - - DOM - -Function - - - -xPrevSib(ele, tag) - - - - ele - - - - tag - - - - -returns previous sibling with nodeName == tag (if tag is defined), else with nodeType == 1. - - - - http://cross-browser.com/toys/ - - - - - - - 27Jan05 - mf - - - - - - - 2 - 11Mar05 - mf - - - - 1 - 27Jan05 - mf - - - - - diff --git a/pandora_console/include/styles/cb/lib/xrad.js b/pandora_console/include/styles/cb/lib/xrad.js deleted file mode 100644 index 1ba0cc6d42..0000000000 --- a/pandora_console/include/styles/cb/lib/xrad.js +++ /dev/null @@ -1,7 +0,0 @@ -// xRad, Copyright 2001-2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xRad(deg) -{ - return deg*(Math.PI/180); -} diff --git a/pandora_console/include/styles/cb/lib/xrad.xml b/pandora_console/include/styles/cb/lib/xrad.xml deleted file mode 100644 index bb93738d20..0000000000 --- a/pandora_console/include/styles/cb/lib/xrad.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - -Copyright 2001-2005 Michael Foster (Cross-Browser.com) -Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - - Math - -Function - - - -xRad(deg) - - - - deg - - - - -number - - - - http://cross-browser.com/toys/ - - - - - - - 1 - 11Mar05 - mf - - - - - diff --git a/pandora_console/include/styles/cb/lib/xremoveeventlistener.js b/pandora_console/include/styles/cb/lib/xremoveeventlistener.js deleted file mode 100644 index 2505d44ffb..0000000000 --- a/pandora_console/include/styles/cb/lib/xremoveeventlistener.js +++ /dev/null @@ -1,16 +0,0 @@ -// xRemoveEventListener, Copyright 2001-2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xRemoveEventListener(e,eT,eL,cap) -{ - if(!(e=xGetElementById(e))) return; - eT=eT.toLowerCase(); - if((!xIE4Up && !xOp7Up) && e==window) { - if(eT=='resize') { window.xREL=null; return; } - if(eT=='scroll') { window.xSEL=null; return; } - } - var eh='e.on'+eT+'=null'; - if(e.removeEventListener) e.removeEventListener(eT,eL,cap); - else if(e.detachEvent) e.detachEvent('on'+eT,eL); - else eval(eh); -} diff --git a/pandora_console/include/styles/cb/lib/xremoveeventlistener.xml b/pandora_console/include/styles/cb/lib/xremoveeventlistener.xml deleted file mode 100644 index 724e3a1f49..0000000000 --- a/pandora_console/include/styles/cb/lib/xremoveeventlistener.xml +++ /dev/null @@ -1,69 +0,0 @@ - - - - -Copyright 2001-2005 Michael Foster (Cross-Browser.com) -Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - - Event - -Function - - - -xRemoveEventListener(ele, sEventType, fnEventListener[, bCapture]) - - - - ele - - - - sEventType - - - - fnEventListener - - - - bCapture - - - - - - xGetElementById - xIE4Up - xOp7Up - - - - - http://cross-browser.com/toys/ - - - - - - - 3 - 25Apr05 - mf - - - - 2 - 14Mar05 - mf - - - - 1 - 31Mar04 - mf - - - - - diff --git a/pandora_console/include/styles/cb/lib/xresizeto.js b/pandora_console/include/styles/cb/lib/xresizeto.js deleted file mode 100644 index a93e6dff95..0000000000 --- a/pandora_console/include/styles/cb/lib/xresizeto.js +++ /dev/null @@ -1,8 +0,0 @@ -// xResizeTo, Copyright 2001-2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xResizeTo(e,w,h) -{ - xWidth(e,w); - xHeight(e,h); -} diff --git a/pandora_console/include/styles/cb/lib/xresizeto.xml b/pandora_console/include/styles/cb/lib/xresizeto.xml deleted file mode 100644 index 7adf494e05..0000000000 --- a/pandora_console/include/styles/cb/lib/xresizeto.xml +++ /dev/null @@ -1,60 +0,0 @@ - - - - -Copyright 2001-2005 Michael Foster (Cross-Browser.com) -Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - - Size - -Function - - - -xResizeTo(e, uW, uH) - - - - e - - - - uW - - - - uH - - - - - - xwidth - xheight - - - - - http://cross-browser.com/toys/ - - - - - - - - mf - - - - - - - 1 - 11Mar05 - mf - - - - - diff --git a/pandora_console/include/styles/cb/lib/xscrollleft.js b/pandora_console/include/styles/cb/lib/xscrollleft.js deleted file mode 100644 index 1e264d5796..0000000000 --- a/pandora_console/include/styles/cb/lib/xscrollleft.js +++ /dev/null @@ -1,18 +0,0 @@ -// xScrollLeft, Copyright 2001-2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xScrollLeft(e, bWin) -{ - var offset=0; - if (!xDef(e) || bWin || e == document || e.tagName.toLowerCase() == 'html' || e.tagName.toLowerCase() == 'body') { - var w = window; - if (bWin && e) w = e; - if(w.document.documentElement && w.document.documentElement.scrollLeft) offset=w.document.documentElement.scrollLeft; - else if(w.document.body && xDef(w.document.body.scrollLeft)) offset=w.document.body.scrollLeft; - } - else { - e = xGetElementById(e); - if (e && xNum(e.scrollLeft)) offset = e.scrollLeft; - } - return offset; -} diff --git a/pandora_console/include/styles/cb/lib/xscrollleft.xml b/pandora_console/include/styles/cb/lib/xscrollleft.xml deleted file mode 100644 index 803c7e8e52..0000000000 --- a/pandora_console/include/styles/cb/lib/xscrollleft.xml +++ /dev/null @@ -1,64 +0,0 @@ - - - - -Copyright 2001-2005 Michael Foster (Cross-Browser.com) -Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - - Position - Window - -Function - - - -xScrollLeft(e, bWin) - - - - ele - - - - bWin - - - - -the number of pixels the element (or window) has scrolled horizontally - - - xGetElementById - xDef - xNum - - - - - http://cross-browser.com/toys/ - - - - - - - 3 - 6Apr04 - mf - - - - 2 - - mf - - - - 1 - 31Mar04 - mf - - - - - diff --git a/pandora_console/include/styles/cb/lib/xscrolltop.js b/pandora_console/include/styles/cb/lib/xscrolltop.js deleted file mode 100644 index 829c439796..0000000000 --- a/pandora_console/include/styles/cb/lib/xscrolltop.js +++ /dev/null @@ -1,18 +0,0 @@ -// xScrollTop, Copyright 2001-2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xScrollTop(e, bWin) -{ - var offset=0; - if (!xDef(e) || bWin || e == document || e.tagName.toLowerCase() == 'html' || e.tagName.toLowerCase() == 'body') { - var w = window; - if (bWin && e) w = e; - if(w.document.documentElement && w.document.documentElement.scrollTop) offset=w.document.documentElement.scrollTop; - else if(w.document.body && xDef(w.document.body.scrollTop)) offset=w.document.body.scrollTop; - } - else { - e = xGetElementById(e); - if (e && xNum(e.scrollTop)) offset = e.scrollTop; - } - return offset; -} diff --git a/pandora_console/include/styles/cb/lib/xscrolltop.xml b/pandora_console/include/styles/cb/lib/xscrolltop.xml deleted file mode 100644 index 45e74d0617..0000000000 --- a/pandora_console/include/styles/cb/lib/xscrolltop.xml +++ /dev/null @@ -1,64 +0,0 @@ - - - - -Copyright 2001-2005 Michael Foster (Cross-Browser.com) -Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - - Position - Window - -Function - - - -xScrollTop(e, bWin) - - - - ele - - - - bWin - - - - -the number of pixels the element (or window) has scrolled vertically - - - xGetElementById - xDef - xNum - - - - - http://cross-browser.com/toys/ - - - - - - - 3 - 6Apr04 - mf - - - - 2 - - mf - - - - 1 - 31Mar04 - mf - - - - - diff --git a/pandora_console/include/styles/cb/lib/xselect.js b/pandora_console/include/styles/cb/lib/xselect.js deleted file mode 100644 index c16584f97d..0000000000 --- a/pandora_console/include/styles/cb/lib/xselect.js +++ /dev/null @@ -1,105 +0,0 @@ -// xSelect, Copyright 2004-2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xSelect(sId, fnSubOnChange) -{ - //// Properties - - this.ready = false; - - //// Constructor - - // Check for required browser objects - var s0 = xGetElementById(sId); - if (!s0 || !s0.firstChild || !s0.nodeName || !document.createElement || !s0.form || !s0.form.appendChild) - { - return; - } - - // Create main category SELECT element - var s1 = document.createElement('SELECT'); - s1.id = sId + '_main'; - s1.display = 'block'; // for opera bug? - s1.style.position = 'absolute'; - s1.xSelObj = this; - s1.xSelData = new Array(); - // append s1 to s0's form - s0.form.appendChild(s1); - - // Iterate thru s0 and fill array. - // For each OPTGROUP, a[og][0] == OPTGROUP label, and... - // a[og][n] = innerHTML of OPTION n. - var ig=0, io, op, og, a = s1.xSelData; - og = s0.firstChild; - while (og) { - if (og.nodeName.toLowerCase() == 'optgroup') { - io = 0; - a[ig] = new Array(); - a[ig][io] = og.label; - op = og.firstChild; - while (op) { - if (op.nodeName.toLowerCase() == 'option') { - io++; - a[ig][io] = op.innerHTML; - } - op = op.nextSibling; - } - ig++; - } - og = og.nextSibling; - } - - // in s1 insert a new OPTION for each OPTGROUP in s0 - for (ig=0; ig - - - -Copyright 2004-2005 Michael Foster (Cross-Browser.com) -Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - - Object - -Object - - - -new xSelect(sId, fnSubOnChange) - - - - sId - - - - fnSubOnChange - - - - - - - - - - - - - xGetElementById - xHide - xShow - xMoveTo - xOffsetLeft - xOffsetTop - - - - - http://cross-browser.com/x/examples/xselect.php - - - - - - - - mf - - - - - - - 1 - 9May05 - mf - - - - - diff --git a/pandora_console/include/styles/cb/lib/xsetcookie.js b/pandora_console/include/styles/cb/lib/xsetcookie.js deleted file mode 100644 index 17afd642b2..0000000000 --- a/pandora_console/include/styles/cb/lib/xsetcookie.js +++ /dev/null @@ -1,9 +0,0 @@ -// xSetCookie, Copyright 2001-2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xSetCookie(name, value, expire, path) -{ - document.cookie = name + "=" + escape(value) + - ((!expire) ? "" : ("; expires=" + expire.toGMTString())) + - "; path=" + ((!path) ? "/" : path); -} diff --git a/pandora_console/include/styles/cb/lib/xsetcookie.xml b/pandora_console/include/styles/cb/lib/xsetcookie.xml deleted file mode 100644 index 5846ea20fe..0000000000 --- a/pandora_console/include/styles/cb/lib/xsetcookie.xml +++ /dev/null @@ -1,51 +0,0 @@ - - - - -Copyright 2001-2005 Michael Foster (Cross-Browser.com) -Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - - Cookie - -Function - - - -xSetCookie(name, value, expire, path) - - - - name - - - - value - - - - expire - - - - path - - - - - - - http://cross-browser.com/toys/ - - - - - - - 3 - - mf - - - - - diff --git a/pandora_console/include/styles/cb/lib/xsetietitle.js b/pandora_console/include/styles/cb/lib/xsetietitle.js deleted file mode 100644 index 4a3d548820..0000000000 --- a/pandora_console/include/styles/cb/lib/xsetietitle.js +++ /dev/null @@ -1,11 +0,0 @@ -// xSetIETitle, Copyright 2001-2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xSetIETitle() -{ - if (xIE4Up) { - var i = xUA.indexOf('msie') + 1; - var v = xUA.substr(i + 4, 3); - document.title = 'IE ' + v + ' - ' + document.title; - } -} diff --git a/pandora_console/include/styles/cb/lib/xsetietitle.xml b/pandora_console/include/styles/cb/lib/xsetietitle.xml deleted file mode 100644 index 42b1240357..0000000000 --- a/pandora_console/include/styles/cb/lib/xsetietitle.xml +++ /dev/null @@ -1,42 +0,0 @@ - - - - -Copyright 2003-2005 Michael Foster (Cross-Browser.com) -Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - - Debug - -Function - - - -xSetIETitle() - - - xIE4Up - - - - - http://cross-browser.com/toys/ - - - - - - - 3 - 11Mar05 - mf - - - - 2 - 17May04 - mf - - - - - diff --git a/pandora_console/include/styles/cb/lib/xshow.js b/pandora_console/include/styles/cb/lib/xshow.js deleted file mode 100644 index d1e5df5dee..0000000000 --- a/pandora_console/include/styles/cb/lib/xshow.js +++ /dev/null @@ -1,4 +0,0 @@ -// xShow, Copyright 2001-2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xShow(e) {return xVisibility(e,1);} diff --git a/pandora_console/include/styles/cb/lib/xshow.xml b/pandora_console/include/styles/cb/lib/xshow.xml deleted file mode 100644 index a687b54bb7..0000000000 --- a/pandora_console/include/styles/cb/lib/xshow.xml +++ /dev/null @@ -1,65 +0,0 @@ - - - - -Copyright 2001-2005 Michael Foster (Cross-Browser.com) -Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - - Presentation - -Function - - - -xShow(ele) - - - - ele - - - - -the return from xVisibility - - - xVisibility - - - - - http://cross-browser.com/toys/ - - - - - - - - mf - - - - - - - 3 - 27Jan05 - mf - - - - 2 - - mf - - - - 1 - 31Mar04 - mf - - - - - diff --git a/pandora_console/include/styles/cb/lib/xslidecornerto.js b/pandora_console/include/styles/cb/lib/xslidecornerto.js deleted file mode 100644 index d99d505439..0000000000 --- a/pandora_console/include/styles/cb/lib/xslidecornerto.js +++ /dev/null @@ -1,55 +0,0 @@ -// xSlideCornerTo, Copyright 2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xSlideCornerTo(e, corner, targetX, targetY, totalTime) -{ - if (!(e=xGetElementById(e))) return; - if (!e.timeout) e.timeout = 25; - e.xT = targetX; - e.yT = targetY; - e.slideTime = totalTime; - e.corner = corner.toLowerCase(); - e.stop = false; - switch(e.corner) { - case 'nw': e.xA = e.xT - xLeft(e); e.yA = e.yT - xTop(e); e.xD = xLeft(e); e.yD = xTop(e); break; - case 'sw': e.xA = e.xT - xLeft(e); e.yA = e.yT - (xTop(e) + xHeight(e)); e.xD = xLeft(e); e.yD = xTop(e) + xHeight(e); break; - case 'ne': e.xA = e.xT - (xLeft(e) + xWidth(e)); e.yA = e.yT - xTop(e); e.xD = xLeft(e) + xWidth(e); e.yD = xTop(e); break; - case 'se': e.xA = e.xT - (xLeft(e) + xWidth(e)); e.yA = e.yT - (xTop(e) + xHeight(e)); e.xD = xLeft(e) + xWidth(e); e.yD = xTop(e) + xHeight(e); break; - default: alert("xSlideCornerTo: Invalid corner"); return; - } - e.B = Math.PI / ( 2 * e.slideTime ); - var d = new Date(); - e.C = d.getTime(); - if (!e.moving) _xSlideCornerTo(e); -} - -function _xSlideCornerTo(e) -{ - if (!(e=xGetElementById(e))) return; - var now, seX, seY; - now = new Date(); - t = now.getTime() - e.C; - if (e.stop) { e.moving = false; e.stop = false; return; } - else if (t < e.slideTime) { - setTimeout("_xSlideCornerTo('"+e.id+"')", e.timeout); - s = Math.sin( e.B * t ); - newX = Math.round(e.xA * s + e.xD); - newY = Math.round(e.yA * s + e.yD); - } - else { newX = e.xT; newY = e.yT; } - seX = xLeft(e) + xWidth(e); - seY = xTop(e) + xHeight(e); - switch(e.corner) { - case 'nw': xMoveTo(e, newX, newY); xResizeTo(e, seX - xLeft(e), seY - xTop(e)); break; - case 'sw': if (e.xT != xLeft(e)) { xLeft(e, newX); xWidth(e, seX - xLeft(e)); } xHeight(e, newY - xTop(e)); break; - case 'ne': xWidth(e, newX - xLeft(e)); if (e.yT != xTop(e)) { xTop(e, newY); xHeight(e, seY - xTop(e)); } break; - case 'se': xWidth(e, newX - xLeft(e)); xHeight(e, newY - xTop(e)); break; - default: e.stop = true; - } - //window.status = ('Target: ' + e.xT + ', ' + e.yT);//////debug/////// -// xClip(e, 'auto'); // ?????is this needed? it was used in the original CBE method????? - e.moving = true; - if (t >= e.slideTime) { - e.moving = false; - } -} diff --git a/pandora_console/include/styles/cb/lib/xslidecornerto.xml b/pandora_console/include/styles/cb/lib/xslidecornerto.xml deleted file mode 100644 index d9fc4dd081..0000000000 --- a/pandora_console/include/styles/cb/lib/xslidecornerto.xml +++ /dev/null @@ -1,74 +0,0 @@ - - - - -Copyright 2005 Michael Foster (Cross-Browser.com) -Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - - Animation - Size - -Function - - - -xSlideCornerTo(ele, corner, targetX, targetY, totalTime) - - - - ele - - - - corner - - - - targetX - - - - targetY - - - - totalTime - - - - - - xGetElementById - xLeft - xTop - xHeight - xWidth - xMoveTo - xResizeTo - - - - - http://cross-browser.com/x/examples/xslidecornerto.php - - - - - - - 17May2005 - mf - - - - - - - 2 - 17May2005 - mf - - - - - diff --git a/pandora_console/include/styles/cb/lib/xslideto.js b/pandora_console/include/styles/cb/lib/xslideto.js deleted file mode 100644 index 274fc871ea..0000000000 --- a/pandora_console/include/styles/cb/lib/xslideto.js +++ /dev/null @@ -1,37 +0,0 @@ -// xSlideTo, Copyright 2001-2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xSlideTo(e, x, y, uTime) -{ - if (!(e=xGetElementById(e))) return; - if (!e.timeout) e.timeout = 25; - e.xTarget = x; e.yTarget = y; e.slideTime = uTime; e.stop = false; - e.yA = e.yTarget - xTop(e); e.xA = e.xTarget - xLeft(e); // A = distance - if (e.slideLinear) e.B = 1/e.slideTime; - else e.B = Math.PI / (2 * e.slideTime); // B = period - e.yD = xTop(e); e.xD = xLeft(e); // D = initial position - var d = new Date(); e.C = d.getTime(); - if (!e.moving) _xSlideTo(e); -} -function _xSlideTo(e) -{ - if (!(e=xGetElementById(e))) return; - var now, s, t, newY, newX; - now = new Date(); - t = now.getTime() - e.C; - if (e.stop) { e.moving = false; } - else if (t < e.slideTime) { - setTimeout("_xSlideTo('"+e.id+"')", e.timeout); - if (e.slideLinear) s = e.B * t; - else s = Math.sin(e.B * t); - newX = Math.round(e.xA * s + e.xD); - newY = Math.round(e.yA * s + e.yD); - xMoveTo(e, newX, newY); - e.moving = true; - } - else { - xMoveTo(e, e.xTarget, e.yTarget); - e.moving = false; - } -} - diff --git a/pandora_console/include/styles/cb/lib/xslideto.xml b/pandora_console/include/styles/cb/lib/xslideto.xml deleted file mode 100644 index 844b0d03ff..0000000000 --- a/pandora_console/include/styles/cb/lib/xslideto.xml +++ /dev/null @@ -1,84 +0,0 @@ - - - - -Copyright 2001-2005 Michael Foster (Cross-Browser.com) -Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - - Animation - Position - -Function - - - -xSlideTo(ele, iX, iY, iTime) - - - - ele - - - - iX - - - - iY - - - - iTime - - - - - - - stop - - - - moving - - - - timeout - - - - slideLinear - - - - - - xgetelementbyid - xtop - xleft - xmoveto - - - - - http://cross-browser.com/toys/ - - - - - - - 2 - 6Jun04 - mf - - - - 1 - 31Mar04 - mf - - - - - diff --git a/pandora_console/include/styles/cb/lib/xstoppropagation.js b/pandora_console/include/styles/cb/lib/xstoppropagation.js deleted file mode 100644 index 1cee11aee7..0000000000 --- a/pandora_console/include/styles/cb/lib/xstoppropagation.js +++ /dev/null @@ -1,8 +0,0 @@ -// xStopPropagation, Copyright 2004,2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xStopPropagation(evt) -{ - if (evt && evt.stopPropagation) evt.stopPropagation(); - else if (window.event) window.event.cancelBubble = true; -} diff --git a/pandora_console/include/styles/cb/lib/xstoppropagation.xml b/pandora_console/include/styles/cb/lib/xstoppropagation.xml deleted file mode 100644 index 6860153809..0000000000 --- a/pandora_console/include/styles/cb/lib/xstoppropagation.xml +++ /dev/null @@ -1,39 +0,0 @@ - - - - -Copyright 2004-2005 Michael Foster (Cross-Browser.com) -Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - - Event - -Function - - - -xStopPropagation(evt) - - - - evt - - - - - - - http://cross-browser.com/toys/ - - - - - - - 1 - 30Jul04 - mf - - - - - diff --git a/pandora_console/include/styles/cb/lib/xstr.js b/pandora_console/include/styles/cb/lib/xstr.js deleted file mode 100644 index 1feef7f5db..0000000000 --- a/pandora_console/include/styles/cb/lib/xstr.js +++ /dev/null @@ -1,8 +0,0 @@ -// xStr, Copyright 2001-2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xStr(s) -{ - for(var i=0; i - - - -Copyright 2001-2005 Michael Foster (Cross-Browser.com) -Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - - Type - -Function - - - -xStr(ref[, etc]) - - - - ref - - - - -true if all its arguments are 'string' type - - - - http://cross-browser.com/toys/ - - - - - - - 1 - 31Mar04 - mf - - - - - diff --git a/pandora_console/include/styles/cb/lib/xtablecellvisibility.js b/pandora_console/include/styles/cb/lib/xtablecellvisibility.js deleted file mode 100644 index 1fdb607c54..0000000000 --- a/pandora_console/include/styles/cb/lib/xtablecellvisibility.js +++ /dev/null @@ -1,10 +0,0 @@ -// xTableCellVisibility, Copyright 2004,2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xTableCellVisibility(bShow, sec, nRow, nCol) -{ - sec = xGetElementById(sec); - if (sec && nRow < sec.rows.length && nCol < sec.rows[nRow].cells.length) { - sec.rows[nRow].cells[nCol].style.visibility = bShow ? 'visible' : 'hidden'; - } -} diff --git a/pandora_console/include/styles/cb/lib/xtablecellvisibility.xml b/pandora_console/include/styles/cb/lib/xtablecellvisibility.xml deleted file mode 100644 index 423d607bcc..0000000000 --- a/pandora_console/include/styles/cb/lib/xtablecellvisibility.xml +++ /dev/null @@ -1,64 +0,0 @@ - - - - -Copyright 2004-2005 Michael Foster (Cross-Browser.com) -Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - - Presentation - Table - -Function - - - -xTableCellVisibility(bShow, sec, nRow, nCol) - - - - bShow - - - - sec - - - - nRow - - - - nCol - - - - - - xgetelementbyid - - - - - http://cross-browser.com/x/examples/table_toys.php - - - - - - - - mf - - - - - - - 1 - 30Jul04 - mf - - - - - diff --git a/pandora_console/include/styles/cb/lib/xtablecoldisplay.js b/pandora_console/include/styles/cb/lib/xtablecoldisplay.js deleted file mode 100644 index 141a6ea4c8..0000000000 --- a/pandora_console/include/styles/cb/lib/xtablecoldisplay.js +++ /dev/null @@ -1,13 +0,0 @@ -// xTableColDisplay, Copyright 2004-2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xTableColDisplay(bShow, sec, nCol) -{ - var r; - sec = xGetElementById(sec); - if (sec && nCol < sec.rows[0].cells.length) { - for (r = 0; r < sec.rows.length; ++r) { - sec.rows[r].cells[nCol].style.display = bShow ? '' : 'none'; - } - } -} diff --git a/pandora_console/include/styles/cb/lib/xtablecoldisplay.xml b/pandora_console/include/styles/cb/lib/xtablecoldisplay.xml deleted file mode 100644 index e74dbabf7e..0000000000 --- a/pandora_console/include/styles/cb/lib/xtablecoldisplay.xml +++ /dev/null @@ -1,60 +0,0 @@ - - - - -Copyright 2004-2005 Michael Foster (Cross-Browser.com) -Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - - Presentation - Table - -Function - - - -xTableColDisplay(bShow, sec, nCol) - - - - bShow - - - - sec - - - - nCol - - - - - - xgetelementbyid - - - - - http://cross-browser.com/x/examples/table_toys.php - - - - - - - - mf - - - - - - - 3 - 30Jul04 - mf - - - - - diff --git a/pandora_console/include/styles/cb/lib/xtablecursor.js b/pandora_console/include/styles/cb/lib/xtablecursor.js deleted file mode 100644 index 91eb152aaf..0000000000 --- a/pandora_console/include/styles/cb/lib/xtablecursor.js +++ /dev/null @@ -1,29 +0,0 @@ -// xTableCursor, Copyright 2004,2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xTableCursor(id, inh, def, hov, sel) // object prototype -{ - var tbl = xGetElementById(id); - if (tbl) { - xTableIterate(tbl, init); - } - function init(obj, isRow) - { - if (isRow) { - obj.className = def; - obj.onmouseover = trOver; - obj.onmouseout = trOut; - } - else { - obj.className = inh; - obj.onmouseover = tdOver; - obj.onmouseout = tdOut; - } - } - this.unload = function() { xTableIterate(tbl, done); }; - function done(o) { o.onmouseover = o.onmouseout = null; } - function trOver() { this.className = hov; } - function trOut() { this.className = def; } - function tdOver() { this.className = sel; } - function tdOut() { this.className = inh; } -} diff --git a/pandora_console/include/styles/cb/lib/xtablecursor.xml b/pandora_console/include/styles/cb/lib/xtablecursor.xml deleted file mode 100644 index b9211a7d4f..0000000000 --- a/pandora_console/include/styles/cb/lib/xtablecursor.xml +++ /dev/null @@ -1,74 +0,0 @@ - - - - -Copyright 2004-2005 Michael Foster (Cross-Browser.com) -Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - - Presentation - Table - -Object - - - -xTableCursor(id, inh, def, hov, sel) - - - - id - - - - inh - - - - def - - - - hov - - - - sel - - - - - - - - - - - - - xGetElementById - xTableIterate - - - - - http://cross-browser.com/x/examples/table_toys.php - - - - - - - 2 - 6Apr05 - mf - - - - 1 - 30Jul04 - mf - - - - - diff --git a/pandora_console/include/styles/cb/lib/xtableiterate.js b/pandora_console/include/styles/cb/lib/xtableiterate.js deleted file mode 100644 index 9d4ce06428..0000000000 --- a/pandora_console/include/styles/cb/lib/xtableiterate.js +++ /dev/null @@ -1,16 +0,0 @@ -// xTableIterate, Copyright 2004,2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xTableIterate(sec, fnCallback, data) -{ - var r, c; - sec = xGetElementById(sec); - if (!sec || !fnCallback) { return; } - for (r = 0; r < sec.rows.length; ++r) { - if (false == fnCallback(sec.rows[r], true, r, c, data)) { return; } - for (c = 0; c < sec.rows[r].cells.length; ++c) { - if (false == fnCallback(sec.rows[r].cells[c], false, r, c, data)) { return; } - } - } -} - diff --git a/pandora_console/include/styles/cb/lib/xtableiterate.xml b/pandora_console/include/styles/cb/lib/xtableiterate.xml deleted file mode 100644 index 40c292b9ac..0000000000 --- a/pandora_console/include/styles/cb/lib/xtableiterate.xml +++ /dev/null @@ -1,68 +0,0 @@ - - - - -Copyright 2004-2005 Michael Foster (Cross-Browser.com) -Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - - Table - -Function - - - -xTableIterate(sec, fnCallback, data) - - - - sec - - - - fnCallback - - - - data - - - - - - xGetElementById - - - - - http://cross-browser.com/x/examples/table_toys.php - - - - - - - - mf - - - - - - - 1 - 30Jul04 - mf - - - - - diff --git a/pandora_console/include/styles/cb/lib/xtablerowdisplay.js b/pandora_console/include/styles/cb/lib/xtablerowdisplay.js deleted file mode 100644 index 29ddf6f20f..0000000000 --- a/pandora_console/include/styles/cb/lib/xtablerowdisplay.js +++ /dev/null @@ -1,10 +0,0 @@ -// xTableRowDisplay, Copyright 2004,2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xTableRowDisplay(bShow, sec, nRow) -{ - sec = xGetElementById(sec); - if (sec && nRow < sec.rows.length) { - sec.rows[nRow].style.display = bShow ? '' : 'none'; - } -} diff --git a/pandora_console/include/styles/cb/lib/xtablerowdisplay.xml b/pandora_console/include/styles/cb/lib/xtablerowdisplay.xml deleted file mode 100644 index 810ec18346..0000000000 --- a/pandora_console/include/styles/cb/lib/xtablerowdisplay.xml +++ /dev/null @@ -1,60 +0,0 @@ - - - - -Copyright 2001-2005 Michael Foster (Cross-Browser.com) -Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - - Presentation - Table - -Function - - - -xTableRowDisplay(bShow, sec, nRow) - - - - bShow - - - - sec - - - - nRow - - - - - - xgetelementbyid - - - - - http://cross-browser.com/x/examples/table_toys.php - - - - - - - - mf - - - - - - - 1 - 30Jul04 - mf - - - - - diff --git a/pandora_console/include/styles/cb/lib/xtabpanelgroup.xml b/pandora_console/include/styles/cb/lib/xtabpanelgroup.xml deleted file mode 100644 index ad5e885b2e..0000000000 --- a/pandora_console/include/styles/cb/lib/xtabpanelgroup.xml +++ /dev/null @@ -1,110 +0,0 @@ - - - - -Copyright 2005 Michael Foster (Cross-Browser.com) -Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - - Object - -Object - - - -xTabPanelGroup(id, w, h, th, clsTP, clsTG, clsTD, clsTS) - - - - id - - - - w - - - - h - - - - th - - - - clsTP - - - - clsTG - - - - clsTD - - - - clsTS - - - - - - - - - - - - - - select - - - - - - xgetelementbyid - xgetelementsbyclassname - xresizeto - xmoveto - xzindex - - - - - http://cross-browser.com/x/examples/tabpanelgroup.php - - - - - - - - mf - - - - - - - 7 - 10May05 - mf - - - - 6 - 3May05 - mf - - - - 1 - 3Jan05 - mf - - - - - - \ No newline at end of file diff --git a/pandora_console/include/styles/cb/lib/xtimer.js b/pandora_console/include/styles/cb/lib/xtimer.js deleted file mode 100644 index ed2ce3fbcd..0000000000 --- a/pandora_console/include/styles/cb/lib/xtimer.js +++ /dev/null @@ -1,54 +0,0 @@ -// xTimer, Copyright 2003-2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xTimerMgr() -{ - this.timers = new Array(); -} - -// xTimerMgr Methods -xTimerMgr.prototype.set = function(type, obj, sMethod, uTime, data) // type: 'interval' or 'timeout' -{ - return (this.timers[this.timers.length] = new xTimerObj(type, obj, sMethod, uTime, data)); -}; -xTimerMgr.prototype.run = function() -{ - var i, t, d = new Date(), now = d.getTime(); - for (i = 0; i < this.timers.length; ++i) { - t = this.timers[i]; - if (t && t.running) { - t.elapsed = now - t.time0; - if (t.elapsed >= t.preset) { // timer event on t - t.obj[t.mthd](t); // pass listener this xTimerObj - if (t.type.charAt(0) == 'i') { t.time0 = now; } - else { t.stop(); } - } - } - } -}; - -// Object Prototype used only by xTimerMgr -function xTimerObj(type, obj, mthd, preset, data) -{ - // Public Properties - this.data = data; - // Read-only Properties - this.type = type; // 'interval' or 'timeout' - this.obj = obj; - this.mthd = mthd; // string - this.preset = preset; - this.reset(); -} // end xTimerObj constructor -// xTimerObj Methods -xTimerObj.prototype.stop = function() { this.running = false; }; -xTimerObj.prototype.start = function() { this.running = true; }; // continue after a stop -xTimerObj.prototype.reset = function() -{ - var d = new Date(); - this.time0 = d.getTime(); - this.elapsed = 0; - this.running = true; -}; - -var xTimer = new xTimerMgr(); // applications assume global name is 'xTimer' -setInterval('xTimer.run()', 250); diff --git a/pandora_console/include/styles/cb/lib/xtimer.xml b/pandora_console/include/styles/cb/lib/xtimer.xml deleted file mode 100644 index 679044a9f5..0000000000 --- a/pandora_console/include/styles/cb/lib/xtimer.xml +++ /dev/null @@ -1,68 +0,0 @@ - - - - -Copyright 2003-2005 Michael Foster (Cross-Browser.com) -Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - - Object - -Object - - - -xTimer.set(sTmrType, obj, sMethod, uTime, data) - - - - sTmrType - - - - obj - - - - sMethod - - - - uTime - - - - data - - - - - - - - - - - - - - http://cross-browser.com/x/examples/popup.php - - - - - - - 2 - 17May04 - mf - - - - 1 - 31Mar04 - mf - - - - - diff --git a/pandora_console/include/styles/cb/lib/xtooltipgroup.js b/pandora_console/include/styles/cb/lib/xtooltipgroup.js deleted file mode 100644 index 586afaaa15..0000000000 --- a/pandora_console/include/styles/cb/lib/xtooltipgroup.js +++ /dev/null @@ -1,92 +0,0 @@ -// xTooltipGroup, Copyright 2002,2003,2004,2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -document.write(""); -document.write("
xTooltipElement
"); - -var xttTrigger = null; // current trigger element - -function xTooltipGroup(grpClassOrIdList, tipClass, origin, xOffset, yOffset, textList) -{ - - //// Properties - - this.c = tipClass; - this.o = origin; - this.x = xOffset; - this.y = yOffset; - this.t = null; // tooltip element - all groups use the same element - - //// Constructor Code - - var i, tips; - if (xStr(grpClassOrIdList)) { - tips = xGetElementsByClassName(grpClassOrIdList); - for (i = 0; i < tips.length; ++i) { - tips[i].xTooltip = this; - } - } - else { - tips = new Array(); - for (i = 0; i < grpClassOrIdList.length; ++i) { - tips[i] = xGetElementById(grpClassOrIdList[i]); - if (!tips[i]) { - alert('Element not found for id = ' + grpClassOrIdList[i]); - } - else { - tips[i].xTooltip = this; - tips[i].xTooltipText = textList[i]; - } - } - } - if (!this.t) { // only execute once - this.t = xGetElementById('xTooltipElement'); - xAddEventListener(document, 'mousemove', this.docOnMousemove, false); - } -} // end xTooltipGroup ctor - -//// xTooltipGroup Methods - -xTooltipGroup.prototype.show = function(trigEle, mx, my) -{ - if (xttTrigger != trigEle) { // if not active or moved to an adjacent trigger - this.t.className = trigEle.xTooltip.c; - this.t.innerHTML = trigEle.xTooltipText ? trigEle.xTooltipText : trigEle.title; - xttTrigger = trigEle; - } - var x, y; - switch(this.o) { - case 'right': - x = xPageX(trigEle) + xWidth(trigEle); - y = xPageY(trigEle); - break; - case 'top': - x = xPageX(trigEle); - y = xPageY(trigEle) - xHeight(trigEle); - break; - case 'mouse': - x = mx; - y = my; - break; - } - xMoveTo(this.t, x + this.x, y + this.y); - xShow(this.t); -}; - -xTooltipGroup.prototype.hide = function() -{ - xMoveTo(this.t, -1000, -1000); - xttTrigger = null; -}; - -xTooltipGroup.prototype.docOnMousemove = function(oEvent) -{ - // this == document at runtime - var o, e = new xEvent(oEvent); - if (e.target && (o = e.target.xTooltip)) { - o.show(e.target, e.pageX, e.pageY); - } - else if (xttTrigger) { - xttTrigger.xTooltip.hide(); - } -}; diff --git a/pandora_console/include/styles/cb/lib/xtooltipgroup.xml b/pandora_console/include/styles/cb/lib/xtooltipgroup.xml deleted file mode 100644 index 844e12074d..0000000000 --- a/pandora_console/include/styles/cb/lib/xtooltipgroup.xml +++ /dev/null @@ -1,82 +0,0 @@ - - - - -Copyright 2002-2005 Michael Foster (Cross-Browser.com) -Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - - Object - -Object - - - -xTooltipGroup(grpClassOrIdList, tipClass, origin, xOffset, yOffset, textList) - - - - grpClassOrIdList - - - - tipClass - - - - origin - - - - xOffset/yOffset - - - - textList - - - - - - - - - - - - - xstr - xgetelementsbyclassname - xgetelementbyid - xaddeventlistener - xpagex - xwidth - xpagey - xheight - xmoveto - xshow - xevent - - - - - http://cross-browser.com/x/examples/tooltips3.html - - - - - - - 2 - 17May04 - mf - - - - 1 - 31Mar04 - mf - - - - - diff --git a/pandora_console/include/styles/cb/lib/xtop.js b/pandora_console/include/styles/cb/lib/xtop.js deleted file mode 100644 index 729c158734..0000000000 --- a/pandora_console/include/styles/cb/lib/xtop.js +++ /dev/null @@ -1,20 +0,0 @@ -// xTop, Copyright 2001-2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xTop(e, iY) -{ - if(!(e=xGetElementById(e))) return 0; - var css=xDef(e.style); - if(css && xStr(e.style.top)) { - if(xNum(iY)) e.style.top=iY+'px'; - else { - iY=parseInt(e.style.top); - if(isNaN(iY)) iY=0; - } - } - else if(css && xDef(e.style.pixelTop)) { - if(xNum(iY)) e.style.pixelTop=iY; - else iY=e.style.pixelTop; - } - return iY; -} diff --git a/pandora_console/include/styles/cb/lib/xtop.xml b/pandora_console/include/styles/cb/lib/xtop.xml deleted file mode 100644 index e95f518648..0000000000 --- a/pandora_console/include/styles/cb/lib/xtop.xml +++ /dev/null @@ -1,53 +0,0 @@ - - - - -Copyright 2001-2005 Michael Foster (Cross-Browser.com) -Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - - Position - Style - -Function - - - -xTop(ele[, iY]) - - - - ele - - - - iY - - - - -integer - - - xGetElementById - xDef - xStr - xNum - - - - - http://cross-browser.com/toys/ - - - - - - - 1 - 31Mar04 - mf - - - - - diff --git a/pandora_console/include/styles/cb/lib/xtristateimage.js b/pandora_console/include/styles/cb/lib/xtristateimage.js deleted file mode 100644 index 676e37f121..0000000000 --- a/pandora_console/include/styles/cb/lib/xtristateimage.js +++ /dev/null @@ -1,47 +0,0 @@ -// xTriStateImage, Copyright 2004,2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xTriStateImage(idOut, urlOver, urlDown, fnUp) // Object Prototype -{ - var img; - // Downgrade Detection - if (typeof Image != 'undefined' && document.getElementById) { - img = document.getElementById(idOut); - if (img) { - // Constructor Code - var urlOut = img.src; - var i = new Image(); - i.src = urlOver; - i = new Image(); - i.src = urlDown; - // Event Listeners (closure) - img.onmouseover = function() - { - this.src = urlOver; - }; - img.onmouseout = function() - { - this.src = urlOut; - }; - img.onmousedown = function() - { - this.src = urlDown; - }; - img.onmouseup = function() - { - this.src = urlOver; - if (fnUp) { - fnUp(); - } - }; - } - } - // Destructor Method - this.onunload = function() - { - if (xIE4Up && img) { // Remove any circular references for IE - img.onmouseover = img.onmouseout = img.onmousedown = null; - img = null; - } - }; -} diff --git a/pandora_console/include/styles/cb/lib/xtristateimage.xml b/pandora_console/include/styles/cb/lib/xtristateimage.xml deleted file mode 100644 index b719833906..0000000000 --- a/pandora_console/include/styles/cb/lib/xtristateimage.xml +++ /dev/null @@ -1,76 +0,0 @@ - - - - -Copyright 2004-2005 Michael Foster (Cross-Browser.com) -Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - - Presentation - Image - Object - -Object - - - -new xTriStateImage(idOut, urlOver, urlDown, fnUp) - - - - idOut - - - - urlOver - - - - urlDown - - - - fnUp - - - - - - - - - - - - - xIE4Up - - - - - http://cross-browser.com/x/examples/xtristateimage.php - - - - - - - 3 - 11May05 - mf - - - - 2 - 6Apr05 - mf - - - - 1 - 11Mar05 - mf - - - - - diff --git a/pandora_console/include/styles/cb/lib/xversion.js b/pandora_console/include/styles/cb/lib/xversion.js deleted file mode 100644 index 6770364618..0000000000 --- a/pandora_console/include/styles/cb/lib/xversion.js +++ /dev/null @@ -1 +0,0 @@ -var xVersion = "4.0"; \ No newline at end of file diff --git a/pandora_console/include/styles/cb/lib/xversion.xml b/pandora_console/include/styles/cb/lib/xversion.xml deleted file mode 100644 index 0fee35bfe1..0000000000 --- a/pandora_console/include/styles/cb/lib/xversion.xml +++ /dev/null @@ -1,27 +0,0 @@ - - - - -Copyright 2001-2005 Michael Foster (Cross-Browser.com) - -Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - - - Var - - -Var - - - -xVersion - - - 26May05mf - - - - 4.026May05mf - - - diff --git a/pandora_console/include/styles/cb/lib/xvisibility.js b/pandora_console/include/styles/cb/lib/xvisibility.js deleted file mode 100644 index e8fe29bc69..0000000000 --- a/pandora_console/include/styles/cb/lib/xvisibility.js +++ /dev/null @@ -1,38 +0,0 @@ -// xVisibility, Copyright 2003-2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xVisibility(e, bShow) -{ - if(!(e=xGetElementById(e))) return null; - if(e.style && xDef(e.style.visibility)) { - if (xDef(bShow)) e.style.visibility = bShow ? 'visible' : 'hidden'; - return e.style.visibility; - } - return null; -} - -//function xVisibility(e,s) -//{ -// if(!(e=xGetElementById(e))) return null; -// var v = 'visible', h = 'hidden'; -// if(e.style && xDef(e.style.visibility)) { -// if (xDef(s)) { -// // try to maintain backwards compatibility (???) -// if (xStr(s)) e.style.visibility = s; -// else e.style.visibility = s ? v : h; -// } -// return e.style.visibility; -// // or... -// // if (e.style.visibility.length) return e.style.visibility; -// // else return xGetComputedStyle(e, 'visibility'); -// } -// else if (xDef(e.visibility)) { // NN4 -// if (xDef(s)) { -// // try to maintain backwards compatibility -// if (xStr(s)) e.visibility = (s == v) ? 'show' : 'hide'; -// else e.visibility = s ? v : h; -// } -// return (e.visibility == 'show') ? v : h; -// } -// return null; -//} diff --git a/pandora_console/include/styles/cb/lib/xvisibility.xml b/pandora_console/include/styles/cb/lib/xvisibility.xml deleted file mode 100644 index 4778b30e3e..0000000000 --- a/pandora_console/include/styles/cb/lib/xvisibility.xml +++ /dev/null @@ -1,50 +0,0 @@ - - - - -Copyright 2003-2005 Michael Foster (Cross-Browser.com) -Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - - Presentation - Style - -Function - - - -xVisibility(ele[, bShow]) - - - - ele - - - - bShow - - - - -string - - - xGetElementById - xDef - - - - - http://cross-browser.com/toys/ - - - - - - - - mf - - - - - diff --git a/pandora_console/include/styles/cb/lib/xwalkeletree.js b/pandora_console/include/styles/cb/lib/xwalkeletree.js deleted file mode 100644 index 8f9276e192..0000000000 --- a/pandora_console/include/styles/cb/lib/xwalkeletree.js +++ /dev/null @@ -1,19 +0,0 @@ -// xWalkEleTree, Copyright 2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xWalkEleTree(n,f,d,l,b) -{ - if (typeof l == 'undefined') l = 0; - if (typeof b == 'undefined') b = 0; - var v = f(n,l,b,d); - if (!v) return 0; - if (v == 1) { - for (var c = n.firstChild; c; c = c.nextSibling) { - if (c.nodeType == 1) { - if (!l) ++b; - if (!xWalkEleTree(c,f,d,l+1,b)) return 0; - } - } - } - return 1; -} diff --git a/pandora_console/include/styles/cb/lib/xwalkeletree.xml b/pandora_console/include/styles/cb/lib/xwalkeletree.xml deleted file mode 100644 index 542b82954a..0000000000 --- a/pandora_console/include/styles/cb/lib/xwalkeletree.xml +++ /dev/null @@ -1,83 +0,0 @@ - - - - -Copyright 2005 Michael Foster (Cross-Browser.com) -Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - - DOM - -Function - - - -xWalkEleTree(oNode, fnVisit, oData[, iLevel[, iBranch]]) - - - - oNode - - - - fnVisit - - - - oData - - - - iLevel - - - - iBranch - - - - - - - http://cross-browser.com/toys/ - - - - - - - - mf - - - - - - - 3 - 15Mar05 - mf - - - - 2 - 11Mar05 - mf - - - - 1 - 10Jan05 - mf - - - - - diff --git a/pandora_console/include/styles/cb/lib/xwalktree.js b/pandora_console/include/styles/cb/lib/xwalktree.js deleted file mode 100644 index 5e5f0865b3..0000000000 --- a/pandora_console/include/styles/cb/lib/xwalktree.js +++ /dev/null @@ -1,21 +0,0 @@ -// xWalkTree, Copyright 2001-2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xWalkTree(n, f) -{ - f(n); - for (var c = n.firstChild; c; c = c.nextSibling) { - if (c.nodeType == 1) xWalkTree(c, f); - } -} - -// original implementation: -// function xWalkTree(oNode, fnVisit) -// { -// if (oNode) { -// if (oNode.nodeType == 1) {fnVisit(oNode);} -// for (var c = oNode.firstChild; c; c = c.nextSibling) { -// xWalkTree(c, fnVisit); -// } -// } -// } diff --git a/pandora_console/include/styles/cb/lib/xwalktree.xml b/pandora_console/include/styles/cb/lib/xwalktree.xml deleted file mode 100644 index 0c3403cbc2..0000000000 --- a/pandora_console/include/styles/cb/lib/xwalktree.xml +++ /dev/null @@ -1,49 +0,0 @@ - - - - -Copyright 2001-2005 Michael Foster (Cross-Browser.com) -Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - - DOM - -Function - - - -xWalkTree(oNode, fnVisit) - - - - oNode - - - - fnVisit - - - - - - - http://cross-browser.com/x/examples/walktree.html - - - - - - - 2 - 10Jan05 - mf - - - - 1 - 31Mar04 - mf - - - - - diff --git a/pandora_console/include/styles/cb/lib/xwidth.js b/pandora_console/include/styles/cb/lib/xwidth.js deleted file mode 100644 index 27a38d141b..0000000000 --- a/pandora_console/include/styles/cb/lib/xwidth.js +++ /dev/null @@ -1,45 +0,0 @@ -// xWidth, Copyright 2001-2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xWidth(e,w) -{ - if(!(e=xGetElementById(e))) return 0; - if (xNum(w)) { - if (w<0) w = 0; - else w=Math.round(w); - } - else w=-1; - var css=xDef(e.style); - if (e == document || e.tagName.toLowerCase() == 'html' || e.tagName.toLowerCase() == 'body') { - w = xClientWidth(); - } - else if(css && xDef(e.offsetWidth) && xStr(e.style.width)) { - if(w>=0) { - var pl=0,pr=0,bl=0,br=0; - if (document.compatMode=='CSS1Compat') { - var gcs = xGetComputedStyle; - pl=gcs(e,'padding-left',1); - if (pl !== null) { - pr=gcs(e,'padding-right',1); - bl=gcs(e,'border-left-width',1); - br=gcs(e,'border-right-width',1); - } - // Should we try this as a last resort? - // At this point getComputedStyle and currentStyle do not exist. - else if(xDef(e.offsetWidth,e.style.width)){ - e.style.width=w+'px'; - pl=e.offsetWidth-w; - } - } - w-=(pl+pr+bl+br); - if(isNaN(w)||w<0) return; - else e.style.width=w+'px'; - } - w=e.offsetWidth; - } - else if(css && xDef(e.style.pixelWidth)) { - if(w>=0) e.style.pixelWidth=w; - w=e.style.pixelWidth; - } - return w; -} diff --git a/pandora_console/include/styles/cb/lib/xwidth.xml b/pandora_console/include/styles/cb/lib/xwidth.xml deleted file mode 100644 index 23fb438f6b..0000000000 --- a/pandora_console/include/styles/cb/lib/xwidth.xml +++ /dev/null @@ -1,71 +0,0 @@ - - - - -Copyright 2001-2005 Michael Foster (Cross-Browser.com) -Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - - Size - -Function - - - -xWidth(ele[, uW]) - - - - ele - - - - uW - - - - -integer - - - xgetelementbyid - xnum - xdef - xstr - xgetcomputedstyle - - - - - http://cross-browser.com/toys/ - - - - - - - 4 - 7Apr05 - mf - - - - 3 - 12Mar05 - mf - - - - 2 - 14May04 - mf - - - - 1 - 31Mar04 - mf - - - - - diff --git a/pandora_console/include/styles/cb/lib/xwinclass.js b/pandora_console/include/styles/cb/lib/xwinclass.js deleted file mode 100644 index 74db399b7e..0000000000 --- a/pandora_console/include/styles/cb/lib/xwinclass.js +++ /dev/null @@ -1,29 +0,0 @@ -// xWinClass, Copyright 2003-2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -// xWinClass Object Prototype - -function xWinClass(clsName, winName, w, h, x, y, loc, men, res, scr, sta, too) -{ - var thisObj = this; - var e='',c=',',xf='left=',yf='top='; this.n = name; - if (document.layers) {xf='screenX='; yf='screenY=';} - this.f = (w?'width='+w+c:e)+(h?'height='+h+c:e)+(x>=0?xf+x+c:e)+ - (y>=0?yf+y+c:e)+'location='+loc+',menubar='+men+',resizable='+res+ - ',scrollbars='+scr+',status='+sta+',toolbar='+too; - this.opened = function() {return this.w && !this.w.closed;}; - this.close = function() {if(this.opened()) this.w.close();}; - this.focus = function() {if(this.opened()) this.w.focus();}; - this.load = function(sUrl) { - if (this.opened()) this.w.location.href = sUrl; - else this.w = window.open(sUrl,this.n,this.f); - this.focus(); - return false; - }; - // Closures - // this == element reference, thisObj == xWinClass object reference - function onClick() {return thisObj.load(this.href);} - // '*' works with any element, not just A - xGetElementsByClassName(clsName, document, '*', bindOnClick); - function bindOnClick(e) {e.onclick = onClick;} -} diff --git a/pandora_console/include/styles/cb/lib/xwinclass.xml b/pandora_console/include/styles/cb/lib/xwinclass.xml deleted file mode 100644 index 3ebcab3937..0000000000 --- a/pandora_console/include/styles/cb/lib/xwinclass.xml +++ /dev/null @@ -1,78 +0,0 @@ - - - - -Copyright 2003-2005 Michael Foster (Cross-Browser.com) -Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - - Window - Object - -Object - - - -new xWinClass(clsName, winName, w, h, x, y, loc, men, res, scr, sta, too) - - - - clsName - - - - winName - - - - w, h, x, y - - - - loc, men, res, scr, sta, too - - - - - - - - - - - - - - - - - - - - xgetelementsbyclassname - - - - - http://cross-browser.com/x/examples/xwindow.php - - - - - - - 11Mar05 - mf - - - - - - - 1 - 11Mar05 - mf - - - - - diff --git a/pandora_console/include/styles/cb/lib/xwindow.js b/pandora_console/include/styles/cb/lib/xwindow.js deleted file mode 100644 index 33751d941a..0000000000 --- a/pandora_console/include/styles/cb/lib/xwindow.js +++ /dev/null @@ -1,41 +0,0 @@ -// xWindow, Copyright 2001-2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xWindow(name, w, h, x, y, loc, men, res, scr, sta, too) -{ - var e='',c=',',xf='left=',yf='top='; this.n = name; - if (document.layers) {xf='screenX='; yf='screenY=';} - this.f = (w?'width='+w+c:e)+(h?'height='+h+c:e)+(x>=0?xf+x+c:e)+ - (y>=0?yf+y+c:e)+'location='+loc+',menubar='+men+',resizable='+res+ - ',scrollbars='+scr+',status='+sta+',toolbar='+too; - this.opened = function() {return this.w && !this.w.closed;}; - this.close = function() {if(this.opened()) this.w.close();}; - this.focus = function() {if(this.opened()) this.w.focus();}; - this.load = function(sUrl) { - if (this.opened()) this.w.location.href = sUrl; - else this.w = window.open(sUrl,this.n,this.f); - this.focus(); - return false; - }; -} - -// Previous implementation: -// function xWindow(name, w, h, x, y, loc, men, res, scr, sta, too) -// { -// var f = ''; -// if (w && h) { -// if (document.layers) f = 'screenX=' + x + ',screenY=' + y; -// else f = 'left=' + x + ',top=' + y; -// f += ',width=' + w + ',height=' + h + ','; -// } -// f += ('location='+loc+',menubar='+men+',resizable='+res -// +',scrollbars='+scr+',status='+sta+',toolbar='+too); -// this.features = f; -// this.name = name; -// this.load = function(sUrl) { -// if (this.wnd && !this.wnd.closed) this.wnd.location.href = sUrl; -// else this.wnd = window.open(sUrl, this.name, this.features); -// this.wnd.focus(); -// return false; -// } -// } diff --git a/pandora_console/include/styles/cb/lib/xwindow.xml b/pandora_console/include/styles/cb/lib/xwindow.xml deleted file mode 100644 index 632a2bd96e..0000000000 --- a/pandora_console/include/styles/cb/lib/xwindow.xml +++ /dev/null @@ -1,62 +0,0 @@ - - - - -Copyright 2001-2005 Michael Foster (Cross-Browser.com) -Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - - Window - Object - -Object - - - -new xWindow(name, w, h, x, y, loc, men, res, scr, sta, too) - - - - name - - - - w, h, x, y - - - - loc, men, res, scr, sta, too - - - - - - - - - - - - - - - - - - - - - http://cross-browser.com/x/examples/xwindow.php - - - - - - - 1 - 31Mar04 - mf - - - - - diff --git a/pandora_console/include/styles/cb/lib/xwinopen.js b/pandora_console/include/styles/cb/lib/xwinopen.js deleted file mode 100644 index ceee5d3481..0000000000 --- a/pandora_console/include/styles/cb/lib/xwinopen.js +++ /dev/null @@ -1,15 +0,0 @@ -// xWinOpen, Copyright 2003-2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -// A simple alternative to xWindow. - -var xChildWindow = null; -function xWinOpen(sUrl) -{ - var features = "left=0,top=0,width=600,height=500,location=0,menubar=0," + - "resizable=1,scrollbars=1,status=0,toolbar=0"; - if (xChildWindow && !xChildWindow.closed) {xChildWindow.location.href = sUrl;} - else {xChildWindow = window.open(sUrl, "myWinName", features);} - xChildWindow.focus(); - return false; -} diff --git a/pandora_console/include/styles/cb/lib/xwinopen.xml b/pandora_console/include/styles/cb/lib/xwinopen.xml deleted file mode 100644 index 8d7fa1ac12..0000000000 --- a/pandora_console/include/styles/cb/lib/xwinopen.xml +++ /dev/null @@ -1,49 +0,0 @@ - - - - -Copyright 2003-2005 Michael Foster (Cross-Browser.com) -Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - - Window - -Function - - - -xWinOpen(sUrl) - - - - sUrl - - - - -false - - - - http://cross-browser.com/x/examples/xwindow.php - - - - - - - 31Mar04 - mf - - - - - - - 1 - 31Mar04 - mf - - - - - diff --git a/pandora_console/include/styles/cb/lib/xwinscrollto.js b/pandora_console/include/styles/cb/lib/xwinscrollto.js deleted file mode 100644 index 6b080946de..0000000000 --- a/pandora_console/include/styles/cb/lib/xwinscrollto.js +++ /dev/null @@ -1,41 +0,0 @@ -// xWinScrollTo, Copyright 2003-2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -var xWinScrollWin = null; -function xWinScrollTo(win,x,y,uTime) { - var e = win; - if (!e.timeout) e.timeout = 25; - var st = xScrollTop(e, 1); - var sl = xScrollLeft(e, 1); - e.xTarget = x; e.yTarget = y; e.slideTime = uTime; e.stop = false; - e.yA = e.yTarget - st; - e.xA = e.xTarget - sl; // A = distance - e.B = Math.PI / (2 * e.slideTime); // B = period - e.yD = st; - e.xD = sl; // D = initial position - var d = new Date(); e.C = d.getTime(); - if (!e.moving) { - xWinScrollWin = e; - _xWinScrollTo(); - } -} -function _xWinScrollTo() { - var e = xWinScrollWin || window; - var now, s, t, newY, newX; - now = new Date(); - t = now.getTime() - e.C; - if (e.stop) { e.moving = false; } - else if (t < e.slideTime) { - setTimeout("_xWinScrollTo()", e.timeout); - s = Math.sin(e.B * t); - newX = Math.round(e.xA * s + e.xD); - newY = Math.round(e.yA * s + e.yD); - e.scrollTo(newX, newY); - e.moving = true; - } - else { - e.scrollTo(e.xTarget, e.yTarget); - xWinScrollWin = null; - e.moving = false; - } -} diff --git a/pandora_console/include/styles/cb/lib/xwinscrollto.xml b/pandora_console/include/styles/cb/lib/xwinscrollto.xml deleted file mode 100644 index f84e042995..0000000000 --- a/pandora_console/include/styles/cb/lib/xwinscrollto.xml +++ /dev/null @@ -1,67 +0,0 @@ - - - - -Copyright 2003-2005 Michael Foster (Cross-Browser.com) -Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - - Window - Animation - -Function - - - -xWinScrollTo(win, x, y, uTime) - - - - win - - - - x,y - - - - uTime - - - - - - xscrolltop - xscrollleft - - - - - http://cross-browser.com/x/examples/xwinscrollto.php - - - - - - - 23May05 - mf - - - - - - - 2 - 11Mar05 - mf - - - - 1 - 29Apr04 - mf - - - - - diff --git a/pandora_console/include/styles/cb/lib/xzindex.js b/pandora_console/include/styles/cb/lib/xzindex.js deleted file mode 100644 index 78480300e5..0000000000 --- a/pandora_console/include/styles/cb/lib/xzindex.js +++ /dev/null @@ -1,12 +0,0 @@ -// xZIndex, Copyright 2001-2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xZIndex(e,uZ) -{ - if(!(e=xGetElementById(e))) return 0; - if(e.style && xDef(e.style.zIndex)) { - if(xNum(uZ)) e.style.zIndex=uZ; - uZ=parseInt(e.style.zIndex); - } - return uZ; -} diff --git a/pandora_console/include/styles/cb/lib/xzindex.xml b/pandora_console/include/styles/cb/lib/xzindex.xml deleted file mode 100644 index f75ccd5e28..0000000000 --- a/pandora_console/include/styles/cb/lib/xzindex.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - -Copyright 2001-2005 Michael Foster (Cross-Browser.com) -Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - - Presentation - -Function - - - -xZIndex(e[, uZ]) - - - - e - - - - uZ - - - - -parseInt(e.style.zIndex) - - - xgetelementbyid - xdef - xnum - - - - - http://cross-browser.com/toys/ - - - - - - - 23May05 - mf - - - - - - - 1 - 31Mar04 - mf - - - - - diff --git a/pandora_console/include/styles/cb/x.js b/pandora_console/include/styles/cb/x.js deleted file mode 100644 index c416816329..0000000000 --- a/pandora_console/include/styles/cb/x.js +++ /dev/null @@ -1,2637 +0,0 @@ -/* x.js compiled from X 4.0 with XC 0.27b. Distributed by GNU LGPL. For copyrights, license, documentation and more visit Cross-Browser.com */ -// globals, Copyright 2001-2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -var xOp7Up,xOp6Dn,xIE4Up,xIE4,xIE5,xNN4,xUA=navigator.userAgent.toLowerCase(); -if(window.opera){ - var i=xUA.indexOf('opera'); - if(i!=-1){ - var v=parseInt(xUA.charAt(i+6)); - xOp7Up=v>=7; - xOp6Dn=v<7; - } -} -else if(navigator.vendor!='KDE' && document.all && xUA.indexOf('msie')!=-1){ - xIE4Up=parseFloat(navigator.appVersion)>=4; - xIE4=xUA.indexOf('msie 4')!=-1; - xIE5=xUA.indexOf('msie 5')!=-1; -} -else if(document.layers){xNN4=true;} -xMac=xUA.indexOf('mac')!=-1; -// xAddEventListener, Copyright 2001-2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xAddEventListener(e,eT,eL,cap) -{ - if(!(e=xGetElementById(e))) return; - eT=eT.toLowerCase(); - if((!xIE4Up && !xOp7Up) && e==window) { - if(eT=='resize') { window.xPCW=xClientWidth(); window.xPCH=xClientHeight(); window.xREL=eL; xResizeEvent(); return; } - if(eT=='scroll') { window.xPSL=xScrollLeft(); window.xPST=xScrollTop(); window.xSEL=eL; xScrollEvent(); return; } - } - var eh='e.on'+eT+'=eL'; - if(e.addEventListener) e.addEventListener(eT,eL,cap); - else if(e.attachEvent) e.attachEvent('on'+eT,eL); - else eval(eh); -} -// called only from the above -function xResizeEvent() -{ - if (window.xREL) setTimeout('xResizeEvent()', 250); - var cw = xClientWidth(), ch = xClientHeight(); - if (window.xPCW != cw || window.xPCH != ch) { window.xPCW = cw; window.xPCH = ch; if (window.xREL) window.xREL(); } -} -function xScrollEvent() -{ - if (window.xSEL) setTimeout('xScrollEvent()', 250); - var sl = xScrollLeft(), st = xScrollTop(); - if (window.xPSL != sl || window.xPST != st) { window.xPSL = sl; window.xPST = st; if (window.xSEL) window.xSEL(); } -} -// xAppendChild, Copyright 2001-2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xAppendChild(oParent, oChild) -{ - if (oParent.appendChild) return oParent.appendChild(oChild); - else return null; -} -// xBackground, Copyright 2001-2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xBackground(e,c,i) -{ - if(!(e=xGetElementById(e))) return ''; - var bg=''; - if(e.style) { - if(xStr(c)) { - if(!xOp6Dn) e.style.backgroundColor=c; - else e.style.background=c; - } - if(xStr(i)) e.style.backgroundImage=(i!='')? 'url('+i+')' : null; - if(!xOp6Dn) bg=e.style.backgroundColor; - else bg=e.style.background; - } - return bg; -} -// xBar, Copyright 2003,2004,2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -// Bar-Graph Object - -function xBar(dir, // direction, 'ltr', 'rtl', 'ttb', or 'btt' - conStyle, barStyle) // container and bar style class names -{ - //// Public Properties - - this.value = 0; // current value, read-only - - //// Public Methods - - // Update current value - this.update = function(v) - { - if (v < 0) v = 0; - else if (v > this.inMax) v = this.inMax; - this.con.title = this.bar.title = this.value = v; - switch(this.dir) { - case 'ltr': // left to right - v = this.scale(v, this.w); - xLeft(this.bar, v - this.w); - break; - case 'rtl': // right to left - v = this.scale(v, this.w); - xLeft(this.bar, this.w - v); - break; - case 'btt': // bottom to top - v = this.scale(v, this.h); - xTop(this.bar, this.h - v); - break; - case 'ttb': // top to bottom - v = this.scale(v, this.h); - xTop(this.bar, v - this.h); - break; - } - }; - - // Change position and/or size - this.paint = function(x, y, // container position - w, h) // container size - { - if (xNum(x)) this.x = x; - if (xNum(y)) this.y = y; - if (xNum(w)) this.w = w; - if (xNum(h)) this.h = h; - xResizeTo(this.con, this.w, this.h); - xMoveTo(this.con, this.x, this.y); - xResizeTo(this.bar, this.w, this.h); - xMoveTo(this.bar, 0, 0); - }; - - // Change scale and/or start value - this.reset = function(max, start) // non-scaled values - { - if (xNum(max)) this.inMax = max; - if (xNum(start)) this.start = start; - this.update(this.start); - }; - - //// Private Methods - - this.scale = function(v, outMax) - { - return Math.round(xLinearScale(v, 0, this.inMax, 0, outMax)); - }; - - //// Private Properties - - this.dir = dir; - this.x = 0; - this.y = 0; - this.w = 100; - this.h = 100; - this.inMax = 100; - this.start = 0; - this.conStyle = conStyle; - this.barStyle = barStyle; - - //// Constructor - - // Create container - this.con = document.createElement('DIV'); - this.con.className = this.conStyle; - // Create bar - this.bar = document.createElement('DIV'); - this.bar.className = this.barStyle; - // Insert in object tree - this.con.appendChild(this.bar); - document.body.appendChild(this.con); - -} // end xBar -// xCapitalize, Copyright 2001-2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -// Capitalize the first letter of every word in str. - -function xCapitalize(str) -{ - var i, c, wd, s='', cap = true; - - for (i = 0; i < str.length; ++i) { - c = str.charAt(i); - wd = isWordDelim(c); - if (wd) { - cap = true; - } - if (cap && !wd) { - c = c.toUpperCase(); - cap = false; - } - s += c; - } - return s; - - function isWordDelim(c) - { - // add other word delimiters as needed - // (for example '-' and other punctuation) - return c == ' ' || c == '\n' || c == '\t'; - } -} -// xCardinalPosition, Copyright 2004-2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xCardinalPosition(e, cp, margin, outside) -{ - if(!(e=xGetElementById(e))) return; - if (typeof(cp)!='string'){window.status='xCardinalPosition error: cp=' + cp + ', id=' + e.id; return;} - var x=xLeft(e), y=xTop(e), w=xWidth(e), h=xHeight(e); - var pw,ph,p = xParent(e); - if (p == document || p.nodeName.toLowerCase() == 'html') {pw = xClientWidth(); ph = xClientHeight();} - else {pw=xWidth(p); ph=xHeight(p);} - var sx=xScrollLeft(p), sy=xScrollTop(p); - var right=sx + pw, bottom=sy + ph; - var cenLeft=sx + Math.floor((pw-w)/2), cenTop=sy + Math.floor((ph-h)/2); - if (!margin) margin=0; - else{ - if (outside) margin=-margin; - sx +=margin; sy +=margin; right -=margin; bottom -=margin; - } - switch (cp.toLowerCase()){ - case 'n': x=cenLeft; if (outside) y=sy - h; else y=sy; break; - case 'ne': if (outside){x=right; y=sy - h;}else{x=right - w; y=sy;}break; - case 'e': y=cenTop; if (outside) x=right; else x=right - w; break; - case 'se': if (outside){x=right; y=bottom;}else{x=right - w; y=bottom - h}break; - case 's': x=cenLeft; if (outside) y=sy - h; else y=bottom - h; break; - case 'sw': if (outside){x=sx - w; y=bottom;}else{x=sx; y=bottom - h;}break; - case 'w': y=cenTop; if (outside) x=sx - w; else x=sx; break; - case 'nw': if (outside){x=sx - w; y=sy - h;}else{x=sx; y=sy;}break; - case 'cen': x=cenLeft; y=cenTop; break; - case 'cenh': x=cenLeft; break; - case 'cenv': y=cenTop; break; - } - var o = new Object(); - o.x = x; o.y = y; - return o; -} -// xClientHeight, Copyright 2001-2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xClientHeight() -{ - var h=0; - if(xOp6Dn) h=window.innerHeight; - else if(document.compatMode == 'CSS1Compat' && !window.opera && document.documentElement && document.documentElement.clientHeight) - h=document.documentElement.clientHeight; - else if(document.body && document.body.clientHeight) - h=document.body.clientHeight; - else if(xDef(window.innerWidth,window.innerHeight,document.width)) { - h=window.innerHeight; - if(document.width>window.innerWidth) h-=16; - } - return h; -} -// xClientWidth, Copyright 2001-2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xClientWidth() -{ - var w=0; - if(xOp6Dn) w=window.innerWidth; - else if(document.compatMode == 'CSS1Compat' && !window.opera && document.documentElement && document.documentElement.clientWidth) - w=document.documentElement.clientWidth; - else if(document.body && document.body.clientWidth) - w=document.body.clientWidth; - else if(xDef(window.innerWidth,window.innerHeight,document.height)) { - w=window.innerWidth; - if(document.height>window.innerHeight) w-=16; - } - return w; -} -// xClip, Copyright 2001-2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xClip(e,t,r,b,l) -{ - if(!(e=xGetElementById(e))) return; - if(e.style) { - if (xNum(l)) e.style.clip='rect('+t+'px '+r+'px '+b+'px '+l+'px)'; - else e.style.clip='rect(0 '+parseInt(e.style.width)+'px '+parseInt(e.style.height)+'px 0)'; - } -} -// xCollapsible, Copyright 2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xCollapsible(outerEle, bShow) // object prototype -{ - // Constructor - - var container = xGetElementById(outerEle); - if (!container) {return null;} - var isUL = container.nodeName.toUpperCase() == 'UL'; - var i, trg, aTgt = xGetElementsByTagName(isUL ? 'UL':'DIV', container); - for (i = 0; i < aTgt.length; ++i) { - trg = xPrevSib(aTgt[i]); - if (trg && (isUL || trg.nodeName.charAt(0).toUpperCase() == 'H')) { - aTgt[i].xTrgPtr = trg; - aTgt[i].style.display = bShow ? 'block' : 'none'; - trg.style.cursor = 'pointer'; - trg.xTgtPtr = aTgt[i]; - trg.onclick = trg_onClick; - } - } - - // Private - - function trg_onClick() - { - var tgt = this.xTgtPtr.style; - if (tgt.display == 'none') { - tgt.display = 'block'; - } - else { - tgt.display = 'none'; - } - } - - // Public - - this.displayAll = function(bShow) - { - for (var i = 0; i < aTgt.length; ++i) { - if (aTgt[i].xTrgPtr) { - xDisplay(aTgt[i], bShow ? "block":"none"); - } - } - }; - - // The unload listener is for IE's circular reference memory leak bug. - this.onUnload = function() - { - if (!xIE4Up || !container || !aTgt) {return;} - for (i = 0; i < aTgt.length; ++i) { - trg = aTgt[i].xTrgPtr; - if (trg) { - if (trg.xTgtPtr) { - trg.xTgtPtr.TrgPtr = null; - trg.xTgtPtr = null; - } - trg.onclick = null; - } - } - }; -} -// xColor, Copyright 2001-2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xColor(e,s) -{ - if(!(e=xGetElementById(e))) return ''; - var c=''; - if(e.style && xDef(e.style.color)) { - if(xStr(s)) e.style.color=s; - c=e.style.color; - } - return c; -} -// xCreateElement, Copyright 2001-2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xCreateElement(sTag) -{ - if (document.createElement) return document.createElement(sTag); - else return null; -} -// xDef, Copyright 2001-2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xDef() -{ - for(var i=0; i 0) { - var offset = document.cookie.indexOf(search); - if (offset != -1) { - offset += search.length; - var end = document.cookie.indexOf(";", offset); - if (end == -1) end = document.cookie.length; - value = unescape(document.cookie.substring(offset, end)); - } - } - return value; -} -// xGetElementById, Copyright 2001-2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xGetElementById(e) -{ - if(typeof(e)!='string') return e; - if(document.getElementById) e=document.getElementById(e); - else if(document.all) e=document.all[e]; - else e=null; - return e; -} -// xGetElementsByAttribute, Copyright 2001-2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xGetElementsByAttribute(sTag, sAtt, sRE, fn) -{ - var a, list, found = new Array(), re = new RegExp(sRE, 'i'); - list = xGetElementsByTagName(sTag); - for (var i = 0; i < list.length; ++i) { - a = list[i].getAttribute(sAtt); - if (!a) {a = list[i][sAtt];} - if (typeof(a)=='string' && a.search(re) != -1) { - found[found.length] = list[i]; - if (fn) fn(list[i]); - } - } - return found; -} -// xGetElementsByClassName, Copyright 2001-2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xGetElementsByClassName(c,p,t,f) -{ - var found = new Array(); - var re = new RegExp('\\b'+c+'\\b', 'i'); - var list = xGetElementsByTagName(t, p); - for (var i = 0; i < list.length; ++i) { - if (list[i].className && list[i].className.search(re) != -1) { - found[found.length] = list[i]; - if (f) f(list[i]); - } - } - return found; -} -// xGetElementsByTagName, Copyright 2001-2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xGetElementsByTagName(t,p) -{ - var list = null; - t = t || '*'; - p = p || document; - if (xIE4 || xIE5) { - if (t == '*') list = p.all; - else list = p.all.tags(t); - } - else if (p.getElementsByTagName) list = p.getElementsByTagName(t); - return list || new Array(); -} -// xGetElePropsArray, Copyright 2001-2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xGetElePropsArray(ele, eleName) -{ - var u = 'undefined'; - var i = 0, a = new Array(); - - nv('Element', eleName); - nv('id', (xDef(ele.id) ? ele.id : u)); - nv('tagName', (xDef(ele.tagName) ? ele.tagName : u)); - - nv('xWidth()', xWidth(ele)); - nv('style.width', (xDef(ele.style) && xDef(ele.style.width) ? ele.style.width : u)); - nv('offsetWidth', (xDef(ele.offsetWidth) ? ele.offsetWidth : u)); - nv('scrollWidth', (xDef(ele.offsetWidth) ? ele.offsetWidth : u)); - nv('clientWidth', (xDef(ele.clientWidth) ? ele.clientWidth : u)); - - nv('xHeight()', xHeight(ele)); - nv('style.height', (xDef(ele.style) && xDef(ele.style.height) ? ele.style.height : u)); - nv('offsetHeight', (xDef(ele.offsetHeight) ? ele.offsetHeight : u)); - nv('scrollHeight', (xDef(ele.offsetHeight) ? ele.offsetHeight : u)); - nv('clientHeight', (xDef(ele.clientHeight) ? ele.clientHeight : u)); - - nv('xLeft()', xLeft(ele)); - nv('style.left', (xDef(ele.style) && xDef(ele.style.left) ? ele.style.left : u)); - nv('offsetLeft', (xDef(ele.offsetLeft) ? ele.offsetLeft : u)); - nv('style.pixelLeft', (xDef(ele.style) && xDef(ele.style.pixelLeft) ? ele.style.pixelLeft : u)); - - nv('xTop()', xTop(ele)); - nv('style.top', (xDef(ele.style) && xDef(ele.style.top) ? ele.style.top : u)); - nv('offsetTop', (xDef(ele.offsetTop) ? ele.offsetTop : u)); - nv('style.pixelTop', (xDef(ele.style) && xDef(ele.style.pixelTop) ? ele.style.pixelTop : u)); - - nv('', ''); - nv('xGetComputedStyle()', ''); - - nv('top'); - nv('right'); - nv('bottom'); - nv('left'); - - nv('width'); - nv('height'); - - nv('color'); - nv('background-color'); - nv('font-family'); - nv('font-size'); - nv('text-align'); - nv('line-height'); - nv('content'); - - nv('float'); - nv('clear'); - - nv('margin'); - nv('padding'); - nv('padding-top'); - nv('padding-right'); - nv('padding-bottom'); - nv('padding-left'); - - nv('border-top-width'); - nv('border-right-width'); - nv('border-bottom-width'); - nv('border-left-width'); - - nv('position'); - nv('overflow'); - nv('visibility'); - nv('display'); - nv('z-index'); - nv('clip'); - nv('cursor'); - - return a; - - function nv(name, value) - { - a[i] = new Object(); - a[i].name = name; - a[i].value = typeof(value)=='undefined' ? xGetComputedStyle(ele, name) : value; - ++i; - } -} -// xGetElePropsString, Copyright 2001-2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xGetElePropsString(ele, eleName, newLine) -{ - var s = '', a = xGetElePropsArray(ele, eleName); - for (var i = 0; i < a.length; ++i) { - s += a[i].name + ' = ' + a[i].value + (newLine || '\n'); - } - return s; -} -// xGetURLArguments, Copyright 2001-2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xGetURLArguments() -{ - var idx = location.href.indexOf('?'); - var params = new Array(); - if (idx != -1) { - var pairs = location.href.substring(idx+1, location.href.length).split('&'); - for (var i=0; i= eX + l && x <= eX + xWidth(e) - r && - y >= eY + t && y <= eY + xHeight(e) - b ); -} -// xHeight, Copyright 2001-2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xHeight(e,h) -{ - if(!(e=xGetElementById(e))) return 0; - if (xNum(h)) { - if (h<0) h = 0; - else h=Math.round(h); - } - else h=-1; - var css=xDef(e.style); - if (e == document || e.tagName.toLowerCase() == 'html' || e.tagName.toLowerCase() == 'body') { - h = xClientHeight(); - } - else if(css && xDef(e.offsetHeight) && xStr(e.style.height)) { - if(h>=0) { - var pt=0,pb=0,bt=0,bb=0; - if (document.compatMode=='CSS1Compat') { - var gcs = xGetComputedStyle; - pt=gcs(e,'padding-top',1); - if (pt !== null) { - pb=gcs(e,'padding-bottom',1); - bt=gcs(e,'border-top-width',1); - bb=gcs(e,'border-bottom-width',1); - } - // Should we try this as a last resort? - // At this point getComputedStyle and currentStyle do not exist. - else if(xDef(e.offsetHeight,e.style.height)){ - e.style.height=h+'px'; - pt=e.offsetHeight-h; - } - } - h-=(pt+pb+bt+bb); - if(isNaN(h)||h<0) return; - else e.style.height=h+'px'; - } - h=e.offsetHeight; - } - else if(css && xDef(e.style.pixelHeight)) { - if(h>=0) e.style.pixelHeight=h; - h=e.style.pixelHeight; - } - return h; -} -// xHex, Copyright 2001-2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xHex(n, digits, prefix) -{ - var p = '', n = Math.ceil(n); - if (prefix) p = prefix; - n = n.toString(16); - for (var i=0; i < digits - n.length; ++i) { - p += '0'; - } - return p + n; -} -// xHide, Copyright 2001-2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xHide(e){return xVisibility(e,0);} -// xImgAsyncWait, Copyright 2001-2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xImgAsyncWait(fnStatus, fnInit, fnError, sErrorImg, sAbortImg, imgArray) -{ - var i, imgs = imgArray || document.images; - - for (i = 0; i < imgs.length; ++i) { - imgs[i].onload = imgOnLoad; - imgs[i].onerror = imgOnError; - imgs[i].onabort = imgOnAbort; - } - - xIAW.fnStatus = fnStatus; - xIAW.fnInit = fnInit; - xIAW.fnError = fnError; - xIAW.imgArray = imgArray; - - xIAW(); - - function imgOnLoad() - { - this.wasLoaded = true; - } - function imgOnError() - { - if (sErrorImg && !this.wasError) { - this.src = sErrorImg; - } - this.wasError = true; - } - function imgOnAbort() - { - if (sAbortImg && !this.wasAborted) { - this.src = sAbortImg; - } - this.wasAborted = true; - } -} -// end xImgAsyncWait() - -// Don't call xIAW() directly. It is only called from xImgAsyncWait(). - -function xIAW() -{ - var me = arguments.callee; - if (!me) { - return; // I could have used a global object instead of callee - } - var i, imgs = me.imgArray ? me.imgArray : document.images; - var c = 0, e = 0, a = 0, n = imgs.length; - for (i = 0; i < n; ++i) { - if (imgs[i].wasError) { - ++e; - } - else if (imgs[i].wasAborted) { - ++a; - } - else if (imgs[i].complete || imgs[i].wasLoaded) { - ++c; - } - } - if (me.fnStatus) { - me.fnStatus(n, c, e, a); - } - if (c + e + a == n) { - if ((e || a) && me.fnError) { - me.fnError(n, c, e, a); - } - else if (me.fnInit) { - me.fnInit(); - } - } - else setTimeout('xIAW()', 250); -} -// end xIAW() -// xImgRollSetup, Copyright 2002,2003,2004,2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xImgRollSetup(p,s,x) -{ - var ele, id; - for (var i=3; i"; - } - - // else is it a .css file? - else if (f.indexOf('.css') != -1) { // CSS file - h = ""; - } - - // write the link or script element into the document - if (h.length) { document.writeln(h); } - - } // end if (!inc) - } // end outer for - return true; - } // end if (min dhtml support) - return false; -} -// xInnerHtml, Copyright 2001-2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xInnerHtml(e,h) -{ - if(!(e=xGetElementById(e)) || !xStr(e.innerHTML)) return null; - var s = e.innerHTML; - if (xStr(h)) {e.innerHTML = h;} - return s; -} -// xIntersection, Copyright 2001-2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xIntersection(e1, e2, o) -{ - var ix1, iy2, iw, ih, intersect = true; - var e1x1 = xPageX(e1); - var e1x2 = e1x1 + xWidth(e1); - var e1y1 = xPageY(e1); - var e1y2 = e1y1 + xHeight(e1); - var e2x1 = xPageX(e2); - var e2x2 = e2x1 + xWidth(e2); - var e2y1 = xPageY(e2); - var e2y2 = e2y1 + xHeight(e2); - // horizontal - if (e1x1 <= e2x1) { - ix1 = e2x1; - if (e1x2 < e2x1) intersect = false; - else iw = Math.min(e1x2, e2x2) - e2x1; - } - else { - ix1 = e1x1; - if (e2x2 < e1x1) intersect = false; - else iw = Math.min(e1x2, e2x2) - e1x1; - } - // vertical - if (e1y2 >= e2y2) { - iy2 = e2y2; - if (e1y1 > e2y2) intersect = false; - else ih = e2y2 - Math.max(e1y1, e2y1); - } - else { - iy2 = e1y2; - if (e2y1 > e1y2) intersect = false; - else ih = e1y2 - Math.max(e1y1, e2y1); - } - // intersected rectangle - if (intersect && typeof(o)=='object') { - o.x = ix1; - o.y = iy2 - ih; - o.w = iw; - o.h = ih; - } - return intersect; -} -// xLeft, Copyright 2001-2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xLeft(e, iX) -{ - if(!(e=xGetElementById(e))) return 0; - var css=xDef(e.style); - if (css && xStr(e.style.left)) { - if(xNum(iX)) e.style.left=iX+'px'; - else { - iX=parseInt(e.style.left); - if(isNaN(iX)) iX=0; - } - } - else if(css && xDef(e.style.pixelLeft)) { - if(xNum(iX)) e.style.pixelLeft=iX; - else iX=e.style.pixelLeft; - } - return iX; -} -// xLinearScale, Copyright 2001-2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xLinearScale(val,iL,iH,oL,oH) -{ - var m=(oH-oL)/(iH-iL); - var b=oL-(iL*m); - return m*val+b; -} -// xLoadScript, Copyright 2001-2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xLoadScript(url) -{ - if (document.createElement && document.getElementsByTagName) { - var s = document.createElement('script'); - var h = document.getElementsByTagName('head'); - if (s && h.length) { - s.src = url; - h[0].appendChild(s); - } - } -} -// xMenu1, Copyright 2001-2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xMenu1(triggerId, menuId, mouseMargin, openEvent) -{ - var isOpen = false; - var trg = xGetElementById(triggerId); - var mnu = xGetElementById(menuId); - if (trg && mnu) { - xAddEventListener(trg, openEvent, onOpen, false); - } - function onOpen() - { - if (!isOpen) { - xMoveTo(mnu, xPageX(trg), xPageY(trg) + xHeight(trg)); - xShow(mnu); - xAddEventListener(document, 'mousemove', onMousemove, false); - isOpen = true; - } - } - function onMousemove(ev) - { - var e = new xEvent(ev); - if (!xHasPoint(mnu, e.pageX, e.pageY, -mouseMargin) && - !xHasPoint(trg, e.pageX, e.pageY, -mouseMargin)) - { - xHide(mnu); - xRemoveEventListener(document, 'mousemove', onMousemove, false); - isOpen = false; - } - } -} // end xMenu1 -// xMenu1A, Copyright 2001-2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xMenu1A(triggerId, menuId, mouseMargin, slideTime, openEvent) -{ - var isOpen = false; - var trg = xGetElementById(triggerId); - var mnu = xGetElementById(menuId); - if (trg && mnu) { - xHide(mnu); - xAddEventListener(trg, openEvent, onOpen, false); - } - function onOpen() - { - if (!isOpen) { - xMoveTo(mnu, xPageX(trg), xPageY(trg)); - xShow(mnu); - xSlideTo(mnu, xPageX(trg), xPageY(trg) + xHeight(trg), slideTime); - xAddEventListener(document, 'mousemove', onMousemove, false); - isOpen = true; - } - } - function onMousemove(ev) - { - var e = new xEvent(ev); - if (!xHasPoint(mnu, e.pageX, e.pageY, -mouseMargin) && - !xHasPoint(trg, e.pageX, e.pageY, -mouseMargin)) - { - xRemoveEventListener(document, 'mousemove', onMousemove, false); - xSlideTo(mnu, xPageX(trg), xPageY(trg), slideTime); - setTimeout("xHide('" + menuId + "')", slideTime); - isOpen = false; - } - } -} // end xMenu1A -// xMenu1B, Copyright 2001-2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xMenu1B(openTriggerId, closeTriggerId, menuId, slideTime, bOnClick) -{ - xMenu1B.instances[xMenu1B.instances.length] = this; - var isOpen = false; - var oTrg = xGetElementById(openTriggerId); - var cTrg = xGetElementById(closeTriggerId); - var mnu = xGetElementById(menuId); - if (oTrg && cTrg && mnu) { - xHide(mnu); - if (bOnClick) oTrg.onclick = openOnEvent; - else oTrg.onmouseover = openOnEvent; - cTrg.onclick = closeOnClick; - } - function openOnEvent() - { - if (!isOpen) { - for (var i = 0; i < xMenu1B.instances.length; ++i) { - xMenu1B.instances[i].close(); - } - xMoveTo(mnu, xPageX(oTrg), xPageY(oTrg)); - xShow(mnu); - xSlideTo(mnu, xPageX(oTrg), xPageY(oTrg) + xHeight(oTrg), slideTime); - isOpen = true; - } - } - function closeOnClick() - { - if (isOpen) { - xSlideTo(mnu, xPageX(oTrg), xPageY(oTrg), slideTime); - setTimeout("xHide('" + menuId + "')", slideTime); - isOpen = false; - } - } - this.close = function() - { - closeOnClick(); - } -} // end xMenu1B - -xMenu1B.instances = new Array(); // static member of xMenu1B -// xMenu5, Copyright 2004,2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xMenu5(idUL, btnClass, idAutoOpen) // object prototype -{ - // Constructor - - var i, ul, btns, mnu = xGetElementById(idUL); - btns = xGetElementsByClassName(btnClass, mnu, 'DIV'); - for (i = 0; i < btns.length; ++i) { - ul = xNextSib(btns[i], 'UL'); - btns[i].xClpsTgt = ul; - btns[i].onclick = btn_onClick; - set_display(btns[i], 0); - } - if (idAutoOpen) { - var e = xGetElementById(idAutoOpen); - while (e && e != mnu) { - if (e.xClpsTgt) set_display(e, 1); - while (e && e != mnu && e.nodeName != 'LI') e = e.parentNode; - e = e.parentNode; // UL - while (e && !e.xClpsTgt) e = xPrevSib(e); - } - } - - // Private - - function btn_onClick() - { - var thisLi, fc, pUl; - if (this.xClpsTgt.style.display == 'none') { - set_display(this, 1); - // get this label's parent LI - var li = this.parentNode; - thisLi = li; - pUl = li.parentNode; // get this LI's parent UL - li = xFirstChild(pUl); // get the UL's first LI child - // close all labels' ULs on this level except for thisLI's label - while (li) { - if (li != thisLi) { - fc = xFirstChild(li); - if (fc && fc.xClpsTgt) { - set_display(fc, 0); - } - } - li = xNextSib(li); - } - } - else { - set_display(this, 0); - } - } - - function set_display(ele, bBlock) - { - if (bBlock) { - ele.xClpsTgt.style.display = 'block'; - ele.innerHTML = '-'; - } - else { - ele.xClpsTgt.style.display = 'none'; - ele.innerHTML = '+'; - } - } - - // Public - - this.onUnload = function() - { - for (i = 0; i < btns.length; ++i) { - btns[i].xClpsTgt = null; - btns[i].onclick = null; - } - } -} // end xMenu5 prototype - - -// xMoveTo, Copyright 2001-2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xMoveTo(e,x,y) -{ - xLeft(e,x); - xTop(e,y); -} -// xName, Copyright 2001-2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xName(e) -{ - if (!e) return e; - else if (e.id && e.id != "") return e.id; - else if (e.name && e.name != "") return e.name; - else if (e.nodeName && e.nodeName != "") return e.nodeName; - else if (e.tagName && e.tagName != "") return e.tagName; - else return e; -} -// xNextSib, Copyright 2001-2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xNextSib(e,t) -{ - var s = e ? e.nextSibling : null; - if (t) while (s && s.nodeName != t) { s = s.nextSibling; } - else while (s && s.nodeType != 1) { s = s.nextSibling; } - return s; -} -// xNum, Copyright 2001-2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xNum() -{ - for(var i=0; i= e.slideTime) { - e.moving = false; - } -} -// xSlideTo, Copyright 2001-2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xSlideTo(e, x, y, uTime) -{ - if (!(e=xGetElementById(e))) return; - if (!e.timeout) e.timeout = 25; - e.xTarget = x; e.yTarget = y; e.slideTime = uTime; e.stop = false; - e.yA = e.yTarget - xTop(e); e.xA = e.xTarget - xLeft(e); // A = distance - if (e.slideLinear) e.B = 1/e.slideTime; - else e.B = Math.PI / (2 * e.slideTime); // B = period - e.yD = xTop(e); e.xD = xLeft(e); // D = initial position - var d = new Date(); e.C = d.getTime(); - if (!e.moving) _xSlideTo(e); -} -function _xSlideTo(e) -{ - if (!(e=xGetElementById(e))) return; - var now, s, t, newY, newX; - now = new Date(); - t = now.getTime() - e.C; - if (e.stop) { e.moving = false; } - else if (t < e.slideTime) { - setTimeout("_xSlideTo('"+e.id+"')", e.timeout); - if (e.slideLinear) s = e.B * t; - else s = Math.sin(e.B * t); - newX = Math.round(e.xA * s + e.xD); - newY = Math.round(e.yA * s + e.yD); - xMoveTo(e, newX, newY); - e.moving = true; - } - else { - xMoveTo(e, e.xTarget, e.yTarget); - e.moving = false; - } -} - -// xStopPropagation, Copyright 2004,2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xStopPropagation(evt) -{ - if (evt && evt.stopPropagation) evt.stopPropagation(); - else if (window.event) window.event.cancelBubble = true; -} -// xStr, Copyright 2001-2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xStr(s) -{ - for(var i=0; i= t.preset) { // timer event on t - t.obj[t.mthd](t); // pass listener this xTimerObj - if (t.type.charAt(0) == 'i') { t.time0 = now; } - else { t.stop(); } - } - } - } -}; - -// Object Prototype used only by xTimerMgr -function xTimerObj(type, obj, mthd, preset, data) -{ - // Public Properties - this.data = data; - // Read-only Properties - this.type = type; // 'interval' or 'timeout' - this.obj = obj; - this.mthd = mthd; // string - this.preset = preset; - this.reset(); -} // end xTimerObj constructor -// xTimerObj Methods -xTimerObj.prototype.stop = function() { this.running = false; }; -xTimerObj.prototype.start = function() { this.running = true; }; // continue after a stop -xTimerObj.prototype.reset = function() -{ - var d = new Date(); - this.time0 = d.getTime(); - this.elapsed = 0; - this.running = true; -}; - -var xTimer = new xTimerMgr(); // applications assume global name is 'xTimer' -setInterval('xTimer.run()', 250); -// xTooltipGroup, Copyright 2002,2003,2004,2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -document.write(""); -document.write("
xTooltipElement
"); - -var xttTrigger = null; // current trigger element - -function xTooltipGroup(grpClassOrIdList, tipClass, origin, xOffset, yOffset, textList) -{ - - //// Properties - - this.c = tipClass; - this.o = origin; - this.x = xOffset; - this.y = yOffset; - this.t = null; // tooltip element - all groups use the same element - - //// Constructor Code - - var i, tips; - if (xStr(grpClassOrIdList)) { - tips = xGetElementsByClassName(grpClassOrIdList); - for (i = 0; i < tips.length; ++i) { - tips[i].xTooltip = this; - } - } - else { - tips = new Array(); - for (i = 0; i < grpClassOrIdList.length; ++i) { - tips[i] = xGetElementById(grpClassOrIdList[i]); - if (!tips[i]) { - alert('Element not found for id = ' + grpClassOrIdList[i]); - } - else { - tips[i].xTooltip = this; - tips[i].xTooltipText = textList[i]; - } - } - } - if (!this.t) { // only execute once - this.t = xGetElementById('xTooltipElement'); - xAddEventListener(document, 'mousemove', this.docOnMousemove, false); - } -} // end xTooltipGroup ctor - -//// xTooltipGroup Methods - -xTooltipGroup.prototype.show = function(trigEle, mx, my) -{ - if (xttTrigger != trigEle) { // if not active or moved to an adjacent trigger - this.t.className = trigEle.xTooltip.c; - this.t.innerHTML = trigEle.xTooltipText ? trigEle.xTooltipText : trigEle.title; - xttTrigger = trigEle; - } - var x, y; - switch(this.o) { - case 'right': - x = xPageX(trigEle) + xWidth(trigEle); - y = xPageY(trigEle); - break; - case 'top': - x = xPageX(trigEle); - y = xPageY(trigEle) - xHeight(trigEle); - break; - case 'mouse': - x = mx; - y = my; - break; - } - xMoveTo(this.t, x + this.x, y + this.y); - xShow(this.t); -}; - -xTooltipGroup.prototype.hide = function() -{ - xMoveTo(this.t, -1000, -1000); - xttTrigger = null; -}; - -xTooltipGroup.prototype.docOnMousemove = function(oEvent) -{ - // this == document at runtime - var o, e = new xEvent(oEvent); - if (e.target && (o = e.target.xTooltip)) { - o.show(e.target, e.pageX, e.pageY); - } - else if (xttTrigger) { - xttTrigger.xTooltip.hide(); - } -}; -// xTop, Copyright 2001-2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xTop(e, iY) -{ - if(!(e=xGetElementById(e))) return 0; - var css=xDef(e.style); - if(css && xStr(e.style.top)) { - if(xNum(iY)) e.style.top=iY+'px'; - else { - iY=parseInt(e.style.top); - if(isNaN(iY)) iY=0; - } - } - else if(css && xDef(e.style.pixelTop)) { - if(xNum(iY)) e.style.pixelTop=iY; - else iY=e.style.pixelTop; - } - return iY; -} -// xTriStateImage, Copyright 2004,2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xTriStateImage(idOut, urlOver, urlDown, fnUp) // Object Prototype -{ - var img; - // Downgrade Detection - if (typeof Image != 'undefined' && document.getElementById) { - img = document.getElementById(idOut); - if (img) { - // Constructor Code - var urlOut = img.src; - var i = new Image(); - i.src = urlOver; - i = new Image(); - i.src = urlDown; - // Event Listeners (closure) - img.onmouseover = function() - { - this.src = urlOver; - }; - img.onmouseout = function() - { - this.src = urlOut; - }; - img.onmousedown = function() - { - this.src = urlDown; - }; - img.onmouseup = function() - { - this.src = urlOver; - if (fnUp) { - fnUp(); - } - }; - } - } - // Destructor Method - this.onunload = function() - { - if (xIE4Up && img) { // Remove any circular references for IE - img.onmouseover = img.onmouseout = img.onmousedown = null; - img = null; - } - }; -} -var xVersion = "4.0";// xVisibility, Copyright 2003-2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xVisibility(e, bShow) -{ - if(!(e=xGetElementById(e))) return null; - if(e.style && xDef(e.style.visibility)) { - if (xDef(bShow)) e.style.visibility = bShow ? 'visible' : 'hidden'; - return e.style.visibility; - } - return null; -} - -//function xVisibility(e,s) -//{ -// if(!(e=xGetElementById(e))) return null; -// var v = 'visible', h = 'hidden'; -// if(e.style && xDef(e.style.visibility)) { -// if (xDef(s)) { -// // try to maintain backwards compatibility (???) -// if (xStr(s)) e.style.visibility = s; -// else e.style.visibility = s ? v : h; -// } -// return e.style.visibility; -// // or... -// // if (e.style.visibility.length) return e.style.visibility; -// // else return xGetComputedStyle(e, 'visibility'); -// } -// else if (xDef(e.visibility)) { // NN4 -// if (xDef(s)) { -// // try to maintain backwards compatibility -// if (xStr(s)) e.visibility = (s == v) ? 'show' : 'hide'; -// else e.visibility = s ? v : h; -// } -// return (e.visibility == 'show') ? v : h; -// } -// return null; -//} -// xWalkEleTree, Copyright 2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xWalkEleTree(n,f,d,l,b) -{ - if (typeof l == 'undefined') l = 0; - if (typeof b == 'undefined') b = 0; - var v = f(n,l,b,d); - if (!v) return 0; - if (v == 1) { - for (var c = n.firstChild; c; c = c.nextSibling) { - if (c.nodeType == 1) { - if (!l) ++b; - if (!xWalkEleTree(c,f,d,l+1,b)) return 0; - } - } - } - return 1; -} -// xWalkTree, Copyright 2001-2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xWalkTree(n, f) -{ - f(n); - for (var c = n.firstChild; c; c = c.nextSibling) { - if (c.nodeType == 1) xWalkTree(c, f); - } -} - -// original implementation: -// function xWalkTree(oNode, fnVisit) -// { -// if (oNode) { -// if (oNode.nodeType == 1) {fnVisit(oNode);} -// for (var c = oNode.firstChild; c; c = c.nextSibling) { -// xWalkTree(c, fnVisit); -// } -// } -// } -// xWidth, Copyright 2001-2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xWidth(e,w) -{ - if(!(e=xGetElementById(e))) return 0; - if (xNum(w)) { - if (w<0) w = 0; - else w=Math.round(w); - } - else w=-1; - var css=xDef(e.style); - if (e == document || e.tagName.toLowerCase() == 'html' || e.tagName.toLowerCase() == 'body') { - w = xClientWidth(); - } - else if(css && xDef(e.offsetWidth) && xStr(e.style.width)) { - if(w>=0) { - var pl=0,pr=0,bl=0,br=0; - if (document.compatMode=='CSS1Compat') { - var gcs = xGetComputedStyle; - pl=gcs(e,'padding-left',1); - if (pl !== null) { - pr=gcs(e,'padding-right',1); - bl=gcs(e,'border-left-width',1); - br=gcs(e,'border-right-width',1); - } - // Should we try this as a last resort? - // At this point getComputedStyle and currentStyle do not exist. - else if(xDef(e.offsetWidth,e.style.width)){ - e.style.width=w+'px'; - pl=e.offsetWidth-w; - } - } - w-=(pl+pr+bl+br); - if(isNaN(w)||w<0) return; - else e.style.width=w+'px'; - } - w=e.offsetWidth; - } - else if(css && xDef(e.style.pixelWidth)) { - if(w>=0) e.style.pixelWidth=w; - w=e.style.pixelWidth; - } - return w; -} -// xWinClass, Copyright 2003-2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -// xWinClass Object Prototype - -function xWinClass(clsName, winName, w, h, x, y, loc, men, res, scr, sta, too) -{ - var thisObj = this; - var e='',c=',',xf='left=',yf='top='; this.n = name; - if (document.layers) {xf='screenX='; yf='screenY=';} - this.f = (w?'width='+w+c:e)+(h?'height='+h+c:e)+(x>=0?xf+x+c:e)+ - (y>=0?yf+y+c:e)+'location='+loc+',menubar='+men+',resizable='+res+ - ',scrollbars='+scr+',status='+sta+',toolbar='+too; - this.opened = function() {return this.w && !this.w.closed;}; - this.close = function() {if(this.opened()) this.w.close();}; - this.focus = function() {if(this.opened()) this.w.focus();}; - this.load = function(sUrl) { - if (this.opened()) this.w.location.href = sUrl; - else this.w = window.open(sUrl,this.n,this.f); - this.focus(); - return false; - }; - // Closures - // this ==
element reference, thisObj == xWinClass object reference - function onClick() {return thisObj.load(this.href);} - // '*' works with any element, not just A - xGetElementsByClassName(clsName, document, '*', bindOnClick); - function bindOnClick(e) {e.onclick = onClick;} -} -// xWindow, Copyright 2001-2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xWindow(name, w, h, x, y, loc, men, res, scr, sta, too) -{ - var e='',c=',',xf='left=',yf='top='; this.n = name; - if (document.layers) {xf='screenX='; yf='screenY=';} - this.f = (w?'width='+w+c:e)+(h?'height='+h+c:e)+(x>=0?xf+x+c:e)+ - (y>=0?yf+y+c:e)+'location='+loc+',menubar='+men+',resizable='+res+ - ',scrollbars='+scr+',status='+sta+',toolbar='+too; - this.opened = function() {return this.w && !this.w.closed;}; - this.close = function() {if(this.opened()) this.w.close();}; - this.focus = function() {if(this.opened()) this.w.focus();}; - this.load = function(sUrl) { - if (this.opened()) this.w.location.href = sUrl; - else this.w = window.open(sUrl,this.n,this.f); - this.focus(); - return false; - }; -} - -// Previous implementation: -// function xWindow(name, w, h, x, y, loc, men, res, scr, sta, too) -// { -// var f = ''; -// if (w && h) { -// if (document.layers) f = 'screenX=' + x + ',screenY=' + y; -// else f = 'left=' + x + ',top=' + y; -// f += ',width=' + w + ',height=' + h + ','; -// } -// f += ('location='+loc+',menubar='+men+',resizable='+res -// +',scrollbars='+scr+',status='+sta+',toolbar='+too); -// this.features = f; -// this.name = name; -// this.load = function(sUrl) { -// if (this.wnd && !this.wnd.closed) this.wnd.location.href = sUrl; -// else this.wnd = window.open(sUrl, this.name, this.features); -// this.wnd.focus(); -// return false; -// } -// } -// xWinOpen, Copyright 2003-2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -// A simple alternative to xWindow. - -var xChildWindow = null; -function xWinOpen(sUrl) -{ - var features = "left=0,top=0,width=600,height=500,location=0,menubar=0," + - "resizable=1,scrollbars=1,status=0,toolbar=0"; - if (xChildWindow && !xChildWindow.closed) {xChildWindow.location.href = sUrl;} - else {xChildWindow = window.open(sUrl, "myWinName", features);} - xChildWindow.focus(); - return false; -} -// xWinScrollTo, Copyright 2003-2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -var xWinScrollWin = null; -function xWinScrollTo(win,x,y,uTime) { - var e = win; - if (!e.timeout) e.timeout = 25; - var st = xScrollTop(e, 1); - var sl = xScrollLeft(e, 1); - e.xTarget = x; e.yTarget = y; e.slideTime = uTime; e.stop = false; - e.yA = e.yTarget - st; - e.xA = e.xTarget - sl; // A = distance - e.B = Math.PI / (2 * e.slideTime); // B = period - e.yD = st; - e.xD = sl; // D = initial position - var d = new Date(); e.C = d.getTime(); - if (!e.moving) { - xWinScrollWin = e; - _xWinScrollTo(); - } -} -function _xWinScrollTo() { - var e = xWinScrollWin || window; - var now, s, t, newY, newX; - now = new Date(); - t = now.getTime() - e.C; - if (e.stop) { e.moving = false; } - else if (t < e.slideTime) { - setTimeout("_xWinScrollTo()", e.timeout); - s = Math.sin(e.B * t); - newX = Math.round(e.xA * s + e.xD); - newY = Math.round(e.yA * s + e.yD); - e.scrollTo(newX, newY); - e.moving = true; - } - else { - e.scrollTo(e.xTarget, e.yTarget); - xWinScrollWin = null; - e.moving = false; - } -} -// xZIndex, Copyright 2001-2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL - -function xZIndex(e,uZ) -{ - if(!(e=xGetElementById(e))) return 0; - if(e.style && xDef(e.style.zIndex)) { - if(xNum(uZ)) e.style.zIndex=uZ; - uZ=parseInt(e.style.zIndex); - } - return uZ; -} diff --git a/pandora_console/include/styles/cb/x.xcp b/pandora_console/include/styles/cb/x.xcp deleted file mode 100644 index 4568177a4a..0000000000 --- a/pandora_console/include/styles/cb/x.xcp +++ /dev/null @@ -1,16 +0,0 @@ -; XC Project: x -; Creates a lib (x.js) that contains all *.js in x/lib. -; Useful during development and testing. - -options -dep +glb -cmp - -; If you want the library file to be -; compressed then use +cmp in the above options. - -libpath lib\ - -appfiles - -lib\x_files.txt - -; The file 'xlib_files.txt' is created by build_all.bat diff --git a/pandora_console/include/styles/cb/x_anim.js b/pandora_console/include/styles/cb/x_anim.js deleted file mode 100644 index dff77499be..0000000000 --- a/pandora_console/include/styles/cb/x_anim.js +++ /dev/null @@ -1,2 +0,0 @@ -/* x_anim.js compiled from X 4.0 with XC 0.27b. Distributed by GNU LGPL. For copyrights, license, documentation and more visit Cross-Browser.com */ -function xEllipse(e, xRadius, yRadius, radiusInc, totalTime, startAngle, stopAngle){if (!(e=xGetElementById(e))) return;if (!e.timeout) e.timeout = 25;e.xA = xRadius;e.yA = yRadius;e.radiusInc = radiusInc;e.slideTime = totalTime;startAngle *= (Math.PI / 180);stopAngle *= (Math.PI / 180);var startTime = (startAngle * e.slideTime) / (stopAngle - startAngle);e.stopTime = e.slideTime + startTime;e.B = (stopAngle - startAngle) / e.slideTime;e.xD = xLeft(e) - Math.round(e.xA * Math.cos(e.B * startTime)); e.yD = xTop(e) - Math.round(e.yA * Math.sin(e.B * startTime)); e.xTarget = Math.round(e.xA * Math.cos(e.B * e.stopTime) + e.xD); e.yTarget = Math.round(e.yA * Math.sin(e.B * e.stopTime) + e.yD); var d = new Date();e.C = d.getTime() - startTime;if (!e.moving) {e.stop=false; _xEllipse(e);}}function _xEllipse(e){if (!(e=xGetElementById(e))) return;var now, t, newY, newX;now = new Date();t = now.getTime() - e.C;if (e.stop) { e.moving = false; }else if (t < e.stopTime) {setTimeout("_xEllipse('"+e.id+"')", e.timeout);if (e.radiusInc) {e.xA += e.radiusInc;e.yA += e.radiusInc;}newX = Math.round(e.xA * Math.cos(e.B * t) + e.xD);newY = Math.round(e.yA * Math.sin(e.B * t) + e.yD);xMoveTo(e, newX, newY);e.moving = true;} else {if (e.radiusInc) {e.xTarget = Math.round(e.xA * Math.cos(e.B * e.slideTime) + e.xD);e.yTarget = Math.round(e.yA * Math.sin(e.B * e.slideTime) + e.yD); }xMoveTo(e, e.xTarget, e.yTarget);e.moving = false;} }function xParaEq(e, xExpr, yExpr, totalTime){if (!(e=xGetElementById(e))) return;e.t = 0;e.tStep = .008;if (!e.timeout) e.timeout = 25;e.xExpr = xExpr;e.yExpr = yExpr;e.slideTime = totalTime;var d = new Date();e.C = d.getTime();if (!e.moving) {e.stop=false; _xParaEq(e);}}function _xParaEq(e){if (!(e=xGetElementById(e))) return;var now = new Date();var et = now.getTime() - e.C;e.t += e.tStep;t = e.t;if (e.stop) { e.moving = false; }else if (!e.slideTime || et < e.slideTime) {setTimeout("_xParaEq('"+e.id+"')", e.timeout);var p = xParent(e), centerX, centerY;centerX = (xWidth(p)/2)-(xWidth(e)/2);centerY = (xHeight(p)/2)-(xHeight(e)/2);e.xTarget = Math.round((eval(e.xExpr) * centerX) + centerX) + xScrollLeft(p);e.yTarget = Math.round((eval(e.yExpr) * centerY) + centerY) + xScrollTop(p);xMoveTo(e, e.xTarget, e.yTarget);e.moving = true;} else {e.moving = false;} }function xSlideCornerTo(e, corner, targetX, targetY, totalTime){if (!(e=xGetElementById(e))) return;if (!e.timeout) e.timeout = 25;e.xT = targetX;e.yT = targetY;e.slideTime = totalTime;e.corner = corner.toLowerCase();e.stop = false;switch(e.corner) {case 'nw': e.xA = e.xT - xLeft(e); e.yA = e.yT - xTop(e); e.xD = xLeft(e); e.yD = xTop(e); break;case 'sw': e.xA = e.xT - xLeft(e); e.yA = e.yT - (xTop(e) + xHeight(e)); e.xD = xLeft(e); e.yD = xTop(e) + xHeight(e); break;case 'ne': e.xA = e.xT - (xLeft(e) + xWidth(e)); e.yA = e.yT - xTop(e); e.xD = xLeft(e) + xWidth(e); e.yD = xTop(e); break;case 'se': e.xA = e.xT - (xLeft(e) + xWidth(e)); e.yA = e.yT - (xTop(e) + xHeight(e)); e.xD = xLeft(e) + xWidth(e); e.yD = xTop(e) + xHeight(e); break;default: alert("xSlideCornerTo: Invalid corner"); return;}e.B = Math.PI / ( 2 * e.slideTime );var d = new Date();e.C = d.getTime();if (!e.moving) _xSlideCornerTo(e);}function _xSlideCornerTo(e){if (!(e=xGetElementById(e))) return;var now, seX, seY;now = new Date();t = now.getTime() - e.C;if (e.stop) { e.moving = false; e.stop = false; return; }else if (t < e.slideTime) {setTimeout("_xSlideCornerTo('"+e.id+"')", e.timeout);s = Math.sin( e.B * t );newX = Math.round(e.xA * s + e.xD);newY = Math.round(e.yA * s + e.yD);}else { newX = e.xT; newY = e.yT; } seX = xLeft(e) + xWidth(e);seY = xTop(e) + xHeight(e);switch(e.corner) {case 'nw': xMoveTo(e, newX, newY); xResizeTo(e, seX - xLeft(e), seY - xTop(e)); break;case 'sw': if (e.xT != xLeft(e)) { xLeft(e, newX); xWidth(e, seX - xLeft(e)); } xHeight(e, newY - xTop(e)); break;case 'ne': xWidth(e, newX - xLeft(e)); if (e.yT != xTop(e)) { xTop(e, newY); xHeight(e, seY - xTop(e)); } break;case 'se': xWidth(e, newX - xLeft(e)); xHeight(e, newY - xTop(e)); break;default: e.stop = true;}e.moving = true;if (t >= e.slideTime) {e.moving = false;}} \ No newline at end of file diff --git a/pandora_console/include/styles/cb/x_anim.xcp b/pandora_console/include/styles/cb/x_anim.xcp deleted file mode 100644 index be7daff6be..0000000000 --- a/pandora_console/include/styles/cb/x_anim.xcp +++ /dev/null @@ -1,21 +0,0 @@ -; XC Project: x_anim - -options -dep -glb - -; If you don't want the library file to be -; compressed then add -cmp to the above options. - -libpath lib\ - -appfiles - -x_anim.xcp - -; This project file is the only app file fed to XC. -; The following X symbols will be included in the -; library file. They are commented-out so XC will -; not see them as more app files. - -; xEllipse -; xParaEq -; xSlideCornerTo \ No newline at end of file diff --git a/pandora_console/include/styles/cb/x_cook.js b/pandora_console/include/styles/cb/x_cook.js deleted file mode 100644 index 236c1d3c8d..0000000000 --- a/pandora_console/include/styles/cb/x_cook.js +++ /dev/null @@ -1,2 +0,0 @@ -/* x_cook.js compiled from X 4.0 with XC 0.27b. Distributed by GNU LGPL. For copyrights, license, documentation and more visit Cross-Browser.com */ -function xDeleteCookie(name, path){if (xGetCookie(name)) {document.cookie = name + "=" +"; path=" + ((!path) ? "/" : path) +"; expires=" + new Date(0).toGMTString();}}function xGetCookie(name){var value=null, search=name+"=";if (document.cookie.length > 0) {var offset = document.cookie.indexOf(search);if (offset != -1) {offset += search.length;var end = document.cookie.indexOf(";", offset);if (end == -1) end = document.cookie.length;value = unescape(document.cookie.substring(offset, end));}}return value;}function xSetCookie(name, value, expire, path){document.cookie = name + "=" + escape(value) +((!expire) ? "" : ("; expires=" + expire.toGMTString())) +"; path=" + ((!path) ? "/" : path);} \ No newline at end of file diff --git a/pandora_console/include/styles/cb/x_cook.xcp b/pandora_console/include/styles/cb/x_cook.xcp deleted file mode 100644 index 5d1fb5e132..0000000000 --- a/pandora_console/include/styles/cb/x_cook.xcp +++ /dev/null @@ -1,21 +0,0 @@ -; XC Project: x_cook - -options -dep -glb - -; If you don't want the library file to be -; compressed then add -cmp to the above options. - -libpath lib\ - -appfiles - -x_cook.xcp - -; This project file is the only app file fed to XC. -; The following X symbols will be included in the -; library file. They are commented-out so XC will -; not see them as more app files. - -; xSetCookie -; xGetCookie -; xDeleteCookie diff --git a/pandora_console/include/styles/cb/x_core.xcp b/pandora_console/include/styles/cb/x_core.xcp deleted file mode 100644 index 3db1a18960..0000000000 --- a/pandora_console/include/styles/cb/x_core.xcp +++ /dev/null @@ -1,47 +0,0 @@ -; XC Project: x_core - -options -dep +glb - -; If you don't want the library file to be -; compressed then add -cmp to the above options. - -libpath lib\ - -appfiles - -x_core.xcp - -; This project file is the only app file fed to XC. -; The following X symbols will be included in the -; library file. They are commented-out so XC will -; not see them as more app files. - -; xGetElementById -; xParent -; xDef -; xStr -; xNum -; xShow -; xHide -; xVisibility -; xDisplay -; xZIndex -; xColor -; xBackground -; xMoveTo -; xLeft -; xTop -; xPageX -; xPageY -; xOffsetLeft -; xOffsetTop -; xScrollLeft -; xScrollTop -; xHasPoint -; xResizeTo -; xWidth -; xHeight -; xGetComputedStyle <- temporarily in this file? -; xClip -; xClientWidth -; xClientHeight diff --git a/pandora_console/include/styles/cb/x_core_n4.js b/pandora_console/include/styles/cb/x_core_n4.js deleted file mode 100644 index cac814560f..0000000000 --- a/pandora_console/include/styles/cb/x_core_n4.js +++ /dev/null @@ -1,360 +0,0 @@ -// x_core_n4.js, Copyright (C) 2004,2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser.com Javascript Library, Distributed under the terms of the GNU LGPL -// r2, 25Feb04, mf, Built from x_core.js, X v3.15.2. - -// X library with NN4.x support - -var xVersion='3.15.2',xNN4,xOp7,xOp5or6,xIE4Up,xIE4,xIE5,xUA=navigator.userAgent.toLowerCase(); -if (window.opera){ - xOp7=(xUA.indexOf('opera 7')!=-1 || xUA.indexOf('opera/7')!=-1); - if (!xOp7) xOp5or6=(xUA.indexOf('opera 5')!=-1 || xUA.indexOf('opera/5')!=-1 || xUA.indexOf('opera 6')!=-1 || xUA.indexOf('opera/6')!=-1); -} -else if (document.all) { - xIE4Up=xUA.indexOf('msie')!=-1 && parseInt(navigator.appVersion)>=4; - xIE4=xUA.indexOf('msie 4')!=-1; - xIE5=xUA.indexOf('msie 5')!=-1; -} -else if (document.layers) {xNN4=true;} -function xGetElementById(e) { - if(typeof(e)!='string') return e; - if(document.getElementById) e=document.getElementById(e); - else if(document.all) e=document.all[e]; - else if(document.layers) e=xLayer(e); - else e=null; - return e; -} -function xLayer(id,root) { - var i,layer,found=null; - if (!root) root=window; - for(i=0; i= thisX + iClpL && iLeft <= thisX + xWidth(ele) - iClpR && - iTop >=thisY + iClpT && iTop <= thisY + xHeight(ele) - iClpB ); -} -function xResizeTo(e,uW,uH) { - xWidth(e,uW); - xHeight(e,uH); -} -function xWidth(e,uW) { - if(!(e=xGetElementById(e))) return 0; - if (xNum(uW)) { - if (uW<0) uW = 0; - else uW=Math.round(uW); - } - else uW=-1; - var css=xDef(e.style); - if(css && xDef(e.offsetWidth) && xStr(e.style.width)) { - if(uW>=0) xSetCW(e, uW); - uW=e.offsetWidth; - } - else if(css && xDef(e.style.pixelWidth)) { - if(uW>=0) e.style.pixelWidth=uW; - uW=e.style.pixelWidth; - } - else if(xDef(e.clip) && xDef(e.clip.right)) { - if(uW>=0) e.clip.right=uW; - uW=e.clip.right; - } - return uW; -} -function xHeight(e,uH) { - if(!(e=xGetElementById(e))) return 0; - if (xNum(uH)) { - if (uH<0) uH = 0; - else uH=Math.round(uH); - } - else uH=-1; - var css=xDef(e.style); - if(css && xDef(e.offsetHeight) && xStr(e.style.height)) { - if(uH>=0) xSetCH(e, uH); - uH=e.offsetHeight; - } - else if(css && xDef(e.style.pixelHeight)) { - if(uH>=0) e.style.pixelHeight=uH; - uH=e.style.pixelHeight; - } - else if(xDef(e.clip) && xDef(e.clip.bottom)) { - if(uH>=0) e.clip.bottom=uH; - uH=e.clip.bottom; - } - return uH; -} -function xGetCS(ele,sP){return parseInt(document.defaultView.getComputedStyle(ele,'').getPropertyValue(sP));} -function xSetCW(ele,uW){ - var pl=0,pr=0,bl=0,br=0; - if(xDef(document.defaultView) && xDef(document.defaultView.getComputedStyle)){ - pl=xGetCS(ele,'padding-left'); - pr=xGetCS(ele,'padding-right'); - bl=xGetCS(ele,'border-left-width'); - br=xGetCS(ele,'border-right-width'); - } - else if(xDef(ele.currentStyle,document.compatMode)){ - if(document.compatMode=='CSS1Compat'){ - pl=parseInt(ele.currentStyle.paddingLeft); - pr=parseInt(ele.currentStyle.paddingRight); - bl=parseInt(ele.currentStyle.borderLeftWidth); - br=parseInt(ele.currentStyle.borderRightWidth); - } - } - else if(xDef(ele.offsetWidth,ele.style.width)){ // ? - ele.style.width=uW+'px'; - pl=ele.offsetWidth-uW; - } - if(isNaN(pl)) pl=0; if(isNaN(pr)) pr=0; if(isNaN(bl)) bl=0; if(isNaN(br)) br=0; - var cssW=uW-(pl+pr+bl+br); - if(isNaN(cssW)||cssW<0) return; - else ele.style.width=cssW+'px'; -} -function xSetCH(ele,uH){ - var pt=0,pb=0,bt=0,bb=0; - if(xDef(document.defaultView) && xDef(document.defaultView.getComputedStyle)){ - pt=xGetCS(ele,'padding-top'); - pb=xGetCS(ele,'padding-bottom'); - bt=xGetCS(ele,'border-top-width'); - bb=xGetCS(ele,'border-bottom-width'); - } - else if(xDef(ele.currentStyle,document.compatMode)){ - if(document.compatMode=='CSS1Compat'){ - pt=parseInt(ele.currentStyle.paddingTop); - pb=parseInt(ele.currentStyle.paddingBottom); - bt=parseInt(ele.currentStyle.borderTopWidth); - bb=parseInt(ele.currentStyle.borderBottomWidth); - } - } - else if(xDef(ele.offsetHeight,ele.style.height)){ // ? - ele.style.height=uH+'px'; - pt=ele.offsetHeight-uH; - } - if(isNaN(pt)) pt=0; if(isNaN(pb)) pb=0; if(isNaN(bt)) bt=0; if(isNaN(bb)) bb=0; - var cssH=uH-(pt+pb+bt+bb); - if(isNaN(cssH)||cssH<0) return; - else ele.style.height=cssH+'px'; -} -function xClip(e,iTop,iRight,iBottom,iLeft) { - if(!(e=xGetElementById(e))) return; - if(e.style) { - if (xNum(iLeft)) e.style.clip='rect('+iTop+'px '+iRight+'px '+iBottom+'px '+iLeft+'px)'; - else e.style.clip='rect(0 '+parseInt(e.style.width)+'px '+parseInt(e.style.height)+'px 0)'; - } - else if(e.clip) { - if (xNum(iLeft)) { e.clip.top=iTop; e.clip.right=iRight; e.clip.bottom=iBottom; e.clip.left=iLeft; } - else { e.clip.top=0; e.clip.right=xWidth(e); e.clip.bottom=xHeight(e); e.clip.left=0; } - } -} -function xClientWidth() { - var w=0; - if(xOp5or6) w=window.innerWidth; - else if(!window.opera && document.documentElement && document.documentElement.clientWidth) - w=document.documentElement.clientWidth; - else if(document.body && document.body.clientWidth) - w=document.body.clientWidth; - else if(xDef(window.innerWidth,window.innerHeight,document.height)) { - w=window.innerWidth; - if(document.height>window.innerHeight) w-=16; - } - return w; -} -function xClientHeight() { - var h=0; - if(xOp5or6) h=window.innerHeight; - else if(!window.opera && document.documentElement && document.documentElement.clientHeight) - h=document.documentElement.clientHeight; - else if(document.body && document.body.clientHeight) - h=document.body.clientHeight; - else if(xDef(window.innerWidth,window.innerHeight,document.width)) { - h=window.innerHeight; - if(document.width>window.innerWidth) h-=16; - } - return h; -} -function xInnerHtml(e, sHtml) { - if(!(e=xGetElementById(e))) return ''; - if (xStr(e.innerHTML)) { - if (xStr(sHtml)) e.innerHTML = sHtml; - else return e.innerHTML; - } - else if (xNN4) { - if (xStr(sHtml)) { - if (sHtml=='') sHtml = ' '; - e.document.open(); - e.document.write(sHtml); - e.document.close(); - } - else return ''; - } -} diff --git a/pandora_console/include/styles/cb/x_debug.js b/pandora_console/include/styles/cb/x_debug.js deleted file mode 100644 index 47e691fc49..0000000000 --- a/pandora_console/include/styles/cb/x_debug.js +++ /dev/null @@ -1,2 +0,0 @@ -/* x_debug.js compiled from X 4.0 with XC 0.27b. Distributed by GNU LGPL. For copyrights, license, documentation and more visit Cross-Browser.com */ -function xEvalTextarea(){var f = document.createElement('FORM');f.onsubmit = 'return false';var t = document.createElement('TEXTAREA');t.id='xDebugTA';t.name='xDebugTA';t.rows='20';t.cols='60';var b = document.createElement('INPUT');b.type = 'button';b.value = 'Evaluate';b.onclick = function() {eval(this.form.xDebugTA.value);};f.appendChild(t);f.appendChild(b);document.body.appendChild(f);}function xGetElePropsArray(ele, eleName){var u = 'undefined';var i = 0, a = new Array();nv('Element', eleName);nv('id', (xDef(ele.id) ? ele.id : u));nv('tagName', (xDef(ele.tagName) ? ele.tagName : u));nv('xWidth()', xWidth(ele));nv('style.width', (xDef(ele.style) && xDef(ele.style.width) ? ele.style.width : u));nv('offsetWidth', (xDef(ele.offsetWidth) ? ele.offsetWidth : u));nv('scrollWidth', (xDef(ele.offsetWidth) ? ele.offsetWidth : u));nv('clientWidth', (xDef(ele.clientWidth) ? ele.clientWidth : u));nv('xHeight()', xHeight(ele));nv('style.height', (xDef(ele.style) && xDef(ele.style.height) ? ele.style.height : u));nv('offsetHeight', (xDef(ele.offsetHeight) ? ele.offsetHeight : u));nv('scrollHeight', (xDef(ele.offsetHeight) ? ele.offsetHeight : u));nv('clientHeight', (xDef(ele.clientHeight) ? ele.clientHeight : u));nv('xLeft()', xLeft(ele));nv('style.left', (xDef(ele.style) && xDef(ele.style.left) ? ele.style.left : u));nv('offsetLeft', (xDef(ele.offsetLeft) ? ele.offsetLeft : u));nv('style.pixelLeft', (xDef(ele.style) && xDef(ele.style.pixelLeft) ? ele.style.pixelLeft : u));nv('xTop()', xTop(ele));nv('style.top', (xDef(ele.style) && xDef(ele.style.top) ? ele.style.top : u));nv('offsetTop', (xDef(ele.offsetTop) ? ele.offsetTop : u));nv('style.pixelTop', (xDef(ele.style) && xDef(ele.style.pixelTop) ? ele.style.pixelTop : u));nv('', '');nv('xGetComputedStyle()', '');nv('top');nv('right');nv('bottom');nv('left');nv('width');nv('height');nv('color');nv('background-color');nv('font-family');nv('font-size');nv('text-align');nv('line-height');nv('content');nv('float');nv('clear');nv('margin');nv('padding');nv('padding-top');nv('padding-right');nv('padding-bottom');nv('padding-left');nv('border-top-width');nv('border-right-width');nv('border-bottom-width');nv('border-left-width');nv('position');nv('overflow');nv('visibility');nv('display');nv('z-index');nv('clip');nv('cursor');return a;function nv(name, value){a[i] = new Object();a[i].name = name;a[i].value = typeof(value)=='undefined' ? xGetComputedStyle(ele, name) : value;++i;}}function xGetElePropsString(ele, eleName, newLine){var s = '', a = xGetElePropsArray(ele, eleName);for (var i = 0; i < a.length; ++i) {s += a[i].name + ' = ' + a[i].value + (newLine || '\n');}return s;}function xLoadScript(url){if (document.createElement && document.getElementsByTagName) {var s = document.createElement('script');var h = document.getElementsByTagName('head');if (s && h.length) {s.src = url;h[0].appendChild(s);}}}function xName(e){if (!e) return e;else if (e.id && e.id != "") return e.id;else if (e.name && e.name != "") return e.name;else if (e.nodeName && e.nodeName != "") return e.nodeName;else if (e.tagName && e.tagName != "") return e.tagName;else return e;}function xParentChain(e,delim,bNode){if (!(e=xGetElementById(e))) return;var lim=100, s = "", d = delim || "\n";while(e) {s += xName(e) + ', ofsL:'+e.offsetLeft + ', ofsT:'+e.offsetTop + d;e = xParent(e,bNode);if (!lim--) break;}return s;}function xSetIETitle(){if (xIE4Up) {var i = xUA.indexOf('msie') + 1;var v = xUA.substr(i + 4, 3);document.title = 'IE ' + v + ' - ' + document.title;}} \ No newline at end of file diff --git a/pandora_console/include/styles/cb/x_debug.xcp b/pandora_console/include/styles/cb/x_debug.xcp deleted file mode 100644 index d89f0c08cd..0000000000 --- a/pandora_console/include/styles/cb/x_debug.xcp +++ /dev/null @@ -1,25 +0,0 @@ -; XC Project: x_debug - -options -dep -glb - -; If you don't want the library file to be -; compressed then add -cmp to the above options. - -libpath lib\ - -appfiles - -x_debug.xcp - -; This project file is the only app file fed to XC. -; The following X symbols will be included in the -; library file. They are commented-out so XC will -; not see them as more app files. - -; xSetIETitle -; xGetElePropsString -; xGetElePropsArray -; xName -; xParentChain -; xLoadScript -; xEvalTextarea diff --git a/pandora_console/include/styles/cb/x_dom.xcp b/pandora_console/include/styles/cb/x_dom.xcp deleted file mode 100644 index 8de68f4aee..0000000000 --- a/pandora_console/include/styles/cb/x_dom.xcp +++ /dev/null @@ -1,30 +0,0 @@ -; XC Project: x_dom - -options -dep -glb - -; If you don't want the library file to be -; compressed then add -cmp to the above options. - -libpath lib\ - -appfiles - -x_dom.xcp - -; This project file is the only app file fed to XC. -; The following X symbols will be included in the -; library file. They are commented-out so XC will -; not see them as more app files. - -; xWalkEleTree -; xWalkTree -; xGetComputedStyle -; xGetElementsByClassName -; xGetElementsByTagName -; xGetElementsByAttribute -; xPrevSib -; xNextSib -; xFirstChild -; xInnerHtml -; xCreateElement -; xAppendChild diff --git a/pandora_console/include/styles/cb/x_dom_n4.js b/pandora_console/include/styles/cb/x_dom_n4.js deleted file mode 100644 index a6097c56c5..0000000000 --- a/pandora_console/include/styles/cb/x_dom_n4.js +++ /dev/null @@ -1,32 +0,0 @@ -// x_dom_n4.js, Copyright (C) 2004,2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser.com Javascript Library, Distributed under the terms of the GNU LGPL -// r2, 25Feb04, mf, Built from x_dom.js, X v3.15.2. - -// X library with NN4.x support - -// Returns a new Element object. -// For NN4, returns a new Object object - xAppendChild will return the Layer object. -function xCreateElement(sTag) -{ - var ele=null; - if (xOp5or6 || xIE4) return null; - if (document.createElement) ele = document.createElement(sTag); - else if (xNN4) ele = new Object(); - return ele; -} -function xAppendChild(oParent, oChild, nn4Width) // returns oChild -{ - var ele=null; - if (!oChild) return; - if (oParent && oParent.appendChild) ele = oParent.appendChild(oChild); - else if (xNN4) { - if (typeof(oChild)=='object') delete oChild; - if (!oParent || oParent.id.indexOf('_layer')==-1) { - oParent = window; - if (!nn4Width) nn4Width = xClientWidth(); - } - else if (!nn4Width) nn4Width = xWidth(oParent); - ele = new Layer(nn4Width, oParent); - } - return ele; -} diff --git a/pandora_console/include/styles/cb/x_drag.xcp b/pandora_console/include/styles/cb/x_drag.xcp deleted file mode 100644 index d53fbd78f1..0000000000 --- a/pandora_console/include/styles/cb/x_drag.xcp +++ /dev/null @@ -1,20 +0,0 @@ -; XC Project: x_drag - -options -dep -glb - -; If you don't want the library file to be -; compressed then add -cmp to the above options. - -libpath lib\ - -appfiles - -x_drag.xcp - -; This project file is the only app file fed to XC. -; The following X symbols will be included in the -; library file. They are commented-out so XC will -; not see them as more app files. - -; xEnableDrag -; xDisableDrag diff --git a/pandora_console/include/styles/cb/x_event.xcp b/pandora_console/include/styles/cb/x_event.xcp deleted file mode 100644 index 5f5bb5fcca..0000000000 --- a/pandora_console/include/styles/cb/x_event.xcp +++ /dev/null @@ -1,23 +0,0 @@ -; XC Project: x_event - -options -dep -glb - -; If you don't want the library file to be -; compressed then add -cmp to the above options. - -libpath lib\ - -appfiles - -x_event.xcp - -; This project file is the only app file fed to XC. -; The following X symbols will be included in the -; library file. They are commented-out so XC will -; not see them as more app files. - -; xAddEventListener -; xRemoveEventListener -; xEvent -; xStopPropagation -; xPreventDefault diff --git a/pandora_console/include/styles/cb/x_event_n4.js b/pandora_console/include/styles/cb/x_event_n4.js deleted file mode 100644 index ba90d03347..0000000000 --- a/pandora_console/include/styles/cb/x_event_n4.js +++ /dev/null @@ -1,99 +0,0 @@ -// x_event_n4.js, Copyright (C) 2004,2005 Michael Foster (Cross-Browser.com) -// Part of X, a Cross-Browser.com Javascript Library, Distributed under the terms of the GNU LGPL -// r2, 25Feb04, mf, Built from x_event.js, X v3.15.2. - -function xAddEventListener(e,eventType,eventListener,useCapture) { - if(!(e=xGetElementById(e))) return; - eventType=eventType.toLowerCase(); - if((!xIE4Up && !xOp7) && e==window) { - if(eventType=='resize') { window.xPCW=xClientWidth(); window.xPCH=xClientHeight(); window.xREL=eventListener; xResizeEvent(); return; } - if(eventType=='scroll') { window.xPSL=xScrollLeft(); window.xPST=xScrollTop(); window.xSEL=eventListener; xScrollEvent(); return; } - } - var eh='e.on'+eventType+'=eventListener'; - if(e.addEventListener) e.addEventListener(eventType,eventListener,useCapture); - else if(e.attachEvent) e.attachEvent('on'+eventType,eventListener); - else if(e.captureEvents) { - if(useCapture||(eventType.indexOf('mouse')!=-1)) { e.captureEvents(eval('Event.'+eventType.toUpperCase())); } - eval(eh); - } - else eval(eh); -} -function xRemoveEventListener(e,eventType,eventListener,useCapture) { - if(!(e=xGetElementById(e))) return; - eventType=eventType.toLowerCase(); - if((!xIE4Up && !xOp7) && e==window) { - if(eventType=='resize') { window.xREL=null; return; } - if(eventType=='scroll') { window.xSEL=null; return; } - } - var eh='e.on'+eventType+'=null'; - if(e.removeEventListener) e.removeEventListener(eventType,eventListener,useCapture); - else if(e.detachEvent) e.detachEvent('on'+eventType,eventListener); - else if(e.releaseEvents) { - if(useCapture||(eventType.indexOf('mouse')!=-1)) { e.releaseEvents(eval('Event.'+eventType.toUpperCase())); } - eval(eh); - } - else eval(eh); -} -function xEvent(evt) { - this.type = ''; - this.target = null; - this.pageX = 0; - this.pageY = 0; - this.offsetX = 0; - this.offsetY = 0; - this.keyCode = 0; -// var e = evt ? evt : window.event; - var e = evt || window.event; - if(!e) return; - if(e.type) this.type = e.type; - if(e.target) this.target = e.target; - else if(e.srcElement) this.target = e.srcElement; - else if(xNN4) this.target = xLayerFromPoint(e.pageX, e.pageY); - if(xOp5or6) { this.pageX = e.clientX; this.pageY = e.clientY; } - else if(xDef(e.pageX,e.pageY)) { this.pageX = e.pageX; this.pageY = e.pageY; } // v3.14 - else if(xDef(e.clientX,e.clientY)) { this.pageX = e.clientX + xScrollLeft(); this.pageY = e.clientY + xScrollTop(); } -// -// if(xDef(e.offsetX,e.offsetY)) { this.offsetX = e.offsetX; this.offsetY = e.offsetY; } -// else if(xDef(e.layerX,e.layerY)) { this.offsetX = e.layerX; this.offsetY = e.layerY; } -// else { this.offsetX = this.pageX - xPageX(this.target); this.offsetY = this.pageY - xPageY(this.target); } -// - if(xDef(e.offsetX,e.offsetY)) { - this.offsetX = e.offsetX; - this.offsetY = e.offsetY; - if (xIE4Up && xMac) { - this.offsetX += xScrollLeft(); - this.offsetY += xScrollTop(); - } - } - else if(xDef(e.layerX,e.layerY)) { this.offsetX = e.layerX; this.offsetY = e.layerY; } - else { this.offsetX = this.pageX - xPageX(this.target); this.offsetY = this.pageY - xPageY(this.target); } -// - - if (e.keyCode) { this.keyCode = e.keyCode; } // for moz/fb, if keyCode==0 use which - else if (xDef(e.which)) { this.keyCode = e.which; } -} -function xLayerFromPoint(x,y,root) { - var i, hn=null, hz=-1, cn; - if (!root) root = window; - for (i=0; i < root.document.layers.length; ++i) { - cn = root.document.layers[i]; - if (cn.visibility != "hide" && x >= cn.pageX && x <= cn.pageX + cn.clip.right && y >= cn.pageY && y <= cn.pageY + cn.clip.bottom ) { - if (cn.zIndex > hz) { hz = cn.zIndex; hn = cn; } - } - } - if (hn) { - cn = xLayerFromPoint(x,y,hn); - if (cn) hn = cn; - } - return hn; -} -function xResizeEvent() { - if (window.xREL) setTimeout('xResizeEvent()', 250); - var cw = xClientWidth(), ch = xClientHeight(); - if (window.xPCW != cw || window.xPCH != ch) { window.xPCW = cw; window.xPCH = ch; if (window.xREL) window.xREL(); } -} -function xScrollEvent() { - if (window.xSEL) setTimeout('xScrollEvent()', 250); - var sl = xScrollLeft(), st = xScrollTop(); - if (window.xPSL != sl || window.xPST != st) { window.xPSL = sl; window.xPST = st; if (window.xSEL) window.xSEL(); } -} diff --git a/pandora_console/include/styles/cb/x_img.js b/pandora_console/include/styles/cb/x_img.js deleted file mode 100644 index cc95edb470..0000000000 --- a/pandora_console/include/styles/cb/x_img.js +++ /dev/null @@ -1,2 +0,0 @@ -/* x_img.js compiled from X 4.0 with XC 0.27b. Distributed by GNU LGPL. For copyrights, license, documentation and more visit Cross-Browser.com */ -function xImgAsyncWait(fnStatus, fnInit, fnError, sErrorImg, sAbortImg, imgArray){var i, imgs = imgArray || document.images;for (i = 0; i < imgs.length; ++i) {imgs[i].onload = imgOnLoad;imgs[i].onerror = imgOnError;imgs[i].onabort = imgOnAbort;}xIAW.fnStatus = fnStatus;xIAW.fnInit = fnInit;xIAW.fnError = fnError;xIAW.imgArray = imgArray;xIAW();function imgOnLoad(){this.wasLoaded = true;}function imgOnError(){if (sErrorImg && !this.wasError) {this.src = sErrorImg;}this.wasError = true;}function imgOnAbort(){if (sAbortImg && !this.wasAborted) {this.src = sAbortImg;}this.wasAborted = true;}}function xIAW(){var me = arguments.callee;if (!me) {return; }var i, imgs = me.imgArray ? me.imgArray : document.images;var c = 0, e = 0, a = 0, n = imgs.length;for (i = 0; i < n; ++i) {if (imgs[i].wasError) {++e;}else if (imgs[i].wasAborted) {++a;}else if (imgs[i].complete || imgs[i].wasLoaded) {++c;}}if (me.fnStatus) {me.fnStatus(n, c, e, a);}if (c + e + a == n) {if ((e || a) && me.fnError) {me.fnError(n, c, e, a);}else if (me.fnInit) {me.fnInit();}}else setTimeout('xIAW()', 250);}function xImgRollSetup(p,s,x){var ele, id;for (var i=3; i= e2y2) {iy2 = e2y2;if (e1y1 > e2y2) intersect = false;else ih = e2y2 - Math.max(e1y1, e2y1);}else {iy2 = e1y2;if (e2y1 > e1y2) intersect = false;else ih = e1y2 - Math.max(e1y1, e2y1);}if (intersect && typeof(o)=='object') {o.x = ix1;o.y = iy2 - ih;o.w = iw;o.h = ih;}return intersect;}function xLinearScale(val,iL,iH,oL,oH){var m=(oH-oL)/(iH-iL);var b=oL-(iL*m);return m*val+b;}function xPad(s,len,c,left){if(typeof s != 'string') s=s+'';if(left) {for(var i=s.length; i=0?xf+x+c:e)+(y>=0?yf+y+c:e)+'location='+loc+',menubar='+men+',resizable='+res+',scrollbars='+scr+',status='+sta+',toolbar='+too;this.opened = function() {return this.w && !this.w.closed;};this.close = function() {if(this.opened()) this.w.close();};this.focus = function() {if(this.opened()) this.w.focus();};this.load = function(sUrl) {if (this.opened()) this.w.location.href = sUrl;else this.w = window.open(sUrl,this.n,this.f);this.focus();return false;};function onClick() {return thisObj.load(this.href);}xGetElementsByClassName(clsName, document, '*', bindOnClick);function bindOnClick(e) {e.onclick = onClick;}}function xWindow(name, w, h, x, y, loc, men, res, scr, sta, too){var e='',c=',',xf='left=',yf='top='; this.n = name;if (document.layers) {xf='screenX='; yf='screenY=';}this.f = (w?'width='+w+c:e)+(h?'height='+h+c:e)+(x>=0?xf+x+c:e)+(y>=0?yf+y+c:e)+'location='+loc+',menubar='+men+',resizable='+res+',scrollbars='+scr+',status='+sta+',toolbar='+too;this.opened = function() {return this.w && !this.w.closed;};this.close = function() {if(this.opened()) this.w.close();};this.focus = function() {if(this.opened()) this.w.focus();};this.load = function(sUrl) {if (this.opened()) this.w.location.href = sUrl;else this.w = window.open(sUrl,this.n,this.f);this.focus();return false;};}var xChildWindow = null;function xWinOpen(sUrl){var features = "left=0,top=0,width=600,height=500,location=0,menubar=0," +"resizable=1,scrollbars=1,status=0,toolbar=0";if (xChildWindow && !xChildWindow.closed) {xChildWindow.location.href = sUrl;}else {xChildWindow = window.open(sUrl, "myWinName", features);}xChildWindow.focus();return false;}var xWinScrollWin = null;function xWinScrollTo(win,x,y,uTime) {var e = win;if (!e.timeout) e.timeout = 25;var st = xScrollTop(e, 1);var sl = xScrollLeft(e, 1);e.xTarget = x; e.yTarget = y; e.slideTime = uTime; e.stop = false;e.yA = e.yTarget - st;e.xA = e.xTarget - sl; e.B = Math.PI / (2 * e.slideTime); e.yD = st;e.xD = sl; var d = new Date(); e.C = d.getTime();if (!e.moving) {xWinScrollWin = e;_xWinScrollTo();}}function _xWinScrollTo() {var e = xWinScrollWin || window;var now, s, t, newY, newX;now = new Date();t = now.getTime() - e.C;if (e.stop) { e.moving = false; }else if (t < e.slideTime) {setTimeout("_xWinScrollTo()", e.timeout);s = Math.sin(e.B * t);newX = Math.round(e.xA * s + e.xD);newY = Math.round(e.yA * s + e.yD);e.scrollTo(newX, newY);e.moving = true;} else {e.scrollTo(e.xTarget, e.yTarget);xWinScrollWin = null;e.moving = false;} } \ No newline at end of file diff --git a/pandora_console/include/styles/cb/x_win.xcp b/pandora_console/include/styles/cb/x_win.xcp deleted file mode 100644 index 6cbbcdeff9..0000000000 --- a/pandora_console/include/styles/cb/x_win.xcp +++ /dev/null @@ -1,22 +0,0 @@ -; XC Project: x_win - -options -dep -glb - -; If you don't want the library file to be -; compressed then add -cmp to the above options. - -libpath lib\ - -appfiles - -x_win.xcp - -; This project file is the only app file fed to XC. -; The following X symbols will be included in the -; library file. They are commented-out so XC will -; not see them as more app files. - -; xWindow -; xWinClass -; xWinOpen -; xWinScrollTo diff --git a/pandora_console/include/styles/cb/xc/license.html b/pandora_console/include/styles/cb/xc/license.html deleted file mode 100644 index e6a9cc59fa..0000000000 --- a/pandora_console/include/styles/cb/xc/license.html +++ /dev/null @@ -1,588 +0,0 @@ - - - -GNU Lesser General Public License - GNU Project - Free Software Foundation (FSF) - - - -

GNU Lesser General Public License

- -

Table of Contents

-
- -

- -


- -

- - - -

GNU LESSER GENERAL PUBLIC LICENSE

-

-Version 2.1, February 1999 - -

-

-Copyright (C) 1991, 1999 Free Software Foundation, Inc.
-59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
-Everyone is permitted to copy and distribute verbatim copies
-of this license document, but changing it is not allowed.
-
-[This is the first released version of the Lesser GPL.  It also counts
- as the successor of the GNU Library Public License, version 2, hence
- the version number 2.1.]
-
- - -

Preamble

- -

- The licenses for most software are designed to take away your -freedom to share and change it. By contrast, the GNU General Public -Licenses are intended to guarantee your freedom to share and change -free software--to make sure the software is free for all its users. -

- This license, the Lesser General Public License, applies to some -specially designated software packages--typically libraries--of the -Free Software Foundation and other authors who decide to use it. You -can use it too, but we suggest you first think carefully about whether -this license or the ordinary General Public License is the better -strategy to use in any particular case, based on the explanations below. -

- When we speak of free software, we are referring to freedom of use, -not price. Our General Public Licenses are designed to make sure that -you have the freedom to distribute copies of free software (and charge -for this service if you wish); that you receive source code or can get -it if you want it; that you can change the software and use pieces of -it in new free programs; and that you are informed that you can do -these things. -

- To protect your rights, we need to make restrictions that forbid -distributors to deny you these rights or to ask you to surrender these -rights. These restrictions translate to certain responsibilities for -you if you distribute copies of the library or if you modify it. -

- For example, if you distribute copies of the library, whether gratis -or for a fee, you must give the recipients all the rights that we gave -you. You must make sure that they, too, receive or can get the source -code. If you link other code with the library, you must provide -complete object files to the recipients, so that they can relink them -with the library after making changes to the library and recompiling -it. And you must show them these terms so they know their rights. -

- We protect your rights with a two-step method: (1) we copyright the -library, and (2) we offer you this license, which gives you legal -permission to copy, distribute and/or modify the library. -

- To protect each distributor, we want to make it very clear that -there is no warranty for the free library. Also, if the library is -modified by someone else and passed on, the recipients should know -that what they have is not the original version, so that the original -author's reputation will not be affected by problems that might be -introduced by others. -

- Finally, software patents pose a constant threat to the existence of -any free program. We wish to make sure that a company cannot -effectively restrict the users of a free program by obtaining a -restrictive license from a patent holder. Therefore, we insist that -any patent license obtained for a version of the library must be -consistent with the full freedom of use specified in this license. -

- Most GNU software, including some libraries, is covered by the -ordinary GNU General Public License. This license, the GNU Lesser -General Public License, applies to certain designated libraries, and -is quite different from the ordinary General Public License. We use -this license for certain libraries in order to permit linking those -libraries into non-free programs. -

- When a program is linked with a library, whether statically or using -a shared library, the combination of the two is legally speaking a -combined work, a derivative of the original library. The ordinary -General Public License therefore permits such linking only if the -entire combination fits its criteria of freedom. The Lesser General -Public License permits more lax criteria for linking other code with -the library. -

- We call this license the "Lesser" General Public License because it -does Less to protect the user's freedom than the ordinary General -Public License. It also provides other free software developers Less -of an advantage over competing non-free programs. These disadvantages -are the reason we use the ordinary General Public License for many -libraries. However, the Lesser license provides advantages in certain -special circumstances. -

- For example, on rare occasions, there may be a special need to -encourage the widest possible use of a certain library, so that it becomes -a de-facto standard. To achieve this, non-free programs must be -allowed to use the library. A more frequent case is that a free -library does the same job as widely used non-free libraries. In this -case, there is little to gain by limiting the free library to free -software only, so we use the Lesser General Public License. -

- In other cases, permission to use a particular library in non-free -programs enables a greater number of people to use a large body of -free software. For example, permission to use the GNU C Library in -non-free programs enables many more people to use the whole GNU -operating system, as well as its variant, the GNU/Linux operating -system. -

- Although the Lesser General Public License is Less protective of the -users' freedom, it does ensure that the user of a program that is -linked with the Library has the freedom and the wherewithal to run -that program using a modified version of the Library. -

- The precise terms and conditions for copying, distribution and -modification follow. Pay close attention to the difference between a -"work based on the library" and a "work that uses the library". The -former contains code derived from the library, whereas the latter must -be combined with the library in order to run. -

- -

TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION

- - -

-0. -This License Agreement applies to any software library or other -program which contains a notice placed by the copyright holder or -other authorized party saying it may be distributed under the terms of -this Lesser General Public License (also called "this License"). -Each licensee is addressed as "you". -

- A "library" means a collection of software functions and/or data -prepared so as to be conveniently linked with application programs -(which use some of those functions and data) to form executables. -

- The "Library", below, refers to any such software library or work -which has been distributed under these terms. A "work based on the -Library" means either the Library or any derivative work under -copyright law: that is to say, a work containing the Library or a -portion of it, either verbatim or with modifications and/or translated -straightforwardly into another language. (Hereinafter, translation is -included without limitation in the term "modification".) -

- "Source code" for a work means the preferred form of the work for -making modifications to it. For a library, complete source code means -all the source code for all modules it contains, plus any associated -interface definition files, plus the scripts used to control compilation -and installation of the library. -

- Activities other than copying, distribution and modification are not -covered by this License; they are outside its scope. The act of -running a program using the Library is not restricted, and output from -such a program is covered only if its contents constitute a work based -on the Library (independent of the use of the Library in a tool for -writing it). Whether that is true depends on what the Library does -and what the program that uses the Library does. -

-1. -You may copy and distribute verbatim copies of the Library's -complete source code as you receive it, in any medium, provided that -you conspicuously and appropriately publish on each copy an -appropriate copyright notice and disclaimer of warranty; keep intact -all the notices that refer to this License and to the absence of any -warranty; and distribute a copy of this License along with the -Library. -

- You may charge a fee for the physical act of transferring a copy, -and you may at your option offer warranty protection in exchange for a -fee. -

-2. -You may modify your copy or copies of the Library or any portion -of it, thus forming a work based on the Library, and copy and -distribute such modifications or work under the terms of Section 1 -above, provided that you also meet all of these conditions: -

-

    -
  • a) - The modified work must itself be a software library. -
  • b) - You must cause the files modified to carry prominent notices - stating that you changed the files and the date of any change. - -
  • c) - You must cause the whole of the work to be licensed at no - charge to all third parties under the terms of this License. - -
  • d) - If a facility in the modified Library refers to a function or a - table of data to be supplied by an application program that uses - the facility, other than as an argument passed when the facility - is invoked, then you must make a good faith effort to ensure that, - in the event an application does not supply such function or - table, the facility still operates, and performs whatever part of - its purpose remains meaningful. -

    - (For example, a function in a library to compute square roots has - a purpose that is entirely well-defined independent of the - application. Therefore, Subsection 2d requires that any - application-supplied function or table used by this function must - be optional: if the application does not supply it, the square - root function must still compute square roots.) -

    - These requirements apply to the modified work as a whole. If - identifiable sections of that work are not derived from the Library, - and can be reasonably considered independent and separate works in - themselves, then this License, and its terms, do not apply to those - sections when you distribute them as separate works. But when you - distribute the same sections as part of a whole which is a work based - on the Library, the distribution of the whole must be on the terms of - this License, whose permissions for other licensees extend to the - entire whole, and thus to each and every part regardless of who wrote - it. -

    - Thus, it is not the intent of this section to claim rights or contest - your rights to work written entirely by you; rather, the intent is to - exercise the right to control the distribution of derivative or - collective works based on the Library. -

    - In addition, mere aggregation of another work not based on the Library - with the Library (or with a work based on the Library) on a volume of - a storage or distribution medium does not bring the other work under - the scope of this License. -

-

-3. -You may opt to apply the terms of the ordinary GNU General Public -License instead of this License to a given copy of the Library. To do -this, you must alter all the notices that refer to this License, so -that they refer to the ordinary GNU General Public License, version 2, -instead of to this License. (If a newer version than version 2 of the -ordinary GNU General Public License has appeared, then you can specify -that version instead if you wish.) Do not make any other change in -these notices. -

- Once this change is made in a given copy, it is irreversible for -that copy, so the ordinary GNU General Public License applies to all -subsequent copies and derivative works made from that copy. -

- This option is useful when you wish to copy part of the code of -the Library into a program that is not a library. -

-4. -You may copy and distribute the Library (or a portion or -derivative of it, under Section 2) in object code or executable form -under the terms of Sections 1 and 2 above provided that you accompany -it with the complete corresponding machine-readable source code, which -must be distributed under the terms of Sections 1 and 2 above on a -medium customarily used for software interchange. -

- If distribution of object code is made by offering access to copy -from a designated place, then offering equivalent access to copy the -source code from the same place satisfies the requirement to -distribute the source code, even though third parties are not -compelled to copy the source along with the object code. -

-5. -A program that contains no derivative of any portion of the -Library, but is designed to work with the Library by being compiled or -linked with it, is called a "work that uses the Library". Such a -work, in isolation, is not a derivative work of the Library, and -therefore falls outside the scope of this License. -

- However, linking a "work that uses the Library" with the Library -creates an executable that is a derivative of the Library (because it -contains portions of the Library), rather than a "work that uses the -library". The executable is therefore covered by this License. -Section 6 states terms for distribution of such executables. -

- When a "work that uses the Library" uses material from a header file -that is part of the Library, the object code for the work may be a -derivative work of the Library even though the source code is not. -Whether this is true is especially significant if the work can be -linked without the Library, or if the work is itself a library. The -threshold for this to be true is not precisely defined by law. -

- If such an object file uses only numerical parameters, data -structure layouts and accessors, and small macros and small inline -functions (ten lines or less in length), then the use of the object -file is unrestricted, regardless of whether it is legally a derivative -work. (Executables containing this object code plus portions of the -Library will still fall under Section 6.) -

- Otherwise, if the work is a derivative of the Library, you may -distribute the object code for the work under the terms of Section 6. -Any executables containing that work also fall under Section 6, -whether or not they are linked directly with the Library itself. -

-6. -As an exception to the Sections above, you may also combine or -link a "work that uses the Library" with the Library to produce a -work containing portions of the Library, and distribute that work -under terms of your choice, provided that the terms permit -modification of the work for the customer's own use and reverse -engineering for debugging such modifications. -

- You must give prominent notice with each copy of the work that the -Library is used in it and that the Library and its use are covered by -this License. You must supply a copy of this License. If the work -during execution displays copyright notices, you must include the -copyright notice for the Library among them, as well as a reference -directing the user to the copy of this License. Also, you must do one -of these things: -

-

    -
  • a) Accompany the work with the complete corresponding - machine-readable source code for the Library including whatever - changes were used in the work (which must be distributed under - Sections 1 and 2 above); and, if the work is an executable linked - with the Library, with the complete machine-readable "work that - uses the Library", as object code and/or source code, so that the - user can modify the Library and then relink to produce a modified - executable containing the modified Library. (It is understood - that the user who changes the contents of definitions files in the - Library will not necessarily be able to recompile the application - to use the modified definitions.) - -
  • b) Use a suitable shared library mechanism for linking with the - Library. A suitable mechanism is one that (1) uses at run time a - copy of the library already present on the user's computer system, - rather than copying library functions into the executable, and (2) - will operate properly with a modified version of the library, if - the user installs one, as long as the modified version is - interface-compatible with the version that the work was made with. - -
  • c) Accompany the work with a written offer, valid for at - least three years, to give the same user the materials - specified in Subsection 6a, above, for a charge no more - than the cost of performing this distribution. - -
  • d) If distribution of the work is made by offering access to copy - from a designated place, offer equivalent access to copy the above - specified materials from the same place. - -
  • e) Verify that the user has already received a copy of these - materials or that you have already sent this user a copy. -
-

- For an executable, the required form of the "work that uses the -Library" must include any data and utility programs needed for -reproducing the executable from it. However, as a special exception, -the materials to be distributed need not include anything that is -normally distributed (in either source or binary form) with the major -components (compiler, kernel, and so on) of the operating system on -which the executable runs, unless that component itself accompanies -the executable. -

- It may happen that this requirement contradicts the license -restrictions of other proprietary libraries that do not normally -accompany the operating system. Such a contradiction means you cannot -use both them and the Library together in an executable that you -distribute. -

-7. You may place library facilities that are a work based on the -Library side-by-side in a single library together with other library -facilities not covered by this License, and distribute such a combined -library, provided that the separate distribution of the work based on -the Library and of the other library facilities is otherwise -permitted, and provided that you do these two things: -

-

    -
  • a) Accompany the combined library with a copy of the same work - based on the Library, uncombined with any other library - facilities. This must be distributed under the terms of the - Sections above. - -
  • b) Give prominent notice with the combined library of the fact - that part of it is a work based on the Library, and explaining - where to find the accompanying uncombined form of the same work. -
-

-8. You may not copy, modify, sublicense, link with, or distribute -the Library except as expressly provided under this License. Any -attempt otherwise to copy, modify, sublicense, link with, or -distribute the Library is void, and will automatically terminate your -rights under this License. However, parties who have received copies, -or rights, from you under this License will not have their licenses -terminated so long as such parties remain in full compliance. -

-9. -You are not required to accept this License, since you have not -signed it. However, nothing else grants you permission to modify or -distribute the Library or its derivative works. These actions are -prohibited by law if you do not accept this License. Therefore, by -modifying or distributing the Library (or any work based on the -Library), you indicate your acceptance of this License to do so, and -all its terms and conditions for copying, distributing or modifying -the Library or works based on it. -

-10. -Each time you redistribute the Library (or any work based on the -Library), the recipient automatically receives a license from the -original licensor to copy, distribute, link with or modify the Library -subject to these terms and conditions. You may not impose any further -restrictions on the recipients' exercise of the rights granted herein. -You are not responsible for enforcing compliance by third parties with -this License. -

-11. -If, as a consequence of a court judgment or allegation of patent -infringement or for any other reason (not limited to patent issues), -conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot -distribute so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you -may not distribute the Library at all. For example, if a patent -license would not permit royalty-free redistribution of the Library by -all those who receive copies directly or indirectly through you, then -the only way you could satisfy both it and this License would be to -refrain entirely from distribution of the Library. -

-If any portion of this section is held invalid or unenforceable under any -particular circumstance, the balance of the section is intended to apply, -and the section as a whole is intended to apply in other circumstances. -

-It is not the purpose of this section to induce you to infringe any -patents or other property right claims or to contest validity of any -such claims; this section has the sole purpose of protecting the -integrity of the free software distribution system which is -implemented by public license practices. Many people have made -generous contributions to the wide range of software distributed -through that system in reliance on consistent application of that -system; it is up to the author/donor to decide if he or she is willing -to distribute software through any other system and a licensee cannot -impose that choice. -

-This section is intended to make thoroughly clear what is believed to -be a consequence of the rest of this License. -

-12. -If the distribution and/or use of the Library is restricted in -certain countries either by patents or by copyrighted interfaces, the -original copyright holder who places the Library under this License may add -an explicit geographical distribution limitation excluding those countries, -so that distribution is permitted only in or among countries not thus -excluded. In such case, this License incorporates the limitation as if -written in the body of this License. -

-13. -The Free Software Foundation may publish revised and/or new -versions of the Lesser General Public License from time to time. -Such new versions will be similar in spirit to the present version, -but may differ in detail to address new problems or concerns. -

-Each version is given a distinguishing version number. If the Library -specifies a version number of this License which applies to it and -"any later version", you have the option of following the terms and -conditions either of that version or of any later version published by -the Free Software Foundation. If the Library does not specify a -license version number, you may choose any version ever published by -the Free Software Foundation. -

-14. -If you wish to incorporate parts of the Library into other free -programs whose distribution conditions are incompatible with these, -write to the author to ask for permission. For software which is -copyrighted by the Free Software Foundation, write to the Free -Software Foundation; we sometimes make exceptions for this. Our -decision will be guided by the two goals of preserving the free status -of all derivatives of our free software and of promoting the sharing -and reuse of software generally. -

-NO WARRANTY -

-15. -BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO -WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. -EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR -OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY -KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE -LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME -THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. -

-16. -IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN -WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY -AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU -FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR -CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE -LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING -RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A -FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF -SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH -DAMAGES. -

-

END OF TERMS AND CONDITIONS

- -

How to Apply These Terms to Your New Libraries

-

- If you develop a new library, and you want it to be of the greatest -possible use to the public, we recommend making it free software that -everyone can redistribute and change. You can do so by permitting -redistribution under these terms (or, alternatively, under the terms of the -ordinary General Public License). -

- To apply these terms, attach the following notices to the library. It is -safest to attach them to the start of each source file to most effectively -convey the exclusion of warranty; and each file should have at least the -"copyright" line and a pointer to where the full notice is found. -

- -

-one line to give the library's name and an idea of what it does.
-Copyright (C) year  name of author
-
-This library is free software; you can redistribute it and/or
-modify it under the terms of the GNU Lesser General Public
-License as published by the Free Software Foundation; either
-version 2.1 of the License, or (at your option) any later version.
-
-This library is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-Lesser General Public License for more details.
-
-You should have received a copy of the GNU Lesser General Public
-License along with this library; if not, write to the Free Software
-Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
-
- -

-Also add information on how to contact you by electronic and paper mail. - -

-You should also get your employer (if you work as a programmer) or your -school, if any, to sign a "copyright disclaimer" for the library, if -necessary. Here is a sample; alter the names: - -

-

-Yoyodyne, Inc., hereby disclaims all copyright interest in
-the library `Frob' (a library for tweaking knobs) written
-by James Random Hacker.
-
-signature of Ty Coon, 1 April 1990
-Ty Coon, President of Vice
-
- -

-That's all there is to it! - -


- -If you need this license in a different language or would like to read more about the GNU licenses -go to GNU's home page. -

-Copyright notice above.
-Free Software Foundation, Inc., -59 Temple Place - Suite 330, Boston, MA 02111, USA -

-Updated: - -27 Nov 2000 paulv - -


- - diff --git a/pandora_console/include/styles/cb/xc/xc.c b/pandora_console/include/styles/cb/xc/xc.c deleted file mode 100644 index d00db6fea8..0000000000 --- a/pandora_console/include/styles/cb/xc/xc.c +++ /dev/null @@ -1,721 +0,0 @@ -/*----------------------------------------------------------------------------- - xc.c - X Library Compiler - Copyright 2004-2005 Michael Foster (Cross-Browser.com) - Distributed under the terms of the GNU LGPL - -v0.28b, 8Aug05, now parses x symbols in quotes. thanks for bug report from Miguel Angel Alvarez -v0.24b, 25May05, removed all doc support for now ------------------------------------------------------------------------------*/ - -#include "xc.h" - -// Global Variables - -struct -{ - char name[MAX_NAME_LEN]; // Symbol name, corresponds to an X lib file found in lib_path. - int dep[MAX_SYMBOLS]; /* An array of dependencies for this symbol, - each array element is an index into the symbols array. */ - int dep_len; // Length of the dep array. - int inc; /* Indicates the number of times this symbol was found - in the app files. If zero then this X lib file will not - be included in the output js lib file. */ -} symbols[MAX_SYMBOLS]; -int symbols_len = 0; - -struct -{ - bool cmp; /* true = Compression applied to output lib js file. Default = true. - Compression removes leading white space, new lines and blank lines. - Also removes "//" comments but does not remove multi-line comments. */ - bool lws; // true = Retain leading white space. Default = false. - bool nln; // true = Retain newline chars on non-blank lines. Default = false. - bool bln; // true = Retain blank lines. Default = false. - bool log; // true = Generate log file. Default = false. - bool lib; // true = Generate lib file. Default = true. - bool glb; // true = Include X_GLB_FILE.js. Default = true. - bool dbg; // true = Debug info in log file. Sets options.log to true. Default = false. - bool dep; /* true = Dependents included in output. Default = true. - When false it is useful for creating a lib file from a list of X symbols. - I use -dep to create x_core.js, x_event.js, etc. */ -} options; - -char x_ver[MAX_NAME_LEN]; // current X version string read from X_VER_FILE -char prj_name[MAX_PATH_LEN]; // The project name (with no extension) must be given on the command line. -char lib_path[MAX_PATH_LEN]; // Path to the X lib files. -char app_files[MAX_APP_FILES][MAX_PATH_LEN]; // Array of app file pathnames. -int app_files_len = 0; // Length of the app_files array. -FILE *log_fp = NULL; // Log file pointer. - -// Function Prototypes - -int main(int argc, char *argv[]); -bool read_prj_file(char *name); -bool get_x_ver(); -bool get_valid_syms(); -bool get_lib_file_deps(int sym_idx); -int get_sym_idx(char *symbol); -void set_dep(int sym_idx, int dep); -bool get_app_file_syms(char *fname); -void include_sym(int idx); -bool create_lib(); -bool append_lib(FILE *out_fp, char *name); -void skip_ws(char **s); -void rtrim(char *s); -void write_post_log(); - -// Function Definitions - -int main(int argc, char *argv[]) -{ - int i; - char log_name[MAX_PATH_LEN]; - - printf(XC_HDR_STR, XC_VER); - - // Read project file. - - if (argc <= 1) - { - printf("\nError: No project name specified on command line.\n"); - printf(HELP_STR); - return 1; - } - - if (!read_prj_file(argv[1])) // Expects argv[1] to be project name with no extension, - { // and expects to find prjName.PRJ_EXT in current directory. - printf(HELP_STR); - return 2; - } - - // Open log file. - - if (options.log) - { - strcpy(log_name, prj_name); - strcat(log_name, LOG_EXT); - if ((log_fp = fopen(log_name, "w")) == NULL) - { - printf("\nWarning: Could not open log file: %s\n", log_name); - } - else if (log_fp) fprintf(log_fp, XC_HDR_STR, XC_VER); - } - - get_x_ver(); // Open X_VER_FILE and parse version string - - // Create symbol table. - - if (!get_valid_syms()) - { - if (log_fp) - { - fclose(log_fp); - } - return 4; - } - - for (i = 0; i < symbols_len; ++i) - { - if (!get_lib_file_deps(i)) - { - if (log_fp) - { - fclose(log_fp); - } - return 5; - } - } - - // Get symbols from app files. - - for (i = 0; i < app_files_len; ++i) - { - if (!get_app_file_syms(app_files[i])) - { - if (log_fp) - { - fclose(log_fp); - } - return 6; - } - } - - // Create output lib. - - if (options.lib) - { - if (!create_lib()) - { - if (log_fp) - { - fclose(log_fp); - } - return 7; - } - } - - // Report results. - - printf("\ncreated "); - if (options.lib) printf("%s%s", prj_name, LIB_EXT); - if (options.lib && log_fp) printf(" and "); - if (log_fp) printf("%s%s", prj_name, LOG_EXT); - printf("\n"); - - if (log_fp) - { - write_post_log(); - fclose(log_fp); - } - - return 0; // success -} - -/* - Reads options, libpath and appfiles from project file. - See the xc_reference for project file details. -*/ -bool read_prj_file(char *name) -{ - FILE *fp; - bool opt; - char *p, line[MAX_LINE_LEN], *t, token[MAX_PATH_LEN]; - - strcpy(prj_name, name); - strcpy(line, prj_name); // use 'line' temporarily - strcat(line, PRJ_EXT); - if ((fp = fopen(line, "r")) == NULL) - { - printf("\nError: Could not open project file: %s%s\n", name, PRJ_EXT); - return false; - } - - // option defaults - options.glb = true; - options.dep = true; - options.log = false; - options.lib = true; - options.dbg = false; - options.cmp = true; - options.lws = false; - options.nln = false; - options.bln = false; - - while (fgets(line, sizeof(line), fp) != NULL ) - { - p = line; - skip_ws(&p); - // skip newlines and comment lines - if (*p == ';' || *p == '\n') - { - continue; - } - // expect directive as first token on line - t = token; - while (*p && *p != ' ' && *p != '\t' && *p != '\n' && *p != ';') - { - *t++ = *p++; - } - *t = 0; - skip_ws(&p); - // process directive - if (!_stricmp(token, "libpath")) - { - t = token; - while (*p && *p != '\n' && *p != ';') - { - *t++ = *p++; - } - *t = 0; - rtrim(token); - strcpy(lib_path, token); - } - else if (!_stricmp(token, "appfiles")) - { - // get app file pathnames (expects one per line) - app_files_len = 0; - while (fgets(line, sizeof(line), fp) != NULL ) - { - p = line; - skip_ws(&p); - if (*p != ';' && *p != '\n') - { - rtrim(p); - strcpy(app_files[app_files_len++], p); - } - } - } - else if (!_stricmp(token, "options")) - { - // parse space-separated options on this line - while (*p && *p != '\n' && *p != ';') - { - t = token; - while (*p && *p != ' ' && *p != '\t' && *p != '\n' && *p != ';') - { - *t++ = *p++; - } - *t = 0; - skip_ws(&p); - opt = *token == '-' ? false : true; - if (strstr(token, "dep")) { options.dep = opt; } - else if (strstr(token, "cmp")) { options.cmp = opt; } - else if (strstr(token, "lws")) { options.lws = opt; } - else if (strstr(token, "bln")) { options.bln = opt; } - else if (strstr(token, "nln")) { options.nln = opt; } - else if (strstr(token, "log")) { options.log = opt; } - else if (strstr(token, "lib")) { options.lib = opt; } - else if (strstr(token, "glb")) { options.glb = opt; } - else if (strstr(token, "dbg")) { options.dbg = opt; } - } // end while - if (options.dbg) { options.log = true; } - } - } - fclose(fp); - return true; -} - -/* - Parse X version string from X_VER_FILE.js -*/ -bool get_x_ver() -{ - int i; - FILE *fp; - char line[MAX_LINE_LEN], *p; - - *x_ver = 0; - strcpy(line, lib_path); - strcat(line, X_VER_FILE); - strcat(line, LIB_EXT); - if ((fp = fopen(line, "r")) == NULL) - { - printf("\nWarning: Could not find X version file: %s%s%s\n", lib_path, X_VER_FILE, LIB_EXT); - if (log_fp) fprintf(log_fp, "\nWarning: Could not find X version file: %s%s%s\n", lib_path, X_VER_FILE, LIB_EXT); - return false; - } - while (fgets(line, sizeof(line), fp) != NULL) - { - i = 0; - p = strchr(line, '\"'); - if (p) - { - ++p; - while (*p && *p != '\"') - { - x_ver[i++] = *p++; - } - x_ver[i] = 0; - } - } - if (!*x_ver) - { - printf("\nWarning: Could not read X version from file: %s%s%s\n", lib_path, X_VER_FILE, LIB_EXT); - if (log_fp) fprintf(log_fp, "\nWarning: Could not read X version from file: %s%s%s\n", lib_path, X_VER_FILE, LIB_EXT); - return false; - } - else - { - printf("\ncompiling %s from X %s ...\n", prj_name, x_ver); - if (log_fp) fprintf(log_fp, "\ncompiling %s from X %s ...\n", prj_name, x_ver); - } - return true; -} - -/* - All filenames, minus extensions, in the libpath directory - which match LIB_FILE_MASK constitute the set of valid X symbols. -*/ -bool get_valid_syms() -{ - int i; - long hFile; - bool status = false; - struct _finddata_t fd; - char dir[MAX_PATH_LEN]; - char *p; - - strcpy(dir, lib_path); - strcat(dir, LIB_FILE_MASK); - if ((hFile = _findfirst(dir, &fd)) == -1L) - { - printf("\nError: Could not find %s%s\n", lib_path, LIB_FILE_MASK); - if (log_fp) fprintf(log_fp,"\nError: Could not find %s%s\n", lib_path, LIB_FILE_MASK); - status = false; - } - else - { - do - { - strcpy(symbols[symbols_len].name, fd.name); - p = strchr(symbols[symbols_len].name, '.'); - if (p) *p = 0; // remove '.js' extension - symbols[symbols_len].dep_len = 0; - for (i = 0; i < MAX_SYMBOLS; ++i) - { - symbols[symbols_len].dep[i] = INVALID; - } - ++symbols_len; - } while (_findnext(hFile, &fd) == 0); - _findclose(hFile); - status = true; - } - return status; -} - -/* - Update symbol table with dependency info from the X lib file symbols[sym_idx]. - Excludes symbols found in "//" comments. -*/ -bool get_lib_file_deps(int sym_idx) -{ - int ln = 0; - FILE *fp; - char line[MAX_LINE_LEN], *p, *del = " \n\t,.;:{}()[]=<>?!+-*/%~^|&"; - int dep; - - strcpy(line, lib_path); - strcat(line, symbols[sym_idx].name); - strcat(line, LIB_EXT); - if ((fp = fopen(line, "r")) == NULL) - { - printf("\nError: Could not find library file: %s%s%s\n", lib_path, symbols[sym_idx].name, LIB_EXT); - if (log_fp) fprintf(log_fp, "\nError: Could not find library file: %s%s%s\n", lib_path, symbols[sym_idx].name, LIB_EXT); - return false; - } - - if (options.dbg && log_fp) fprintf(log_fp, "\nX Symbols found in lib file %s:\n", line); - - while (fgets(line, sizeof(line), fp) != NULL ) - { - ++ln; // line number - p = strstr(line, "//"); - if (p) - { - *p = 0; - } - else - { - p = line; - } -// skip_ws(&p); -// if (*p && *p != '\n' && (*p != '/' || *(p+1) != '/')) - - if (*p && *p != '\n') - { - p = strtok(line, del); - while(p != NULL) - { - if (*p == 'x') - { - dep = get_sym_idx(p); - if (options.dbg && log_fp) fprintf(log_fp, "%s(%i), ", p, dep); - if (options.dep && dep != INVALID && dep != sym_idx) - { - set_dep(sym_idx, dep); - } - } - p = strtok(NULL, del); - } - } - } - fclose(fp); - return true; -} - -/* - Determine if symbol has a valid entry in the symbol table. -*/ -int get_sym_idx(char *symbol) -{ - int i; - int idx = INVALID; - - for (i = 0; i < symbols_len; ++i) - { - if (!_stricmp(symbol, symbols[i].name)) - { - idx = i; - break; - } - } - return idx; -} - -/* - if the 'symbols[sym_idx].dep' array does not already contain 'dep' - then assign 'dep' to the next available array element. -*/ -void set_dep(int sym_idx, int dep) -{ - int i; - - for (i = 0; i < symbols[sym_idx].dep_len; ++i) - { - if (symbols[sym_idx].dep[i] == dep) - { - return; - } - } - symbols[sym_idx].dep[symbols[sym_idx].dep_len++] = dep; -} - -/* - Determine which X lib files get included in the output library - by searching fname for X symbols. -*/ -bool get_app_file_syms(char *fname) -{ - int ln = 0; - FILE *fp; - char line[MAX_LINE_LEN], *p, *del = " \n\t,.;:{}()[]=<>?!+-*/%~^|&'\""; - int sym_idx; - - if ((fp = fopen(fname, "r")) == NULL) - { - printf("\nError: Could not find application file: %s\n", fname); - if (log_fp) fprintf(log_fp, "\nError: Could not find application file: %s\n", fname); - return false; - } - - if (options.dbg && log_fp) fprintf(log_fp, "\nX Symbols found in app file %s:\n", fname); - while (fgets(line, sizeof(line), fp) != NULL ) - { - ++ln; // app line number - if (line[0] != '\n') - { - p = strtok(line, del); - while(p != NULL) - { - if (p[0] == 'x') - { - sym_idx = get_sym_idx(p); - if (options.dbg && log_fp) fprintf(log_fp, "%s(%i), ", p, sym_idx); - if (sym_idx != INVALID) - { - include_sym(sym_idx); - } - } - p = strtok(NULL, del); - } - } - } - fclose(fp); - return true; -} - -/* - Indicate the X lib file symbols[sym_idx] (and all it's dependents) - to be included in the output library file. -*/ -void include_sym(int sym_idx) -{ - int i; - - if (!symbols[sym_idx].inc++) - { - for (i = 0; i < symbols[sym_idx].dep_len; ++i) - { - include_sym(symbols[sym_idx].dep[i]); - } - } -} - -/* - Create the output library file. - For every symbol which has 'symbols[sym_idx].inc == true' - include the corresponding X lib file in the output lib. -*/ -bool create_lib() -{ - int sym_idx; - FILE *out_fp; - char out_file[MAX_PATH_LEN]; - - strcpy(out_file, prj_name); - strcat(out_file, LIB_EXT); - if ((out_fp = fopen(out_file, "w")) == NULL) - { - printf("\nError: Could not create output lib file: %s%s\n", prj_name, LIB_EXT); - if (log_fp) fprintf(log_fp, "\nError: Could not create output lib file: %s%s\n", prj_name, LIB_EXT); - return false; - } - - fprintf(out_fp, X_HDR_STR, out_file, x_ver, XC_VER); - if (options.glb) - { - if (!append_lib(out_fp, X_GLB_FILE)) - { - printf("\nWarning: Could not add %s%s to output\n", X_GLB_FILE, LIB_EXT); - if (log_fp) fprintf(log_fp, "\nWarning: Could not add %s%s to output\n", X_GLB_FILE, LIB_EXT); - } - } - - for (sym_idx = 0; sym_idx < symbols_len; ++sym_idx) - { - if (symbols[sym_idx].inc) - { - if (!append_lib(out_fp, symbols[sym_idx].name)) - { - printf("\nWarning: Could not add %s%s to output\n", symbols[sym_idx].name, LIB_EXT); - if (log_fp) fprintf(log_fp, "\nWarning: Could not add %s%s to output\n", symbols[sym_idx].name, LIB_EXT); - } - } - } - fclose(out_fp); - return true; -} - -/* - Appends name to the output library js file. - Optionally applies compression, which does not - remove multi-line comments nor sequential white-space. -*/ -bool append_lib(FILE *out_fp, char *name) -{ - int i; - FILE *lib_fp; - char lib_name[MAX_PATH_LEN]; - char *p, line[MAX_LINE_LEN], buf[MAX_LINE_LEN]; - - strcpy(lib_name, lib_path); - strcat(lib_name, name); - strcat(lib_name, LIB_EXT); - if ((lib_fp = fopen(lib_name, "r")) == NULL) - { - printf("\nError: Could not find library file: %s\n", lib_name); - if (log_fp) fprintf(log_fp, "\nError: Could not find library file: %s\n", lib_name); - return false; - } - - while (fgets(line, sizeof(line), lib_fp) != NULL ) - { - if (!options.cmp) - { - if (fputs(line, out_fp) == EOF) - { - fclose(lib_fp); - printf("\nError: Could not write to output library file: %s%s\n", prj_name, LIB_EXT); - if (log_fp) fprintf(log_fp, "\nError: Could not write to library file: %s%s\n", prj_name, LIB_EXT); - return false; - } - } - else - { - p = line; - if (!options.lws) // skip leading whitespace - { - while (*p && (*p == ' ' || *p == '\t')) - { - ++p; - } - } - if (!options.bln && (!*p || *p == '\n')) // skip blank lines - { - continue; - } - if (*p) - { - // eat chars and skip newlines and skip from "//" thru rest of line - i = 0; - while (*p && (*p != '\n' || options.nln) && (*p != '/' || *(p+1) != '/')) - { - buf[i++] = *p++; - } - buf[i] = 0; - // write to output file - if (fputs(buf, out_fp) == EOF) - { - fclose(lib_fp); - printf("\nError: Could not write to output library file: %s%s\n", prj_name, LIB_EXT); - if (log_fp) fprintf(log_fp, "\nError: Could not write to output library file: %s%s\n", prj_name, LIB_EXT); - return false; - } - } - } - } - fclose(lib_fp); - return true; -} - -/* - Increment *s past all white-space. -*/ -void skip_ws(char **s) -{ - while (**s == ' ' || **s == '\t') - { - ++*s; - } -} - -/* - Remove whitespace and newlines from end of s -*/ -void rtrim(char *s) -{ - char *p; - - p = s + (strlen(s) - 1); - while (*p == ' ' || *p == '\t' || *p == '\n') - { - --p; - } - ++p; - *p = 0; -} - -/* - Write project info, app file list and symbol table to the log file. -*/ -void write_post_log() -{ - int i, j; - - fprintf(log_fp, "\nProject Info:\n\n"); - fprintf(log_fp, "project file: %s%s\n", prj_name, PRJ_EXT); - fprintf(log_fp, "output lib file: %s%s\n", prj_name, LIB_EXT); - fprintf(log_fp, "library path: %s\n", lib_path); - fprintf(log_fp, "options: cmp=%i, lws=%i, nln=%i, bln=%i, log=%i, lib=%i, glb=%i, dbg=%i, dep=%i\n", - options.cmp, - options.lws, - options.nln, - options.bln, - options.log, - options.lib, - options.glb, - options.dbg, - options.dep); - - fprintf(log_fp, "\nApplication Files:\n\n"); - for (i = 0; i < app_files_len; ++i) - { - fprintf(log_fp, "%i: %s\n", i, app_files[i]); - } - - fprintf(log_fp, "\nOutput Files:\n\n"); - if (options.lib) fprintf(log_fp, " %s%s", prj_name, LIB_EXT); - if (log_fp) fprintf(log_fp, ", %s%s", prj_name, LOG_EXT); - fprintf(log_fp, "\n"); - - fprintf(log_fp, "\nSymbol Table:\n\n"); - for (i = 0; i < symbols_len; ++i) - { - fprintf(log_fp, "%i: %s, %i", i, symbols[i].name, symbols[i].inc); - for (j = 0; j < symbols[i].dep_len; ++j) - { - if (options.dbg) - { // by number - fprintf(log_fp, ", %i", symbols[i].dep[j]); - } - else - { // by name - fprintf(log_fp, ", %s", symbols[symbols[i].dep[j]].name); - } - } - fprintf(log_fp, "\n"); - } -} - -// end xc.c diff --git a/pandora_console/include/styles/cb/xc/xc.dsp b/pandora_console/include/styles/cb/xc/xc.dsp deleted file mode 100644 index b3b3d36905..0000000000 --- a/pandora_console/include/styles/cb/xc/xc.dsp +++ /dev/null @@ -1,104 +0,0 @@ -# Microsoft Developer Studio Project File - Name="xc" - Package Owner=<4> -# Microsoft Developer Studio Generated Build File, Format Version 6.00 -# ** DO NOT EDIT ** - -# TARGTYPE "Win32 (x86) Console Application" 0x0103 - -CFG=xc - Win32 Debug -!MESSAGE This is not a valid makefile. To build this project using NMAKE, -!MESSAGE use the Export Makefile command and run -!MESSAGE -!MESSAGE NMAKE /f "xc.mak". -!MESSAGE -!MESSAGE You can specify a configuration when running NMAKE -!MESSAGE by defining the macro CFG on the command line. For example: -!MESSAGE -!MESSAGE NMAKE /f "xc.mak" CFG="xc - Win32 Debug" -!MESSAGE -!MESSAGE Possible choices for configuration are: -!MESSAGE -!MESSAGE "xc - Win32 Release" (based on "Win32 (x86) Console Application") -!MESSAGE "xc - Win32 Debug" (based on "Win32 (x86) Console Application") -!MESSAGE - -# Begin Project -# PROP AllowPerConfigDependencies 0 -# PROP Scc_ProjName "" -# PROP Scc_LocalPath "" -CPP=cl.exe -RSC=rc.exe - -!IF "$(CFG)" == "xc - Win32 Release" - -# PROP BASE Use_MFC 0 -# PROP BASE Use_Debug_Libraries 0 -# PROP BASE Output_Dir "Release" -# PROP BASE Intermediate_Dir "Release" -# PROP BASE Target_Dir "" -# PROP Use_MFC 0 -# PROP Use_Debug_Libraries 0 -# PROP Output_Dir "Release" -# PROP Intermediate_Dir "Release" -# PROP Target_Dir "" -# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c -# ADD CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c -# ADD BASE RSC /l 0x409 /d "NDEBUG" -# ADD RSC /l 0x409 /d "NDEBUG" -BSC32=bscmake.exe -# ADD BASE BSC32 /nologo -# ADD BSC32 /nologo -LINK32=link.exe -# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386 -# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386 - -!ELSEIF "$(CFG)" == "xc - Win32 Debug" - -# PROP BASE Use_MFC 0 -# PROP BASE Use_Debug_Libraries 1 -# PROP BASE Output_Dir "Debug" -# PROP BASE Intermediate_Dir "Debug" -# PROP BASE Target_Dir "" -# PROP Use_MFC 0 -# PROP Use_Debug_Libraries 1 -# PROP Output_Dir "" -# PROP Intermediate_Dir "" -# PROP Target_Dir "" -# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c -# ADD CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c -# ADD BASE RSC /l 0x409 /d "_DEBUG" -# ADD RSC /l 0x409 /d "_DEBUG" -BSC32=bscmake.exe -# ADD BASE BSC32 /nologo -# ADD BSC32 /nologo -LINK32=link.exe -# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept -# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept - -!ENDIF - -# Begin Target - -# Name "xc - Win32 Release" -# Name "xc - Win32 Debug" -# Begin Group "Source Files" - -# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat" -# Begin Source File - -SOURCE=.\xc.c -# End Source File -# End Group -# Begin Group "Header Files" - -# PROP Default_Filter "h;hpp;hxx;hm;inl" -# Begin Source File - -SOURCE=.\xc.h -# End Source File -# End Group -# Begin Group "Resource Files" - -# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe" -# End Group -# End Target -# End Project diff --git a/pandora_console/include/styles/cb/xc/xc.dsw b/pandora_console/include/styles/cb/xc/xc.dsw deleted file mode 100644 index 825e177353..0000000000 --- a/pandora_console/include/styles/cb/xc/xc.dsw +++ /dev/null @@ -1,29 +0,0 @@ -Microsoft Developer Studio Workspace File, Format Version 6.00 -# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! - -############################################################################### - -Project: "xc"=".\xc.dsp" - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Global: - -Package=<5> -{{{ -}}} - -Package=<3> -{{{ -}}} - -############################################################################### - diff --git a/pandora_console/include/styles/cb/xc/xc.exe b/pandora_console/include/styles/cb/xc/xc.exe deleted file mode 100644 index 2ccc94798e..0000000000 Binary files a/pandora_console/include/styles/cb/xc/xc.exe and /dev/null differ diff --git a/pandora_console/include/styles/cb/xc/xc.h b/pandora_console/include/styles/cb/xc/xc.h deleted file mode 100644 index 57c095c21f..0000000000 --- a/pandora_console/include/styles/cb/xc/xc.h +++ /dev/null @@ -1,41 +0,0 @@ -/*----------------------------------------------------------------------------- - xc.h - X Library Compiler - Copyright 2004-2005 Michael Foster (Cross-Browser.com) - Distributed under the terms of the GNU LGPL ------------------------------------------------------------------------------*/ - -// Includes - -#include -#include -#include -#include - -// Constants - -#define XC_VER "0.28b" -#define X_VER_FILE "xversion" -#define X_GLB_FILE "globals" -#define XC_HDR_STR "\nX Library Compiler %s. Distributed under GNU LGPL\n" -#define X_HDR_STR "/* %s compiled from X %s with XC %s. Distributed under GNU LGPL. For copyrights, license, documentation and more visit Cross-Browser.com */\n" -#define HELP_STR \ - "\nUsage:\n\nxc prj_name\n" \ - "\nthe file 'prj_name.xcp' must be in the current directory.\n" - -#define bool unsigned char -#define true 1 -#define false 0 - -#define MAX_SYMBOLS 200 -#define MAX_NAME_LEN 50 -#define INVALID 0xFFFF -#define MAX_LINE_LEN 2000 -#define MAX_PATH_LEN 250 -#define MAX_APP_FILES MAX_SYMBOLS -#define LIB_FILE_MASK "x*.js" -#define LIB_EXT ".js" -#define PRJ_EXT ".xcp" -#define LOG_EXT ".log" - -// end xc.h diff --git a/pandora_console/include/styles/cb/xc/xc.ncb b/pandora_console/include/styles/cb/xc/xc.ncb deleted file mode 100644 index 64cb9584a2..0000000000 Binary files a/pandora_console/include/styles/cb/xc/xc.ncb and /dev/null differ diff --git a/pandora_console/include/styles/cb/xc/xc.opt b/pandora_console/include/styles/cb/xc/xc.opt deleted file mode 100644 index f5eae1d8b8..0000000000 Binary files a/pandora_console/include/styles/cb/xc/xc.opt and /dev/null differ diff --git a/pandora_console/include/styles/cb/xc/xc.plg b/pandora_console/include/styles/cb/xc/xc.plg deleted file mode 100644 index d1739211be..0000000000 --- a/pandora_console/include/styles/cb/xc/xc.plg +++ /dev/null @@ -1,32 +0,0 @@ - - -
-

Build Log

-

---------------------Configuration: xc - Win32 Debug-------------------- -

-

Command Lines

-Creating temporary file "C:\DOCUME~1\MFOSTE~1\LOCALS~1\Temp\RSP27.tmp" with contents -[ -/nologo /MLd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /Fp"xc.pch" /YX /FD /GZ /c -"C:\Documents and Settings\mfoster_local\My Documents\www\Cross-Browser.com\x\xc\xc.c" -] -Creating command line "cl.exe @C:\DOCUME~1\MFOSTE~1\LOCALS~1\Temp\RSP27.tmp" -Creating temporary file "C:\DOCUME~1\MFOSTE~1\LOCALS~1\Temp\RSP28.tmp" with contents -[ -kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /incremental:yes /pdb:"xc.pdb" /debug /machine:I386 /out:"xc.exe" /pdbtype:sept -".\xc.obj" -] -Creating command line "link.exe @C:\DOCUME~1\MFOSTE~1\LOCALS~1\Temp\RSP28.tmp" -

Output Window

-Compiling... -xc.c -Linking... - - - -

Results

-xc.exe - 0 error(s), 0 warning(s) -
- - diff --git a/pandora_console/include/styles/op.css b/pandora_console/include/styles/op.css index 2969b5e7dd..d8e8aeeb06 100644 --- a/pandora_console/include/styles/op.css +++ b/pandora_console/include/styles/op.css @@ -9,13 +9,13 @@ border-bottom: 1px solid #d4d4d4; border-top: 1px solid #eee; } -#op1 li, #op2 li, #op3 li, #op4 li, #op5 li, #op6 li, #op7 li, #op8 li, -#op1s li, #op2s li, #op3s li, #op4s li, #op5s li, #op6s li, #op7s li, #op8s li { +#op1 li, #op2 li, #op3 li, #op4 li, #op5 li, #op6 li, #op7 li, #op8 li, #op9 li, +#op1s li, #op2s li, #op3s li, #op4s li, #op5s li, #op6s li, #op7s li, #op8s li, #op9s li { padding: 0px 0px 0px 28px; } div#op1>ul, div#op2>ul, div#op3>ul, div#op4>ul, div#op5>ul, div#op6>ul, div#op7>ul, -div#op8>ul, div#op1s>ul, div#op2s>ul, div#op3s>ul, div#op4s>ul, div#op5s>ul, div#op6s>ul, -div#op7s>ul, div#op8s>ul { +div#op8>ul, div#op9>ul, div#op1s>ul, div#op2s>ul, div#op3s>ul, div#op4s>ul, div#op5s>ul, div#op6s>ul, +div#op7s>ul, div#op8s>ul, div#op9s>ul { width: 126px; } #op1 li , #op1 li:hover, #op1s li { @@ -42,6 +42,9 @@ div#op7s>ul, div#op8s>ul { #op8 li, #op8 li:hover, #op8s li { background: url(../../images/op8.gif) no-repeat 4px 3px; } +#op9 li, #op8 li:hover, #op9s li { + background: url(../../images/op9.gif) no-repeat 4px 3px; + } div.arrow>ul, div.arrows>ul { width: 74%; } @@ -59,7 +62,7 @@ div#menuop { #op a:hover , #op1 li:hover, #op1s li , #op2 li:hover, #op2s li , #op3 li:hover, #op3s li , #op4 li:hover, #op4s li , #op5 li:hover, #op5s li , #op6 li:hover, #op6s li , -#op7 li:hover, #op7s li , #op8 li:hover, #op8s li, +#op7 li:hover, #op7s li , #op8 li:hover, #op8s li, #op9 li:hover, #op9s li, .arrow li:hover, .arrows li { background-color: #d4ddc6; diff --git a/pandora_console/operation/active_console/imagenes/AyudaComunidad_1.png b/pandora_console/operation/active_console/imagenes/AyudaComunidad_1.png new file mode 100644 index 0000000000..986794e203 Binary files /dev/null and b/pandora_console/operation/active_console/imagenes/AyudaComunidad_1.png differ diff --git a/pandora_console/operation/active_console/imagenes/Camara_1.png b/pandora_console/operation/active_console/imagenes/Camara_1.png new file mode 100644 index 0000000000..1fd633da82 Binary files /dev/null and b/pandora_console/operation/active_console/imagenes/Camara_1.png differ diff --git a/pandora_console/operation/active_console/imagenes/ConexionPCRed_1.png b/pandora_console/operation/active_console/imagenes/ConexionPCRed_1.png new file mode 100644 index 0000000000..d98bb66c3b Binary files /dev/null and b/pandora_console/operation/active_console/imagenes/ConexionPCRed_1.png differ diff --git a/pandora_console/operation/active_console/imagenes/Info_1.png b/pandora_console/operation/active_console/imagenes/Info_1.png new file mode 100644 index 0000000000..941e9dc7cd Binary files /dev/null and b/pandora_console/operation/active_console/imagenes/Info_1.png differ diff --git a/pandora_console/operation/active_console/imagenes/UsuariosBloqueados_1.png b/pandora_console/operation/active_console/imagenes/UsuariosBloqueados_1.png new file mode 100644 index 0000000000..35dc7c34a6 Binary files /dev/null and b/pandora_console/operation/active_console/imagenes/UsuariosBloqueados_1.png differ diff --git a/pandora_console/operation/active_console/imagenes/accesibilidad_1.png b/pandora_console/operation/active_console/imagenes/accesibilidad_1.png new file mode 100644 index 0000000000..2019f833e0 Binary files /dev/null and b/pandora_console/operation/active_console/imagenes/accesibilidad_1.png differ diff --git a/pandora_console/operation/active_console/imagenes/aim_1.png b/pandora_console/operation/active_console/imagenes/aim_1.png new file mode 100644 index 0000000000..965d922172 Binary files /dev/null and b/pandora_console/operation/active_console/imagenes/aim_1.png differ diff --git a/pandora_console/operation/active_console/imagenes/alert_1.png b/pandora_console/operation/active_console/imagenes/alert_1.png new file mode 100644 index 0000000000..b4c0a5059e Binary files /dev/null and b/pandora_console/operation/active_console/imagenes/alert_1.png differ diff --git a/pandora_console/operation/active_console/imagenes/amule_1.png b/pandora_console/operation/active_console/imagenes/amule_1.png new file mode 100644 index 0000000000..6e46683aaf Binary files /dev/null and b/pandora_console/operation/active_console/imagenes/amule_1.png differ diff --git a/pandora_console/operation/active_console/imagenes/antena2_1.png b/pandora_console/operation/active_console/imagenes/antena2_1.png new file mode 100644 index 0000000000..20e46bb2b4 Binary files /dev/null and b/pandora_console/operation/active_console/imagenes/antena2_1.png differ diff --git a/pandora_console/operation/active_console/imagenes/antena_1.png b/pandora_console/operation/active_console/imagenes/antena_1.png new file mode 100644 index 0000000000..58fe2997e1 Binary files /dev/null and b/pandora_console/operation/active_console/imagenes/antena_1.png differ diff --git a/pandora_console/operation/active_console/imagenes/aspaRoja_1.png b/pandora_console/operation/active_console/imagenes/aspaRoja_1.png new file mode 100644 index 0000000000..3983554bf7 Binary files /dev/null and b/pandora_console/operation/active_console/imagenes/aspaRoja_1.png differ diff --git a/pandora_console/operation/active_console/imagenes/baseDatos_1.png b/pandora_console/operation/active_console/imagenes/baseDatos_1.png new file mode 100644 index 0000000000..7370add69c Binary files /dev/null and b/pandora_console/operation/active_console/imagenes/baseDatos_1.png differ diff --git a/pandora_console/operation/active_console/imagenes/bomba_1.png b/pandora_console/operation/active_console/imagenes/bomba_1.png new file mode 100644 index 0000000000..3d53cd3f96 Binary files /dev/null and b/pandora_console/operation/active_console/imagenes/bomba_1.png differ diff --git a/pandora_console/operation/active_console/imagenes/candado_1.png b/pandora_console/operation/active_console/imagenes/candado_1.png new file mode 100644 index 0000000000..3fbbd2543a Binary files /dev/null and b/pandora_console/operation/active_console/imagenes/candado_1.png differ diff --git a/pandora_console/operation/active_console/imagenes/carpeta_1.png b/pandora_console/operation/active_console/imagenes/carpeta_1.png new file mode 100644 index 0000000000..77ecde7172 Binary files /dev/null and b/pandora_console/operation/active_console/imagenes/carpeta_1.png differ diff --git a/pandora_console/operation/active_console/imagenes/casa_1.png b/pandora_console/operation/active_console/imagenes/casa_1.png new file mode 100644 index 0000000000..190cd60d28 Binary files /dev/null and b/pandora_console/operation/active_console/imagenes/casa_1.png differ diff --git a/pandora_console/operation/active_console/imagenes/cdrom_1.png b/pandora_console/operation/active_console/imagenes/cdrom_1.png new file mode 100644 index 0000000000..02ff6ca712 Binary files /dev/null and b/pandora_console/operation/active_console/imagenes/cdrom_1.png differ diff --git a/pandora_console/operation/active_console/imagenes/configuracion_1.png b/pandora_console/operation/active_console/imagenes/configuracion_1.png new file mode 100644 index 0000000000..1412a4f3f9 Binary files /dev/null and b/pandora_console/operation/active_console/imagenes/configuracion_1.png differ diff --git a/pandora_console/operation/active_console/imagenes/debian_1.png b/pandora_console/operation/active_console/imagenes/debian_1.png new file mode 100644 index 0000000000..931beeaa25 Binary files /dev/null and b/pandora_console/operation/active_console/imagenes/debian_1.png differ diff --git a/pandora_console/operation/active_console/imagenes/discoDuroBackup_1.png b/pandora_console/operation/active_console/imagenes/discoDuroBackup_1.png new file mode 100644 index 0000000000..103b9fd31b Binary files /dev/null and b/pandora_console/operation/active_console/imagenes/discoDuroBackup_1.png differ diff --git a/pandora_console/operation/active_console/imagenes/discoDuroFireWire_1.png b/pandora_console/operation/active_console/imagenes/discoDuroFireWire_1.png new file mode 100644 index 0000000000..86398a53a9 Binary files /dev/null and b/pandora_console/operation/active_console/imagenes/discoDuroFireWire_1.png differ diff --git a/pandora_console/operation/active_console/imagenes/discoDuroLinux_1.png b/pandora_console/operation/active_console/imagenes/discoDuroLinux_1.png new file mode 100644 index 0000000000..18286f094d Binary files /dev/null and b/pandora_console/operation/active_console/imagenes/discoDuroLinux_1.png differ diff --git a/pandora_console/operation/active_console/imagenes/discoDuroUsb_1.png b/pandora_console/operation/active_console/imagenes/discoDuroUsb_1.png new file mode 100644 index 0000000000..3e8fffd124 Binary files /dev/null and b/pandora_console/operation/active_console/imagenes/discoDuroUsb_1.png differ diff --git a/pandora_console/operation/active_console/imagenes/discoDuro_1.png b/pandora_console/operation/active_console/imagenes/discoDuro_1.png new file mode 100644 index 0000000000..d7ad42cad2 Binary files /dev/null and b/pandora_console/operation/active_console/imagenes/discoDuro_1.png differ diff --git a/pandora_console/operation/active_console/imagenes/dvd_1.png b/pandora_console/operation/active_console/imagenes/dvd_1.png new file mode 100644 index 0000000000..348adfb32f Binary files /dev/null and b/pandora_console/operation/active_console/imagenes/dvd_1.png differ diff --git a/pandora_console/operation/active_console/imagenes/enchufe_1.png b/pandora_console/operation/active_console/imagenes/enchufe_1.png new file mode 100644 index 0000000000..698c83ca7c Binary files /dev/null and b/pandora_console/operation/active_console/imagenes/enchufe_1.png differ diff --git a/pandora_console/operation/active_console/imagenes/energia_1.png b/pandora_console/operation/active_console/imagenes/energia_1.png new file mode 100644 index 0000000000..3b00c74448 Binary files /dev/null and b/pandora_console/operation/active_console/imagenes/energia_1.png differ diff --git a/pandora_console/operation/active_console/imagenes/enter_1.png b/pandora_console/operation/active_console/imagenes/enter_1.png new file mode 100644 index 0000000000..1c99963fa7 Binary files /dev/null and b/pandora_console/operation/active_console/imagenes/enter_1.png differ diff --git a/pandora_console/operation/active_console/imagenes/escaner_1.png b/pandora_console/operation/active_console/imagenes/escaner_1.png new file mode 100644 index 0000000000..f2118098cd Binary files /dev/null and b/pandora_console/operation/active_console/imagenes/escaner_1.png differ diff --git a/pandora_console/operation/active_console/imagenes/fedora_1.png b/pandora_console/operation/active_console/imagenes/fedora_1.png new file mode 100644 index 0000000000..d6601ed4e7 Binary files /dev/null and b/pandora_console/operation/active_console/imagenes/fedora_1.png differ diff --git a/pandora_console/operation/active_console/imagenes/feed_1.png b/pandora_console/operation/active_console/imagenes/feed_1.png new file mode 100644 index 0000000000..4992bb1c89 Binary files /dev/null and b/pandora_console/operation/active_console/imagenes/feed_1.png differ diff --git a/pandora_console/operation/active_console/imagenes/ficherosComprimidos_1.png b/pandora_console/operation/active_console/imagenes/ficherosComprimidos_1.png new file mode 100644 index 0000000000..099f3af9b3 Binary files /dev/null and b/pandora_console/operation/active_console/imagenes/ficherosComprimidos_1.png differ diff --git a/pandora_console/operation/active_console/imagenes/firefox_1.png b/pandora_console/operation/active_console/imagenes/firefox_1.png new file mode 100644 index 0000000000..f1fd1ae30a Binary files /dev/null and b/pandora_console/operation/active_console/imagenes/firefox_1.png differ diff --git a/pandora_console/operation/active_console/imagenes/fotos_1.png b/pandora_console/operation/active_console/imagenes/fotos_1.png new file mode 100644 index 0000000000..f657cbd556 Binary files /dev/null and b/pandora_console/operation/active_console/imagenes/fotos_1.png differ diff --git a/pandora_console/operation/active_console/imagenes/freebsd_1.png b/pandora_console/operation/active_console/imagenes/freebsd_1.png new file mode 100644 index 0000000000..fd88b9299e Binary files /dev/null and b/pandora_console/operation/active_console/imagenes/freebsd_1.png differ diff --git a/pandora_console/operation/active_console/imagenes/gentoo_1.png b/pandora_console/operation/active_console/imagenes/gentoo_1.png new file mode 100644 index 0000000000..5a15537115 Binary files /dev/null and b/pandora_console/operation/active_console/imagenes/gentoo_1.png differ diff --git a/pandora_console/operation/active_console/imagenes/gnome_1.png b/pandora_console/operation/active_console/imagenes/gnome_1.png new file mode 100644 index 0000000000..25aa348f7c Binary files /dev/null and b/pandora_console/operation/active_console/imagenes/gnome_1.png differ diff --git a/pandora_console/operation/active_console/imagenes/hardWareInfo_1.png b/pandora_console/operation/active_console/imagenes/hardWareInfo_1.png new file mode 100644 index 0000000000..67bf164e80 Binary files /dev/null and b/pandora_console/operation/active_console/imagenes/hardWareInfo_1.png differ diff --git a/pandora_console/operation/active_console/imagenes/iPodBlack_1.png b/pandora_console/operation/active_console/imagenes/iPodBlack_1.png new file mode 100644 index 0000000000..39307f8a2d Binary files /dev/null and b/pandora_console/operation/active_console/imagenes/iPodBlack_1.png differ diff --git a/pandora_console/operation/active_console/imagenes/iPod_1.png b/pandora_console/operation/active_console/imagenes/iPod_1.png new file mode 100644 index 0000000000..7d92d226a9 Binary files /dev/null and b/pandora_console/operation/active_console/imagenes/iPod_1.png differ diff --git a/pandora_console/operation/active_console/imagenes/impresora_1.png b/pandora_console/operation/active_console/imagenes/impresora_1.png new file mode 100644 index 0000000000..824d1d83b3 Binary files /dev/null and b/pandora_console/operation/active_console/imagenes/impresora_1.png differ diff --git a/pandora_console/operation/active_console/imagenes/impresoras_1.png b/pandora_console/operation/active_console/imagenes/impresoras_1.png new file mode 100644 index 0000000000..6a24022359 Binary files /dev/null and b/pandora_console/operation/active_console/imagenes/impresoras_1.png differ diff --git a/pandora_console/operation/active_console/imagenes/indisegInfo_1.png b/pandora_console/operation/active_console/imagenes/indisegInfo_1.png new file mode 100644 index 0000000000..b3e8a204dd Binary files /dev/null and b/pandora_console/operation/active_console/imagenes/indisegInfo_1.png differ diff --git a/pandora_console/operation/active_console/imagenes/indiseg_1.png b/pandora_console/operation/active_console/imagenes/indiseg_1.png new file mode 100644 index 0000000000..6ddbcf70bd Binary files /dev/null and b/pandora_console/operation/active_console/imagenes/indiseg_1.png differ diff --git a/pandora_console/operation/active_console/imagenes/internet_1.png b/pandora_console/operation/active_console/imagenes/internet_1.png new file mode 100644 index 0000000000..19eee59c19 Binary files /dev/null and b/pandora_console/operation/active_console/imagenes/internet_1.png differ diff --git a/pandora_console/operation/active_console/imagenes/kde_1.png b/pandora_console/operation/active_console/imagenes/kde_1.png new file mode 100644 index 0000000000..23da67db79 Binary files /dev/null and b/pandora_console/operation/active_console/imagenes/kde_1.png differ diff --git a/pandora_console/operation/active_console/imagenes/keyboard_1.png b/pandora_console/operation/active_console/imagenes/keyboard_1.png new file mode 100644 index 0000000000..cd504de833 Binary files /dev/null and b/pandora_console/operation/active_console/imagenes/keyboard_1.png differ diff --git a/pandora_console/operation/active_console/imagenes/ksim_1.png b/pandora_console/operation/active_console/imagenes/ksim_1.png new file mode 100644 index 0000000000..1741da615b Binary files /dev/null and b/pandora_console/operation/active_console/imagenes/ksim_1.png differ diff --git a/pandora_console/operation/active_console/imagenes/logo_login.gif b/pandora_console/operation/active_console/imagenes/logo_login.gif new file mode 100644 index 0000000000..da8b4e8b07 Binary files /dev/null and b/pandora_console/operation/active_console/imagenes/logo_login.gif differ diff --git a/pandora_console/operation/active_console/imagenes/mac_1.png b/pandora_console/operation/active_console/imagenes/mac_1.png new file mode 100644 index 0000000000..c35e315a5c Binary files /dev/null and b/pandora_console/operation/active_console/imagenes/mac_1.png differ diff --git a/pandora_console/operation/active_console/imagenes/memoria_1.png b/pandora_console/operation/active_console/imagenes/memoria_1.png new file mode 100644 index 0000000000..147d071376 Binary files /dev/null and b/pandora_console/operation/active_console/imagenes/memoria_1.png differ diff --git a/pandora_console/operation/active_console/imagenes/mobil_1.png b/pandora_console/operation/active_console/imagenes/mobil_1.png new file mode 100644 index 0000000000..8bb62ae385 Binary files /dev/null and b/pandora_console/operation/active_console/imagenes/mobil_1.png differ diff --git a/pandora_console/operation/active_console/imagenes/modem_1.png b/pandora_console/operation/active_console/imagenes/modem_1.png new file mode 100644 index 0000000000..95b19325b7 Binary files /dev/null and b/pandora_console/operation/active_console/imagenes/modem_1.png differ diff --git a/pandora_console/operation/active_console/imagenes/monitorBlack_1.png b/pandora_console/operation/active_console/imagenes/monitorBlack_1.png new file mode 100644 index 0000000000..58beb2abf5 Binary files /dev/null and b/pandora_console/operation/active_console/imagenes/monitorBlack_1.png differ diff --git a/pandora_console/operation/active_console/imagenes/monitor_1.png b/pandora_console/operation/active_console/imagenes/monitor_1.png new file mode 100644 index 0000000000..b31a5c4cfc Binary files /dev/null and b/pandora_console/operation/active_console/imagenes/monitor_1.png differ diff --git a/pandora_console/operation/active_console/imagenes/muchos_pulpos.gif b/pandora_console/operation/active_console/imagenes/muchos_pulpos.gif new file mode 100644 index 0000000000..0d4ed22895 Binary files /dev/null and b/pandora_console/operation/active_console/imagenes/muchos_pulpos.gif differ diff --git a/pandora_console/operation/active_console/imagenes/nfs_1.png b/pandora_console/operation/active_console/imagenes/nfs_1.png new file mode 100644 index 0000000000..cbf7728990 Binary files /dev/null and b/pandora_console/operation/active_console/imagenes/nfs_1.png differ diff --git a/pandora_console/operation/active_console/imagenes/ojo_1.png b/pandora_console/operation/active_console/imagenes/ojo_1.png new file mode 100644 index 0000000000..bc80b977d3 Binary files /dev/null and b/pandora_console/operation/active_console/imagenes/ojo_1.png differ diff --git a/pandora_console/operation/active_console/imagenes/ordenadoresRed_1.png b/pandora_console/operation/active_console/imagenes/ordenadoresRed_1.png new file mode 100644 index 0000000000..d4d871a1f2 Binary files /dev/null and b/pandora_console/operation/active_console/imagenes/ordenadoresRed_1.png differ diff --git a/pandora_console/operation/active_console/imagenes/pandoraDB_1.png b/pandora_console/operation/active_console/imagenes/pandoraDB_1.png new file mode 100644 index 0000000000..5f5062aeea Binary files /dev/null and b/pandora_console/operation/active_console/imagenes/pandoraDB_1.png differ diff --git a/pandora_console/operation/active_console/imagenes/pandoraLupa_1.png b/pandora_console/operation/active_console/imagenes/pandoraLupa_1.png new file mode 100644 index 0000000000..54bee008b5 Binary files /dev/null and b/pandora_console/operation/active_console/imagenes/pandoraLupa_1.png differ diff --git a/pandora_console/operation/active_console/imagenes/pandora_1.png b/pandora_console/operation/active_console/imagenes/pandora_1.png new file mode 100644 index 0000000000..cfec4549a7 Binary files /dev/null and b/pandora_console/operation/active_console/imagenes/pandora_1.png differ diff --git a/pandora_console/operation/active_console/imagenes/pandoras_1.png b/pandora_console/operation/active_console/imagenes/pandoras_1.png new file mode 100644 index 0000000000..aebe26fa6a Binary files /dev/null and b/pandora_console/operation/active_console/imagenes/pandoras_1.png differ diff --git a/pandora_console/operation/active_console/imagenes/password_1.png b/pandora_console/operation/active_console/imagenes/password_1.png new file mode 100644 index 0000000000..493eafe324 Binary files /dev/null and b/pandora_console/operation/active_console/imagenes/password_1.png differ diff --git a/pandora_console/operation/active_console/imagenes/pc_1.png b/pandora_console/operation/active_console/imagenes/pc_1.png new file mode 100644 index 0000000000..3b40a11fea Binary files /dev/null and b/pandora_console/operation/active_console/imagenes/pc_1.png differ diff --git a/pandora_console/operation/active_console/imagenes/pda_1.png b/pandora_console/operation/active_console/imagenes/pda_1.png new file mode 100644 index 0000000000..663b450a36 Binary files /dev/null and b/pandora_console/operation/active_console/imagenes/pda_1.png differ diff --git a/pandora_console/operation/active_console/imagenes/penDrive_1.png b/pandora_console/operation/active_console/imagenes/penDrive_1.png new file mode 100644 index 0000000000..3215b31569 Binary files /dev/null and b/pandora_console/operation/active_console/imagenes/penDrive_1.png differ diff --git a/pandora_console/operation/active_console/imagenes/penguin_1.png b/pandora_console/operation/active_console/imagenes/penguin_1.png new file mode 100644 index 0000000000..83f6eb57ac Binary files /dev/null and b/pandora_console/operation/active_console/imagenes/penguin_1.png differ diff --git a/pandora_console/operation/active_console/imagenes/portatil2_1.png b/pandora_console/operation/active_console/imagenes/portatil2_1.png new file mode 100644 index 0000000000..7a4737770d Binary files /dev/null and b/pandora_console/operation/active_console/imagenes/portatil2_1.png differ diff --git a/pandora_console/operation/active_console/imagenes/portatil_1.png b/pandora_console/operation/active_console/imagenes/portatil_1.png new file mode 100644 index 0000000000..cfc810dc19 Binary files /dev/null and b/pandora_console/operation/active_console/imagenes/portatil_1.png differ diff --git a/pandora_console/operation/active_console/imagenes/procesadorBlue_1.png b/pandora_console/operation/active_console/imagenes/procesadorBlue_1.png new file mode 100644 index 0000000000..08aeef2854 Binary files /dev/null and b/pandora_console/operation/active_console/imagenes/procesadorBlue_1.png differ diff --git a/pandora_console/operation/active_console/imagenes/procesador_1.png b/pandora_console/operation/active_console/imagenes/procesador_1.png new file mode 100644 index 0000000000..2df9a5577f Binary files /dev/null and b/pandora_console/operation/active_console/imagenes/procesador_1.png differ diff --git a/pandora_console/operation/active_console/imagenes/pulpo_cilindro.gif b/pandora_console/operation/active_console/imagenes/pulpo_cilindro.gif new file mode 100644 index 0000000000..08a0da9d04 Binary files /dev/null and b/pandora_console/operation/active_console/imagenes/pulpo_cilindro.gif differ diff --git a/pandora_console/operation/active_console/imagenes/pulpo_lupa.gif b/pandora_console/operation/active_console/imagenes/pulpo_lupa.gif new file mode 100644 index 0000000000..801e0e6191 Binary files /dev/null and b/pandora_console/operation/active_console/imagenes/pulpo_lupa.gif differ diff --git a/pandora_console/operation/active_console/imagenes/raid_1.png b/pandora_console/operation/active_console/imagenes/raid_1.png new file mode 100644 index 0000000000..5acefa6a3d Binary files /dev/null and b/pandora_console/operation/active_console/imagenes/raid_1.png differ diff --git a/pandora_console/operation/active_console/imagenes/raton_1.png b/pandora_console/operation/active_console/imagenes/raton_1.png new file mode 100644 index 0000000000..3afb124597 Binary files /dev/null and b/pandora_console/operation/active_console/imagenes/raton_1.png differ diff --git a/pandora_console/operation/active_console/imagenes/redLocal_1.png b/pandora_console/operation/active_console/imagenes/redLocal_1.png new file mode 100644 index 0000000000..ffd977f629 Binary files /dev/null and b/pandora_console/operation/active_console/imagenes/redLocal_1.png differ diff --git a/pandora_console/operation/active_console/imagenes/redhat_1.png b/pandora_console/operation/active_console/imagenes/redhat_1.png new file mode 100644 index 0000000000..5664aa7cec Binary files /dev/null and b/pandora_console/operation/active_console/imagenes/redhat_1.png differ diff --git a/pandora_console/operation/active_console/imagenes/rj45_1.png b/pandora_console/operation/active_console/imagenes/rj45_1.png new file mode 100644 index 0000000000..2c4bf25fb7 Binary files /dev/null and b/pandora_console/operation/active_console/imagenes/rj45_1.png differ diff --git a/pandora_console/operation/active_console/imagenes/servidorRed_1.png b/pandora_console/operation/active_console/imagenes/servidorRed_1.png new file mode 100644 index 0000000000..fbbb8f1240 Binary files /dev/null and b/pandora_console/operation/active_console/imagenes/servidorRed_1.png differ diff --git a/pandora_console/operation/active_console/imagenes/servidor_1.png b/pandora_console/operation/active_console/imagenes/servidor_1.png new file mode 100644 index 0000000000..aa87f2b2d6 Binary files /dev/null and b/pandora_console/operation/active_console/imagenes/servidor_1.png differ diff --git a/pandora_console/operation/active_console/imagenes/slackware_1.png b/pandora_console/operation/active_console/imagenes/slackware_1.png new file mode 100644 index 0000000000..b52560c27b Binary files /dev/null and b/pandora_console/operation/active_console/imagenes/slackware_1.png differ diff --git a/pandora_console/operation/active_console/imagenes/suse_1.png b/pandora_console/operation/active_console/imagenes/suse_1.png new file mode 100644 index 0000000000..dc3508aa33 Binary files /dev/null and b/pandora_console/operation/active_console/imagenes/suse_1.png differ diff --git a/pandora_console/operation/active_console/imagenes/switch_1.png b/pandora_console/operation/active_console/imagenes/switch_1.png new file mode 100644 index 0000000000..0dcaaa8b11 Binary files /dev/null and b/pandora_console/operation/active_console/imagenes/switch_1.png differ diff --git a/pandora_console/operation/active_console/imagenes/tablet_1.png b/pandora_console/operation/active_console/imagenes/tablet_1.png new file mode 100644 index 0000000000..e6019ef276 Binary files /dev/null and b/pandora_console/operation/active_console/imagenes/tablet_1.png differ diff --git a/pandora_console/operation/active_console/imagenes/tarjetaPCI_1.png b/pandora_console/operation/active_console/imagenes/tarjetaPCI_1.png new file mode 100644 index 0000000000..f195d386a7 Binary files /dev/null and b/pandora_console/operation/active_console/imagenes/tarjetaPCI_1.png differ diff --git a/pandora_console/operation/active_console/imagenes/teclado_1.png b/pandora_console/operation/active_console/imagenes/teclado_1.png new file mode 100644 index 0000000000..a88abf820d Binary files /dev/null and b/pandora_console/operation/active_console/imagenes/teclado_1.png differ diff --git a/pandora_console/operation/active_console/imagenes/telefono_1.png b/pandora_console/operation/active_console/imagenes/telefono_1.png new file mode 100644 index 0000000000..15da5a657b Binary files /dev/null and b/pandora_console/operation/active_console/imagenes/telefono_1.png differ diff --git a/pandora_console/operation/active_console/imagenes/terminalServer_1.png b/pandora_console/operation/active_console/imagenes/terminalServer_1.png new file mode 100644 index 0000000000..5e43bcfb00 Binary files /dev/null and b/pandora_console/operation/active_console/imagenes/terminalServer_1.png differ diff --git a/pandora_console/operation/active_console/imagenes/tux_1.png b/pandora_console/operation/active_console/imagenes/tux_1.png new file mode 100644 index 0000000000..863e72e45f Binary files /dev/null and b/pandora_console/operation/active_console/imagenes/tux_1.png differ diff --git a/pandora_console/operation/active_console/imagenes/tv_1.png b/pandora_console/operation/active_console/imagenes/tv_1.png new file mode 100644 index 0000000000..d800f9b2a4 Binary files /dev/null and b/pandora_console/operation/active_console/imagenes/tv_1.png differ diff --git a/pandora_console/operation/active_console/imagenes/ubuntu_1.png b/pandora_console/operation/active_console/imagenes/ubuntu_1.png new file mode 100644 index 0000000000..1e4d6bc75f Binary files /dev/null and b/pandora_console/operation/active_console/imagenes/ubuntu_1.png differ diff --git a/pandora_console/operation/active_console/imagenes/usuaria_1.png b/pandora_console/operation/active_console/imagenes/usuaria_1.png new file mode 100644 index 0000000000..3c981177d9 Binary files /dev/null and b/pandora_console/operation/active_console/imagenes/usuaria_1.png differ diff --git a/pandora_console/operation/active_console/imagenes/usuario_1.png b/pandora_console/operation/active_console/imagenes/usuario_1.png new file mode 100644 index 0000000000..308701ba2f Binary files /dev/null and b/pandora_console/operation/active_console/imagenes/usuario_1.png differ diff --git a/pandora_console/operation/active_console/imagenes/usuariosChat_1.png b/pandora_console/operation/active_console/imagenes/usuariosChat_1.png new file mode 100644 index 0000000000..2153f67f62 Binary files /dev/null and b/pandora_console/operation/active_console/imagenes/usuariosChat_1.png differ diff --git a/pandora_console/operation/active_console/imagenes/usuariosWindows_1.png b/pandora_console/operation/active_console/imagenes/usuariosWindows_1.png new file mode 100644 index 0000000000..9b16445553 Binary files /dev/null and b/pandora_console/operation/active_console/imagenes/usuariosWindows_1.png differ diff --git a/pandora_console/operation/active_console/imagenes/usuarios_1.png b/pandora_console/operation/active_console/imagenes/usuarios_1.png new file mode 100644 index 0000000000..d997bb01da Binary files /dev/null and b/pandora_console/operation/active_console/imagenes/usuarios_1.png differ diff --git a/pandora_console/operation/active_console/imagenes/utiles/b_down.gif b/pandora_console/operation/active_console/imagenes/utiles/b_down.gif new file mode 100644 index 0000000000..fa8736b7b8 Binary files /dev/null and b/pandora_console/operation/active_console/imagenes/utiles/b_down.gif differ diff --git a/pandora_console/operation/active_console/imagenes/utiles/cancel.gif b/pandora_console/operation/active_console/imagenes/utiles/cancel.gif new file mode 100644 index 0000000000..5fb77f777d Binary files /dev/null and b/pandora_console/operation/active_console/imagenes/utiles/cancel.gif differ diff --git a/pandora_console/operation/active_console/imagenes/utiles/dot_green.gif b/pandora_console/operation/active_console/imagenes/utiles/dot_green.gif new file mode 100644 index 0000000000..e3b94776e5 Binary files /dev/null and b/pandora_console/operation/active_console/imagenes/utiles/dot_green.gif differ diff --git a/pandora_console/operation/active_console/imagenes/utiles/dot_red.gif b/pandora_console/operation/active_console/imagenes/utiles/dot_red.gif new file mode 100644 index 0000000000..72dda6743a Binary files /dev/null and b/pandora_console/operation/active_console/imagenes/utiles/dot_red.gif differ diff --git a/pandora_console/operation/active_console/imagenes/utiles/grafica_h.gif b/pandora_console/operation/active_console/imagenes/utiles/grafica_h.gif new file mode 100644 index 0000000000..26e0c6dc9f Binary files /dev/null and b/pandora_console/operation/active_console/imagenes/utiles/grafica_h.gif differ diff --git a/pandora_console/operation/active_console/imagenes/utiles/play.gif b/pandora_console/operation/active_console/imagenes/utiles/play.gif new file mode 100644 index 0000000000..805cb99298 Binary files /dev/null and b/pandora_console/operation/active_console/imagenes/utiles/play.gif differ diff --git a/pandora_console/operation/active_console/imagenes/winSMB_1.png b/pandora_console/operation/active_console/imagenes/winSMB_1.png new file mode 100644 index 0000000000..5b30ec77cc Binary files /dev/null and b/pandora_console/operation/active_console/imagenes/winSMB_1.png differ diff --git a/pandora_console/operation/active_console/index.php b/pandora_console/operation/active_console/index.php new file mode 100644 index 0000000000..f84efe3ecd --- /dev/null +++ b/pandora_console/operation/active_console/index.php @@ -0,0 +1,1405 @@ + + + + + + + + + + +"); + } +?> + +Pandora Console + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +\n"; +echo " +
+
+ +
+"; + + + +$perfil = obtenerPerfilActivo(); + +// Obtenemos las vistas asignadas al perfil especial activo con id igual a 2 y creamos un array JavaScript que contendrá las Vistas +$vistas = dameVistasPerfilActivas($perfil); +// mysql_data_seek($vistas,0); +while ($vista=mysql_fetch_array($vistas)){ + $datos_vista=dameVista($vista["idVista"]); + $estado_vista=dameEstadoVista($vista["idVista"]); + $css_estado_vista=""; + switch ($estado_vista) { + case -1: $css_estado_vista.="\"\""; + break; + case 1: $css_estado_vista.="\"\""; + break; + case 0: $css_estado_vista.="\"style=background-color:red\""; + break; + case 2: $css_estado_vista.="\"style=background-color:yellow\""; + break; + } + + $alerta_vista=comprobarAlertaVista($vista["idVista"]); + $etiqueta=$datos_vista["nombre"]; + if ($alerta_vista==1) $etiqueta.=" (ALERTA)"; + $etiqueta_nombre=" + + + + + + + +
+ ".$etiqueta." + + + +
"; + + echo "".$etiqueta_nombre." +  | "; + +} + +echo "
"; + + +$perfil = obtenerPerfilActivo(); + +// Obtenemos las vistas asignadas al perfil especial activo con id igual a 2 y creamos un array JavaScript que contendrá las Vistas +$vistas = dameVistasPerfilActivas($perfil); +// mysql_data_seek($vistas,0); +while ($vista=mysql_fetch_array($vistas)){ + + + echo " +
+ "; + + $objetos = dameObjetosVista($vista["idVista"]); + + while ($objeto=mysql_fetch_array($objetos)) + { + $estado_objeto=dameEstadoObjeto($objeto["id_objeto"]);//0=MAL, 1=BIEN, 2=CAMBIANDO, -1=DESCONECTADO + + $css_estado="style="; + switch ($estado_objeto) { + case -1: $css_estado.="\"border-color:red\""; + break; + case 1: $css_estado.="\"border-color:green\""; + break; + case 0: $css_estado.="\"background-color:red\""; + break; + case 2: $css_estado.="\"background-color:yellow\""; + break; + } + + $alerta_objeto=comprobarAlertaObjeto($objeto["id_objeto"]); // 0=NO ALERTA 1=SI ALERTA + $css_alerta="style=\"background-color:white\""; + + $datos_objeto=dameObjeto($objeto["id_objeto"]); + $nombre_objeto=dameNombreObjeto($datos_objeto["id_tipo"], $datos_objeto["tipo"]); + $tipo_objeto=$datos_objeto["tipo"]; + if ($tipo_objeto == "V") + { + $tipo_objeto =" "; + } + + echo " +
+
".$nombre_objeto." [".$tipo_objeto."]
+
+ imagen"; + if ($alerta_objeto==1) + echo "
ALERTA
"; + + if (($tipo_objeto == "M") and ($datos_objeto["nom_img"] <> "grafica")) + + echo ""; + + echo "
+ +
+ + "; + + //Creamos las lineas + $aRelaciones=dameRelacionesObjeto($objeto["id_objeto"]); + if ($aRelaciones !=-1) + { + while ($relacion=mysql_fetch_array($aRelaciones)) + { + $idObjeto2=$relacion["idObjeto2"]; + echo "
+ "; + } + } + } +echo ""; +echo "
"; +} + + + +// + + +?> + + +
+
+ + + + \ No newline at end of file diff --git a/pandora_console/operation/active_console/lib/db_functions.php b/pandora_console/operation/active_console/lib/db_functions.php new file mode 100644 index 0000000000..6f5340c6a7 --- /dev/null +++ b/pandora_console/operation/active_console/lib/db_functions.php @@ -0,0 +1,1615 @@ + + + +0 AND TAM.id_agente=".$id_agente." group by TMG.id_mg"; + + $resq1=mysql_query($query1); + + closedb(); + + return $resq1; +} + + +// devuelve los modulos del agente identificado por su que no pertenecen a ningun grupo de modulos +function dameModulosSinGrupo($id_agente) +{ + opendb(); + + $query1="SELECT * from tagente_modulo where id_agente='".$id_agente."' and id_module_group=0"; + + $resq1=mysql_query($query1); + + closedb(); + + return $resq1; +} + +// Funcion que devuelve los modulos de un determinado grupo de modulos y de un agente +function dameModulosDelGrupoModulosAgente($id_agente,$id_mg) +{ + opendb(); + + $query1="Select * from tagente_modulo where id_agente=".$id_agente." and id_module_group=".$id_mg.";"; + + $resq1=mysql_query($query1); + + closedb(); + + return $resq1; + + +} + + +// devuleve los modulos de un agente determinado y de un grupo de modulos determinado (recive el id_agente y el id del grupo de modulos) +function dameModulosGrupo($id_mg,$id_agente) +{ + opendb(); + + $query1="Select * from tagente_modulo where id_agente=".$id_agente." and id_module_group=".$id_mg.""; + $resq1=mysql_query($query1); + + closedb(); + + return $resq1; + +} + +// inserta un objeto pasandole: nombre de la imagen, tipo del objeto, posicion left, posicion top, id tipo del objeto +function addObject($nom_img, $tipo, $left, $top, $id_tipo) +{ + + if ($tipo=="GA") //como el grupo ya tiene una imagen asignada, la aprovechamos + { + $grupoAgente=dameGrupoAgente($id_tipo); + $nom_img=$grupoAgente["icon"]; + } + + opendb(); + $query1="INSERT INTO objeto_consola (`nom_img`,`tipo`,`left`,`top`,`id_tipo`) VALUES ('".$nom_img."', '".$tipo."', $left, $top, $id_tipo);"; + $resq1=mysql_query($query1) or die('Error, insert query failed'.$query1. mysql_error()); + + $query2="Select id_objeto from objeto_consola where id_tipo=".$id_tipo.";"; + $resq2=mysql_query($query2) or die('Error, insert query failed'.$query2. mysql_error()); + $rowidObjeto=mysql_fetch_array($resq2); + + closedb(); + return $rowidObjeto; +} + +// retorna el array con los objetos existentes en la base de datos +function dameObjetos(){ + + + opendb(); + + $query1="SELECT * FROM objeto_consola;"; + $resq1=mysql_query($query1); + + closedb(); + + return $resq1; + +} + +// guardamos una vista nueva pasandole su nombre y una descripcion. Devuelve el id adjudicado a la nueva vista. +function guardarNuevaVista($nombre, $descripcion,$idPerfil) +{ + + + opendb(); + $query1="INSERT INTO vistas_consola (`nombre`,`descripcion`) VALUES ('".$nombre."', '".$descripcion."');"; + $resq1=mysql_query($query1) or die('Error, insert query failed'.$query1. mysql_error()); + + $idVista=mysql_insert_id(); + + // Insertamos la nueva vista al perfil activo (id=2) + $query2="INSERT INTO perfil_vista (`idPerfil`,`idVista`) VALUES ('".$idPerfil."', '".$idVista."');"; + $resq2=mysql_query($query2) or die('Error, insert query failed'.$query2. mysql_error()); + + closedb(); + + return $idVista; +} + +// Se crea un nuevo objeto, $nom_img : Nombre de la imagen que lo representa +// $tipo: Tipo de objeto +// $left: posicion respecto a la izquierda +// $top: posicion respecto arriba +// $id_tipo: id del tipo de objeto +// $idVista: id de la vista a la que pertenece +// Devuelve -1 si la vista que será representada por el objeto no tiene ya un objeto vista de la vista donde insertaremos el objeto. + +function nuevoObjEnVista($nom_img,$tipo,$left,$top,$id_tipo,$idVista) +{ + opendb(); + + $objVista=true; + if ($tipo == "V") // Comprobamos que la vista que será representada por el objeto no tiene ya un objeto vista de la vista donde insertaremos el objeto. :-s + { + $objs = dameObjetosVista($id_tipo); + while ($objeto=mysql_fetch_array($objs)){ + if ($objeto["id_tipo"]==$idVista) + { + $objVista=false; + } + + } + + } + if ($objVista) + { + $query1="INSERT INTO objeto_consola (`nom_img`,`tipo`,`left`,`top`,`id_tipo`,`idVista`) VALUES ('".$nom_img."', '".$tipo."', '".$left."', '".$top."', '".$id_tipo."', '".$idVista."');"; + $resq1=mysql_query($query1) or die('Error, insert query failed'.$query1. mysql_error()); + }else + { + return -1; + } + + closedb(); + +} + +// Crea un nuevo objeto a partir de uno ya existente (util para copiar objeto de una vista a otra) +function copiaObjEnNuevaVista($idVista,$idObjeto) +{ + opendb(); + + $queryObj="SELECT * FROM objeto_consola where id_objeto=".$idObjeto.";"; + $resqObj=mysql_query($queryObj); + $obj=mysql_fetch_array($resqObj); + + $query1="INSERT INTO objeto_consola (`nom_img`,`tipo`,`left`,`top`,`id_tipo`,`idVista`) VALUES ('".$obj["nom_img"]."', '".$obj["tipo"]."', '".$obj["left"]."', '".$obj["top"]."', '".$obj["id_tipo"]."', '".$idVista."');"; + $resq1=mysql_query($query1) or die('Error, insert query failed'.$query1. mysql_error()); + + closedb(); + +} + + +// retorna el array con las vistas existentes en la base de datos +function dameVistas(){ + + + opendb(); + + $queryVista="SELECT * FROM vistas_consola;"; + $resqVista=mysql_query($queryVista); + + closedb(); + + return $resqVista; + +} + +// retorna el array con los ids de los objetos que pertenecen a la vista pasada como parametro +function dameObjetosVista($id_vista){ + + + opendb(); + + $queryObj="SELECT * FROM objeto_consola where idVista=".$id_vista." order by idVista, id_objeto;"; + $resqObj=mysql_query($queryObj); + + closedb(); + + return $resqObj; + +} + +// se devuelve la vista que es referencia por su id que se pasa como parametro +function dameVista($idVista) +{ + opendb(); + + $query_vista="SELECT * FROM vistas_consola where idVista='".$idVista."';"; + $resq1_vista=mysql_query($query_vista); + $vista=mysql_fetch_array($resq1_vista); + + closedb(); + + return $vista; +} + +// se retorna el objeto que es referenciado por su idObjeto +function dameObjeto($idObjeto) +{ + opendb(); + + $query_objeto="SELECT * FROM objeto_consola where id_objeto='".$idObjeto."';"; + $resq1_objeto=mysql_query($query_objeto); + $objeto=mysql_fetch_array($resq1_objeto); + + closedb(); + + return $objeto; +} + +// Funcion que edita un objeto (de momento solo la imagen) +function editarObjeto($idObjeto,$nom_img) +{ + opendb(); + + $query_objeto="UPDATE objeto_consola set nom_img='".$nom_img."' where id_objeto='".$idObjeto."';"; + mysql_query($query_objeto) or die("Failed Query of " . $query_objeto);; + + + closedb(); + +} + +// Funcion que elimina un objeto +function eliminarObjeto($idObjeto) +{ + opendb(); + + $query_objeto="DELETE from objeto_consola where id_objeto='".$idObjeto."';"; + mysql_query($query_objeto) or die("Failed Query of " . $query_objeto); + + + closedb(); + +} + +// retorna el nombre del objeto referenciado por su tipo y por su y por su id de tipo +function dameNombreObjeto($idTipo,$tipo) +{ + + $nombre=""; + opendb(); + + switch ($tipo) { + case "A": //agente + $query_objeto="SELECT * FROM tagente where id_agente='".$idTipo."';"; + $resq1_objeto=mysql_query($query_objeto); + $objeto=mysql_fetch_array($resq1_objeto); + $nombre=$objeto["nombre"]; + break; + case "GA": //Grupo Agentes + $query_objeto="SELECT * FROM tgrupo where id_grupo='".$idTipo."';"; + $resq1_objeto=mysql_query($query_objeto); + $objeto=mysql_fetch_array($resq1_objeto); + $nombre=$objeto["nombre"]; + break; + case "M": //Modulo + $query_objeto="SELECT * FROM tagente_modulo where id_agente_modulo='".$idTipo."';"; + $resq1_objeto=mysql_query($query_objeto); + $objeto=mysql_fetch_array($resq1_objeto); + $nombre=$objeto["nombre"]; + break; + case "GM": //Grupo Modulos + $query_objeto="SELECT * FROM tmodule_group where id_mg='".$idTipo."';"; + $resq1_objeto=mysql_query($query_objeto); + $objeto=mysql_fetch_array($resq1_objeto); + $nombre=$objeto["name"]; + break; + case "V": //Vista + $query_objeto="SELECT * FROM vistas_consola where idVista='".$idTipo."';"; + $resq1_objeto=mysql_query($query_objeto); + $objeto=mysql_fetch_array($resq1_objeto); + $nombre=$objeto["nombre"]; + break; + } + + + + closedb(); + + return $nombre; +} + +//Inserta un nuevo perfil en la base de datos y retorna su id +function guardarNuevoPefil ($nombre,$descripcion) +{ + opendb(); + $query1="INSERT INTO perfil (`nombre`,`descripcion`) VALUES ('".$nombre."', '".$descripcion."');"; + $resq1=mysql_query($query1) or die('Error, insert query failed'.$query1. mysql_error()); + + $idPerfil=mysql_insert_id(); + + // Creamos una vista para el perfil + $query3="INSERT INTO vistas_consola (`nombre`,`descripcion`) VALUES ('default', 'default');"; + $resq3=mysql_query($query3) or die('Error, insert query failed'.$query3. mysql_error()); + + $idVista=mysql_insert_id(); + + + $query2="INSERT INTO perfil_vista (`idPerfil`,`idVista`) VALUES ('".$idPerfil."', '".$idVista."');"; + $resq2=mysql_query($query2) or die('Error, insert query failed'.$query1. mysql_error()); + closedb(); + + return $idPerfil; +} + +// retorna el array con las vistas existentes para el perfil especificado mediante parametro +function dameVistasPerfil($idPerfil){ + + + opendb(); + + $queryVista="SELECT * FROM perfil_vista where idPerfil=".$idPerfil.";"; + $resqVista=mysql_query($queryVista); + + closedb(); + + return $resqVista; + +} + +// retorna el array con las vistas existentes para el perfil especificado mediante parametro y tienen su campo activa = 1 +function dameVistasPerfilActivas($idPerfil){ + + + opendb(); + + $queryVista="SELECT * FROM perfil_vista where idPerfil=".$idPerfil." and activa=1;"; + $resqVista=mysql_query($queryVista); + + closedb(); + + return $resqVista; + +} + + +// // Esta funcion intenta obtener el id del perfil que esta cargado actualmente +// function obtenerPerfilActivo() +// { +// opendb(); +// +// $queryVista="SELECT * FROM perfil_vista where idPerfil=2;"; +// $resqVista=mysql_query($queryVista); +// $perfil_vista=mysql_fetch_array($resqVista); +// +// $queryVista2="SELECT * FROM perfil_vista where idPerfil<>'2' and idVista='".$perfil_vista['idVista']."';"; +// $resqVista2=mysql_query($queryVista2); +// $perfil=mysql_fetch_array($resqVista2); +// +// closedb(); +// +// return $perfil['idPerfil']; +// +// } + +// Retorna un array con todos los Perfiles excepto los especiales Default(id=1) y PerfilActivo(id=2) + +function damePerfiles(){ + opendb(); + + $query1="SELECT * FROM perfil;"; + $resq1=mysql_query($query1); + + closedb(); + + return $resq1; + +} + +// se devuelve el perfil referenciado por su id que se pasa como parametro +function damePerfil($idPerfil) +{ + opendb(); + + $query_perfil="SELECT * FROM perfil where idPerfil=".$idPerfil.";"; + $resq1_perfil=mysql_query($query_perfil); + $perfil=mysql_fetch_array($resq1_perfil); + + closedb(); + + return $perfil; +} + +// Devuelve un perfil cualquiera (Utilizado a la hora de borrar el perfil que esta en curso, con esto se carga otro perfil existente) +function damePerfilCualquiera(){ + opendb(); + + $query1="SELECT * FROM perfil;"; + $resq1=mysql_query($query1); + $perfil=mysql_fetch_array($resq1); + + closedb(); + + return $perfil; + +} + +// Devuelve una vista cualquiera de las que estan visibles (Utilizado a la hora de cerrar una Vista que esta en curso, con esto se carga otra Vista existente) +function dameVistaCualquiera($idPerfil){ + opendb(); + + $query1="SELECT * FROM perfil_vista where idPerfil=".$idPerfil." and activa='1';"; + $resq1=mysql_query($query1); + $vista=mysql_fetch_array($resq1); + + closedb(); + + return $vista; + +} + + +// // Existe un perfil especial (id = 2) que es el perfil activo. Así cuando se abre un perfil, se carga en el perfil activo y se representa. Esta funcion borra lo que haya en el perfil activo, y carga el nuevo perfil a representar. +// function cargarPerfil($idPerfil) +// { +// +// opendb(); +// +// // Borramos todo lo que haya cargado en el perfil activo +// $deleteQuery="Delete from perfil_vista where idPerfil=2"; +// $resqDelete=mysql_query($deleteQuery); +// +// // Recogemos las vistas del nuevo Perfil +// $queryPerfil="SELECT * FROM perfil_vista where idPerfil=".$idPerfil.";"; +// $resqPerfil=mysql_query($queryPerfil); +// +// // Cargamos en el perfil activo las vistas del nuevo Perfil +// while ($perfil_vista=mysql_fetch_array($resqPerfil)){ +// +// $query1="INSERT INTO perfil_vista (`idPerfil`,`idVista`) VALUES ('2', '".$perfil_vista["idVista"]."');"; +// $resq1=mysql_query($query1) or die('Error, insert query failed'.$query1. mysql_error()); +// +// } +// +// +// closedb(); +// +// } + +// // Recupera todas las vistas del perfil activo (id=2) y las añade al perfil que se le pasa como parametro +// function guardarPerfil($idPerfil) +// { +// opendb(); +// +// // Recogemos las vistas del Perfil Activo +// $queryPerfil="SELECT * FROM perfil_vista where idPerfil=2;"; +// $resqPerfil=mysql_query($queryPerfil); +// +// // Borramos todo lo que habia en el antiguo perfil +// $deleteQuery="Delete from perfil_vista where idPerfil=".$idPerfil; +// $resqDelete=mysql_query($deleteQuery); +// +// // Cargamos en el Perfil que queremos guardar, todas las vistas que existian en el activo +// while ($perfil_vista=mysql_fetch_array($resqPerfil)){ +// +// $query1="INSERT INTO perfil_vista (`idPerfil`,`idVista`) VALUES ('".$idPerfil."', '".$perfil_vista["idVista"]."');"; +// $resq1=mysql_query($query1) or die('Error, insert query failed'.$query1. mysql_error()); +// +// } +// +// closedb(); +// +// } + +// Funcion que elimina una vista y todos sus objetos. Devuelve el codigo de error 1 si es la ultima vista, no borrandola. +function eliminarVista($idVista) +{ + opendb(); + + // comprobamos que no es la ultima vista existente en el perfil +// $queryCheck="SELECT * FROM perfil_vista where idPerfil=(Select idPerfil from perfil_vista where idVista=".$idVista.") ;"; + $queryCheck="SELECT pv.* FROM perfil_vista pv , perfil_vista pv2 where pv.idPerfil=pv2.idPerfil and pv2.idVista='".$idVista."'"; + $numVistasexe=mysql_query($queryCheck); + $numVistas = mysql_num_rows($numVistasexe); + + if ($numVistas > 1) + { + +// Obtenemos los objetos de la vista + $queryObj="SELECT * FROM objeto_consola where idVista=".$idVista.";"; + $resqObj=mysql_query($queryObj); + while ($objeto=mysql_fetch_array($resqObj)){ + + $query_objeto="DELETE from objeto_consola where id_objeto='".$objeto['id_objeto']."';"; + mysql_query($query_objeto) or die("Failed Query of " . $query_objeto);; + + } + +// Borramos la vista de la tabla que la relaciona con los perfiles + $query_vista="DELETE from perfil_vista where idVista='".$idVista."';"; + mysql_query($query_vista) or die("Failed Query of " . $query_vista); + +// Borramos la vista + $query_vista="DELETE from vistas_consola where idVista='".$idVista."';"; + mysql_query($query_vista) or die("Failed Query of " . $query_vista); + + + }else return 1; // ERROR: solo queda una vista y no se puede borrar + + + + closedb(); + +} + +// Retorna los valores de la consola para el usuario pasado como parametro +function dameEstadoConsola($usuario) +{ + opendb(); + + $query1="SELECT * FROM estado_consola where id_usuario='".$usuario."';"; + $resq1=mysql_query($query1); + + closedb(); + + return mysql_fetch_array($resq1); + +} + +// Funcion que edita una Vista (id de la vista , nombre , descripcion) +function editarVista($idVista,$nombre,$descripcion) +{ + opendb(); + + $query_vista="UPDATE vistas_consola set nombre='".$nombre."' , descripcion='".$descripcion."' where idVista='".$idVista."';"; + mysql_query($query_vista) or die("Failed Query of " . $query_vista);; + + + closedb(); + +} + +// Funcion que edita un Perfil (id del Perfil , nombre , descripcion) +function editarPerfil($idPerfil,$nombre,$descripcion) +{ + opendb(); + + $query_perfil="UPDATE perfil set Nombre='".$nombre."' , Descripcion='".$descripcion."' where idPerfil='".$idPerfil."';"; + mysql_query($query_perfil) or die("Failed Query of " . $query_perfil);; + + + closedb(); + +} + + +// Elimina el perfil y las vistas asociadas al perfil referenciado por su id, y devuelve -1 como codigo de error si es el ultimo perfil, para indicar de que no se ha borrado por ser el ultimo.Si se ha borrado con exito, devuelve el id del perfil borrado +function eliminarPerfil($idPerfil) +{ + + opendb(); + + $queryCheck="SELECT * FROM perfil ;"; + $numPerfilesexe=mysql_query($queryCheck); + $numPerfiles = mysql_num_rows($numPerfilesexe); + + if ($numPerfiles > 1) + { +// Obtenemos las vistas del perfil para borrarlas + $queryVistas="SELECT * FROM perfil_vista where idPerfil=".$idPerfil.";"; + $resqVistas=mysql_query($queryVistas); + while ($vista=mysql_fetch_array($resqVistas)){ + $idVista=$vista["idVista"]; + + // Obtenemos los objetos de la vista + $queryObj="SELECT * FROM objeto_consola where idVista=".$idVista.";"; + $resqObj=mysql_query($queryObj); + while ($objeto=mysql_fetch_array($resqObj)){ + + $query_objeto="DELETE from objeto_consola where id_objeto='".$objeto['id_objeto']."';"; + mysql_query($query_objeto) or die("Failed Query of " . $query_objeto);; + + } + + // Borramos la vista de la tabla que la relaciona con los perfiles + $query_vista="DELETE from perfil_vista where idVista='".$idVista."';"; + mysql_query($query_vista) or die("Failed Query of " . $query_vista); + + // Borramos la vista + $query_vista="DELETE from vistas_consola where idVista='".$idVista."';"; + mysql_query($query_vista) or die("Failed Query of " . $query_vista); + + } + +// Borramos el perfil de la tabla de relaciones con la vista + $query_perfil="DELETE from perfil_vista where idPerfil='".$idPerfil."';"; + mysql_query($query_perfil) or die("Failed Query of " . $query_perfil); + +// Borramos el perfil + $query_perfil="DELETE from perfil where idPerfil='".$idPerfil."';"; + mysql_query($query_perfil) or die("Failed Query of " . $query_perfil); + + return $idPerfil; + }else return -1; + + closedb(); + +} + +// Funcion que pone a 1 el campo "activa" de la tabla perfil_vista (esto hace que la vista se visualice en la consola) + +function activarVista($idVista) +{ + opendb(); + + $query_vista="UPDATE perfil_vista set activa=1 where idVista=".$idVista.";"; + mysql_query($query_vista) or die("Failed Query of " . $query_vista);; + + + closedb(); + +} + +// Funcion que pone a 0 el campo "activa" de la tabla perfil_vista (esto hace que la vista NO se visualice en la consola) + +function desactivarVista($idVista) +{ + opendb(); + + $query_vista="UPDATE perfil_vista set activa = 0 where idVista='".$idVista."';"; + mysql_query($query_vista) or die("Failed Query of " . $query_vista);; + + + closedb(); +} + +// Funcion que devuelve 1 si es la ultima vista activa del perfil, o devuelve 0 si no lo es +function es_ultimaVistaActiva($idPerfil) +{ + + opendb(); + + $queryCheck="SELECT * FROM perfil_vista where idPerfil=".$idPerfil." and activa=1 ;"; + $numVistasexe=mysql_query($queryCheck); + $numVistas = mysql_num_rows($numVistasexe); + if ($numVistas > 1) + return 0; + else return 1; + +} + +// Funcion que devuelve 1 si la vista del perfil es activa, o devuelve 0 si no lo esta +function esVistaActiva($idVista,$idPerfil) +{ + + opendb(); + + $queryCheck="SELECT * FROM perfil_vista where idVista='".$idVista."' and idPerfil=".$idPerfil.";"; + $vista_exe=mysql_query($queryCheck); + $vista=mysql_fetch_array($vista_exe); + return $vista["activa"]; + +} + + +// Crea una relacion (linea) entre dos objetos +function crearRelacionObjetos($idObjeto1, $idObjeto2) +{ + + opendb(); + + $query1="INSERT INTO relacion_objetos (`idObjeto1`,`idObjeto2`) VALUES ('".$idObjeto1."', '".$idObjeto2."');"; + $resq1=mysql_query($query1) or die('Error, insert query failed'.$query1. mysql_error()); + + closedb(); + +} + +//Devuelve todas las relaciones del objeto pasado como parametro y que sea el Objeto 1 de la relacion, si no tiene ninguna relación, devuelve -1 +function dameRelacionesObjeto($idObjeto) +{ + opendb(); + + $query1="SELECT * FROM relacion_objetos where idObjeto1='".$idObjeto."' or idObjeto2='".$idObjeto."';"; + $resq1=mysql_query($query1); + + closedb(); + + $numRelaciones = mysql_num_rows($resq1); + if ($numRelaciones > 0) + return $resq1; + else return -1; + + +} + +//Funcion que devuelve 1 si el objeto pertence a la vista y 0 si no +function esObjetoDeVista($idObjeto,$idVista) +{ + opendb(); + $query1="SELECT * FROM objeto_consola where id_objeto='".$idObjeto."' and idVista='".$idVista."';"; + $resq1=mysql_query($query1); + + closedb(); + + $objVista = mysql_num_rows($resq1); + if ($objVista > 0) + return 1; + else return 0; + +} + +// Funcion que devuelve las relaciones entre objetos de la vista que se le pasa como parametro. +function dameRelacionesVista($idVista) +{ + opendb(); + + $query1="Select idObjeto1, idObjeto2 from relacion_objetos, objeto_consola where idVista='".$idVista."' and idObjeto1 = id_objeto ;"; + $resq1=mysql_query($query1); + + closedb(); + + return $resq1; + +} + +// Funcion que elimina una relacion entre dos objetos +function eliminarRelacion($obj1, $obj2) +{ + opendb(); + $query_relacion="DELETE from relacion_objetos where idObjeto1='".$obj1."' and idObjeto2='".$obj2."';"; + mysql_query($query_relacion) or die("Failed Query of " . $query_relacion); + + closedb(); + +} + +// Devuelve el estado de un Objeto 0=MAL, 1=BIEN, 2=CAMBIANDO, -1=DESCONECTADO +function dameEstadoObjeto($idObjeto) +{ + + $estado=-1000; + + opendb(); + + $query="Select * from objeto_consola where id_objeto='".$idObjeto."';"; + $objetoexe=mysql_query($query) or die("Failed Query of " . $query); + $objeto=mysql_fetch_array($objetoexe); + + // Comprobamos que esta conectado el objeto + $query_objeto="SELECT * FROM tagente_estado ts, tagente_modulo tm where ts.id_agente_modulo='".$objeto["id_tipo"]."' and tm.id_agente_modulo='".$objeto["id_tipo"]."';"; + $resq1_objeto=mysql_query($query_objeto); + $objeto_estado=mysql_fetch_array($resq1_objeto); + + $agent_down=esConectadoObjeto($objeto["id_tipo"],$objeto["tipo"]); +/* + $est_interval = $objeto_estado["module_interval"]; + if (($est_interval != $intervalo) && ($est_interval > 0)) { + $temp_interval = $est_interval; + } else { + $temp_interval = $intervalo; + } + + + + $ahora=date("Y/m/d H:i:s"); + $seconds = strtotime($ahora) - strtotime($objeto_estado["timestamp"]); + if ($seconds >= ($temp_interval*2)) // If every interval x 2 secs. we get nothing, there's and alert + $agent_down = 1; + else + $agent_down = 0;*/ + + + + if ($agent_down==1) // Desconectado + { + $estado=-1; + }else + { + // Comprobamos si existe una regla de estado para el objeto, sino se comporta segun el estandar + $query_relacion="Select * from relacion_estado where id_objeto='".$idObjeto."';"; + $result_relacion=mysql_query($query_relacion) or die("Failed Query of " . $query_relacion); + $hay_relacion = mysql_num_rows($result_relacion); + + if ($hay_relacion > 0) + $relacion=mysql_fetch_array($result_relacion); + else $relacion=-1; + + if ($relacion==-1) // Estado estandar + { + $tipo=$objeto["tipo"]; + switch ($tipo) { + case "A": //agente + $estado=dameEstadoAgente($objeto["id_tipo"]); + break; + case "GA": //Grupo Agentes + $estado=dameEstadoGrupoAgentes($objeto["id_tipo"]); + break; + case "M": //Modulo + $estado=dameEstadoModulo($objeto["id_tipo"]); + break; + case "GM": //Grupo Modulos + $estado=dameEstadoGrupoModulos($objeto["id_tipo"]); + break; + case "V": //Vista + $estado=dameEstadoVista($objeto["id_tipo"]); + break; + + } + }else // Calculamos su estado dependiendo de la expresion que se le ha asignado + { + + $estado = dameEstadoEditadoObjeto($idObjeto,$relacion["relacion"]); + + } + + } + + closedb(); + +// mensaje($estado); + + if ($estado==-1000) + return -1; + else + return $estado; +} + + +//Funcion que devuelve el estado de un modulo 0=MAL, 1=BIEN, 2=CAMBIANDO, -1=DESCONECTADO +function dameEstadoModulo($idModulo) +{ + $estado=-1000; + + $query_objeto="SELECT * FROM tagente_estado where id_agente_modulo='".$idModulo."';"; + $resq1_objeto=mysql_query($query_objeto); + $objeto_estado=mysql_fetch_array($resq1_objeto); + if ($objeto_estado["estado"]==1) + { + if ($objeto_estado["cambio"]==1) + { + $estado=2; + }else + { + $estado=0; + } + }else + { + $estado=1; + } + + if ($estado==-1000) + return -1; + else + return $estado; +} + +//Funcion que devuelve el estado de un grupo de modulos 0=MAL, 1=BIEN, 2=CAMBIANDO, -1=DESCONECTADO +function dameEstadoGrupoModulos($idGrupo) +{ + $estado=1; + $query="Select * from tagente_modulo where id_module_group='".$idGrupo."';"; + $resq1=mysql_query($query); + while ($modulo=mysql_fetch_array($resq1)) + { + $sub_estado=dameEstadoModulo($modulo["id_agente_modulo"]); + if ($estado == 1) // Si esta en estado BIEN y alguno de los modulos pasa a otro estado -> cambiar el estado + { + if (($sub_estado==2) or ($usb_estado==0)) + { + $estado=$sub_estado; + } + } + if (($estado == 2) and ($sub_estado=0)) // Asegura que se toma el estado mas grave de los elementos de los que esta compuesto el grupo + { + $estado=$sub_estado; + } + + } + return $estado; +} + +//Funcion que devuelve el estado de agente 0=MAL, 1=BIEN, 2=CAMBIANDO, -1=DESCONECTADO +function dameEstadoAgente($idAgente) +{ + $estado=1; + $query="Select * from tagente_modulo where id_agente='".$idAgente."';"; + $resq1=mysql_query($query); + while ($modulo=mysql_fetch_array($resq1)) + { + $sub_estado=dameEstadoModulo($modulo["id_agente_modulo"]); + if ($estado == 1) // Si esta en estado BIEN y alguno de los modulos pasa a otro estado -> cambiar el estado + { + if (($sub_estado==2) or ($usb_estado==0)) + { + $estado=$sub_estado; + } + } + if (($estado == 2) and ($sub_estado=0)) // Asegura que se toma el estado mas grave de los elementos de los que esta compuesto el grupo + { + $estado=$sub_estado; + } + + } + return $estado; +} + +//Funcion que devuelve el estado de un grupo de agentes 0=MAL, 1=BIEN, 2=CAMBIANDO, -1=DESCONECTADO +function dameEstadoGrupoAgentes($idGrupoAgente) +{ + $estado=1; + $query="Select * from tagente where id_grupo='".$idGrupoAgente."';"; + $resq1=mysql_query($query); + while ($agente=mysql_fetch_array($resq1)) + { + $sub_estado=dameEstadoAgente($agente["id_agente"]); + if ($estado == 1) // Si esta en estado BIEN y alguno de los modulos pasa a otro estado -> cambiar el estado + { + if (($sub_estado==2) or ($usb_estado==0)) + { + $estado=$sub_estado; + } + } + if (($estado == 2) and ($sub_estado=0)) // Asegura que se toma el estado mas grave de los elementos de los que esta compuesto el grupo + { + $estado=$sub_estado; + } + + } + return $estado; +} + + +//Funcion que devuelve el estado de una vista 0=MAL, 1=BIEN, 2=CAMBIANDO, -1=DESCONECTADO +function dameEstadoVista($idVista) +{ + opendb(); + $estado=1; + $query="Select * from objeto_consola where idVista='".$idVista."';"; + $resq1=mysql_query($query); + while ($objeto_vista=mysql_fetch_array($resq1)) + { + switch ($objeto_vista["tipo"]) { + case "A": //agente + $sub_estado=dameEstadoAgente($objeto_vista["id_tipo"]); + break; + case "GA": //Grupo Agentes + $sub_estado=dameEstadoGrupoAgentes($objeto_vista["id_tipo"]); + break; + case "M": //Modulo + $sub_estado=dameEstadoModulo($objeto_vista["id_tipo"]); + break; + case "GM": //Grupo Modulos + $sub_estado=dameEstadoGrupoModulos($objeto_vista["id_tipo"]); + break; + case "V": //Vista + $sub_estado=dameEstadoVista($objeto_vista["id_tipo"]); + break; + } + + if ($estado == 1) // Si esta en estado BIEN y alguno de los modulos pasa a otro estado -> cambiar el estado + { + if (($sub_estado==2) or ($usb_estado==0)) + { + $estado=$sub_estado; + } + } + if (($estado == 2) and ($sub_estado=0)) // Asegura que se toma el estado mas grave de los elementos de los que esta compuesto el grupo + { + $estado=$sub_estado; + } + + } + + + return $estado; + + closedb(); + +} + +function comprobarAlertaObjeto($idObjeto) +{ + + $alerta=0; + + opendb(); + + $query="Select * from objeto_consola where id_objeto='".$idObjeto."';"; + $objetoexe=mysql_query($query) or die("Failed Query of " . $query); + $objeto=mysql_fetch_array($objetoexe); + + $tipo=$objeto["tipo"]; + switch ($tipo) { + case "A": //agente + $alerta=comprobarAlertaAgente($objeto["id_tipo"]); + break; + case "GA": //Grupo Agentes + $alerta=comprobarAlertaGrupoAgentes($objeto["id_tipo"]); + break; + case "M": //Modulo + $alerta=comprobarAlertaModulo($objeto["id_tipo"]); + break; + case "GM": //Grupo Modulos + $alerta=comprobarAlertaGrupoModulos($objeto["id_tipo"]); + break; + case "V": //Vista + $alerta=comprobarAlertaVista($objeto["id_tipo"]); + break; + + } + + closedb(); + return $alerta; + + +} + + +function comprobarAlertaModulo($idModulo) +{ + + $query2="SELECT * FROM talerta_agente_modulo WHERE times_fired > 0 AND id_agente_modulo =".$idModulo; + $rowdup2=mysql_query($query2); + if (mysql_num_rows($rowdup2) > 0) + { + + return 1; + } + + + return 0; + +} + +function comprobarAlertaAgente($idAgente) +{ + $query2="SELECT * FROM tagente_modulo WHERE id_agente =".$idAgente; + $modulos=mysql_query($query2); + while ($modulo=mysql_fetch_array($modulos)) + { + $query2="SELECT * FROM talerta_agente_modulo WHERE times_fired > 0 AND id_agente_modulo =".$modulo["id_agente_modulo"]; + $alertas=mysql_query($query2); + if (mysql_num_rows($alertas) > 0) + { + + return 1; + } + + } + return 0; + +} + +function comprobarAlertaGrupoAgentes($id_grupo) +{ + + $query2="SELECT * FROM tagente_modulo WHERE id_agente in (select id_agente from tagente where id_grupo='".$id_grupo."') "; + $modulos=mysql_query($query2); + while ($modulo=mysql_fetch_array($modulos)) + { + $query2="SELECT * FROM talerta_agente_modulo WHERE times_fired > 0 AND id_agente_modulo =".$modulo["id_agente_modulo"]; + $alertas=mysql_query($query2); + if (mysql_num_rows($alertas) > 0) + { + + return 1; + } + + } + return 0; + +} + +function comprobarAlertaGrupoModulos($id_mg) +{ + $query2="SELECT * FROM tagente_modulo WHERE id_module_group in (select id_mg from tmodule_group where id_mg='".$id_mg."') "; + $modulos=mysql_query($query2); + while ($modulo=mysql_fetch_array($modulos)) + { + $query2="SELECT * FROM talerta_agente_modulo WHERE times_fired > 0 AND id_agente_modulo =".$modulo["id_agente_modulo"]; + $alertas=mysql_query($query2); + if (mysql_num_rows($alertas) > 0) + { + + return 1; + } + + } + return 0; + +} + +function comprobarAlertaVista($idVista) +{ + $query="Select * from objeto_consola where idVista='".$idVista."';"; + $resq1=mysql_query($query); + while ($objeto_vista=mysql_fetch_array($resq1)) + { + switch ($objeto_vista["tipo"]) { + case "A": //agente + if (comprobarAlertaAgente($objeto_vista["id_tipo"]) == 1) return 1; + break; + case "GA": //Grupo Agentes + if ( $sub_estado=comprobarAlertaGrupoAgentes($objeto_vista["id_tipo"]) == 1) return 1; + break; + case "M": //Modulo + if ( $sub_estado=comprobarAlertaModulo($objeto_vista["id_tipo"]) == 1) return 1; + break; + case "GM": //Grupo Modulos + if ($sub_estado=comprobarAlertaGrupoModulos($objeto_vista["id_tipo"]) == 1) return 1; + break; + case "V": //Vista + if ($sub_estado=comprobarAlertaVista($objeto_vista["id_tipo"]) == 1) return 1; + break; + } + } +} + +// Guarda en la base de datos el estado left y top del objeto +function guardarPosicion($idObjeto,$left,$top) +{ + + opendb(); + + $query_objeto="UPDATE `objeto_consola` SET `left` = '".$left."', `top` = '".$top."' WHERE `id_objeto` = ".$idObjeto." LIMIT 1;"; + mysql_query($query_objeto) or die("Failed Query of " . $query_objeto);; + + + closedb(); + + +} + +// Crea una relacion de estados (el estado de uno dependera del estado del otro ) entre dos objetos +// Devuelve -1 si se intenta inserta una relacion para un objeto que ya la tiene (duplicate key) +function crearRelacionEstado($idObjeto, $expresion) +{ + + opendb(); + + $query1="INSERT INTO relacion_estado (`id_objeto`,`relacion`) VALUES ('".$idObjeto."', '".$expresion."');"; + $resq1=mysql_query($query1); + if (mysql_errno()==1062) // duplicate key + { + return -1; + } + + closedb(); + +} + + +// Devuelve el estado de un Objeto para el que existe una relacion de estado 0=MAL, 1=BIEN, +function dameEstadoEditadoObjeto ($idObjeto, $expresion) +{ + + $estado=-1; + $subObjetos=array(); + + // Obtenemos los ids de los objetos de los que depende su estado + + $params = preg_split("/(\*|\+|\!|\(|\))/" ,$expresion,-1,PREG_SPLIT_NO_EMPTY); + for ($i=0; $i $subEstado) + { + $estadoSubObjeto = dameEstadoObjeto($idSubObjeto); + $subObjetos[$idSubObjeto]=$estadoSubObjeto; + } + + // Traducimos la expresion en codigo php para poder ejecutarlo + $condicion = $expresion; + $condicion = str_replace("*"," && ",$condicion); + $condicion = str_replace("+"," || ",$condicion); + $condicion = str_replace("#"," ",$condicion); + + // Cambiamos el id del objeto por su estado + foreach($subObjetos as $idSubObjeto => $subEstado) + { + $condicion = str_replace($idSubObjeto,$subEstado,$condicion); + } +// $condicion = str_replace("1","TRUE",$condicion); +// $condicion = str_replace("0","FALSE",$condicion); +// if ("1" && "1"){$estado=1;}else{$estado=0;} + eval(" if ($condicion == 1) {\$estado=1;}else{\$estado=0;}"); +// echo "$condicion = ".$estado; + return $estado; + +} + +// Funcion que devuelve las relaciones de estado existentes en una vista +function dameRelacionesEstadoVista($idVista) +{ + opendb(); + + $query1="Select rs.id_objeto from relacion_estado rs, objeto_consola oc where idVista='".$idVista."' and rs.id_objeto = oc.id_objeto ;"; + $resq1=mysql_query($query1); + + closedb(); + + return $resq1; + +} + +// Funcion que elimina la relacion de estado pasada como argumento +function eliminarRelacionEstado($idRelacion) +{ + + $query_relacion="DELETE from relacion_estado where id_objeto='".$idRelacion."';"; + mysql_query($query_relacion) or die("Failed Query of " . $query_relacion); + +} + +// Funcion que devuelve un 1 si el objeto no esta conectado, y un 0 si si lo está +function esConectadoObjeto($idTipo,$tipo) +{ + $conectado = 1; + + switch ($tipo) { + case "A": //agente + $conectado = comprobarConexionAgente($idTipo); + break; + case "GA": //Grupo Agentes + $conectado=comprobarConexionGrupoAgentes($idTipo); + break; + case "M": //Modulo + $conectado=comprobarConexionModulo($idTipo); + break; + case "GM": //Grupo Modulos + $conectado=comprobarConexionGrupoModulos($idTipo); + break; + case "V": //Vista + $conectado=comprobarConexionVista($idTipo); + break; + } + + + return $conectado; +} + +// Funcion que devuelve un 1 si el modulo no esta conectado, y un 0 si si lo está +function comprobarConexionModulo($idTipo) +{ + $conectado = 1; + + $ahora=date("Y/m/d H:i:s"); + + $sql="SELECT * FROM tagente_modulo WHERE id_agente_modulo = ".$idTipo; + $result=mysql_query($sql); + if ($modulo = mysql_fetch_array($result)){ + $module_interval = $modulo["module_interval"]; + if ($module_interval > 0) + $intervalo_comp = $module_interval; + else { + $sql_agent="SELECT * FROM tagente WHERE id_agente = ".$modulo["id_agente"]; + $result_agent=mysql_query($sql_agent); + if ($agente = mysql_fetch_array($result_agent)){ + $intervalo = $agente["intervalo"]; + } + $intervalo_comp = $intervalo; + } + } + $sql_estado="SELECT * FROM tagente_estado WHERE id_agente = ".$modulo["id_agente"]; + $result_estado=mysql_query($sql_estado); + if ($r_estado = mysql_fetch_array($result_estado)) + $ultimo_contacto_modulo = $r_estado["timestamp"]; + + # Defines if module is down (interval x 2 > time last contact) + if ($ultimo_contacto_modulo != "2000-00-00 00:00:00"){ + $seconds = strtotime($ahora) - strtotime($ultimo_contacto_modulo); + if ($seconds >= ($intervalo_comp*2)){ + $conectado = 1; + }else $conectado = 0; + } + + return $conectado; + +} + + +function comprobarConexionGrupoModulos($id_mg) +{ + + + $query2="SELECT * FROM tagente_modulo WHERE id_module_group in (select id_mg from tmodule_group where id_mg='".$id_mg."') "; + $modulos=mysql_query($query2); + while ($modulo=mysql_fetch_array($modulos)) + { + $modCon = comprobarConexionModulo($modulo["id_agente_modulo"]); + + + if ($modCon == 1) + { + return 1; + + } + + } + return 0; + +} + + +// Funcion que devuelve un 1 si el modulo no esta conectado, y un 0 si si lo está +function comprobarConexionAgente($idTipo) +{ + $conectado = 0; + + $modulos=dameModulos($idTipo); + + while ($modulo=mysql_fetch_array($modulos)) + { + if (comprobarConexionModulo($modulo["id_agente_modulo"]) == 1) + { + $conectado = 1; + } + } + + return $conectado; +} + +function comprobarConexionGrupoAgentes($id_grupo) +{ + + $query2="SELECT * FROM tagente_modulo WHERE id_agente in (select id_agente from tagente where id_grupo='".$id_grupo."') "; + $modulos=mysql_query($query2); + while ($modulo=mysql_fetch_array($modulos)) + { + $modCon = comprobarConexionAgente($idTipo); + if ($modCon == 1) + { + + return 1; + } + + } + return 0; + +} + + + +function comprobarConexionVista($idVista) +{ + $query="Select * from objeto_consola where idVista='".$idVista."';"; + $resq1=mysql_query($query); + while ($objeto_vista=mysql_fetch_array($resq1)) + { + switch ($objeto_vista["tipo"]) { + case "A": //agente + if (comprobarConexionAgente($objeto_vista["id_tipo"]) == 1) return 1; + break; + case "GA": //Grupo Agentes + if ( $sub_estado=comprobarConexionGrupoAgentes($objeto_vista["id_tipo"]) == 1) return 1; + break; + case "M": //Modulo + if ( $sub_estado=comprobarConexionModulo($objeto_vista["id_tipo"]) == 1) return 1; + break; + case "GM": //Grupo Modulos + if ($sub_estado=comprobarConexionGrupoModulos($objeto_vista["id_tipo"]) == 1) return 1; + break; + case "V": //Vista + if ($sub_estado=comprobarConexionVista($objeto_vista["id_tipo"]) == 1) return 1; + break; + } + } + return 0; +} + +// Funcion que devuelve el ultimo valor recogido por el modulo +function ultimoValorModulo($idModulo) +{ + + $query="Select * from tagente_datos where id_agente_modulo='".$idModulo."' order by timestamp desc limit 1;"; + $resq1=mysql_query($query); + $modulo=mysql_fetch_array($resq1); + return $modulo["datos"]; + +} + + + +// Funcion que sustituye el actual icono de un objeto Modulo por su grafica +function setImagenGrafica($idModulo) +{ + + opendb(); + + $query_objeto="UPDATE objeto_consola SET nom_img='grafica' WHERE id_objeto='".$idModulo."';"; + mysql_query($query_objeto) or die("Failed Query of " . $query_objeto);; + + + closedb(); + + +} + +?> \ No newline at end of file diff --git a/pandora_console/operation/active_console/lib/extra_functions.php b/pandora_console/operation/active_console/lib/extra_functions.php new file mode 100644 index 0000000000..2ff6b3737a --- /dev/null +++ b/pandora_console/operation/active_console/lib/extra_functions.php @@ -0,0 +1,240 @@ + + +\""; + while (($file = readdir($dh)) !== false) { + $aFile = explode("." ,$file); + if ($aFile[1] == "png") + { + $aValue= explode("_",$aFile[0]); + $resultado .= "+ \" \""; + } + + } + closedir($dh); + $resultado .= "+ \"\" + + \"
\" + + + + "; + } + } + + return $resultado; + +} + +// Devuelve codigo html que crea una caja de texto con un checkbox. Este checkbox será utilizado cuando se desean añadir un elemento y que automaticamente cree una vista con los subelementos de los que esta compuesto +function dameCheckboxAutoVistas($tipo) +{ +$result=""; + + switch ($tipo) { + case "A": //agente + $result=" + \"
\""; + $result.=" + \"

\""; + break; + case "GA": //Grupo Agentes + $result=" + \"

\""; + $result.=" + \"
\""; + $result.=" + \"

\""; + break; + case "M": //Modulo +// + break; + case "GM": //Grupo Modulos + $result=" + \"

\""; + break; + case "V": //Vista +// + break; + } + + +return $result; + +} + +// function representaEnCaja($datos) +// { +// $resultado=""; +// +// $resultado = "+ \"\" +// + \"
\""; +// +// return $resultado; +// } +// + +function mensaje($msj) +{ +echo "alert('".$msj."');"; +} + + +// Funcion que devuelve la imagen de la gráfica que lo representa +function dameGrafica($idModulo) +{ + global $graphURL; + $origin = time() -3600; + return "$graphURL?tipo=sparse&id=$idModulo&color=40d840&periodo=60&intervalo=12&label=Hourly%20graph&tipo=sparse&id=$idModulo&refresh=30&zoom=100&draw_events=1&origin=$origin"; +} + + +?> diff --git a/pandora_console/operation/active_console/scripts/objeto.php b/pandora_console/operation/active_console/scripts/objeto.php new file mode 100644 index 0000000000..93f12ece3b --- /dev/null +++ b/pandora_console/operation/active_console/scripts/objeto.php @@ -0,0 +1,159 @@ + + + +// object-oriented version - see drag1.php for a procedural version + +function xFenster(eleId, iniX, iniY, barId, resBtnId, maxBtnId) // object prototype +{ + // Private Properties + var me = this; + var ele = xGetElementById(eleId); + var rBtn = xGetElementById(resBtnId); + var mBtn = xGetElementById(maxBtnId); + var x, y, w, h, maximized = false; + // Public Methods + this.onunload = function() + { + if (xIE4Up) { // clear cir refs + xDisableDrag(barId); + xDisableDrag(rBtn); + mBtn.onclick = ele.onmousedown = null; + me = ele = rBtn = mBtn = null; + } + } + this.paint = function() + { + xMoveTo(rBtn, xWidth(ele) - xWidth(rBtn), xHeight(ele) - xHeight(rBtn)); + xMoveTo(mBtn, xWidth(ele) - xWidth(rBtn), 0); + } + // Private Event Listeners + function barOnDrag(e, mdx, mdy) + { + + xMoveTo(ele, xLeft(ele) + mdx, xTop(ele) + mdy); + } +// function resOnDrag(e, mdx, mdy) +// { +// xResizeTo(ele, xWidth(ele) + mdx, xHeight(ele) + mdy); +// me.paint(); +// } + function fenOnDrag(e, mdx, mdy) + { + xMoveTo(ele, xLeft(ele) + mdx, xTop(ele) + mdy); + + var params=eleId.split("_"); + var idObjetoMover=params[2]; + for (var key in aRelacionesObjetos) + { + var objetos=key.split("_"); + var objeto1=objetos[2]; + var objeto2=objetos[3]; + + if (objeto1 == idObjetoMover ) + { +// alert(objetos[0]+objetos[1]+objetos[2]+objetos[3]); + ele2=xGetElementById('fen_'+objetos[1]+'_'+objeto2); + + aRelacionesObjetos[key].clear(); + aRelacionesObjetos[key].drawLine(xLeft(ele) + mdx, xTop(ele) + mdy,xLeft(ele2),xTop(ele2)); + aRelacionesObjetos[key].paint(); + + } else if (objeto2 == idObjetoMover ) + { + ele1=xGetElementById('fen_'+objetos[1]+'_'+objeto1); + + aRelacionesObjetos[key].clear(); + aRelacionesObjetos[key].drawLine(xLeft(ele1),xTop(ele1),xLeft(ele) + mdx, xTop(ele) + mdy); + aRelacionesObjetos[key].paint(); + } + + } + +// var pos = params[i].indexOf("="); +// var name = params[i].substring(0, pos); +// var value = params[i].substring(pos + 1); +// jg.clear(); +// jg.setColor('#ff0000'); // red +// jg.drawLine(10, 113, xLeft(ele) + mdx, xTop(ele) + mdy); // co-ordinates related to 'myCanvas' +// jg.paint(); + + } + function fenOnMousedown() + { + xZIndex(ele, xFenster.z++); + } + +function fenOnMouseup() + { + + } +// function maxOnClick() +// { +// if (maximized) { +// maximized = false; +// xResizeTo(ele, w, h); +// xMoveTo(ele, x, y); +// } +// else { +// w = xWidth(ele); +// h = xHeight(ele); +// x = xLeft(ele); +// y = xTop(ele); +// xMoveTo(ele, xScrollLeft(), xScrollTop()); +// maximized = true; +// xResizeTo(ele, xClientWidth(), xClientHeight()); +// } +// me.paint(); +// } + + this.dameX=function() + { + return xLeft(ele); + } + this.dameY=function() + { + return xTop(ele); + } + + + this.dameCentroX=function() + { + posicion = xLeft(ele) + (xWidth(ele)/2); + return posicion ; // xWidth siempre da 0 con lo que hace imposible calcular el centro .. es un problema que hay que solucionar + } + this.dameCentroY=function() + { + posicion = xTop(ele) + (xHeight(ele)/2); + return posicion; // xHeight siempre da 0 con lo que hace imposible calcular el centro.. es un problema que hay que solucionar + } + + // Constructor Code + xFenster.z++; + xMoveTo(ele, iniX, iniY); + this.paint(); + xEnableDrag(barId, null, barOnDrag, null); +// xEnableDrag(rBtn, null, resOnDrag, null); + xEnableDrag(ele, null, fenOnDrag, null); +// mBtn.onclick = maxOnClick; + ele.onmousedown = fenOnMousedown; + ele.onmouseup = fenOnMouseup; + xShow(ele); +} // end xFenster object prototype + +xFenster.z = 0; // xFenster static property + diff --git a/pandora_console/operation/active_console/scripts/onunload.php b/pandora_console/operation/active_console/scripts/onunload.php new file mode 100644 index 0000000000..32d4834680 --- /dev/null +++ b/pandora_console/operation/active_console/scripts/onunload.php @@ -0,0 +1,147 @@ + + + + + + +function getCookieVal (offset) { +var endstr = document.cookie.indexOf (";", offset); +if (endstr == -1) +endstr = document.cookie.length; +return unescape(document.cookie.substring(offset, endstr)); +} + +function GetCookie (name) { +var arg = name + "="; +var alen = arg.length; +var clen = document.cookie.length; +var i = 0; +while (i < clen) { +var j = i + alen; +if (document.cookie.substring(i, j) == arg) +return getCookieVal (j); +i = document.cookie.indexOf(" ", i) + 1; +if (i == 0) break; +} +return null; +} + +function SetCookie (name, value) { +var argv = SetCookie.arguments; +var argc = SetCookie.arguments.length; +var expires = (argc > 2) ? argv[2] : null; +var path = (argc > 3) ? argv[3] : null; +var domain = (argc > 4) ? argv[4] : null; +var secure = (argc > 5) ? argv[5] : false; +document.cookie = name + "=" + escape (value) + +((expires == null) ? "" : ("; expires=" + expires.toGMTString())) + +((path == null) ? "" : ("; path=" + path)) + +((domain == null) ? "" : ("; domain=" + domain)) + +((secure == true) ? "; secure" : ""); +} + +function setCookieEstado() +{ + + + + if ((getLeftMenu(3)>0) || (getTopMenu(3)>0)) + { + menuX=getLeftMenu(3); + menuY=getTopMenu(3); + }else + { + menuX=getLeftMenu(2); + menuY=getTopMenu(2); + } + nomCookie="estado"; + + + + + if (selectedIndex) + { + vistaActiva=selectedIndex; + } + else + { + vistaActiva=0; + } + + resultEstado = 'vista_activa='+vistaActiva+'x'+relacionPestaVista[vistaActiva]+'&modo='+modo+'&menu='+menuX+'x'+menuY+'&perfil_activo='+perfil; + SetCookie (nomCookie ,resultEstado); +} + + + + +function guardarEstado() +{ + var expdate = new Date() + expdate.setTime(expdate.getTime() + (24 * 60 * 60 * 1000 * 31)); + + + + +} + + + diff --git a/pandora_console/operation/active_console/scripts/wz_jsgraphics.js b/pandora_console/operation/active_console/scripts/wz_jsgraphics.js new file mode 100644 index 0000000000..e91ddb5097 --- /dev/null +++ b/pandora_console/operation/active_console/scripts/wz_jsgraphics.js @@ -0,0 +1,943 @@ +/* This notice must be untouched at all times. + +wz_jsgraphics.js v. 2.36 +The latest version is available at +http://www.walterzorn.com +or http://www.devira.com +or http://www.walterzorn.de + +Copyright (c) 2002-2004 Walter Zorn. All rights reserved. +Created 3. 11. 2002 by Walter Zorn (Web: http://www.walterzorn.com ) +Last modified: 21. 6. 2006 + +Performance optimizations for Internet Explorer +by Thomas Frank and John Holdsworth. +fillPolygon method implemented by Matthieu Haller. + +High Performance JavaScript Graphics Library. +Provides methods +- to draw lines, rectangles, ellipses, polygons + with specifiable line thickness, +- to fill rectangles and ellipses +- to draw text. +NOTE: Operations, functions and branching have rather been optimized +to efficiency and speed than to shortness of source code. + +LICENSE: LGPL + +This library is free software; you can redistribute it and/or +modify it under the terms of the GNU Lesser General Public +License (LGPL) as published by the Free Software Foundation; either +version 2.1 of the License, or (at your option) any later version. + +This library is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +Lesser General Public License for more details. + +You should have received a copy of the GNU Lesser General Public +License along with this library; if not, write to the Free Software +Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA, +or see http://www.gnu.org/copyleft/lesser.html +*/ + + +var jg_ihtm, jg_ie, jg_fast, jg_dom, jg_moz, +jg_n4 = (document.layers && typeof document.classes != "undefined"); + + +function chkDHTM(x, i) +{ + x = document.body || null; + jg_ie = x && typeof x.insertAdjacentHTML != "undefined"; + jg_dom = (x && !jg_ie && + typeof x.appendChild != "undefined" && + typeof document.createRange != "undefined" && + typeof (i = document.createRange()).setStartBefore != "undefined" && + typeof i.createContextualFragment != "undefined"); + jg_ihtm = !jg_ie && !jg_dom && x && typeof x.innerHTML != "undefined"; + jg_fast = jg_ie && document.all && !window.opera; + jg_moz = jg_dom && typeof x.style.MozOpacity != "undefined"; +} + + +function pntDoc() +{ + this.wnd.document.write(jg_fast? this.htmRpc() : this.htm); + this.htm = ''; +} + + +function pntCnvDom() +{ + var x = this.wnd.document.createRange(); + x.setStartBefore(this.cnv); + x = x.createContextualFragment(jg_fast? this.htmRpc() : this.htm); + if(this.cnv) this.cnv.appendChild(x); + this.htm = ''; +} + + +function pntCnvIe() +{ + if(this.cnv) this.cnv.insertAdjacentHTML("BeforeEnd", jg_fast? this.htmRpc() : this.htm); + this.htm = ''; +} + + +function pntCnvIhtm() +{ + if(this.cnv) this.cnv.innerHTML += this.htm; + this.htm = ''; +} + + +function pntCnv() +{ + this.htm = ''; +} + + +function mkDiv(x, y, w, h) +{ + this.htm += '
<\/div>'; +} + + +function mkDivIe(x, y, w, h) +{ + this.htm += '%%'+this.color+';'+x+';'+y+';'+w+';'+h+';'; +} + + +function mkDivPrt(x, y, w, h) +{ + this.htm += '
<\/div>'; +} + + +function mkLyr(x, y, w, h) +{ + this.htm += '<\/layer>\n'; +} + + +var regex = /%%([^;]+);([^;]+);([^;]+);([^;]+);([^;]+);/g; +function htmRpc() +{ + return this.htm.replace( + regex, + '
\n'); +} + + +function htmPrtRpc() +{ + return this.htm.replace( + regex, + '
\n'); +} + + +function mkLin(x1, y1, x2, y2) +{ + if (x1 > x2) + { + var _x2 = x2; + var _y2 = y2; + x2 = x1; + y2 = y1; + x1 = _x2; + y1 = _y2; + } + var dx = x2-x1, dy = Math.abs(y2-y1), + x = x1, y = y1, + yIncr = (y1 > y2)? -1 : 1; + + if (dx >= dy) + { + var pr = dy<<1, + pru = pr - (dx<<1), + p = pr-dx, + ox = x; + while ((dx--) > 0) + { + ++x; + if (p > 0) + { + this.mkDiv(ox, y, x-ox, 1); + y += yIncr; + p += pru; + ox = x; + } + else p += pr; + } + this.mkDiv(ox, y, x2-ox+1, 1); + } + + else + { + var pr = dx<<1, + pru = pr - (dy<<1), + p = pr-dy, + oy = y; + if (y2 <= y1) + { + while ((dy--) > 0) + { + if (p > 0) + { + this.mkDiv(x++, y, 1, oy-y+1); + y += yIncr; + p += pru; + oy = y; + } + else + { + y += yIncr; + p += pr; + } + } + this.mkDiv(x2, y2, 1, oy-y2+1); + } + else + { + while ((dy--) > 0) + { + y += yIncr; + if (p > 0) + { + this.mkDiv(x++, oy, 1, y-oy); + p += pru; + oy = y; + } + else p += pr; + } + this.mkDiv(x2, oy, 1, y2-oy+1); + } + } +} + + +function mkLin2D(x1, y1, x2, y2) +{ + if (x1 > x2) + { + var _x2 = x2; + var _y2 = y2; + x2 = x1; + y2 = y1; + x1 = _x2; + y1 = _y2; + } + var dx = x2-x1, dy = Math.abs(y2-y1), + x = x1, y = y1, + yIncr = (y1 > y2)? -1 : 1; + + var s = this.stroke; + if (dx >= dy) + { + if (dx > 0 && s-3 > 0) + { + var _s = (s*dx*Math.sqrt(1+dy*dy/(dx*dx))-dx-(s>>1)*dy) / dx; + _s = (!(s-4)? Math.ceil(_s) : Math.round(_s)) + 1; + } + else var _s = s; + var ad = Math.ceil(s/2); + + var pr = dy<<1, + pru = pr - (dx<<1), + p = pr-dx, + ox = x; + while ((dx--) > 0) + { + ++x; + if (p > 0) + { + this.mkDiv(ox, y, x-ox+ad, _s); + y += yIncr; + p += pru; + ox = x; + } + else p += pr; + } + this.mkDiv(ox, y, x2-ox+ad+1, _s); + } + + else + { + if (s-3 > 0) + { + var _s = (s*dy*Math.sqrt(1+dx*dx/(dy*dy))-(s>>1)*dx-dy) / dy; + _s = (!(s-4)? Math.ceil(_s) : Math.round(_s)) + 1; + } + else var _s = s; + var ad = Math.round(s/2); + + var pr = dx<<1, + pru = pr - (dy<<1), + p = pr-dy, + oy = y; + if (y2 <= y1) + { + ++ad; + while ((dy--) > 0) + { + if (p > 0) + { + this.mkDiv(x++, y, _s, oy-y+ad); + y += yIncr; + p += pru; + oy = y; + } + else + { + y += yIncr; + p += pr; + } + } + this.mkDiv(x2, y2, _s, oy-y2+ad); + } + else + { + while ((dy--) > 0) + { + y += yIncr; + if (p > 0) + { + this.mkDiv(x++, oy, _s, y-oy+ad); + p += pru; + oy = y; + } + else p += pr; + } + this.mkDiv(x2, oy, _s, y2-oy+ad+1); + } + } +} + + +function mkLinDott(x1, y1, x2, y2) +{ + if (x1 > x2) + { + var _x2 = x2; + var _y2 = y2; + x2 = x1; + y2 = y1; + x1 = _x2; + y1 = _y2; + } + var dx = x2-x1, dy = Math.abs(y2-y1), + x = x1, y = y1, + yIncr = (y1 > y2)? -1 : 1, + drw = true; + if (dx >= dy) + { + var pr = dy<<1, + pru = pr - (dx<<1), + p = pr-dx; + while ((dx--) > 0) + { + if (drw) this.mkDiv(x, y, 1, 1); + drw = !drw; + if (p > 0) + { + y += yIncr; + p += pru; + } + else p += pr; + ++x; + } + if (drw) this.mkDiv(x, y, 1, 1); + } + + else + { + var pr = dx<<1, + pru = pr - (dy<<1), + p = pr-dy; + while ((dy--) > 0) + { + if (drw) this.mkDiv(x, y, 1, 1); + drw = !drw; + y += yIncr; + if (p > 0) + { + ++x; + p += pru; + } + else p += pr; + } + if (drw) this.mkDiv(x, y, 1, 1); + } +} + + +function mkOv(left, top, width, height) +{ + var a = width>>1, b = height>>1, + wod = width&1, hod = (height&1)+1, + cx = left+a, cy = top+b, + x = 0, y = b, + ox = 0, oy = b, + aa = (a*a)<<1, bb = (b*b)<<1, + st = (aa>>1)*(1-(b<<1)) + bb, + tt = (bb>>1) - aa*((b<<1)-1), + w, h; + while (y > 0) + { + if (st < 0) + { + st += bb*((x<<1)+3); + tt += (bb<<1)*(++x); + } + else if (tt < 0) + { + st += bb*((x<<1)+3) - (aa<<1)*(y-1); + tt += (bb<<1)*(++x) - aa*(((y--)<<1)-3); + w = x-ox; + h = oy-y; + if (w&2 && h&2) + { + this.mkOvQds(cx, cy, -x+2, ox+wod, -oy, oy-1+hod, 1, 1); + this.mkOvQds(cx, cy, -x+1, x-1+wod, -y-1, y+hod, 1, 1); + } + else this.mkOvQds(cx, cy, -x+1, ox+wod, -oy, oy-h+hod, w, h); + ox = x; + oy = y; + } + else + { + tt -= aa*((y<<1)-3); + st -= (aa<<1)*(--y); + } + } + this.mkDiv(cx-a, cy-oy, a-ox+1, (oy<<1)+hod); + this.mkDiv(cx+ox+wod, cy-oy, a-ox+1, (oy<<1)+hod); +} + + +function mkOv2D(left, top, width, height) +{ + var s = this.stroke; + width += s-1; + height += s-1; + var a = width>>1, b = height>>1, + wod = width&1, hod = (height&1)+1, + cx = left+a, cy = top+b, + x = 0, y = b, + aa = (a*a)<<1, bb = (b*b)<<1, + st = (aa>>1)*(1-(b<<1)) + bb, + tt = (bb>>1) - aa*((b<<1)-1); + + if (s-4 < 0 && (!(s-2) || width-51 > 0 && height-51 > 0)) + { + var ox = 0, oy = b, + w, h, + pxl, pxr, pxt, pxb, pxw; + while (y > 0) + { + if (st < 0) + { + st += bb*((x<<1)+3); + tt += (bb<<1)*(++x); + } + else if (tt < 0) + { + st += bb*((x<<1)+3) - (aa<<1)*(y-1); + tt += (bb<<1)*(++x) - aa*(((y--)<<1)-3); + w = x-ox; + h = oy-y; + + if (w-1) + { + pxw = w+1+(s&1); + h = s; + } + else if (h-1) + { + pxw = s; + h += 1+(s&1); + } + else pxw = h = s; + this.mkOvQds(cx, cy, -x+1, ox-pxw+w+wod, -oy, -h+oy+hod, pxw, h); + ox = x; + oy = y; + } + else + { + tt -= aa*((y<<1)-3); + st -= (aa<<1)*(--y); + } + } + this.mkDiv(cx-a, cy-oy, s, (oy<<1)+hod); + this.mkDiv(cx+a+wod-s+1, cy-oy, s, (oy<<1)+hod); + } + + else + { + var _a = (width-((s-1)<<1))>>1, + _b = (height-((s-1)<<1))>>1, + _x = 0, _y = _b, + _aa = (_a*_a)<<1, _bb = (_b*_b)<<1, + _st = (_aa>>1)*(1-(_b<<1)) + _bb, + _tt = (_bb>>1) - _aa*((_b<<1)-1), + + pxl = new Array(), + pxt = new Array(), + _pxb = new Array(); + pxl[0] = 0; + pxt[0] = b; + _pxb[0] = _b-1; + while (y > 0) + { + if (st < 0) + { + st += bb*((x<<1)+3); + tt += (bb<<1)*(++x); + pxl[pxl.length] = x; + pxt[pxt.length] = y; + } + else if (tt < 0) + { + st += bb*((x<<1)+3) - (aa<<1)*(y-1); + tt += (bb<<1)*(++x) - aa*(((y--)<<1)-3); + pxl[pxl.length] = x; + pxt[pxt.length] = y; + } + else + { + tt -= aa*((y<<1)-3); + st -= (aa<<1)*(--y); + } + + if (_y > 0) + { + if (_st < 0) + { + _st += _bb*((_x<<1)+3); + _tt += (_bb<<1)*(++_x); + _pxb[_pxb.length] = _y-1; + } + else if (_tt < 0) + { + _st += _bb*((_x<<1)+3) - (_aa<<1)*(_y-1); + _tt += (_bb<<1)*(++_x) - _aa*(((_y--)<<1)-3); + _pxb[_pxb.length] = _y-1; + } + else + { + _tt -= _aa*((_y<<1)-3); + _st -= (_aa<<1)*(--_y); + _pxb[_pxb.length-1]--; + } + } + } + + var ox = 0, oy = b, + _oy = _pxb[0], + l = pxl.length, + w, h; + for (var i = 0; i < l; i++) + { + if (typeof _pxb[i] != "undefined") + { + if (_pxb[i] < _oy || pxt[i] < oy) + { + x = pxl[i]; + this.mkOvQds(cx, cy, -x+1, ox+wod, -oy, _oy+hod, x-ox, oy-_oy); + ox = x; + oy = pxt[i]; + _oy = _pxb[i]; + } + } + else + { + x = pxl[i]; + this.mkDiv(cx-x+1, cy-oy, 1, (oy<<1)+hod); + this.mkDiv(cx+ox+wod, cy-oy, 1, (oy<<1)+hod); + ox = x; + oy = pxt[i]; + } + } + this.mkDiv(cx-a, cy-oy, 1, (oy<<1)+hod); + this.mkDiv(cx+ox+wod, cy-oy, 1, (oy<<1)+hod); + } +} + + +function mkOvDott(left, top, width, height) +{ + var a = width>>1, b = height>>1, + wod = width&1, hod = height&1, + cx = left+a, cy = top+b, + x = 0, y = b, + aa2 = (a*a)<<1, aa4 = aa2<<1, bb = (b*b)<<1, + st = (aa2>>1)*(1-(b<<1)) + bb, + tt = (bb>>1) - aa2*((b<<1)-1), + drw = true; + while (y > 0) + { + if (st < 0) + { + st += bb*((x<<1)+3); + tt += (bb<<1)*(++x); + } + else if (tt < 0) + { + st += bb*((x<<1)+3) - aa4*(y-1); + tt += (bb<<1)*(++x) - aa2*(((y--)<<1)-3); + } + else + { + tt -= aa2*((y<<1)-3); + st -= aa4*(--y); + } + if (drw) this.mkOvQds(cx, cy, -x, x+wod, -y, y+hod, 1, 1); + drw = !drw; + } +} + + +function mkRect(x, y, w, h) +{ + var s = this.stroke; + this.mkDiv(x, y, w, s); + this.mkDiv(x+w, y, s, h); + this.mkDiv(x, y+h, w+s, s); + this.mkDiv(x, y+s, s, h-s); +} + + +function mkRectDott(x, y, w, h) +{ + this.drawLine(x, y, x+w, y); + this.drawLine(x+w, y, x+w, y+h); + this.drawLine(x, y+h, x+w, y+h); + this.drawLine(x, y, x, y+h); +} + + +function jsgFont() +{ + this.PLAIN = 'font-weight:normal;'; + this.BOLD = 'font-weight:bold;'; + this.ITALIC = 'font-style:italic;'; + this.ITALIC_BOLD = this.ITALIC + this.BOLD; + this.BOLD_ITALIC = this.ITALIC_BOLD; +} +var Font = new jsgFont(); + + +function jsgStroke() +{ + this.DOTTED = -1; +} +var Stroke = new jsgStroke(); + + +function jsGraphics(id, wnd) +{ + this.setColor = new Function('arg', 'this.color = arg.toLowerCase();'); + + this.setStroke = function(x) + { + this.stroke = x; + if (!(x+1)) + { + this.drawLine = mkLinDott; + this.mkOv = mkOvDott; + this.drawRect = mkRectDott; + } + else if (x-1 > 0) + { + this.drawLine = mkLin2D; + this.mkOv = mkOv2D; + this.drawRect = mkRect; + } + else + { + this.drawLine = mkLin; + this.mkOv = mkOv; + this.drawRect = mkRect; + } + }; + + + this.setPrintable = function(arg) + { + this.printable = arg; + if (jg_fast) + { + this.mkDiv = mkDivIe; + this.htmRpc = arg? htmPrtRpc : htmRpc; + } + else this.mkDiv = jg_n4? mkLyr : arg? mkDivPrt : mkDiv; + }; + + + this.setFont = function(fam, sz, sty) + { + this.ftFam = fam; + this.ftSz = sz; + this.ftSty = sty || Font.PLAIN; + }; + + + this.drawPolyline = this.drawPolyLine = function(x, y, s) + { + for (var i=0 ; i>1, b = (h -= 1)>>1, + wod = (w&1)+1, hod = (h&1)+1, + cx = left+a, cy = top+b, + x = 0, y = b, + ox = 0, oy = b, + aa2 = (a*a)<<1, aa4 = aa2<<1, bb = (b*b)<<1, + st = (aa2>>1)*(1-(b<<1)) + bb, + tt = (bb>>1) - aa2*((b<<1)-1), + pxl, dw, dh; + if (w+1) while (y > 0) + { + if (st < 0) + { + st += bb*((x<<1)+3); + tt += (bb<<1)*(++x); + } + else if (tt < 0) + { + st += bb*((x<<1)+3) - aa4*(y-1); + pxl = cx-x; + dw = (x<<1)+wod; + tt += (bb<<1)*(++x) - aa2*(((y--)<<1)-3); + dh = oy-y; + this.mkDiv(pxl, cy-oy, dw, dh); + this.mkDiv(pxl, cy+y+hod, dw, dh); + ox = x; + oy = y; + } + else + { + tt -= aa2*((y<<1)-3); + st -= aa4*(--y); + } + } + this.mkDiv(cx-a, cy-oy, w+1, (oy<<1)+hod); + }; + + +/* fillPolygon method, implemented by Matthieu Haller. +This javascript function is an adaptation of the gdImageFilledPolygon for Walter Zorn lib. +C source of GD 1.8.4 found at http://www.boutell.com/gd/ + +THANKS to Kirsten Schulz for the polygon fixes! + +The intersection finding technique of this code could be improved +by remembering the previous intertersection, and by using the slope. +That could help to adjust intersections to produce a nice +interior_extrema. */ + this.fillPolygon = function(array_x, array_y) + { + var i; + var y; + var miny, maxy; + var x1, y1; + var x2, y2; + var ind1, ind2; + var ints; + + var n = array_x.length; + + if (!n) return; + + + miny = array_y[0]; + maxy = array_y[0]; + for (i = 1; i < n; i++) + { + if (array_y[i] < miny) + miny = array_y[i]; + + if (array_y[i] > maxy) + maxy = array_y[i]; + } + for (y = miny; y <= maxy; y++) + { + var polyInts = new Array(); + ints = 0; + for (i = 0; i < n; i++) + { + if (!i) + { + ind1 = n-1; + ind2 = 0; + } + else + { + ind1 = i-1; + ind2 = i; + } + y1 = array_y[ind1]; + y2 = array_y[ind2]; + if (y1 < y2) + { + x1 = array_x[ind1]; + x2 = array_x[ind2]; + } + else if (y1 > y2) + { + y2 = array_y[ind1]; + y1 = array_y[ind2]; + x2 = array_x[ind1]; + x1 = array_x[ind2]; + } + else continue; + + // modified 11. 2. 2004 Walter Zorn + if ((y >= y1) && (y < y2)) + polyInts[ints++] = Math.round((y-y1) * (x2-x1) / (y2-y1) + x1); + + else if ((y == maxy) && (y > y1) && (y <= y2)) + polyInts[ints++] = Math.round((y-y1) * (x2-x1) / (y2-y1) + x1); + } + polyInts.sort(integer_compare); + for (i = 0; i < ints; i+=2) + this.mkDiv(polyInts[i], y, polyInts[i+1]-polyInts[i]+1, 1); + } + }; + + + this.drawString = function(txt, x, y) + { + this.htm += '
'+ + txt + + '<\/div>'; + }; + + +/* drawStringRect() added by Rick Blommers. +Allows to specify the size of the text rectangle and to align the +text both horizontally (e.g. right) and vertically within that rectangle */ + this.drawStringRect = function(txt, x, y, width, halign) + { + this.htm += '
'+ + txt + + '<\/div>'; + }; + + + this.drawImage = function(imgSrc, x, y, w, h, a) + { + this.htm += '
'+ + ''+ + '<\/div>'; + }; + + + this.clear = function() + { + this.htm = ""; + if (this.cnv) this.cnv.innerHTML = this.defhtm; + }; + + + this.mkOvQds = function(cx, cy, xl, xr, yt, yb, w, h) + { + this.mkDiv(xr+cx, yt+cy, w, h); + this.mkDiv(xr+cx, yb+cy, w, h); + this.mkDiv(xl+cx, yb+cy, w, h); + this.mkDiv(xl+cx, yt+cy, w, h); + }; + + this.setStroke(1); + this.setFont('verdana,geneva,helvetica,sans-serif', String.fromCharCode(0x31, 0x32, 0x70, 0x78), Font.PLAIN); + this.color = '#000000'; + this.htm = ''; + this.wnd = wnd || window; + + if (!(jg_ie || jg_dom || jg_ihtm)) chkDHTM(); + if (typeof id != 'string' || !id) this.paint = pntDoc; + else + { + this.cnv = document.all? (this.wnd.document.all[id] || null) + : document.getElementById? (this.wnd.document.getElementById(id) || null) + : null; + this.defhtm = (this.cnv && this.cnv.innerHTML)? this.cnv.innerHTML : ''; + this.paint = jg_dom? pntCnvDom : jg_ie? pntCnvIe : jg_ihtm? pntCnvIhtm : pntCnv; + } + + this.setPrintable(false); +} + + + +function integer_compare(x,y) +{ + return (x < y) ? -1 : ((x > y)*1); +} + diff --git a/pandora_console/include/styles/cb/x_core.js b/pandora_console/operation/active_console/scripts/x_core.js similarity index 100% rename from pandora_console/include/styles/cb/x_core.js rename to pandora_console/operation/active_console/scripts/x_core.js diff --git a/pandora_console/include/styles/cb/x_dom.js b/pandora_console/operation/active_console/scripts/x_dom.js similarity index 100% rename from pandora_console/include/styles/cb/x_dom.js rename to pandora_console/operation/active_console/scripts/x_dom.js diff --git a/pandora_console/include/styles/cb/x_drag.js b/pandora_console/operation/active_console/scripts/x_drag.js similarity index 100% rename from pandora_console/include/styles/cb/x_drag.js rename to pandora_console/operation/active_console/scripts/x_drag.js diff --git a/pandora_console/include/styles/cb/x_event.js b/pandora_console/operation/active_console/scripts/x_event.js similarity index 100% rename from pandora_console/include/styles/cb/x_event.js rename to pandora_console/operation/active_console/scripts/x_event.js diff --git a/pandora_console/include/styles/cb/x_slide.js b/pandora_console/operation/active_console/scripts/x_slide.js similarity index 100% rename from pandora_console/include/styles/cb/x_slide.js rename to pandora_console/operation/active_console/scripts/x_slide.js diff --git a/pandora_console/operation/active_console/scripts/xformulario.js b/pandora_console/operation/active_console/scripts/xformulario.js new file mode 100644 index 0000000000..05860ad00a --- /dev/null +++ b/pandora_console/operation/active_console/scripts/xformulario.js @@ -0,0 +1,65 @@ +// + +function FormSetup() +{ + +var cBtn = xGetElementById('formCerrBtn'); +var xForm = xGetElementById('xForm'); + +posLeft = 0; +posTop = 0; + +if (xClientWidth()>xWidth(xForm)) +{ +posLeft = xClientWidth()/2 -xWidth(xForm)/2; +} + +if (xClientHeight()>xHeight(xForm)) +{ +posTop = xClientHeight()/2 -xHeight(xForm)/2 +} + + xMoveTo('xForm',posLeft ,posTop); +formPaint(); + xEnableDrag('xFormBar', formOnDragStart, formOnDrag, null); + xZIndex('xForm', highZ++); + cBtn.onclick = cBtnOnClick; + xShow('xForm'); +} +function formPaint() +{ + var xForm = xGetElementById('xForm'); + var cBtn = xGetElementById('formCerrBtn'); + xMoveTo(cBtn, xWidth(xForm) - xWidth(cBtn), 0); + +} +function formOnDragStart(ele, mx, my) +{ + xZIndex('xForm', highZ++); +} +function formOnDrag(ele, mdx, mdy) +{ + xMoveTo('xForm', xLeft('xForm') + mdx, xTop('xForm') + mdy); +} +function cBtnOnClick() +{ +var cBtn = xGetElementById('formCerrBtn'); +var xForm = xGetElementById('xForm'); +xHide(xForm); + +} diff --git a/pandora_console/operation/active_console/scripts/xformulario_html.php b/pandora_console/operation/active_console/scripts/xformulario_html.php new file mode 100644 index 0000000000..6706188d8b --- /dev/null +++ b/pandora_console/operation/active_console/scripts/xformulario_html.php @@ -0,0 +1,899 @@ + + + + + +function insertFormulario(tipo) +{ + + +if (tipo == 'nuevo_agente') +{ + +document.write( +"
" ++ "
X
" ++ "
FORMULARIO
" ++ "
" ++ "

" + +"

" ++ "

Agentes disponibles:

" + + +\""; + while ($row=mysql_fetch_array($nomAgente)){ +// Antigua implementacion, lo dejo porque puede ser util para borrados utilizarlo como borrados multiples +// echo " + \"
\""; + + + + echo "+ \" \""; + } + echo "+ \"
\""; + + + + echo " + + \"
\" + + \" \" + + \"

\" + "; + + echo dameCajaImagenes("../imagenes/"); + + echo dameCheckboxAutoVistas("A"); + + +?> ++ "
" ++ " " ++ "
" + ++"
" ++ "

" ++ "
" ++ "
"); + + +} + +else if (tipo == 'nuevo_modulo'){ + +document.write( + +"
" ++ "
X
" ++ "
FORMULARIO
" ++ "
" + +"
" ++ "

" +".$row_agente['nombre']."
\""; + $nomModulo = dameModulos($row_agente['id_agente']); + + echo " + \"
\""; + + + echo "+ \"
\""; + + echo "+ \" \""; + } + echo "+ \"
\""; + echo "+ \"
\""; + } + echo " + + \"
\" + + \" \" + + \"

\" + "; + + echo dameCajaImagenes("../imagenes/"); +?> + ++ "
" ++ " " ++ "

" ++"
" ++ "
" ++ "
"); + +}else if (tipo == 'nuevo_grupoAgente'){ + +document.write( +"
" ++ "
X
" ++ "
FORMULARIO
" ++ "
" + +"
" ++ "

" +\""; + while ($row=mysql_fetch_array($nomgrupoAgente)){ + echo "+ \" \""; + // echo " + \"
\""; + } + echo "+ \"
\""; + + echo " + + \"
\" + + \" \" + + \"

\" + "; + + + echo dameCajaImagenes("../imagenes/"); + echo dameCheckboxAutoVistas("GA"); + echo "+ \"
\" + + \" \""; + }else + { + echo " + + \"
\" + + \" \" + + \"

\" + "; + } + + + + + +?> ++ "

" ++"
" ++ "
" ++ "
"); + +} +else if (tipo == 'nuevo_grupoModulo'){ + +document.write( +"
" ++ "
X
" ++ "
FORMULARIO
" ++ "
" + +"
" ++ "

" + 0) + { + echo " + \"
\""; + + + echo "+ \"\""; +// +// echo "+ \"
\""; + } + + + // Recorro los grupos de modulos del agente + while ($rowGModulo=mysql_fetch_array($gruposM)){ + + // Creo el title con los nombres de los modulos que pertenecen a ese determinado grupo y agente + $modulos=dameModulosDelGrupoModulosAgente($row_agente['id_agente'],$rowGModulo['id_mg']); + $title="Los modulos de este grupo son: "; + while ($rowModulo=mysql_fetch_array($modulos)){ + $title=$title." ".$rowModulo["nombre"].";"; + } + + echo "+ \" \""; + +// echo "+ \"
\""; + + } + echo "+ \"
\""; + echo "+ \"
\""; + + } + + echo " + + \"
\" + + \" \" + + \"

\" + "; + + echo dameCajaImagenes("../imagenes/"); + echo dameCheckboxAutoVistas("GM"); +?> + ++ "
" ++ " " ++ "

" ++"
" ++ "
" ++ "
"); + +} +else if (tipo == 'guardar_vista'){ + +document.write( +"
" ++ "
X
" ++ "
FORMULARIO
" ++ "
" + +"
" ++ "

" ++ "
" ++ " " ++ "
" ++ "
" ++ " " + ++ "
" ++ "
" ++ " " ++ "

" ++"
" ++ "
" ++ "
"); + +} +else if (tipo == 'nueva_vista'){ + +document.write( +"
" ++ "
X
" ++ "
FORMULARIO
" ++ "
" + +"
" ++ "

" ++ "
" ++ " " ++ "
" ++ "
" ++ " " + ++ "
" ++ "
" ++ " " ++ "

" ++"
" ++ "
" ++ "
"); + +} + +else if (tipo == 'nuevo_perfil'){ + +document.write( +"
" ++ "
X
" ++ "
FORMULARIO
" ++ "
" + +"
" ++ "

" ++ "
" ++ " " ++ "
" ++ "
" ++ " " + ++ "
" ++ "
" ++ " " ++ "

" ++"
" ++ "
" ++ "
"); + +}else if (tipo == 'abrir_perfil') +{ + +document.write( +"
" ++ "
X
" ++ "
FORMULARIO
" ++ "
" ++ "

" + +"

" ++ "

Perfiles disponibles:

" + + +
\""; + } + +?> ++ "
" ++ " " ++ "
" + ++"
" ++ "

" ++ "
" ++ "
"); +} + + +else if (tipo == 'editar_objetos') +{ + +document.write( +"
" ++ "
X
" ++ "
FORMULARIO
" ++ "
" ++ "

" + +"

" ++ "

Objetos disponibles:

" + + +\""; + while ($objeto =mysql_fetch_array($objetos)){ + $nom_obj = dameNombreObjeto($objeto['id_tipo'],$objeto['tipo']); + echo "+ \" \""; + +// echo " + \"
\""; + } + echo "+ \"
\""; +?> ++ "
" ++ " " ++ "
" + ++"
" ++ "

" ++ "
" ++ "
"); +} +else if (tipo == 'eliminar_objeto') +{ + +document.write( +"
" ++ "
X
" ++ "
FORMULARIO
" ++ "
" ++ "

" + +"

" ++ "

Objetos disponibles:

" + + +\""; + while ($objeto =mysql_fetch_array($objetos)){ + $nom_obj = dameNombreObjeto($objeto['id_tipo'],$objeto['tipo']); + echo "+ \" \""; + +// echo " + \"
\""; + } + echo "+ \"
\""; + +?> ++ "
" ++ " " ++ "
" + ++"
" ++ "

" ++ "
" ++ "
"); +} +else if (tipo == 'eliminar_vista') +{ + +document.write( +"
" ++ "
X
" ++ "
FORMULARIO
" ++ "
" ++ "

" + +"

" ++ "

Vista que desea eliminar:

" + + +
\""; + } + +?> ++ "
" ++ " " ++ "
" + ++"
" ++ "

" ++ "
" ++ "
"); +} +else if (tipo == 'editar_vista') +{ + +document.write( +"
" ++ "
X
" ++ "
FORMULARIO
" ++ "
" ++ "

" + +"

" ++ "

Vista que desea editar:

" + + +
\""; + } + +?> ++ "
" ++ " " ++ "
" + ++"
" ++ "

" ++ "
" ++ "
"); +} + +else if (tipo == 'editar_perfil') +{ + +document.write( +"
" ++ "
X
" ++ "
FORMULARIO
" ++ "
" ++ "

" + +"

" +Edicion del Perfil:

\" ++ \"\" ++ \"

\" ++ \"
\" ++ \" \" ++ \"
\" ++ \"
\" ++ \" \" + ++ \"
\" + +"; +?> + ++ "
" ++ " " ++ "
" + ++"

" ++ "

" ++ "
" ++ "
"); +} +else if (tipo == 'eliminar_perfil') +{ + +document.write( +"
" ++ "
X
" ++ "
FORMULARIO
" ++ "
" ++ "

" + +"

" ++ "

Perfil a eliminar:

" + + +
\""; + } + +?> ++ "
" ++ " " ++ "
" + ++"
" ++ "

" ++ "
" ++ "
"); +} +else if (tipo == 'convertir_vista') +{ + +document.write( +"
" ++ "
X
" ++ "
FORMULARIO
" ++ "
" ++ "

" + +"

" ++ "

Vista en la que desea adjuntar el objeto:

" + +\" + + + \"
\""; + } + } + + echo " + + \"
\" + + \" \" + + \"

\" + "; + echo dameCajaImagenes("../imagenes/"); + +?> ++ "
" ++ " " ++ "
" ++ " " + ++"
" ++ "

" ++ "
" ++ "
"); +} +else if (tipo == 'abrir_vista') +{ + +document.write( +"
" ++ "
X
" ++ "
FORMULARIO
" ++ "
" ++ "

" + +"

" ++ "

Vista que desea abrir:

" + +
\""; + } + + } + +?> + ++ "
" ++ " " ++ "
" + + ++"
" ++ "

" ++ "
" ++ "
"); +} + +else if (tipo == 'nuevo_objetoVista') +{ + +document.write( +"
" ++ "
X
" ++ "
FORMULARIO
" ++ "
" ++ "

" + +"

" ++ "

Vista que desea representar como objeto:

" + +\" + + + \"
\""; + } + } + + echo " + + \"
\" + + \" \" + + \"

\" + "; + + echo dameCajaImagenes("../imagenes/"); + + +?> + ++ "
" ++ " " + + ++"
" ++ "

" ++ "
" ++ "
"); +} +else if (tipo == 'relacionar_objetos') +{ + +document.write( +"
" ++ "
X
" ++ "
FORMULARIO
" ++ "
" ++ "

" + +"

" ++ "

Objeto1 de la relacion:

" + + +
\""; + } + +?> + ++ "

Objeto2 de la relacion:

" + + +
\""; + } + +?> ++ "
" ++ " " ++ "
" + ++"
" ++ "

" ++ "
" ++ "
"); +} +else if (tipo == 'eliminar_relacion') +{ + +document.write( +"
" ++ "
X
" ++ "
FORMULARIO
" ++ "
" ++ "

" + +"

" ++ "

Relaciones de esta Vista:

" + + +
\""; + } +?> + + ++ "
" ++ " " ++ "
" + ++"
" ++ "

" ++ "
" ++ "
"); +} +else if (tipo == 'relacionar_estado') +{ + +document.write( +"
" ++ "
X
" ++ "
FORMULARIO
" ++ "
" ++ "

" + +"

" ++ "

Objeto a configurar su estado:

" + + +\""; + while ($objeto =mysql_fetch_array($objetos)){ + $nom_obj = dameNombreObjeto($objeto['id_tipo'],$objeto['tipo']); + echo "+ \" \""; + } + echo "+ \"
\""; + + + + +?> + ++ "

Objetos que pueden influenciar en el estado del objeto anterior:

" + + +\""; + while ($objeto =mysql_fetch_array($objetos)){ + $nom_obj = dameNombreObjeto($objeto['id_tipo'],$objeto['tipo']); + echo "+ \" \""; + } + echo "+ \"
\""; + +?> + ++ "

Tipo de relacion:

" ++ "

Expresion de estado:
Operadores Validos:
+ = OR
* = AND
! = NOT" ++ "
" ++ "
" ++ " " ++ "
" + ++"

" ++ "

" ++ "
" ++ "
"); +} +else if (tipo == 'eliminar_relacion_estado') +{ + +document.write( +"
" ++ "
X
" ++ "
FORMULARIO
" ++ "
" ++ "

" + +"

" ++ "

Relaciones de esta Vista:

" + + +
\""; + } +?> + + ++ "
" ++ " " ++ "
" + ++"
" ++ "

" ++ "
" ++ "
"); +} + +} \ No newline at end of file diff --git a/pandora_console/operation/active_console/scripts/xmenu2.js b/pandora_console/operation/active_console/scripts/xmenu2.js new file mode 100644 index 0000000000..4fd828665a --- /dev/null +++ b/pandora_console/operation/active_console/scripts/xmenu2.js @@ -0,0 +1,267 @@ +// xMenu2 +// Copyright (C) 2002,2003,2004,2005 Michael Foster (cross-browser.com) +// X and xMenu2 are distributed under the terms of the LGPL (gnu.org) + +// + +var menu1, menu2, menu3, menu4; + +var antScrollTop = 0; +var antScrollLeft = 0; +var menuLeft = 0; +var menuTop = 0; + + + + +// function resizeListener(e) { +// if (xOp6Dn || xNN4) location.replace(location.href); +// else { +// menu1.paint(); +// menu2.paint(xClientWidth() - 75, 20); +// menu3.paint(0, xClientHeight() - 60); +// menu4.paint(xClientWidth()-(3*75), xClientHeight()-20); +// } +// } +function scrollListener(e) { +var scrollTop = xScrollTop(); +var scrollLeft = xScrollLeft(); + + var i,y; + for (i=0; i < xFloatingMenus.length; ++i) { + if (xFloatingMenus[i]) { + + xFloatingMenus[i].x = xLeft('menu' + xFloatingMenus[i].n); + xFloatingMenus[i].y = xTop('menu' + xFloatingMenus[i].n); +var posicionTop = scrollTop - antScrollTop + xTop('menu' + xFloatingMenus[i].n); +var posicionLeft = scrollLeft - antScrollLeft + xLeft('menu' + xFloatingMenus[i].n); + +//alert (xLeft('menu' + xFloatingMenus[i].n) + " " + xScrollLeft()); + +// -- Mejorar estoooooo para que no se quede atras +//if ((xLeft('menu3') < xScrollLeft()) && (i == 3)) xMove('menu3',xScrollLeft(),xTop('menu3')); + + +xSlideTo('menu' + xFloatingMenus[i].n, posicionLeft, posicionTop ,300); + + + //alert (xScrollTop() + " " + xTop('menu' + xFloatingMenus[i].n)); +// y = xScrollTop(); +// if (y <= xFloatingMenus[i].y) y += xFloatingMenus[i].y; +// else if (i && xFloatingMenus[i].hz) y += xHeight('menu' + xFloatingMenus[i-1].n); + // xSlideTo('menu' + xFloatingMenus[i].n, xFloatingMenus[i].x, xFloatingMenus[i].y, 500); +// +// + + + } + } + +antScrollTop = scrollTop; +antScrollLeft = scrollLeft; + +// parMenuLeft=posicionLeft; +// parMenuTop=posicionTop; + +// xSlideTo('menu3', xLeft('menu3'), xTop('menu3') + xScrollTop(), 500); + +} + +//// menu implementation + +var xFloatingMenus = new Array(), xTotalMenus=0, xActiveMenu=null; + +function xMenu2( + absolute, horizontal, floating, menuX, menuY, menuZ, lblOffset, + lblWidthsArray, lblHeight, boxWidthsArray, + activeColor, inactiveColor, + activeBkgnd, inactiveBkgnd, + boxBkgnd +) { + // properties + this.n = ++xTotalMenus; + this.abs = absolute; + this.hz = horizontal; + this.flt = floating; + this.x = menuX; + this.y = menuY; + this.z = menuZ; + this.lblW = lblWidthsArray; + this.lblH = lblHeight; + this.lblOfs = lblOffset; + this.boxW = boxWidthsArray; + this.ac = activeColor; + this.ic = inactiveColor; + this.ab = activeBkgnd; + this.ib = inactiveBkgnd; + this.bb = boxBkgnd; + this.active = null; + // methods + this.paint = function(menuX, menuY) { + var i=1, x, y, mnu, lbl, box; + mnu = xGetElementById('menu'+this.n); + if (!mnu) return; + xZIndex(mnu, this.z); + if (this.hz) { +// xResizeTo(mnu,xClientWidth(),this.lblH); +// xBackground(mnu, this.ib); + y = 0; + x = this.lblOfs; + } + else { + y = this.lblOfs; + x = 0; + } + if (arguments.length > 1) { + this.x = menuX; + this.y = menuY; + } + if (this.abs) { + if (arguments.length > 1) { + if (this.flt) xMoveTo(mnu, xScrollLeft() + menuX, xScrollTop() + menuY); + else xMoveTo(mnu, menuX, menuY); + } + } + lbl = xGetElementById('label'+this.n+""+i); + while (lbl) { + xResizeTo(lbl, this.lblW[i-1], this.lblH); + xMoveTo(lbl, x, y); + xColor(lbl, this.ic); + xBackground(lbl, this.ib); + xShow(lbl); + lbl.menu = this; + if (arguments.length==3) xAddEventListener(lbl, 'mouseover', menuShowListener, false); + lbl.box = xGetElementById('box'+this.n+""+i); + if (lbl.box) { + xWidth(lbl.box, this.boxW[i-1]); + var bx, by; + if (this.hz) { // horizontal + if (xPageX(lbl) + this.boxW[i-1] > xScrollLeft() + xClientWidth()) { bx = x - (this.boxW[i-1] - this.lblW[i-1]); } + else { bx = x; } + if (xPageY(lbl) + this.lblH + xHeight(lbl.box) > xScrollTop() + xClientHeight()) { by = y - xHeight(lbl.box); } + else { by = y + this.lblH; } + } + else { // vertical + if (xPageX(lbl) + this.lblW[i-1] + this.boxW[i-1] > xScrollLeft() + xClientWidth()) { bx = x - this.boxW[i-1]; } + else { bx = x + this.lblW[i-1]; } + if (xPageY(lbl) + xHeight(lbl.box) > xScrollTop() + xClientHeight()) { by = y + this.lblH - xHeight(lbl.box); } + else { by = y; } + } + xMoveTo(lbl.box, bx, by); + lbl.box.lbl = lbl; + xZIndex(lbl, i); + xZIndex(lbl.box, i); + xBackground(lbl.box, this.bb); + xHide(lbl.box); + } + if (this.hz) x += this.lblW[i-1]; + else y += this.lblH; + lbl = xGetElementById('label'+this.n+""+(++i)); // for next iteration + } + +// xAddEventListener(mnu, 'mousedown', movimiento, false); + xEnableDrag(mnu, d2OnDragStart, d2OnDrag, null); + xShow(mnu); + } + +//alert(menuLeft + " " + menuTop); + // constructor code +// this.paint(this.x, this.y, 'init'); +this.paint(parseInt(menuLeft),parseInt(menuTop), 'init'); + if (this.flt) xFloatingMenus[this.n-1] = this; +} + +// function movimiento() +// { +// mnu = xGetElementById('menu'+this.n); +// xMoveTo(this, 200, 100); +// } + +function d2OnDragStart(ele, mx, my) +{ + + xZIndex(this, highZ++); + +} +function d2OnDrag(ele, mdx, mdy) +{ + + xMoveTo(this, xLeft(this) + mdx, xTop(this) + mdy); + +} +function menuShowListener(e) { + var evt = new xEvent(e); + var lbl = evt.target; + while (lbl && !lbl.menu) { lbl = xParent(lbl); } + if (!lbl) return; + var menu = lbl.menu; + if (!menu) return; + if (menu.active) { + if (menu.active == lbl) return; + xHide(menu.active.box); + xColor(menu.active, menu.ic); + xBackground(menu.active, menu.ib); + if (menu.active.box.lbl.className) menu.active.box.lbl.className = 'mLabel'; // experiment + } + if (xActiveMenu && xActiveMenu != menu) { menuHide(xActiveMenu); } + if (menu.hz && xNN4) { // hack! + xBackground('menu'+menu.n,null); + xResizeTo('menu'+menu.n,xClientWidth(),xClientHeight()); + } + if (lbl.className) lbl.className = 'mLabelOver'; // experiment + xShow(lbl.box); + xColor(lbl, menu.ac); + xBackground(lbl, menu.ab); + menu.active = lbl; + xActiveMenu = menu; +} +var tmr; +function menuHideListener(e) { + var evt = new xEvent(e); + var ele = evt.target; + while (ele && !ele.lbl && !ele.box) { ele = xParent(ele); } + if (xActiveMenu && xActiveMenu.active && !ele && !tmr) tmr = setTimeout('menuHide()', 500); // experiment + else if (ele && tmr) {clearTimeout(tmr); tmr = null;} // experiment + +// if (xActiveMenu && xActiveMenu.active && !ele) menuHide(xActiveMenu); +} +function menuHide(menu) { + + if (!menu) menu = xActiveMenu; // experiment + if (!menu || !menu.active || !menu.active.box) return; + + xHide(menu.active.box); + xColor(menu.active, menu.ic); + xBackground(menu.active, menu.ib); + if (menu.active.box.lbl.className) menu.active.box.lbl.className = 'mLabel'; // experiment + menu.active = null; + xActiveMenu = null; + if (menu.hz && xNN4) { // hack! + xResizeTo('menu'+menu.n,xClientWidth(),menu.lblH + 2); + xBackground('menu'+menu.n, menu.ib); + } +} + +function xName(e) { + if (!e) return e; + else if (e.id && e.id != "") return e.id; + else if (e.nodeName && e.nodeName != "") return e.nodeName; + else if (e.tagName && e.tagName != "") return e.tagName; + else return e; +} + diff --git a/pandora_console/operation/active_console/scripts/xmenu2_html.js b/pandora_console/operation/active_console/scripts/xmenu2_html.js new file mode 100644 index 0000000000..366d6d11de --- /dev/null +++ b/pandora_console/operation/active_console/scripts/xmenu2_html.js @@ -0,0 +1,152 @@ +// + + + var parMenuLeft; + var parMenuTop; + + +function insertMenu(n,p) { +if (n == '3') +{ +// MENU EDICION + +document.write("" +); // end document.write() + +}else{ + +// MENU MONITOR + +document.write("" +); // end document.write() + +} + +} // end insertMenu() + +function cambioModo(nuevoModo) +{ + +modo=nuevoModo; + +location.href = location.pathname+"?mode="+nuevoModo; +} + +function abrirFormulario(formulario) +{ +location.href = location.pathname+"?mode="+modo+"&formulario="+formulario; +} + +function hrefGenerator(n,hrefDst) +{ +menu = xGetElementById('menu'+n); +parMenuLeft=xLeft(menu); +parMenuTop=xTop(menu); + +location.href = location.pathname+hrefDst+"&menuLeft="+parMenuLeft+"&menuTop="+parMenuTop ; + +} + +function getLeftMenu(n) +{ +menu = xGetElementById('menu'+n); +return xLeft(menu); + +} + +function getTopMenu(n) +{ +menu = xGetElementById('menu'+n); +return xTop(menu); + +} + diff --git a/pandora_console/include/styles/cb/lib/xtabpanelgroup.js b/pandora_console/operation/active_console/scripts/xtabpanelgroup.js similarity index 64% rename from pandora_console/include/styles/cb/lib/xtabpanelgroup.js rename to pandora_console/operation/active_console/scripts/xtabpanelgroup.js index 860b1754b1..0c40eef78f 100644 --- a/pandora_console/include/styles/cb/lib/xtabpanelgroup.js +++ b/pandora_console/operation/active_console/scripts/xtabpanelgroup.js @@ -1,6 +1,24 @@ // xTabPanelGroup, Copyright 2005 Michael Foster (Cross-Browser.com) // Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL + +// + function xTabPanelGroup(id, w, h, th, clsTP, clsTG, clsTD, clsTS) // object prototype { // Private Methods @@ -52,7 +70,7 @@ function xTabPanelGroup(id, w, h, th, clsTP, clsTG, clsTD, clsTS) // object prot var tabs = xGetElementsByClassName(clsTD, panelGrp); var tabGrp = xGetElementsByClassName(clsTG, panelGrp); if (!panels || !tabs || !tabGrp || panels.length != tabs.length || tabGrp.length != 1) { return null; } - var selectedIndex = 0, highZ, x = 0, i; + selectedIndex = 0, highZ, x = 0, i; xResizeTo(panelGrp, w, h); xResizeTo(tabGrp[0], w, th); xMoveTo(tabGrp[0], 0, 0); diff --git a/pandora_console/operation/active_console/styles/main.css b/pandora_console/operation/active_console/styles/main.css new file mode 100644 index 0000000000..8219cfdab5 --- /dev/null +++ b/pandora_console/operation/active_console/styles/main.css @@ -0,0 +1,384 @@ + +html { + margin:0; padding:0; +} +body { + font-family:verdana,arial,sans-serif,helvetica; font-size:12px; + color:#000; background:#bba; + margin:0; padding:0; +} +p { + font-family:verdana,arial,sans-serif,helvetica; font-size:12px; + color:#000000; background:#ffffff; +} +h1 { + font-family:verdana,arial,sans-serif,helvetica; font-size:14px; + color:#333; background:#cc9; font-style:normal; text-align:center; + margin:0 0 1.2em 0; padding:0; +} +h2 { + font-family:verdana,arial,sans-serif,helvetica; font-size:14px; + color:#333; background:#ffffff; font-style:italic; + margin:0 0 1em 0; +} +h3 { + font-family:verdana,arial,sans-serif,helvetica; font-size:10px; + color:#333; background:#ffffff; font-style:normal; + margin:0 0 1em 0; +} + +a { + font-family:verdana,arial,helvetica,sans-serif; font-size:12px; + color:#000; +} +a:link, a:active { + font-family:verdana,arial,helvetica,sans-serif; font-size:12px; + color:#000; +} +a:visited { + font-family:verdana,arial,helvetica,sans-serif; font-size:12px; + color:#666; +} +a:hover { + font-family:verdana,arial,helvetica,sans-serif; font-size:12px; + color:#fff; background:#999; + text-decoration:none; +} + +a.m { + font-family:verdana,arial,helvetica,sans-serif; font-size:10px; + color:#000; + margin:0; padding:0; + display:block; text-decoration:none; cursor:default; +} +a.m:link, a.m:active { + font-family:verdana,arial,helvetica,sans-serif; font-size:10px; + color:#000; + margin:0; padding:0; + display:block; text-decoration:none; cursor:default; +} +a.m:visited { + font-family:verdana,arial,helvetica,sans-serif; font-size:10px; + color:#666; + margin:0; padding:0; + display:block; text-decoration:none; cursor:default; +} +a.m:hover { + font-family:verdana,arial,helvetica,sans-serif; font-size:10px; + color:#fff; background:#999; + margin:0; padding:0; + display:block; text-decoration:none; cursor:default; +} + +.rMenu { + position:relative; visibility:visible; overflow:visible; + background:#cc9; + margin:0; padding:0; + text-align:left; + height:20px; + z-index:1; + + border-left:1px outset #ccc; + border-top:1px outset #ccc; + border-right:1px solid #333; + border-bottom:1px solid #333; + +} +.aMenu { + position:absolute; visibility:hidden; overflow:visible; + margin:0; padding:0 2px 0 0; + text-align:left; + z-index:1; + + border-left:1px outset #ccc; + border-top:1px outset #ccc; + border-right:1px solid #333; + border-bottom:1px solid #333; + +} +.mLabel { + position:absolute; visibility:hidden; overflow:hidden; + margin:0; padding:2px; + cursor:default; + border-left:1px outset #ccc; + border-top:1px outset #ccc; + border-right:1px solid #333; + border-bottom:1px solid #333; +} +.mLabelOver { + position:absolute; visibility:hidden; overflow:hidden; + margin:0; padding:2px; + cursor:default; + border-left:1px outset #333; + border-top:1px outset #333; + border-right:1px solid #ccc; + border-bottom:1px solid #ccc; +} +.mBox { + position:absolute; visibility:hidden; overflow:hidden; + margin:0; padding:4px 2px 4px 2px; + cursor:default; + width:auto; /* wrapping col for nn4, over-ride in page-specific css */ + line-height:1.25em; + border-left:1px solid #ccc; + border-top:1px solid #ccc; + border-right:1px solid #333; + border-bottom:1px solid #333; +} + +#header { + margin:20px 80px 0px 80px; + padding:0; +} +#banner { + margin:0; padding:6px 4px; + background:#333; +} +.section { + margin:0px 80px 20px 80px; + padding:10px; + font-family:verdana,arial,sans-serif,helvetica; + font-size:12px; color:#000000; background:#ffffff; +} + +.demoBar { + overflow:hidden; + font-size:x-small; + height:1.2em; + margin:0; + padding:1px; + font-weight:bold; + color:#000; + background:#596380; + cursor:default; +} + +.demoBox { + position:absolute; + overflow:hidden; + visibility:hidden; + width:200px; + margin:0; + padding:0; + font-size:x-small; + color:#000; + background:#FFFFFF; + cursor:default; + border:1px solid #596380; +} +.demoBar { + overflow:hidden; + font-size:x-small; + height:1.2em; + margin:0; + padding:1px; + font-weight:bold; + color:#000; + background:#596380; + cursor:default; +} +.demoBtn { + position:absolute; + overflow:hidden; + font-size:x-small; + width:1.2em; + height:1.2em; + margin:0; + padding:0; + color:#000; + background:#FFFFFF; + cursor:default; +} +.demoContent { + margin:10px; +} +.noLink {text-decoration:none; color:black} + + +.fenster { + position:absolute; + visibility:hidden; + overflow:hidden; +/*En la propiedad width habrá que utilizar javascript o darle valor dinamicamente con php, ya que con el valor auto, IE no dimensiona bien, y no soporta max-width, thanx billy!!*/ + width:auto; + margin:0; + padding:0; + font-size:x-small; + color:#000; + background:#FFF; + cursor:default; + border:1px solid #596380; +z-index:10; + +} +.fenBar { + overflow:hidden; + font-size:x-small; + height:1.8em; + margin:0; + padding:1px; + font-weight:bold; + color:#000; +/* background:#596380 ; */ + cursor:default; +} +/*.fenMaxBtn { + position:absolute; + overflow:hidden; + font-size:x-small; + width:1.2em; + height:1.2em; + margin:0; + padding:0; + color:#000; + background:#BF8660; + cursor:default; +} +.fenResBtn { + position:absolute; + overflow:hidden; + font-size:x-small; + width:1.2em; + height:1.2em; + margin:0; + padding:0; + color:#000; + background:#596380; + cursor:default; +}*/ +.fenContent { + margin:10px; +} + + + + + + + +/* + xTabPanelGroup Demo + default css +*/ + +.tabPanelGroup { + margin:10px; padding:0; + border:1px solid #CFD4E6; +} +.tabPanel { + margin:0; padding:10px; + color:#000; background:#CFD4E6; +} +.tabGroup { + margin:0; padding:0; +} +.tabDefault { + margin:0; padding:2px; + background:#FFF; +} +.tabSelected { + margin:0; padding:2px; + color:#000; background:#CFD4E6; +} + + +/* + xTabPanelGroup Demo + dynamic css +*/ + +.tabPanelGroup { + position:relative; overflow:hidden; +} +.tabPanel { + position:absolute; overflow:auto; + display:none; +} +.tabGroup { + position:absolute; overflow:hidden; +} + +.tabGroup a.tabDefault:link, +.tabGroup a.tabDefault:visited, +.tabGroup a.tabDefault:active, +/* .tabGroup a.tabDefault:hover, */ +.tabDefault { + position:absolute; overflow:hidden; + cursor:pointer; + text-align:center; + border-top:none; + border-left:1px solid #CFD4E6; + border-right:1px solid #CFD4E6; + border-bottom:1px solid #596380; + background:#FFF; + text-decoration:none; +} +.tabGroup a.tabDefault:hover, +.tabDefault:hover { + position:absolute; overflow:hidden; + cursor:pointer; + text-align:center; + border-top:none; + border-left:1px solid #CFD4E6; + border-right:1px solid #CFD4E6; + border-bottom:1px solid #596380; + background:#FFF; + text-decoration:none; +} + +.tabGroup a.tabSelected:link, +.tabGroup a.tabSelected:visited, +.tabGroup a.tabSelected:active, +.tabGroup a.tabSelected:hover, +.tabSelected { + position:absolute; overflow:hidden; + cursor:pointer; + text-align:center; + border-top:2px solid #596380; + border-right:2px solid #596380; + border-bottom:1px solid #CFD4E6; + border-left:2px solid #596380; + background:#CFD4E6; + text-decoration:none; +} + +span.linkDelim { + display:none; +} + +/* +a.tabDefault:link, +a.tabDefault:visited, +a.tabDefault:active { + display:block; + position:absolute; overflow:hidden; + cursor:pointer; + text-align:center; + border-top:none; + border-left:1px solid #CFD4E6; + border-right:1px solid #CFD4E6; + border-bottom:1px solid #596380; +} +.tabGroup a.tabSelected:link, +.tabGroup a.tabSelected:visited, +.tabGroup a.tabSelected:active, +.tabGroup a.tabSelected:hover { + display:block; + position:absolute; overflow:hidden; + cursor:pointer; + text-align:center; + border-top:1px solid #596380; + border-right:1px solid #596380; + border-bottom:1px solid #CFD4E6; + border-left:1px solid #596380; +} + + +a.tabGroup:link, +a.tabGroup:visited, +a.tabGroup:active { + background:transparent; +} +*/ + + diff --git a/pandora_console/operation/menu.php b/pandora_console/operation/menu.php index 27abf226eb..b2ba99c68e 100644 --- a/pandora_console/operation/menu.php +++ b/pandora_console/operation/menu.php @@ -23,7 +23,6 @@ if (! isset($_SESSION["id_usuario"])) { return; } - ?>
@@ -75,6 +74,12 @@ if (give_acl($_SESSION["id_usuario"], 0, "AR")==1) { echo "
"; } + // Active console + echo '
'; + echo '
'; + + // Server view if ( isset($_GET["sec2"]) && $_GET["sec2"] == "operation/servers/view_server") echo '
'; else diff --git a/pandora_console/pandora_graphical_console.INSTALL b/pandora_console/pandora_graphical_console.INSTALL new file mode 100644 index 0000000000..ff3401e38a --- /dev/null +++ b/pandora_console/pandora_graphical_console.INSTALL @@ -0,0 +1,21 @@ +INSTALACIÓN +----------- + +Para instalar la consola Web, seguir los siguientes pasos: + +1) Copia toda la carpeta de la consola en el directorio raiz de tu servidor web (/var/www) +2) Ejecuta el script pandora_console.sql y pandora_console_data.sql sobre la base de datos de pandora. +3) Dentro de la carpeta lib se encuentran dos scripts php (db_functions.php y extra_functions.php), al principio de estos archivos se encuentran variables necesarias para el correcto funcionamiento. + + +Solución de problemas conocidos +------------------------------- + +1) A veces ocurre que php viene configurado para que controle todos los errores y warnings a un nivel demasiado ruidoso, incluyendo codigo que hace que las páginas html no sean validas, visualizandose todo el codigo javascript en vez de la consola. +Para solucionarlo debes configurar el php.ini para que los informes de error no sean demasiado ruidosos. Para ello configura la variable llamada error_reporting. +Se ha probado que funciona con estos niveles: + +error_reporting = E_ALL & ~E_NOTICE +error_reporting = E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR + + diff --git a/pandora_console/pandora_graphical_console.sql b/pandora_console/pandora_graphical_console.sql new file mode 100644 index 0000000000..70e77fcd47 --- /dev/null +++ b/pandora_console/pandora_graphical_console.sql @@ -0,0 +1,114 @@ +-- MySQL dump 10.10 +-- +-- Host: localhost Database: pandora +-- ------------------------------------------------------ +-- Server version 5.0.24a-Debian_9-log + +/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; +/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; +/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; +/*!40101 SET NAMES utf8 */; +/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; +/*!40103 SET TIME_ZONE='+00:00' */; +/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; +/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; +/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; +/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; + +-- +-- Table structure for table `estado_consola` +-- + +DROP TABLE IF EXISTS `estado_consola`; +CREATE TABLE `estado_consola` ( + `id_usuario` varchar(50) NOT NULL, + `idPerfilActivo` int(5) NOT NULL, + `idVistaActiva` int(5) NOT NULL, + `menuX` int(5) NOT NULL, + `menuY` int(5) NOT NULL, + PRIMARY KEY (`id_usuario`) +) ENGINE=MyISAM ; + +-- +-- Table structure for table `objeto_consola` +-- + +DROP TABLE IF EXISTS `objeto_consola`; +CREATE TABLE `objeto_consola` ( + `id_objeto` int(5) NOT NULL auto_increment, + `nom_img` varchar(50) NOT NULL, + `tipo` varchar(2) NOT NULL, + `left` int(5) NOT NULL, + `top` int(5) NOT NULL, + `id_tipo` varchar(20) NOT NULL, + `idVista` int(5) NOT NULL, + PRIMARY KEY (`id_objeto`) +) ENGINE=MyISAM AUTO_INCREMENT=2 ; + +-- +-- Table structure for table `perfil` +-- + +DROP TABLE IF EXISTS `perfil`; +CREATE TABLE `perfil` ( + `idPerfil` int(5) NOT NULL auto_increment, + `Nombre` varchar(50) NOT NULL, + `Descripcion` varchar(250) NOT NULL, + PRIMARY KEY (`idPerfil`) +) ENGINE=MyISAM AUTO_INCREMENT=2 ; + +-- +-- Table structure for table `perfil_vista` +-- + +DROP TABLE IF EXISTS `perfil_vista`; +CREATE TABLE `perfil_vista` ( + `idPerfil` int(5) NOT NULL, + `idVista` int(5) NOT NULL, + `activa` tinyint(1) NOT NULL default '1', + PRIMARY KEY (`idPerfil`,`idVista`) +) ENGINE=MyISAM ; + +-- +-- Table structure for table `relacion_estado` +-- + +DROP TABLE IF EXISTS `relacion_estado`; +CREATE TABLE `relacion_estado` ( + `id_objeto` int(5) NOT NULL, + `relacion` varchar(50) NOT NULL, + PRIMARY KEY (`id_objeto`) +) ENGINE=MyISAM ; + +-- +-- Table structure for table `relacion_objetos` +-- + +DROP TABLE IF EXISTS `relacion_objetos`; +CREATE TABLE `relacion_objetos` ( + `idObjeto1` int(5) NOT NULL, + `idObjeto2` int(5) NOT NULL, + PRIMARY KEY (`idObjeto1`,`idObjeto2`) +) ENGINE=MyISAM ; + +-- +-- Table structure for table `vistas_consola` +-- + +DROP TABLE IF EXISTS `vistas_consola`; +CREATE TABLE `vistas_consola` ( + `idVista` int(5) NOT NULL auto_increment, + `nombre` varchar(50) NOT NULL, + `descripcion` varchar(250) NOT NULL, + PRIMARY KEY (`idVista`) +) ENGINE=MyISAM AUTO_INCREMENT=1 ; +/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; + +/*!40101 SET SQL_MODE=@OLD_SQL_MODE */; +/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; +/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; +/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; +/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; +/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; +/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; + diff --git a/pandora_console/pandora_graphical_console_data.sql b/pandora_console/pandora_graphical_console_data.sql new file mode 100644 index 0000000000..aae77e21d8 --- /dev/null +++ b/pandora_console/pandora_graphical_console_data.sql @@ -0,0 +1,100 @@ +-- MySQL dump 10.10 +-- +-- Host: localhost Database: pandora +-- ------------------------------------------------------ +-- Server version 5.0.24a-Debian_9-log + +/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; +/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; +/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; +/*!40101 SET NAMES utf8 */; +/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; +/*!40103 SET TIME_ZONE='+00:00' */; +/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; +/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; +/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; +/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; + +-- +-- Dumping data for table `estado_consola` +-- + + +/*!40000 ALTER TABLE `estado_consola` DISABLE KEYS */; +LOCK TABLES `estado_consola` WRITE; +INSERT INTO `estado_consola` VALUES ('admin',1,1,100,100); +UNLOCK TABLES; +/*!40000 ALTER TABLE `estado_consola` ENABLE KEYS */; + +-- +-- Dumping data for table `objeto_consola` +-- + + +/*!40000 ALTER TABLE `objeto_consola` DISABLE KEYS */; +LOCK TABLES `objeto_consola` WRITE; +UNLOCK TABLES; +/*!40000 ALTER TABLE `objeto_consola` ENABLE KEYS */; + +-- +-- Dumping data for table `perfil` +-- + + +/*!40000 ALTER TABLE `perfil` DISABLE KEYS */; +LOCK TABLES `perfil` WRITE; +INSERT INTO `perfil` VALUES (1,'perfil por defecto','perfil por defecto'); +UNLOCK TABLES; +/*!40000 ALTER TABLE `perfil` ENABLE KEYS */; + +-- +-- Dumping data for table `perfil_vista` +-- + + +/*!40000 ALTER TABLE `perfil_vista` DISABLE KEYS */; +LOCK TABLES `perfil_vista` WRITE; +INSERT INTO `perfil_vista` VALUES (1,1,1); +UNLOCK TABLES; +/*!40000 ALTER TABLE `perfil_vista` ENABLE KEYS */; + +-- +-- Dumping data for table `relacion_estado` +-- + + +/*!40000 ALTER TABLE `relacion_estado` DISABLE KEYS */; +LOCK TABLES `relacion_estado` WRITE; +UNLOCK TABLES; +/*!40000 ALTER TABLE `relacion_estado` ENABLE KEYS */; + +-- +-- Dumping data for table `relacion_objetos` +-- + + +/*!40000 ALTER TABLE `relacion_objetos` DISABLE KEYS */; +LOCK TABLES `relacion_objetos` WRITE; +UNLOCK TABLES; +/*!40000 ALTER TABLE `relacion_objetos` ENABLE KEYS */; + +-- +-- Dumping data for table `vistas_consola` +-- + + +/*!40000 ALTER TABLE `vistas_consola` DISABLE KEYS */; +LOCK TABLES `vistas_consola` WRITE; +INSERT INTO `vistas_consola` VALUES (1,'Main Board',''); +UNLOCK TABLES; +/*!40000 ALTER TABLE `vistas_consola` ENABLE KEYS */; +/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; + +/*!40101 SET SQL_MODE=@OLD_SQL_MODE */; +/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; +/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; +/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; +/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; +/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; +/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; +