moving into a folder as it always should have been

This commit is contained in:
JT Smith 2008-09-28 23:27:44 +00:00
parent 0ba154f8fa
commit 6a2f948c18
7 changed files with 0 additions and 550 deletions

View file

Before

Width:  |  Height:  |  Size: 327 B

After

Width:  |  Height:  |  Size: 327 B

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 626 B

After

Width:  |  Height:  |  Size: 626 B

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 252 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 252 B

View file

@ -1,42 +0,0 @@
<html>
<head>
<script type="text/javascript" src="/extras/yui/build/yahoo/yahoo-min.js"></script>
<script type="text/javascript" src="/extras/yui/build/event/event-min.js"></script>
<script type="text/javascript" src="/extras/yui/build/dom/dom-min.js"></script>
<script type="text/javascript" src="/extras/yui/build/animation/animation-min.js"></script>
<script type="text/javascript" src="/extras/slidePanel/slidePanel.js"></script>
<link type="text/css" href="/extras/slidePanel/slidePanel.css" rel="stylesheet" />
</head>
<body>
<script type="text/javascript">
var slider = new createSlidePanelBar('WebGUIAdminBar');
var panel;
panel = new createPanel('adminconsole','Admin Console');
panel.addLink('/extras/adminConsole/users.gif','Users',"/index.pl/home?op=add");
slider.addPanel(panel);
panel = new createPanel('clipboard','Clipboard');
slider.addPanel(panel);
panel = new createPanel('packages','Packages');
slider.addPanel(panel);
panel = new createPanel('prototypes','Prototypes');
slider.addPanel(panel);
panel = new createPanel('assets','New Content');
panel.addLink('/extras/assets/small/article.gif','Article',"/index.pl/home?op=add");
panel.addLink('/extras/assets/small/article.gif','Collaboration System',"/index.pl/home?op=add");
panel.addLink('/extras/assets/small/article.gif','Rediculously long tile for an asset',"/index.pl/home?op=add");
panel.addLink('/extras/assets/small/article.gif','Article',"/index.pl/home?op=add");
slider.addPanel(panel);
slider.draw();
</script>
</body>
</html>

View file

