|
Server IP : 10.2.73.233 / Your IP : 216.73.216.59 Web Server : Apache/2.4.59 (Debian) System : Linux polon 4.19.0-27-amd64 #1 SMP Debian 4.19.316-1 (2024-06-25) x86_64 User : www-data ( 33) PHP Version : 5.6.40-64+0~20230107.71+debian10~1.gbp673146 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /home/ifk/web/assets/54b90d07/prado/activecontrols/../../min/prado/ |
| [ Home ] | [ C0mmand ] | [ Upload File ] |
|---|
Function.prototype.bindEvent=function()
{var __method=this,args=$A(arguments),object=args.shift();return function(event)
{return __method.apply(object,[event||window.event].concat(args));}};Class.extend=function(base,definition)
{var component=Class.create();Object.extend(component.prototype,base.prototype);if(definition)
Object.extend(component.prototype,definition);return component;};var Base=function(){if(arguments.length){if(this==window){Base.prototype.extend.call(arguments[0],arguments.callee.prototype);}else{this.extend(arguments[0]);}}};Base.version="1.0.2";Base.prototype={extend:function(source,value){var extend=Base.prototype.extend;if(arguments.length==2){var ancestor=this[source];if((ancestor instanceof Function)&&(value instanceof Function)&&ancestor.valueOf()!=value.valueOf()&&/\bbase\b/.test(value)){var method=value;value=function(){var previous=this.base;this.base=ancestor;var returnValue=method.apply(this,arguments);this.base=previous;return returnValue;};value.valueOf=function(){return method;};value.toString=function(){return String(method);};}
return this[source]=value;}else if(source){var _prototype={toSource:null};var _protected=["toString","valueOf"];if(Base._prototyping)_protected[2]="constructor";var name;for(var i=0;(name=_protected[i]);i++){if(source[name]!=_prototype[name]){extend.call(this,name,source[name]);}}
for(var name in source){if(!_prototype[name]){extend.call(this,name,source[name]);}}}
return this;},base:function(){}};Base.extend=function(_instance,_static){var extend=Base.prototype.extend;if(!_instance)_instance={};Base._prototyping=true;var _prototype=new this;extend.call(_prototype,_instance);var constructor=_prototype.constructor;_prototype.constructor=this;delete Base._prototyping;var klass=function(){if(!Base._prototyping)constructor.apply(this,arguments);this.constructor=klass;};klass.prototype=_prototype;klass.extend=this.extend;klass.implement=this.implement;klass.toString=function(){return String(constructor);};extend.call(klass,_static);var object=constructor?klass:_prototype;if(object.init instanceof Function)object.init();return object;};Base.implement=function(_interface){if(_interface instanceof Function)_interface=_interface.prototype;this.prototype.extend(_interface);};Prado.PostBack=function(event,options)
{var form=$(options['FormID']);var canSubmit=true;if(options['CausesValidation']&&typeof(Prado.Validation)!="undefined")
{if(!Prado.Validation.validate(options['FormID'],options['ValidationGroup'],$(options['ID'])))
return Event.stop(event);}
if(options['PostBackUrl']&&options['PostBackUrl'].length>0)
form.action=options['PostBackUrl'];if(options['TrackFocus'])
{var lastFocus=$('PRADO_LASTFOCUS');if(lastFocus)
{var active=document.activeElement;if(active)
lastFocus.value=active.id;else
lastFocus.value=options['EventTarget'];}}
$('PRADO_POSTBACK_TARGET').value=options['EventTarget'];$('PRADO_POSTBACK_PARAMETER').value=options['EventParameter'];Event.stop(event);Event.fireEvent(form,"submit");$('PRADO_POSTBACK_TARGET').value='';$('PRADO_POSTBACK_PARAMETER').value='';};Prado.Element={setValue:function(element,value)
{var el=$(element);if(el&&typeof(el.value)!="undefined")
el.value=value;},select:function(element,method,value,total)
{var el=$(element);if(!el)return;var selection=Prado.Element.Selection;if(typeof(selection[method])=="function")
{var control=selection.isSelectable(el)?[el]:selection.getListElements(element,total);selection[method](control,value);}},click:function(element)
{var el=$(element);if(el)
el.click();},isDisabled:function(element)
{if(!element.attributes['disabled'])
return false;var value=element.attributes['disabled'].nodeValue;if(typeof(value)=="string")
return value.toLowerCase()=="disabled";else
return value==true;},setAttribute:function(element,attribute,value)
{var el=$(element);if(!el)return;if((attribute=="disabled"||attribute=="multiple"||attribute=="readonly"||attribute=="href")&&value==false)
el.removeAttribute(attribute);else if(attribute.match(/^on/i))
{try
{eval("(func = function(event){"+value+"})");el[attribute]=func;}
catch(e)
{debugger;throw"Error in evaluating '"+value+"' for attribute "+attribute+" for element "+element.id;}}
else
el.setAttribute(attribute,value);},setOptions:function(element,options)
{var el=$(element);if(!el)return;var previousGroup=null;var optGroup=null;if(el&&el.tagName.toLowerCase()=="select")
{while(el.childNodes.length>0)
el.removeChild(el.lastChild);var optDom=Prado.Element.createOptions(options);for(var i=0;i<optDom.length;i++)
el.appendChild(optDom[i]);}},createOptions:function(options)
{var previousGroup=null;var optgroup=null;var result=[];for(var i=0;i<options.length;i++)
{var option=options[i];if(option.length>2)
{var group=option[2];if(group!=previousGroup)
{if(previousGroup!=null&&optgroup!=null)
{result.push(optgroup);previousGroup=null;optgroup=null;}
optgroup=document.createElement('optgroup');optgroup.label=group;previousGroup=group;}}
var opt=document.createElement('option');opt.text=option[0];opt.innerHTML=option[0];opt.value=option[1];if(optgroup!=null)
optgroup.appendChild(opt);else
result.push(opt);}
if(optgroup!=null)
result.push(optgroup);return result;},focus:function(element)
{var obj=$(element);if(typeof(obj)!="undefined"&&typeof(obj.focus)!="undefined")
setTimeout(function(){obj.focus();},100);return false;},replace:function(element,method,content,boundary)
{if(boundary)
{var result=Prado.Element.extractContent(this.transport.responseText,boundary);if(result!=null)
content=result;}
if(typeof(element)=="string")
{if($(element))
method.toFunction().apply(this,[element,""+content]);}
else
{method.toFunction().apply(this,[""+content]);}},appendScriptBlock:function(boundary)
{var content=Prado.Element.extractContent(this.transport.responseText,boundary);if(content==null)
return;var el=document.createElement("script");el.type="text/javascript";el.id='inline_'+boundary;el.text=content;(document.getElementsByTagName('head')[0]||document.documentElement).appendChild(el);el.parentNode.removeChild(el);},extractContent:function(text,boundary)
{var tagStart='<!--'+boundary+'-->';var tagEnd='<!--//'+boundary+'-->';var start=text.indexOf(tagStart);if(start>-1)
{start+=tagStart.length;var end=text.indexOf(tagEnd,start);if(end>-1)
return text.substring(start,end);}
return null;},evaluateScript:function(content)
{try
{content.evalScripts();}
catch(e)
{if(typeof(Logger)!="undefined")
Logger.error('Error during evaluation of script "'+content+'"');else
debugger;throw e;}},setStyle:function(element,styles)
{var s={}
for(var property in styles)
{s[property.camelize()]=styles[property].camelize();}
Element.setStyle(element,s);}};Prado.Element.Selection={isSelectable:function(el)
{if(el&&el.type)
{switch(el.type.toLowerCase())
{case'checkbox':case'radio':case'select':case'select-multiple':case'select-one':return true;}}
return false;},inputValue:function(el,value)
{switch(el.type.toLowerCase())
{case'checkbox':case'radio':return el.checked=value;}},selectValue:function(elements,value)
{elements.each(function(el)
{$A(el.options).each(function(option)
{if(typeof(value)=="boolean")
option.selected=value;else if(option.value==value)
option.selected=true;});})},selectValues:function(elements,values)
{var selection=this;values.each(function(value)
{selection.selectValue(elements,value);})},selectIndex:function(elements,index)
{elements.each(function(el)
{if(el.type.toLowerCase()=='select-one')
el.selectedIndex=index;else
{for(var i=0;i<el.length;i++)
{if(i==index)
el.options[i].selected=true;}}})},selectAll:function(elements)
{elements.each(function(el)
{if(el.type.toLowerCase()!='select-one')
{$A(el.options).each(function(option)
{option.selected=true;})}})},selectInvert:function(elements)
{elements.each(function(el)
{if(el.type.toLowerCase()!='select-one')
{$A(el.options).each(function(option)
{option.selected=!options.selected;})}})},selectIndices:function(elements,indices)
{var selection=this;indices.each(function(index)
{selection.selectIndex(elements,index);})},selectClear:function(elements)
{elements.each(function(el)
{el.selectedIndex=-1;})},getListElements:function(element,total)
{var elements=new Array();var el;for(var i=0;i<total;i++)
{el=$(element+"_c"+i);if(el)
elements.push(el);}
return elements;},checkValue:function(elements,value)
{elements.each(function(el)
{if(typeof(value)=="boolean")
el.checked=value;else if(el.value==value)
el.checked=true;});},checkValues:function(elements,values)
{var selection=this;values.each(function(value)
{selection.checkValue(elements,value);})},checkIndex:function(elements,index)
{for(var i=0;i<elements.length;i++)
{if(i==index)
elements[i].checked=true;}},checkIndices:function(elements,indices)
{var selection=this;indices.each(function(index)
{selection.checkIndex(elements,index);})},checkClear:function(elements)
{elements.each(function(el)
{el.checked=false;});},checkAll:function(elements)
{elements.each(function(el)
{el.checked=true;})},checkInvert:function(elements)
{elements.each(function(el)
{el.checked!=el.checked;})}};Prado.Element.Insert={append:function(element,content)
{$(element).insert(content);},prepend:function(element,content)
{$(element).insert({top:content});},after:function(element,content)
{$(element).insert({after:content});},before:function(element,content)
{$(element).insert({before:content});}};Object.extend(Builder,{exportTags:function()
{var tags=["BUTTON","TT","PRE","H1","H2","H3","BR","CANVAS","HR","LABEL","TEXTAREA","FORM","STRONG","SELECT","OPTION","OPTGROUP","LEGEND","FIELDSET","P","UL","OL","LI","TD","TR","THEAD","TBODY","TFOOT","TABLE","TH","INPUT","SPAN","A","DIV","IMG","CAPTION"];tags.each(function(tag)
{window[tag]=function()
{var args=$A(arguments);if(args.length==0)
return Builder.node(tag,null);if(args.length==1)
return Builder.node(tag,args[0]);if(args.length>1)
return Builder.node(tag,args.shift(),args);};});}});Builder.exportTags();Object.extend(String.prototype,{pad:function(side,len,chr){if(!chr)chr=' ';var s=this;var left=side.toLowerCase()=='left';while(s.length<len)s=left?chr+s:s+chr;return s;},padLeft:function(len,chr){return this.pad('left',len,chr);},padRight:function(len,chr){return this.pad('right',len,chr);},zerofill:function(len){return this.padLeft(len,'0');},trim:function(){return this.replace(/^\s+|\s+$/g,'');},trimLeft:function(){return this.replace(/^\s+/,'');},trimRight:function(){return this.replace(/\s+$/,'');},toFunction:function()
{var commands=this.split(/\./);var command=window;commands.each(function(action)
{if(command[new String(action)])
command=command[new String(action)];});if(typeof(command)=="function")
return command;else
{if(typeof Logger!="undefined")
Logger.error("Missing function",this);throw new Error("Missing function '"+this+"'");}},toInteger:function()
{var exp=/^\s*[-\+]?\d+\s*$/;if(this.match(exp)==null)
return null;var num=parseInt(this,10);return(isNaN(num)?null:num);},toDouble:function(decimalchar)
{if(this.length<=0)return null;decimalchar=decimalchar||".";var exp=new RegExp("^\\s*([-\\+])?(\\d+)?(\\"+decimalchar+"(\\d+))?\\s*$");var m=this.match(exp);if(m==null)
return null;m[1]=m[1]||"";m[2]=m[2]||"0";m[4]=m[4]||"0";var cleanInput=m[1]+(m[2].length>0?m[2]:"0")+"."+m[4];var num=parseFloat(cleanInput);return(isNaN(num)?null:num);},toCurrency:function(groupchar,digits,decimalchar)
{groupchar=groupchar||",";decimalchar=decimalchar||".";digits=typeof(digits)=="undefined"?2:digits;var exp=new RegExp("^\\s*([-\\+])?(((\\d+)\\"+groupchar+")*)(\\d+)"
+((digits>0)?"(\\"+decimalchar+"(\\d{1,"+digits+"}))?":"")
+"\\s*$");var m=this.match(exp);if(m==null)
return null;var intermed=m[2]+m[5];var cleanInput=m[1]+intermed.replace(new RegExp("(\\"+groupchar+")","g"),"")
+((digits>0)?"."+m[7]:"");var num=parseFloat(cleanInput);return(isNaN(num)?null:num);},toDate:function(format)
{return Date.SimpleParse(this,format);}});Object.extend(Event,{OnLoad:function(fn)
{var w=document.addEventListener&&!window.addEventListener?document:window;Event.observe(w,'load',fn);},keyCode:function(e)
{return e.keyCode!=null?e.keyCode:e.charCode},isHTMLEvent:function(type)
{var events=['abort','blur','change','error','focus','load','reset','resize','scroll','select','submit','unload'];return events.include(type);},isMouseEvent:function(type)
{var events=['click','mousedown','mousemove','mouseout','mouseover','mouseup'];return events.include(type);},fireEvent:function(element,type)
{element=$(element);if(type=="submit")
return element.submit();if(document.createEvent)
{if(Event.isHTMLEvent(type))
{var event=document.createEvent('HTMLEvents');event.initEvent(type,true,true);}
else if(Event.isMouseEvent(type))
{var event=document.createEvent('MouseEvents');if(event.initMouseEvent)
{event.initMouseEvent(type,true,true,document.defaultView,1,0,0,0,0,false,false,false,false,0,null);}
else
{event.initEvent(type,true,true);}}
element.dispatchEvent(event);}
else if(document.createEventObject)
{var evObj=document.createEventObject();element.fireEvent('on'+type,evObj);}
else if(typeof(element['on'+type])=="function")
element['on'+type]();}});Object.extend(Date.prototype,{SimpleFormat:function(format,data)
{data=data||{};var bits=new Array();bits['d']=this.getDate();bits['dd']=String(this.getDate()).zerofill(2);bits['M']=this.getMonth()+1;bits['MM']=String(this.getMonth()+1).zerofill(2);if(data.AbbreviatedMonthNames)
bits['MMM']=data.AbbreviatedMonthNames[this.getMonth()];if(data.MonthNames)
bits['MMMM']=data.MonthNames[this.getMonth()];var yearStr=""+this.getFullYear();yearStr=(yearStr.length==2)?'19'+yearStr:yearStr;bits['yyyy']=yearStr;bits['yy']=bits['yyyy'].toString().substr(2,2);var frm=new String(format);for(var sect in bits)
{var reg=new RegExp("\\b"+sect+"\\b","g");frm=frm.replace(reg,bits[sect]);}
return frm;},toISODate:function()
{var y=this.getFullYear();var m=String(this.getMonth()+1).zerofill(2);var d=String(this.getDate()).zerofill(2);return String(y)+String(m)+String(d);}});Object.extend(Date,{SimpleParse:function(value,format)
{var val=String(value);format=String(format);if(val.length<=0)return null;if(format.length<=0)return new Date(value);var isInteger=function(val)
{var digits="1234567890";for(var i=0;i<val.length;i++)
{if(digits.indexOf(val.charAt(i))==-1){return false;}}
return true;};var getInt=function(str,i,minlength,maxlength)
{for(var x=maxlength;x>=minlength;x--)
{var token=str.substring(i,i+x);if(token.length<minlength){return null;}
if(isInteger(token)){return token;}}
return null;};var i_val=0;var i_format=0;var c="";var token="";var token2="";var x,y;var now=new Date();var year=now.getFullYear();var month=now.getMonth()+1;var date=1;while(i_format<format.length)
{c=format.charAt(i_format);token="";while((format.charAt(i_format)==c)&&(i_format<format.length))
{token+=format.charAt(i_format++);}
if(token=="yyyy"||token=="yy"||token=="y")
{if(token=="yyyy"){x=4;y=4;}
if(token=="yy"){x=2;y=2;}
if(token=="y"){x=2;y=4;}
year=getInt(val,i_val,x,y);if(year==null){return null;}
i_val+=year.length;if(year.length==2)
{if(year>70){year=1900+(year-0);}
else{year=2000+(year-0);}}}
else if(token=="MM"||token=="M")
{month=getInt(val,i_val,token.length,2);if(month==null||(month<1)||(month>12)){return null;}
i_val+=month.length;}
else if(token=="dd"||token=="d")
{date=getInt(val,i_val,token.length,2);if(date==null||(date<1)||(date>31)){return null;}
i_val+=date.length;}
else
{if(val.substring(i_val,i_val+token.length)!=token){return null;}
else{i_val+=token.length;}}}
if(i_val!=val.length){return null;}
if(month==2)
{if(((year%4==0)&&(year%100!=0))||(year%400==0)){if(date>29){return null;}}
else{if(date>28){return null;}}}
if((month==4)||(month==6)||(month==9)||(month==11))
{if(date>30){return null;}}
var newdate=new Date(year,month-1,date,0,0,0);return newdate;}});Prado.Effect={Highlight:function(element,options)
{new Effect.Highlight(element,options);}};