From 411e87590a93dc9696890bd9b5efa05bbfaf2237 Mon Sep 17 00:00:00 2001 From: sebastian Date: Wed, 28 Sep 2005 23:03:28 +0000 Subject: [PATCH] replacing corrupted files --- .../var/Smarty/libs/Config_File.class.php | 2 +- .../htmlUI/var/Smarty/libs/Smarty.class.php | 2 +- .../var/Smarty/libs/Smarty_Compiler.class.php | 2 +- .../htmlUI/var/formmask/metadata.inc.php | 2 +- .../htmlUI/var/html/assets/draglist.js | 426 ++++++++++++------ .../htmlUI/var/html/css_img/bg_head.png | Bin 960 -> 961 bytes .../var/html/css_img/bg_headRight_left.png | Bin 403 -> 404 bytes .../var/html/css_img/bg_headRight_right.png | Bin 240 -> 241 bytes .../htmlUI/var/html/css_img/bg_navigation.png | Bin 199 -> 200 bytes .../htmlUI/var/html/css_img/bg_scala_in.png | Bin 153 -> 154 bytes .../html/css_img/bg_scala_in_scheduler.png | Bin 188 -> 189 bytes .../htmlUI/var/html/css_img/bt_tab_off.png | Bin 303 -> 304 bytes .../htmlUI/var/html/css_img/bt_tab_on.png | Bin 340 -> 341 bytes .../htmlUI/var/html/css_img/bt_tabsm_off.png | Bin 289 -> 290 bytes .../htmlUI/var/html/css_img/bt_tabsm_on.png | Bin 324 -> 325 bytes .../htmlUI/var/localizer/.icons/delete.jpg | Bin 561 -> 561 bytes .../htmlUI/var/localizer/.icons/down.jpg | Bin 554 -> 554 bytes .../htmlUI/var/localizer/.icons/up.jpg | Bin 548 -> 548 bytes 18 files changed, 290 insertions(+), 144 deletions(-) diff --git a/livesupport/modules/htmlUI/var/Smarty/libs/Config_File.class.php b/livesupport/modules/htmlUI/var/Smarty/libs/Config_File.class.php index 3a54e64af..6a756c157 100644 --- a/livesupport/modules/htmlUI/var/Smarty/libs/Config_File.class.php +++ b/livesupport/modules/htmlUI/var/Smarty/libs/Config_File.class.php @@ -25,7 +25,7 @@ * @package Smarty */ -/* $Id: Config_File.class.php 1430 2005-08-01 19:26:00Z maroy $ */ +/* $Id: Config_File.class.php,v 1.6 2005/08/01 19:25:59 maroy Exp $ */ /** * Config file reading class diff --git a/livesupport/modules/htmlUI/var/Smarty/libs/Smarty.class.php b/livesupport/modules/htmlUI/var/Smarty/libs/Smarty.class.php index 32293c036..cc54513ef 100755 --- a/livesupport/modules/htmlUI/var/Smarty/libs/Smarty.class.php +++ b/livesupport/modules/htmlUI/var/Smarty/libs/Smarty.class.php @@ -30,7 +30,7 @@ * @version 2.6.6 */ -/* $Id: Smarty.class.php 1430 2005-08-01 19:26:00Z maroy $ */ +/* $Id: Smarty.class.php,v 1.6 2005/08/01 19:25:59 maroy Exp $ */ /** * DIR_SEP isn't used anymore, but third party apps might diff --git a/livesupport/modules/htmlUI/var/Smarty/libs/Smarty_Compiler.class.php b/livesupport/modules/htmlUI/var/Smarty/libs/Smarty_Compiler.class.php index 436d74ba0..7b4c4da59 100644 --- a/livesupport/modules/htmlUI/var/Smarty/libs/Smarty_Compiler.class.php +++ b/livesupport/modules/htmlUI/var/Smarty/libs/Smarty_Compiler.class.php @@ -26,7 +26,7 @@ * @package Smarty */ -/* $Id: Smarty_Compiler.class.php 1430 2005-08-01 19:26:00Z maroy $ */ +/* $Id: Smarty_Compiler.class.php,v 1.6 2005/08/01 19:25:59 maroy Exp $ */ /** * Template compiling class diff --git a/livesupport/modules/htmlUI/var/formmask/metadata.inc.php b/livesupport/modules/htmlUI/var/formmask/metadata.inc.php index 07835714d..a0361139a 100644 --- a/livesupport/modules/htmlUI/var/formmask/metadata.inc.php +++ b/livesupport/modules/htmlUI/var/formmask/metadata.inc.php @@ -237,7 +237,7 @@ $mask = array( 'type' => 'text', 'label' => 'Sample rate', 'rule' => 'numeric', - + 'attributes'=> array('disabled' => 'on'), 'id3' => array('Samplerate') ), array( diff --git a/livesupport/modules/htmlUI/var/html/assets/draglist.js b/livesupport/modules/htmlUI/var/html/assets/draglist.js index 7c31f0167..a8651ec13 100644 --- a/livesupport/modules/htmlUI/var/html/assets/draglist.js +++ b/livesupport/modules/htmlUI/var/html/assets/draglist.js @@ -1,149 +1,295 @@ -/************************************************** - * dom-drag.js - * 09.25.2001 - * www.youngpup.net - ************************************************** - * 10.28.2001 - fixed minor bug where events - * sometimes fired off the handle, not the root. - ************************************************** - * 05.30.2005 - added a workaround for firefox - * activating links when finished dragging. - * mmosier@astrolabe.com - **************************************************/ +// ---------------------------------------------------------------------------- +// (c) Copyright, DTLink, LLC 1997-2005 +// http://www.dtlink.com +// +// DragList - Drag and Drop Ordered Lists +// +// Javascript Support file for formVista fvml tag. +// +// For more information please see: +// +// http://www.formvista.com/otherprojects/draglist.html +// +// For questions or comments please contact us at: +// +// http://www.formvista.com/contact.html +// +// LICENSE: This file is governed by the new BSD license. For more information +// please see the LICENSE.txt file accompanying this package. +// +// REVISION HISTORY: +// +// 2004-11-12 YmL: +// . initial revision. +// +// 2005-05-28 YmL: +// . pulled out of formVista, relicensed and packaged as a standalone implementation. +// +// 2005-06-02 mtmosier: +// . added horizontal dragging support. +// +// ------------------------ -var Drag = { +/** +* constructor for dragList class +*/ - obj : null, - - init : function(o, oRoot, minX, maxX, minY, maxY, bSwapHorzRef, bSwapVertRef, fXMapper, fYMapper) +function fv_dragList( name ) { - o.onmousedown = Drag.start; - o.hmode = bSwapHorzRef ? false : true ; - o.vmode = bSwapVertRef ? false : true ; + // name of this dragList. Must match the id of the root DIV tag. - o.root = oRoot && oRoot != null ? oRoot : o ; + this.dragListRootId = name; - if (o.hmode && isNaN(parseInt(o.root.style.left ))) o.root.style.left = "0px"; - if (o.vmode && isNaN(parseInt(o.root.style.top ))) o.root.style.top = "0px"; - if (!o.hmode && isNaN(parseInt(o.root.style.right ))) o.root.style.right = "0px"; - if (!o.vmode && isNaN(parseInt(o.root.style.bottom))) o.root.style.bottom = "0px"; + // array of item offsets - o.minX = typeof minX != 'undefined' ? minX : null; - o.minY = typeof minY != 'undefined' ? minY : null; - o.maxX = typeof maxX != 'undefined' ? maxX : null; - o.maxY = typeof maxY != 'undefined' ? maxY : null; + this.offsetsX = new Array(); + this.offsetsY = new Array(); - o.xMapper = fXMapper ? fXMapper : null; - o.yMapper = fYMapper ? fYMapper : null; - - o.root.onDragStart = new Function(); - o.root.onDragEnd = new Function(); - o.root.onDrag = new Function(); - }, - - start : function(e) - { - var o = Drag.obj = this; - e = Drag.fixE(e); - var y = parseInt(o.vmode ? o.root.style.top : o.root.style.bottom); - var x = parseInt(o.hmode ? o.root.style.left : o.root.style.right ); - o.root.onDragStart(x, y); - - o.startX = x; - o.startY = y; - o.lastMouseX = e.clientX; - o.lastMouseY = e.clientY; - - if (o.hmode) { - if (o.minX != null) o.minMouseX = e.clientX - x + o.minX; - if (o.maxX != null) o.maxMouseX = o.minMouseX + o.maxX - o.minX; - } else { - if (o.minX != null) o.maxMouseX = -o.minX + e.clientX + x; - if (o.maxX != null) o.minMouseX = -o.maxX + e.clientX + x; - } - - if (o.vmode) { - if (o.minY != null) o.minMouseY = e.clientY - y + o.minY; - if (o.maxY != null) o.maxMouseY = o.minMouseY + o.maxY - o.minY; - } else { - if (o.minY != null) o.maxMouseY = -o.minY + e.clientY + y; - if (o.maxY != null) o.minMouseY = -o.maxY + e.clientY + y; - } - - document.onmousemove = Drag.drag; - document.onmouseup = Drag.end; - - if (o.linkDisabled) { - var hrefs = o.root.getElementsByTagName("a"); - for (var i = 0; i < hrefs.length; i++) { - hrefs[i].onclick = hrefs[i].prevOnclick; - hrefs[i].prevOnclick = null; - } - o.linkDisabled = false; - } - - return false; - }, - - drag : function(e) - { - e = Drag.fixE(e); - var o = Drag.obj; - - var ey = e.clientY; - var ex = e.clientX; - var y = parseInt(o.vmode ? o.root.style.top : o.root.style.bottom); - var x = parseInt(o.hmode ? o.root.style.left : o.root.style.right ); - var nx, ny; - - if (o.minX != null) ex = o.hmode ? Math.max(ex, o.minMouseX) : Math.min(ex, o.maxMouseX); - if (o.maxX != null) ex = o.hmode ? Math.min(ex, o.maxMouseX) : Math.max(ex, o.minMouseX); - if (o.minY != null) ey = o.vmode ? Math.max(ey, o.minMouseY) : Math.min(ey, o.maxMouseY); - if (o.maxY != null) ey = o.vmode ? Math.min(ey, o.maxMouseY) : Math.max(ey, o.minMouseY); - - nx = x + ((ex - o.lastMouseX) * (o.hmode ? 1 : -1)); - ny = y + ((ey - o.lastMouseY) * (o.vmode ? 1 : -1)); - - if (o.xMapper) nx = o.xMapper(y) - else if (o.yMapper) ny = o.yMapper(x) - - Drag.obj.root.style[o.hmode ? "left" : "right"] = nx + "px"; - Drag.obj.root.style[o.vmode ? "top" : "bottom"] = ny + "px"; - Drag.obj.lastMouseX = ex; - Drag.obj.lastMouseY = ey; - - var threshold = 4; - if (!o.linkDisabled) { - if (Math.abs(nx - o.startX) > threshold || Math.abs(ny - o.startY) > threshold) { - var hrefs = o.root.getElementsByTagName("a"); - for (var i = 0; i < hrefs.length; i++) { - hrefs[i].prevOnclick = hrefs[i].onclick; - hrefs[i].onclick = function() { return false; }; - } - o.linkDisabled = true; - } - } - - Drag.obj.root.onDrag(nx, ny, Drag.obj.root); - return false; - }, - - end : function() - { - document.onmousemove = null; - document.onmouseup = null; - Drag.obj.root.onDragEnd( parseInt(Drag.obj.root.style[Drag.obj.hmode ? "left" : "right"]), - parseInt(Drag.obj.root.style[Drag.obj.vmode - ? "top" : "bottom"]), Drag.obj.root); - Drag.obj = null; - }, - - fixE : function(e) - { - if (typeof e == 'undefined') e = window.event; - if (typeof e.layerX == 'undefined') e.layerX = e.offsetX; - if (typeof e.layerY == 'undefined') e.layerY = e.offsetY; - return e; } -}; + +// ---------------------------------------------- + +/** +* setup the draglist prior to use +* +* @param string orientation defaults to vert. if set to "horz" renders horizontally. +* @param string itemTagName. if null defaults to "div". Can be "span". +*/ + +fv_dragList.prototype.setup = function( orientation, itemTagName ) + { + + var horizontal; + + if ( orientation == "horz" ) + horizontal = true; + else + horizontal = false; + + this.listRoot = document.getElementById( this.dragListRootId ); + this.listItems = this.getListItems( itemTagName ); + + for (var i = 0; i < this.listItems.length; i++) + { + + if ( this.listItems[i] == undefined ) + continue; + + if ( horizontal ) + { + Drag.init(this.listItems[i], null, null, null, 0, 0); + } + else + { + Drag.init(this.listItems[i], null, 0, 0, null, null); + } + + // --------------------------------------------------- + // on drag method + + this.listItems[i].onDrag = function( x, y, thisElem ) + { + + x = thisElem.offsetLeft; + y = thisElem.offsetTop; + + // this is a callback from the dom-drag code. From within this + // function "this" does not refer to the fv_draglist function. + + draglist = getDragList( thisElem ); + + draglist.recalcOffsets( itemTagName ); + + var pos = draglist.getCurrentOffset( thisElem, itemTagName ); + + //var listItems = this.getListItems( itemTagName ); + + // if bottom edge is below top of lower item. + + var testMoveUp; + var testMoveDown; + if ( horizontal ) + { + testMoveUp = (x + draglist.getDivWidth(thisElem) > draglist.offsetsX[pos + 1] + draglist.getDivWidth( draglist.listItems[pos + 1] )); + testMoveDown = x < draglist.offsetsX[pos - 1]; + } + else + { + testMoveUp = (y + draglist.getDivHeight(thisElem) > draglist.offsetsY[pos + 1] + draglist.getDivHeight( draglist.listItems[pos + 1] )); + testMoveDown = y < draglist.offsetsY[pos - 1]; + } + + if (( pos != draglist.listItems.length - 1) && testMoveUp ) + { + draglist.listRoot.removeChild(thisElem); + + if ( pos + 1 == draglist.listItems.length ) + { + draglist.listRoot.appendChild( thisElem ); + } + else + { + draglist.listRoot.insertBefore(thisElem, draglist.listItems[pos+1]); + } + + thisElem.style["top"] = "0px"; + thisElem.style["left"] = "0px"; + } + else if ( pos != 0 && testMoveDown ) + { + draglist.listRoot.removeChild(thisElem); + draglist.listRoot.insertBefore(thisElem, draglist.listItems[pos-1]); + thisElem.style["top"] = "0px"; + thisElem.style["left"] = "0px"; + } + + }; + + this.listItems[i].onDragEnd = function(x,y,thisElem) + { + thisElem.style["top"] = "0px"; + thisElem.style["left"] = "0px"; + } + + } // end of for loop. + + this.recalcOffsets( itemTagName ); + + } // end of setup. + +// ---------------------------------------------- + + +/** +* update the order value fields and submit the form. +*/ + +fv_dragList.prototype.do_submit = function( formName, dragListRootId ) + { + + var listOrderItems = this.listRoot.getElementsByTagName("input"); + + for (var i = 0; i < listOrderItems.length; i++) + { + listOrderItems[i].value = i; + } + + expr = "document." + formName + ".submit()"; + + eval( expr ); + } + +// ---------------------------------------------- +// "Private" methods. +// ---------------------------------------------- + +fv_dragList.prototype.recalcOffsets = function( itemTagName ) + { + var listItems = this.getListItems( itemTagName ); + + for (var i = 0; i < listItems.length; i++) + { + this.offsetsX[i] = listItems[i].offsetLeft; + this.offsetsY[i] = listItems[i].offsetTop; + } + } + +fv_dragList.prototype.getCurrentOffset = function(elem, itemTagName) + { + var listItems = this.getListItems( itemTagName ); + + for (var i = 0; i < listItems.length; i++) + { + if (listItems[i] == elem) + { + return i; + } + } + } + +fv_dragList.prototype.getDivWidth = function(elem) + { + + if (( elem == undefined) || ( elem.offsetWidth == undefined )) + return( 0 ); + + value = elem.offsetWidth; + if (isNaN(value)) + { + value = 0; + } + + return( value ); + } + +fv_dragList.prototype.getDivHeight = function(elem) + { + + if (( elem == undefined) || ( elem.offsetHeight == undefined )) + return( 0 ); + + value = elem.offsetHeight; + if (isNaN(value)) + { + value = 25; + } + + return( value ); + } + +/** +* return list of draggable items +*/ + +fv_dragList.prototype.getListItems = function( itemTagName ) + { + if ( itemTagName == undefined ) + { + itemTagName = "div"; + } + + var listItems = this.listRoot.getElementsByTagName( itemTagName ); + + return( listItems ); + } + +// end of draglist class definition. + +// ------------------------------------- + +/** +* add a new dragList to the list of draglists on this page +* +* This implementatoin supports multiple managed draglists on +* a single page. The index is contained in a global dragListIndex +* array that must be declared in the page. +*/ + +function addDragList( draglist ) + { + dragListIndex[ draglist.dragListRootId ] = draglist; + } + +// ------------------------------------------------------- + +/** +* given a draggable div element, return the draglist it belongs to +* +* @see fv_draglist.prototype.setup +* @todo this should probably be a method inside the draglist class. +*/ + +function getDragList( elem ) + { + + // given a list item return the drag list it belongs to. + + var draglistContainer = elem.parentNode; + + var draglist = dragListIndex[ draglistContainer.id ]; + + return( draglist ); + } + +// END diff --git a/livesupport/modules/htmlUI/var/html/css_img/bg_head.png b/livesupport/modules/htmlUI/var/html/css_img/bg_head.png index c9eb20bda8f83f893960a6be69e2e901b8cf5d26..da91661cc8ae2731996366596d4e0187b4f0987f 100644 GIT binary patch delta 68 zcmX@WevqA~Gr-TCmrII^fq{W{BKHMG-idckG4f76z$k%6eqz)IiYPH@G4gKqW#VB3 Ia-x{i0ADB&qyPW_ delta 71 zcmX@eet@03Gr-TCONxtufq`ox&jm)ViFZ#ia!o$SD1ku=PiAA10g5U!X)$tb_G98< J1ahL8(*To$5bXc} diff --git a/livesupport/modules/htmlUI/var/html/css_img/bg_headRight_left.png b/livesupport/modules/htmlUI/var/html/css_img/bg_headRight_left.png index 885d8a33c1ce6bc1002c61eb01111e12c5dffbba..b5fe8626e9d5b7e5c5a6f3a3e329cf9cda0f282b 100644 GIT binary patch delta 21 ccmbQtJcXI3Gr-TCmrII^fq{W{BXqyPGr-TCmrII^fq{W{BKI~%-ie3w09mmHhX4Qo delta 24 fcmey!_<@nTGr-TCONxtufq`ox&o)M`iHG$7RZ|9a diff --git a/livesupport/modules/htmlUI/var/html/css_img/bg_navigation.png b/livesupport/modules/htmlUI/var/html/css_img/bg_navigation.png index 8cca4ef7cc95feea5dee5d7d193f6036291d2be2..09c9da89885f006547fe6cf49bcaeeddecca11fc 100644 GIT binary patch delta 20 bcmX@kc!H6qGr-TCmrII^fq{W{BKIBuH!B3J delta 19 acmX@Xc$|^DGr-TCONxtufq`ox&mI6Xc?6sQ diff --git a/livesupport/modules/htmlUI/var/html/css_img/bg_scala_in.png b/livesupport/modules/htmlUI/var/html/css_img/bg_scala_in.png index 38badd2b09e94a678dce785fe31dbfb6e67fc8fb..db9a12c933467c3531edd16a5c7383474badfc00 100644 GIT binary patch delta 20 bcmbQqIE#^|Gr-TCmrII^fq{W{B6lAEFewBg delta 19 acmbQmIFpgPGr-TCONxtufq`oxPagm*(*zO# diff --git a/livesupport/modules/htmlUI/var/html/css_img/bg_scala_in_scheduler.png b/livesupport/modules/htmlUI/var/html/css_img/bg_scala_in_scheduler.png index 7e08b90012e7dad9759a362e6bc7ee89feded07e..a57bfacabb6caa14a5984c1a061c353428119502 100644 GIT binary patch delta 20 bcmdnPxR;TqGr-TCmrII^fq{W{BKJlBHGTw( delta 19 acmdnXxQCIuGr-TCONxtufq`ox&qe?-;skpD diff --git a/livesupport/modules/htmlUI/var/html/css_img/bt_tab_off.png b/livesupport/modules/htmlUI/var/html/css_img/bt_tab_off.png index 6e95a40eaab1800996b035c626fb68f63c950794..f3a6def251570f3e54ac55be43e45ca87bbd1e60 100644 GIT binary patch delta 21 ccmZ3_w1J7IGr-TCmrII^fq{W{Bex1805^^V2LJ#7 delta 20 bcmdnMw4RB(Gr-TCONxtufq`oyj|w9IGx`Jf diff --git a/livesupport/modules/htmlUI/var/html/css_img/bt_tab_on.png b/livesupport/modules/htmlUI/var/html/css_img/bt_tab_on.png index 3b979b4b417544e3988dc72b6be9b212bc212fe3..b4d845c4ca156cce4f3ad2c87e60d78c800e9c94 100644 GIT binary patch delta 30 kcmcb@bd`yxGr-TCmrII^fq{W{BKL7d-ieo0fyB>f0C{N$T>t<8 delta 29 jcmcc0bcKn#Gr-TCONxtufq`ox&v8bsiC0vC#II-oblnI^ diff --git a/livesupport/modules/htmlUI/var/html/css_img/bt_tabsm_off.png b/livesupport/modules/htmlUI/var/html/css_img/bt_tabsm_off.png index 09837d023b5412edae0a1708f7907b16b3ecac55..624ea49fa0bb94ccba4131e476a9142b43a9fef9 100644 GIT binary patch delta 30 kcmZ3;w1|nPGr-TCmrII^fq{W{BKJW?-ic==fy8qw0Bqt1tN;K2 delta 29 jcmZ3)w2+CrGr-TCONxtufq`ox&p}46iRUDN#0x6`XuJoQ diff --git a/livesupport/modules/htmlUI/var/html/css_img/bt_tabsm_on.png b/livesupport/modules/htmlUI/var/html/css_img/bt_tabsm_on.png index 6fa401124f69033f232c7250c633297b357bb084..3ebbf9c53912b0381ee262118954b5b40839ebf5 100644 GIT binary patch delta 25 gcmX@Ybd-swGr-TCmrII^fq{W{BKKKF-ibG}0aBC(oB#j- delta 24 fcmX@gbcBh!Gr-TCONxtufq`ox&sj#UiMO%=PK*YM diff --git a/livesupport/modules/htmlUI/var/localizer/.icons/delete.jpg b/livesupport/modules/htmlUI/var/localizer/.icons/delete.jpg index 17651ba46962dc174ef0e86ad3ca44153e477bb3..20ef9dad3bd43c79ba872f2da79ca91c02c85782 100644 GIT binary patch delta 13 UcmdnUvXN!O0Y*mN$p;w=03v(@uK)l5 delta 13 UcmdnUvXN!O0Y*ly$p;w=03vM!tN;K2 diff --git a/livesupport/modules/htmlUI/var/localizer/.icons/down.jpg b/livesupport/modules/htmlUI/var/localizer/.icons/down.jpg index 4a805bff20979727d7bbd065376d4c026c93e496..dc78f180299cde28b6a87d4da1e8769d659d4d26 100644 GIT binary patch delta 29 lcmZ3*vWjJcD3d5}_G+dJwLMwk6E7}kzfvDxd87URO#rIc4dVa+ delta 29 lcmZ3*vWjJcD3d5x_G+dJwLMwk6E7}kzfvDxd87URO#rHy4d4I( diff --git a/livesupport/modules/htmlUI/var/localizer/.icons/up.jpg b/livesupport/modules/htmlUI/var/localizer/.icons/up.jpg index 4858ef7de54cb09881f0ee5b738c057b15e98ee7..8a9647c0f5ac942e8ba347c4aa634107c1e050b5 100644 GIT binary patch delta 13 UcmZ3&vV>(r4kIJ)03GiHGynhq delta 13 UcmZ3&vV>(r4kIJi03F~2F#rGn