@ -1,508 +0,0 @@
/* this is a freakesh hack that should only be in place until the new admin console goes in. If you want to see the
* real accorrdion look in the accordion folder */
//add one button to a panel
function sp_addLink(img, label, action) {
this.img.push(img);
this.lbl.push(label);
this.act.push(action);
return this
}
//create one panel
function createPanel(name,caption) {
this.name=name; // panel layer ID
this.caption=caption; // panel caption
this.img=new Array();
this.lbl=new Array();
this.act=new Array();
this.addLink=sp_addLink; // add one button to panel
return this
}
//add one panel to the slider
function sp_addPanel(panel) {
panel.name=this.name+'_panel'+this.panels.length
this.panels[this.panels.length] = panel;
}
var lastAdminBarPanel = 0;
// Draw the slider
function sp_draw() {
document.write('<dl class="accordion-menu">');
for (var i=0; i < this.panels.length; i++) {
document.write('<dt id="wgabdt'+i+'" class="a-m-t">' + this.panels[i].caption + '</dt>');
document.write('<dd class="a-m-d">');
lastAdminBarPanel = i;
for (var j=0; j < this.panels[i].img.length; j++) {
document.write('<a class="link" href="'+ this.panels[i].act[j] +'">');
document.write('<img src="'+this.panels[i].img[j]+'" style="border: 0px; vertical-align: middle;" alt="icon" /> ');
document.write(this.panels[i].lbl[j] + '</a>');
}
document.write('</dd>');
}
document.write('</dl>');
}
/*
//actual panel is saved in a cookie
var cookie = sp_readCookie("slidePanel");
if (cookie)
this.showPanel(cookie);
else
this.showPanel(this.panels.length-1);
*/
function createSlidePanelBar(name) {
//Added to allow support for xhtml transitional
var docElement = document.documentElement;
if (document.compatMode && document.compatMode == "BackCompat") {
docElement = document.body;
}
this.aktPanel=0; // last open panel
this.name=name; // name
this.panels=new Array(); // panels
this.addPanel=sp_addPanel; // add new panel to bar
this.draw=sp_draw; // write HTML code of bar
return this;
}
function sp_createCookie(name,value,days) {
if (days)
{
var date = new Date();
date.setTime(date.getTime()+(days*24*60*60*1000));
var expires = "; expires="+date.toGMTString();
}
else var expires = "";
document.cookie = name+"="+value+expires+"; path=/";
}
function sp_readCookie(name) {
var nameEQ = name + "=";
var ca = document.cookie.split(';');
for(var i=0;i < ca.length;i++)
{
var c = ca[i];
while (c.charAt(0)==' ') c = c.substring(1,c.length);
if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
}
return null;
}
function sp_eraseCookie(name) {
sp_createCookie(name,"",-1);
}
var AccordionMenu = new function()
{
var YUD = YAHOO.util.Dom;
var YUE = YAHOO.util.Event;
var oMenuSetting = {};
var oMenuCache = {};
var dLastHoverTitle ;
YUD.addClass(document.documentElement,'accordion-menu-js');
function getDT(e)
{
var dEl = e.srcElement || e.target;
if( (e.tagName + '').toUpperCase()=='DD' )
{
var dt = e.previousSibling ;
while(dt)
{
if(dt.tagName && dt.tagName.toUpperCase() == 'DT'){break;};
dt = dt.previousSibling
};
if(!dt || dt.tagName.toUpperCase() != 'DT'){return;}
else{return dt};
}
else if(e.clientX)
{
var found = false;
while( dEl.parentNode)
{
if(YUD.hasClass(dEl,'a-m-t')){ found = true ; break;};
dEl = dEl.parentNode;
};
if(!found){return null}
else{return dEl };
};
};
function getDD(dt)
{
if(!dt){return null;};
var dd = dt.nextSibling ;
while(dd)
{
if(dd.tagName && dd.tagName.toUpperCase() == 'DD'){break;};
dd = dd.nextSibling;
};
if(!dd || dd.tagName.toUpperCase() != 'DD'){return;}
else{return dd};
};
function expand(dl,dt,dd)
{
var bodyPanels = YUD.getElementsByClassName("a-m-d", "dd",dl);
var bodyPanelHeight = YUD.getViewportHeight() - (20 * bodyPanels.length) - 5;
dl.hasAnimation +=1;
YUD.addClass(dd,'a-m-d-before-expand');
var oAttr = {height:{from:0,to:bodyPanelHeight }};
YUD.removeClass(dd,'a-m-d-before-expand');
var onComplete = function()
{
oAnim.onComplete.unsubscribe(onComplete);
oAnim.stop();
YUD.removeClass(dd,'a-m-d-anim');
YUD.addClass(dd,'a-m-d-expand');
onComplete = null;
dl.hasAnimation -=1;
var dt = getDT(dd);
YUD.addClass(dt,'a-m-t-expand');
if( oMenuCache[ dl.id ] && oMenuCache[ dl.id ].onOpen && dd.style.height!=bodyPanelHeight + "px" )
{
oMenuCache[ dl.id ].onOpen( {dl:dl,dt:dt,dd:dd} );
};
dd.style.height = bodyPanelHeight + "px";
};
var onTween = function()
{
if(dd.style.height)
{
YUD.addClass(dd,'a-m-d-anim');
oAnim.onTween.unsubscribe(onTween);
onTween = null;
dd.oAnim = null;
};
};
if(dd.oAnim)
{
dd.oAnim.stop();
dd.oAnim = null;
dl.hasAnimation -=1;
};
var oEaseType = YAHOO.util.Easing.easeOut;
var seconds = 0.5;
if(oMenuCache[ dl.id ] )
{
oEaseType = oMenuCache[ dl.id ]['easeOut']?oEaseType:YAHOO.util.Easing.easeIn;
seconds = oMenuCache[ dl.id ]['seconds'];
if( !oMenuCache[ dl.id ]['animation'] )
{
var oAnim = {onComplete:{unsubscribe:function(){}},stop:function(){}};
onComplete();
return;
};
};
var oAnim = new YAHOO.util.Anim(dd,oAttr,seconds ,oEaseType);
oAnim.onComplete.subscribe(onComplete);
oAnim.onTween.subscribe(onTween);
oAnim.animate();
dd.oAnim = oAnim ;
};
function collapse(dl,dt,dd)
{
dl.hasAnimation +=1;
YUD.addClass(dd,'a-m-d-anim');
var oAttr = {height:{from:dd.offsetHeight,to:0}};
var onComplete = function()
{
oAnim.onComplete.unsubscribe(onComplete);
YUD.removeClass(dd,'a-m-d-anim');
YUD.removeClass(dd,'a-m-d-expand');
dd.style.height = '';
dd.oAnim = null;
onComplete = null;
dl.hasAnimation -=1;
var dt = getDT(dd);
YUD.removeClass(dt,'a-m-t-expand');
if( oMenuCache[ dl.id ] && oMenuCache[ dl.id ].onOpen )
{
oMenuCache[ dl.id ].onClose( {dl:dl,dt:dt,dd:dd} );
};
};
if(dd.oAnim)
{
dd.oAnim.stop();
dd.oAnim = null;
dl.hasAnimation -=1;
};
var oEaseType = YAHOO.util.Easing.easeOut;
var seconds = 0.5;
if(oMenuCache[ dl.id ] )
{
oEaseType = oMenuCache[ dl.id ]['easeOut']?oEaseType:YAHOO.util.Easing.easeIn;
seconds = oMenuCache[ dl.id ]['seconds'];
if( !oMenuCache[ dl.id ]['animation'] )
{
var oAnim = {onComplete:{unsubscribe:function(){}},stop:function(){}};
onComplete();
return;
};
};
var oAnim = new YAHOO.util.Anim(dd,oAttr,seconds ,oEaseType);
oAnim.onComplete.subscribe(onComplete);
oAnim.animate();
dd.oAnim = oAnim ;
};
function collapseAll(dl,dt,dd)
{
var aOtherDD = YUD.getElementsByClassName('a-m-d-expand','dd',dl);
for(var i=0;i<aOtherDD.length;i++)
{
var otherDD = aOtherDD[i] ;
if( otherDD !=dd )
{
collapse(dl,null,otherDD);
};
};
}
var onMenuMouseover = function(e)
{
var dMenuTitle = getDT(e);
if(!dMenuTitle){return;};
if(dLastHoverTitle)
{
YUD.removeClass(dLastHoverTitle,'a-m-t-hover');
};
YUD.addClass(dMenuTitle,'a-m-t-hover');
dLastHoverTitle = dMenuTitle ;
YUE.stopEvent(e);
return false;
};
var onMenuMouseout = function(e)
{
var dMenuTitle = getDT(e);
if(!dMenuTitle){return;};
if(dLastHoverTitle && dLastHoverTitle!=dMenuTitle)
{
YUD.removeClass(dLastHoverTitle,'a-m-t-hover');
YUD.removeClass(dLastHoverTitle,'a-m-t-down');
};
YUD.removeClass(dMenuTitle,'a-m-t-down');
YUD.removeClass(dMenuTitle,'a-m-t-hover');
dLastHoverTitle = null ;
YUE.stopEvent(e);
return false;
};
var onMenuMousedown = function(e)
{
var dMenuTitle = getDT(e);
if(!dMenuTitle){return;};
YUD.addClass(dMenuTitle,'a-m-t-down');
YUE.stopEvent(e);
return false;
};
var onMenuClick = function(e)
{
var dt = getDT(e);
if(!dt){return;};
var dd = getDD(dt);
if(!dd){return;};
var dl = dt.parentNode;
if(dl.hasAnimation==null)
{
dl.hasAnimation = 0;
}
if(dl.hasAnimation > 0 ){return;};
YUD.removeClass(dt,'a-m-t-down');
if(YUD.hasClass(dd,'a-m-d-expand'))
{
collapse(dl,dt,dd);
}
else
{
if( oMenuCache[ dl.id ] && oMenuCache[ dl.id ].dependent == false ){}
else{collapseAll(dl,dt,dd);}
expand(dl,dt,dd);
};
YUE.stopEvent(e);
return false;
};
YUE.addListener( document,'mouseover',onMenuMouseover);
YUE.addListener( document,'mouseout',onMenuMouseout);
YUE.addListener( document,'mousedown',onMenuMousedown);
YUE.addListener( document,'click',onMenuClick);
this.openDtById = function(sId)
{
var dt = document.getElementById(sId);
if(!dt){return;};
if(!YUD.hasClass(dt,'a-m-t')){return;};
var dl = dt.parentNode;
var dd = getDD(dt);
if(dl.hasAnimation==null){dl.hasAnimation = 0;};
if(dl.hasAnimation > 0 ){return;};
if(YUD.hasClass(dd,'a-m-d-expand')){return;};
if( oMenuCache[ dl.id ] && oMenuCache[ dl.id ].dependent == false ){}
else{collapseAll(dl,dt,dd);}
expand(dl,dt,dd);
};
this.closeDtById = function(sId)
{
var dt = document.getElementById(sId);
if(!dt){return;};
if(!YUD.hasClass(dt,'a-m-t')){return;};
var dl = dt.parentNode;
var dd = getDD(dt);
if(dl.hasAnimation==null){dl.hasAnimation = 0;};
if(dl.hasAnimation > 0 ){return;};
if(!YUD.hasClass(dd,'a-m-d-expand')){return;};
collapse(dl,dt,dd);
};
this.setting = function(id,oOptions)
{
if( !oOptions ){return;};
if( typeof(id)!='string' ){return;};
var setMunu = function(dl)
{
dl = dl || this;
dl.hasAnimation = 0;
oMenuCache[ dl.id ] =
{
element:dl,
dependent:true,
onOpen:function(){},
onClose:function(){},
seconds:0.5,
easeOut:true,
openedIds:[],
animation:true
};
oMenu = oMenuCache[ dl.id ] ;
if(typeof(oOptions['animation'])=='boolean')
{
oMenu['animation'] = !!oOptions['animation'];
};
if(typeof(oOptions['dependent'])=='boolean')
{
oMenu['dependent'] = !!oOptions['dependent'];
};
if(typeof(oOptions['easeOut'])=='boolean')
{
oMenu['easeOut'] = !!oOptions['easeOut'];
};
if(typeof(oOptions['seconds'])=='number')
{
oMenu['seconds'] = Math.max(0 , oOptions['seconds'] );
};
if(typeof(oOptions['onOpen'])=='function')
{
oMenu['onOpen'] = oOptions['onOpen'];
};
if(typeof(oOptions['onClose'])=='function')
{
oMenu['onClose'] = oOptions['onClose'];
};
if(oOptions['openedIds'].shift)
{
oMenu['openedIds'] = oOptions['openedIds'];
};
for(var i=0;i<oMenu['openedIds'].length;i++)
{
var sId = oMenu['openedIds'][i];
var dt = document.getElementById( sId );
if(dt && dt.tagName.toUpperCase() == 'DT')
{
var dl = dt.parentNode;
var dd = getDD(dt);
expand(dl,dt,dd);
}
else if(!dt)
{
function onDtAvailable()
{
var dt = this;
if(dt.tagName.toUpperCase() == 'DT')
{
var dl = dt.parentNode;
var dd = getDD(dt);
expand(dl,dt,dd);
};
};
YUE.onAvailable(sId,onDtAvailable);
}
};
};
if(document.getElementById(id))
{
setMunu(document.getElementById(id))
}
else
{
YUE.onAvailable(id,setMunu);
};
};
};
YAHOO.util.Event.on(window, "load", function () {
document.body.style.marginLeft = "160px";
AccordionMenu.openDtById("wgabdt"+lastAdminBarPanel);
});