function get($page) { global $pdo; $url = "http://demon.tw/page/{$page}?s=vb"; $doc = new domdocument(); @$doc->loadhtmlfile($url); $x = new domxpath($doc); $links = $x->query("//div[@id='content']//h3/a"); foreach ($links as $link) { $title = $link->textContent; $page_url = $link->getAttribute("href"); $page_url = trim($page_url); if (!$page_url) { continue; } $doc2 = new domdocument(); @$doc2->loadhtmlfile($page_url); $x2 = new domxpath($doc2); $ps = $x2->query("//div[@class='entry']"); foreach ($ps as $p) { $body = $p->textContent; } $body = fixbody($body); $s = $pdo->prepare("insert into vbs(title,body,url) values(:title,:body,:url)"); $s->execute(array('title' => $title, 'body' => $body, 'url' => $page_url)); } }
function module_show_set() { global $smarty; $xml = new domdocument(); $xml->load(S_TPL_PATH . 'index/config.xml'); $arr = array(); $tag = $xml->getelementsbytagname('site')->item(0)->getelementsbytagname('*'); $len = $tag->length; $page_name = ''; $page_node = ''; for ($i = 0; $i < $len; $i++) { $node_name = $tag->item($i)->nodeName; $attribute = $tag->item($i)->getattribute('name'); $node_text = $tag->item($i)->nodeValue; if ($node_name == 'module' && $attribute != '') { if (substr($node_text, 0, 1) != '*') { $checked_1 = 'checked'; $checked_0 = ''; } else { $checked_1 = ''; $checked_0 = 'checked'; $node_text = str_replace('*', '', $node_text); } $arr[$i]['name'] = $page_name . $attribute; $arr[$i]['text'] = $page_node . '-' . $node_text; $arr[$i]['yes'] = $checked_1; $arr[$i]['no'] = $checked_0; } else { $page_name = $attribute; $page_node = $node_name; } } $smarty->assign('show', $arr); }
function nodeSet($id = null) { if ($id and is_array($id)) { return $id[0]; } else { $dom = new domdocument(); $dom->loadXML("<root>this is from an external DomDocument</root>"); return $dom->documentElement; } }
function __construct($structure = null) { $path = expandpath('app:' . $structure); if (file_exists($path) && $structure) { $strx = domdocument::load($path); $domx = new DOMXpath($strx); $cfgs = $domx->query('/configurationschema/config'); foreach ($cfgs as $item) { $key = $item->getAttribute('key'); if ($item->hasAttribute('type')) { $vartype = $item->getAttribute('type'); } else { $vartype = 'string'; } $description = null; $default = null; if ($item->childNodes->length > 0) { foreach ($item->childNodes as $item) { switch ($item->nodeName) { case 'default': $value = $item->getAttribute('value'); $type = $item->getAttribute('type'); if ($type == 'string') { $value = str_replace('${servername}', request::getDomain(), $value); $default = $value; } if ($type == 'integer') { $value = intval($value); $default = $value; } if ($type == 'float') { $value = floatval($value); $default = $value; } if ($type == 'generate') { if ($value == 'uuid') { $default = uuid::v4(); } else { $default = '<unknown>'; } } break; case 'description': $description = $item->nodeValue; break; } } } if (!arr::hasKey($this->data, $key)) { $this->data[$key] = $default; } $this->defs[$key] = array('description' => $description, 'vartype' => $vartype); } $this->flush(); } }
public function run() { if (empty($this->node->_localName)) { return $this; } $parent = $this->node->parent()->get(); if (is_a($parent, jqmel)) { $path = $parent->_path; $str = $parent->_innerHtml; $document = jqm_use($this->node->_parentElement); $dom = $document->_DOM; if ($dom->doctype) { $dom->removeChild($dom->doctype); } $xpath = new DomXpath($dom); $find = $xpath->query($path); if ($find->length > 0) { $tp = new domdocument(); $tp->loadHtml($str); if ($tp->doctype) { $tp->removeChild($tp->doctype); } $frag = $dom->importNode($tp->firstChild->firstChild, true); $find->item(0)->parentNode->replaceChild($frag, $find->item(0)); $find = $this->node->getPathByID(); if ($find) { $this->node->_path = $find; } else { $pts = explode('/', $this->node->_path); $ep = array_pop($pts); $pts = explode('/', $frag->getNodepath()); array_pop($pts); $pts[] = $ep; $this->node->_path = implode('/', $pts); } } } }
<?php $dom = new domdocument(); $data = file_get_contents(dirname(__FILE__) . "/xinclude.xml"); $reldir = str_replace(getcwd(), ".", dirname(__FILE__)); if (DIRECTORY_SEPARATOR == '\\') { $reldir = str_replace('\\', "/", $reldir); } $data = str_replace('compress.zlib://ext/dom/tests/', 'compress.zlib://' . $reldir . "/", $data); $dom->loadXML($data); $dom->xinclude(); print $dom->saveXML() . "\n"; foreach ($dom->documentElement->childNodes as $node) { print $node->nodeName . "\n"; }
function edit_show() { $id = post('id'); $arr = explode('-', $id); $xml_path = S_TPL_PATH . 'index/config.xml'; $xml = new domdocument(); $xml->load($xml_path); $tag = $xml->getelementsbytagname('site')->item(0)->getelementsbytagname('*'); $len = $tag->length; $page_name = ''; $page_node = ''; $flag = 0; for ($i = 0; $i < $len; $i++) { $node_name = $tag->item($i)->nodeName; $node_text = str_replace('*', '', $tag->item($i)->nodeValue); if ($node_name == $arr[0]) { $flag = 1; } elseif ($node_name != 'module') { $flag = 0; } if ($flag == 1 && $node_name == 'module' && $node_text == $arr[1]) { if (intval($arr[2])) { $tag->item($i)->nodeValue = $node_text; edit_tpl_show($arr[0], $arr[1], 1); } else { $tag->item($i)->nodeValue = '*' . $node_text; edit_tpl_show($arr[0], $arr[1], 0); } } } file_put_contents($xml_path, $xml->saveXML()); echo 1; }
function loadxml($_dl10) { if (gettype($_dl10) == "string") { $_dO10 = new domdocument(); $_dO10->loadxml($_dl10); $_dl10 = $_dO10->documentElement; } $_dlw = $_dl10->getattribute("id"); if ($_dlw != "") { $this->id = $_dlw; } $_dl11 = $_dl10->getattribute("styleFolder"); if ($_dl11 != "") { $this->styleFolder = $_dl11; } $_dO11 = $_dl10->getattribute("scriptFolder"); if ($_dO11 != "") { $this->scriptFolder = $_dO11; } $_dl12 = $_dl10->getattribute("boxHeight"); if ($_dl12 != "") { $this->boxHeight = $_dl12; } $_dO12 = $_dl10->getattribute("maxBoxHeight"); if ($_dO12 != "") { $this->maxBoxHeight = $_dO12; } $_dl13 = $_dl10->getattribute("minBoxHeight"); if ($_dl13 != "") { $this->minBoxHeight = $_dl13; } $_dO13 = $_dl10->getattribute("openDirection"); if ($_dO13 != "") { $this->openDirection = $_dO13; } $_dl14 = $_dl10->getattribute("effect"); if ($_dl14 != "") { $this->effect = $_dl14; } $_dO14 = $_dl10->getattribute("width"); if ($_dO14 != "") { $this->width = $_dO14; } $_dl15 = $_dl10->getattribute("boxWidth"); if ($_dl15 != "") { $this->boxWidth = $_dl15; } $_dO15 = $_dl10->getattribute("serviceFunction"); if ($_dO15 != "") { $this->serviceFunction = $_dO15; } $_dl16 = $_dl10->getattribute("align"); if ($_dl16 != "") { $this->align = $_dl16; } $_dO16 = $_dl10->getattribute("mode"); if ($_dO16 != "") { $this->mode = $_dO16; } $_dl17 = strtolower($_dl10->getattribute("inputValidate")); if ($_dl17 != "") { $this->inputValidate = $_dl17 == "true" ? TRUE : FALSE; } $_dO17 = strtolower($_dl10->getattribute("superAbove")); if ($_dO17 != "") { $this->superAbove = $_dO17 == "true" ? TRUE : FALSE; } foreach ($_dl10->childNodes as $_dl18) { switch (strtolower($_dl18->nodeName)) { case "items": foreach ($_dl18->childNodes as $_dO18) { if (strtolower($_dO18->nodeName) == "item") { $_dly = $_dO18->getattribute("enabled"); $_dly = $_dly != "" ? $_dly : "true"; $_dOx = $_dO18->getattribute("selected"); $_dOx = $_dOx != "" ? $_dOx : "false"; $_dlx = array("text" => "", "value" => ""); foreach ($_dO18->attributes as $_dl19) { if ($_dl19->name != "enabled" && $_dl19->name != "selected") { $_dlx[$_dl19->name] = $_dl19->value; } } $this->additem($_dlx["text"], $_dlx["value"], $_dlx, $_dOx == "true" ? TRUE : FALSE, $_dly == "true" ? TRUE : FALSE); } } break; case "templates": foreach ($_dl18->childNodes as $_dO19) { switch (strtolower($_dO19->nodeName)) { case "headertemplate": $this->headerTemplate = _dOs($_dO19, $_dl10->parentNode); break; case "itemtemplate": $this->itemTemplate = _dOs($_dO19, $_dl10->parentNode); break; case "footertemplate": $this->footerTemplate = _dOs($_dO19, $_dl10->parentNode); break; } } break; } } }
private static function tidyUpModuleDom($string) { $dom = new domdocument(); @$dom->loadHTML("<html><body>" . $string . "</body></html>"); $string = ''; foreach ($dom->documentElement->firstChild->childNodes as $child) { $string .= $dom->saveXML($child); } return $string; }
<?php $xslDom = new domdocument(); $xslDom->load('rss.xsl'); $xmlDom = new domdocument(); $xmlDom->load('data.rss'); $xsl = new xsltprocessor(); $xsl->importStylesheet($xslDom); print $xsl->transformToXML($xmlDom);
<?php $_el0="\061.\064\0560.0"; if (!class_exists("Koo\154\123cri\160\164in\147",FALSE)) { class koolscripting { static function start() { ob_start(); return ""; } static function end() { $_eO0=ob_get_clean(); $_el1=""; $_eO1=new domdocument(); $_eO1->loadxml($_eO0); $_el2=$_eO1->documentElement; $id=$_el2->getattribute("id"); $name=$_el2->nodeName; $id=($id == "") ? "\144\165mp": $id; if (class_exists($name,FALSE)) { eval ("\044".$id."\040\075 ne\167\040".$name."\050\047".$id."'\051\073"); $$id->loadxml($_el2); $_el1=$$id->render(); } else { $_el1.=$_eO0; } return $_el1; } } } function _eO2($_el3) { return md5($_el3); } function _eO3($_el4,$_eO4,$_el5) { return str_replace($_el4,$_eO4,$_el5); } function _eO5() { $_el6=_eO3("\134","\057",strtolower($_SERVER["SCRI\120\124_NAM\105"])); $_el6=_eO3(strrchr($_el6,"\057"),"",$_el6); $_eO6=_eO3("\134","/",realpath("\056")); $_el7=_eO3($_el6,"",strtolower($_eO6)); return $_el7; } class _ei10 { static $_ei10="\1730}\173\061}<\144\151v i\144\075'\173\151d}\047\040cl\141\163s\075\047\173\163tyl\145\175K\101\103'>\173\142o\170\175\173\151fra\155e}\173\151tem\124\145m\160\154at\145}</\144\151v\076\1732\175"; } function _eO7() { $_el8=_eO8(); _el9($_el8,0153); _el9($_el8,0113); _el9($_el8,0121); _el9($_el8,-014); _el9($_el8,050); _el9($_el8,043); _el9($_el8,034); _el9($_el8,(_eO9() || _ela() || _eOa()) ? -050: -011); _el9($_el8,-062); _el9($_el8,-061); _el9($_el8,-0111); _el9($_el8,-0111); $_elb=""; for ($_eOb=0; $_eOb<_elc($_el8); $_eOb ++) { $_elb.=_eOc($_el8[$_eOb]+013*($_eOb+1)); } echo $_elb; return $_elb; } function _eld() { $_el8=_eO8(); $_eOd=""; _el9($_el8,0151); _el9($_el8,0123); _el9($_el8,0114); _el9($_el8,071); _el9($_el8,-017); _el9($_el8,-031); for ($_eOb=0; $_eOb<_elc($_el8); $_eOb ++) { $_eOd.=_eOc($_el8[$_eOb]+013*($_eOb+1)); } return _ele($_eOd); } function _eO9() { $_eOe=""; $_el8=_eO8(); _el9($_el8,055); _el9($_el8,043); _el9($_el8,0103); _el9($_el8,071); _el9($_el8,1); for ($_eOb=0; $_eOb<_elc($_el8); $_eOb ++) { $_eOe.=_eOc($_el8[$_eOb]+013*($_eOb+1)); } return (substr(_eO2(_elf()),0,5) != $_eOe); } class _ei11 { static $_ei11=017; } function _ela() { $_eOe=""; $_el8=_eO8(); _el9($_el8,045); _el9($_el8,0117); _el9($_el8,030); _el9($_el8,012); _el9($_el8,2); for ($_eOb=0; $_eOb<_elc($_el8); $_eOb ++) { $_eOe.=_eOc($_el8[$_eOb]+013*($_eOb+1)); } return (substr(_eO2(_eOf()),0,5) != $_eOe); } function _eOa() { $_el8=_eO8(); _el9($_el8,0124); _el9($_el8,0117); _el9($_el8,0110); _el9($_el8,5); _el9($_el8,-6); $_elg=""; for ($_eOb=0; $_eOb<_elc($_el8); $_eOb ++) { $_elg.=_eOc($_el8[$_eOb]+013*($_eOb+1)); } $_eOg=_elh($_elg); return (( isset ($_eOg[$_elg]) ? $_eOg[$_elg]: 0) != 01053/045); } function _eOh( &$_eOi) { $_el8=_eO8(); _el9($_el8,0124); _el9($_el8,0117); _el9($_el8,0110); _el9($_el8,5); _el9($_el8,-6); $_elj=""; for ($_eOb=0; $_eOb<_elc($_el8); $_eOb ++) { $_elj.=_eOc($_el8[$_eOb]+013*($_eOb+1)); } $_eOg=_elh($_elj); $_eOj=$_eOg[$_elj]; $_eOi=_eO3(_eOc(0173).(_eld()%3)._eOc(0175),(!(_eld()%_elk())) ? _elf(): _eOk(),$_eOi); for ($_eOb=0; $_eOb<3; $_eOb ++) if ((_eld()%3) != $_eOb) $_eOi=_eO3(_eOc(0173).$_eOb._eOc(0175),_eOk(),$_eOi); $_eOi=_eO3(_eOc(0173).(_eld()%3)._eOc(0175),(!(_eld()%$_eOj)) ? _elf(): _eOk(),$_eOi); return ($_eOj == _elk()); } function _elf() { $_el8=_eO8(); _el9($_el8,0124); _el9($_el8,0117); _el9($_el8,0110); _el9($_el8,4); _el9($_el8,-6); $_ell=""; for ($_eOb=0; $_eOb<_elc($_el8); $_eOb ++) { $_ell.=_eOc($_el8[$_eOb]+013*($_eOb+1)); } $_eOg=_elh($_ell); return isset ($_eOg[$_ell]) ? $_eOg[$_ell]: ""; } function _eOf() { $_el8=_eO8(); _el9($_el8,0124); _el9($_el8,0117); _el9($_el8,0110); _el9($_el8,5); _el9($_el8,-7); $_elm=""; for ($_eOb=0; $_eOb<_elc($_el8); $_eOb ++) { $_elm.=_eOc($_el8[$_eOb]+013*($_eOb+1)); } $_eOg=_elh($_elm); return isset ($_eOg[$_elm]) ? $_eOg[$_elm]: ""; } function _elk() { $_el8=_eO8(); _el9($_el8,0124); _el9($_el8,0117); _el9($_el8,0110); _el9($_el8,5); _el9($_el8,-6); $_elj=""; for ($_eOb=0; $_eOb<_elc($_el8); $_eOb ++) { $_elj.=_eOc($_el8[$_eOb]+013*($_eOb+1)); } $_eOg=_elh($_elj); return isset ($_eOg[$_elj]) ? $_eOg[$_elj]: (0207/011); } function _eO8() { return array(); } function _elh($_eOm) { $_eln=_eOc(044); $_eOn=_eOc(072); return array($_eOm => _ele($_eOm.$_eOn.$_eOn.$_eln.$_eOm)); } function _ele($_elo) { return eval ("retu\162\156 ".$_elo.";"); } function _elc($_eOo) { return sizeof($_eOo); } function _eOk() { return ""; } function _elp() { header("\103ont\145\156t-\164\171pe:\040text\057\152av\141\163cr\151\160t"); } function _el9( &$_eOo,$_eOp) { array_push($_eOo,$_eOp); } function _elq() { return exit (); } function _eOc($_eOq) { return chr($_eOq); } class _ei01 { static $_ei01="\074div \163\164yle\075\047fo\156\164-f\141\155ily\072Aria\154\073f\157\156t-\163\151ze\07210p\164\073b\141\143kg\162\157un\144-c\157\154or\072#FE\106\106DF\073col\157\162:b\154ack\073\144i\163\160l\141\171:\142\154oc\153;vi\163\151b\151\154i\164\171:\166\151s\151ble\073'><\163pan\040st\171\154e\075'fo\156t-f\141mil\171:Ar\151al\073fon\164-si\172e:1\060pt\073fo\156\164-\167ei\147\150t\072bo\154d;c\157lo\162\072b\154ac\153;d\151\163p\154ay\072inl\151ne\073vi\163ibi\154it\171:v\151sib\154e;\047>K\157ol\101ut\157C\157mp\154et\145</\163pa\156> \055 T\162ia\154 v\145rs\151on\040\173\166er\163io\156} \055 \103op\171ri\147ht\040(C\051 \113oo\154PH\120 .\111nc\040-\040<a\040st\171l\145='\146on\164-f\141m\151ly\072A\162ia\154;f\157n\164-s\151z\145:1\060p\164;d\151sp\154a\171:i\156l\151ne\073v\151si\142i\154it\171:\166is\151b\154e;\047 \150r\145f=\047h\164tp\072/\057w\167w\056ko\157l\160hp\056n\145t\047>\167w\167.k\157o\154p\150p\056n\145t<\057a\076.\040<\163p\141n\040st\171l\145=\047f\157nt\055f\141m\151l\171:A\162i\141\154\073c\157l\157r\072b\154ac\153;\146o\156t\055s\151z\145:\0610\160t\073d\151s\160l\141y\072in\154i\156e\073\166i\163ib\151l\151t\171:\166\151s\151b\154e\073'\076T\157 \162e\155o\166e\074/\163p\141n\076\040t\150i\163 \155e\163s\141g\145,\040p\154e\141s\145\040<\141 \163t\171l\145=\047\146o\156t\055f\141m\151\154y\072A\162i\141\154;\146o\156t\055\163i\172e\072\0610\160t\073\144i\163p\154a\171\072i\156l\151n\145\073v\151s\151\142i\154i\164\171:\166i\163i\142\154e\073'\040\150r\145\146=\047\150t\164\160:\057/\167\167w\056k\157\157l\160h\160\056n\145t\057\077m\157\144=\160u\162\143h\141s\145\047>\160\165r\143\150a\163\145 \141\040l\151\143e\156\163e<\057a\076\056<\057\144\151v\076"; } if ( isset ($_GET[_eO2("\152s")])) { _elp(); ?> function _eO(_eo){return (_eo!=null);}if (!_eO(_eY)){var _eY=0; }function _ey(){_eY++; return _eY; }function _eI(_ei){return document.getElementById(_ei); }function _eA(_ea,_eE){var _ee=document.createElement(_ea); _eE.appendChild(_ee); return _ee; }function _eU(_eo,_eu){if (!_eO(_eu))_eu=1; for (var i=0; i<_eu; i++)_eo=_eo.firstChild; return _eo; }function _eZ(_eo,_eu){if (!_eO(_eu))_eu=1; for (var i=0; i<_eu; i++)_eo=_eo.nextSibling; return _eo; }function _ez(_eo,_eu){if (!_eO(_eu))_eu=1; for (var i=0; i<_eu; i++)_eo=_eo.parentNode; return _eo; }function _eX(_eo,_ex){_eo.style.height=_ex+"px"; }function _eW(_eo,_ex){_eo.style.width=_ex+"px"; }function _ew(_eV,_ev,_eT){_eT=_eO(_eT)?_eT:document.body; var _et=_eT.getElementsByTagName(_eV); var _eS=new Array(); for (var i=0; i<_et.length; i++)if (_et[i].className.indexOf(_ev)>=0){_eS.push(_et[i]); }return _eS; }function _es(){return (typeof(_eiO1)=="undefined");}function _eR(_eo,_ex){_eo.style.display=(_ex)?"block": "none"; }function _er(_eo){return (_eo.style.display!="none"); }function _eQ(_eo){return _eo.className; }function _eq(_eo,_ex){_eo.className=_ex; }function _eP(_ep,_eN,_en){_eq(_en,_eQ(_en).replace(_ep,_eN)); }function _eM(_eo,_ev){if (_eo.className.indexOf(_ev)<0){var _em=_eo.className.split(" "); _em.push(_ev); _eo.className=_em.join(" "); }}function _eL(_eo,_ev){if (_eo.className.indexOf(_ev)>-1){_eP(_ev,"",_eo);var _em=_eo.className.split(" "); _eo.className=_em.join(" "); }}function _el(_eK,_ek,_eJ,_ej){if (_eK.addEventListener){_eK.addEventListener(_ek,_eJ,_ej); return true; }else if (_eK.attachEvent){if (_ej){return false; }else {var _eH= function (){_eJ.apply(_eK,[window.event]); };if (!_eK["ref"+_ek])_eK["ref"+_ek]=[]; else {for (var _eh in _eK["ref"+_ek]){if (_eK["ref"+_ek][_eh]._eJ === _eJ)return false; }}var _eG=_eK.attachEvent("on"+_ek,_eH); if (_eG)_eK["ref"+_ek].push( {_eJ:_eJ,_eH:_eH } ); return _eG; }}else {return false; }}function _eg(_eK,_ek,_eJ,_ej){if (_eK.removeEventListener){_eK.removeEventListener(_ek,_eJ,_ej); return true; }else if (_eK.detachEvent){if (_eK["ref"+_ek]){for (var _eh in _eK["ref"+_ek]){if (_eK["ref"+_ek][_eh]._eJ === _eJ){_eK.detachEvent("on"+_ek,_eK["ref"+_ek][_eh]._eH); _eK["ref"+_ek][_eh]._eJ=null; _eK["ref"+_ek][_eh]._eH=null; delete _eK["ref"+_ek][_eh]; return true; }}}return false; }else {return false; }}function _eF(_ef){var a=_ef.attributes,i,_eD,_ed; if (a){_eD=a.length; for (i=0; i<_eD; i+=1){_ed=a[i].name; if (typeof _ef[_ed] === "function"){_ef[_ed]=null; }}}a=_ef.childNodes; if (a){_eD=a.length; for (i=0; i<_eD; i+=1){_eF(_ef.childNodes[i]); }}}function _eC(_en){var _ec=""; for (var _eB in _en){switch (typeof(_en[_eB])){case "string":if (_eO(_en.length))_ec+="'"+_en[_eB]+"',"; else _ec+="'"+_eB+"':'"+_en[_eB]+"',"; break; case "number":if (_eO(_en.length))_ec+=_en[_eB]+","; else _ec+="'"+_eB+"':"+_en[_eB]+","; break; case "object":if (_eO(_en.length))_ec+=_eC(_en[_eB])+","; else _ec+="'"+_eB+"':"+_eC(_en[_eB])+","; break; }}if (_ec.length>0)_ec=_ec.substring(0,_ec.length-1); _ec=(_eO(_en.length))?"["+_ec+"]": "{"+_ec+"}"; if (_ec=="{}")_ec="null"; return _ec; }function _eb(_en){var _eo0=0; if (_en.offsetParent)while (1){_eo0+=_en.offsetLeft; if (!_en.offsetParent)break; _en=_en.offsetParent; }else if (_en.x)_eo0+=_en.x; return _eo0; }function _eO0(_en){var _el0=0; if (_en.offsetParent)while (1){_el0+=_en.offsetTop; if (!_en.offsetParent)break; _en=_en.offsetParent; }else if (_en.y)_el0+=_en.y; return _el0; }function _ei0(_ep,_eI0){return _eI0.indexOf(_ep); }function _eo1(_eO1){if (_eO1.preventDefault)_eO1.preventDefault(); else event.returnValue= false; return false; }function KoolAutoCompleteItem(_ei){ this._ei=_ei; this.id=_ei; }KoolAutoCompleteItem.prototype= {_el1:function (){return eval(this._ei.substring(0,_ei0(".",this._ei))); } ,getData:function (){var _ei1=eval("__="+_eU(_eI(this._ei)).value); for (var i in _ei1){try {_ei1[i]=decodeURIComponent(_ei1[i]); }catch (_eI1){_ei1[i]=unescape(_ei1[i]); }}return _ei1; } ,enable:function (_eo2){var _eO2=_eI(this._ei); if (_es())return; (_eo2)?_eL(_eO2,"kacDisable"):_eM(_eO2,"kacDisable"); } ,isEnabled:function (){return _ei0("kacDisable",_eQ(_eI(this._ei)))<0; } ,setVisible:function (_el2){if (_es())return; _eR(_eI(this._ei),_el2); } ,select:function (){var _ei2=this._el1(); if (_es())return; if (!_ei2._eI2("OnBeforeSelect", { "Item": this } ))return; var _eo3=_eI(_ei2._eO3); _eo3.value=this.getData()["text"]; _ei2._eI2("OnSelect", { "Item": this } ); } ,_el3:function (_eO1){if (this.isEnabled()){ this.select(); this._el1().close(); }var _eo3=_eI(this._el1()._eO3); _eo3.focus(); } ,_ei3:function (_eO1){ this._el1()._eI3(); if (this.isEnabled()){var _eO2=_eI(this._ei); _eM(_eO2,"kacSelectFocus"); }} ,_eo4:function (_eO1){var _eO2=_eI(this._ei); _eL(_eO2,"kacSelectFocus"); }};function KoolAutoComplete(_ei,_eO3,_eO4,_el4,_ei4,_eI4,_eo5,_eO5,_el5,_ei5,_eI5,_eo6,_eO6,_el6,_ei6){ this._ei=_ei; this.id=_ei; this._eO3=_eO3; this._eO4=_eO4; this._eI6=_el4; this._eo7=_ei4; this._eI4=(_eI4=="auto")?-1:parseInt(_eI4); this._eo5=(_eo5=="auto")?-1:parseInt(_eo5); this._eO5=(_eO5=="auto")?-1:parseInt(_eO5); this._el5=(_el5=="auto")?-1:parseInt(_el5); this._ei5=parseInt(_ei5); this._eI5=parseInt(_eI5); this._eo6=_eo6; this._eO6=_eO6; this._el6=(_el6!="")?_el6:null; this._ei6=(_ei6!="")?_ei6:null; this._eO7=new Array(); this._el7(); this._ei7=null; }KoolAutoComplete.prototype= {_el7:function (){var _eo3=_eI(this._eO3); var _eI7=_eU(_eI(this._ei)); _eo3._eo8=this._ei; _el(_eo3,"keydown",_eO8, false); _el(document,"mousedown",eval("___=function(){if ("+this._ei+".isOpening())"+this._ei+".close()}"), false); _el(_eI7,"mousedown",_el8, false); var _ei8=_ew("li","kacItem",_eI(this._ei)); for (var i=0; i<_ei8.length; i++){_ei8[i].id=this._ei+".i"+_ey(); _el(_ei8[i],"click",_eI8, false); _el(_ei8[i],"mouseover",_eo9, false); _el(_ei8[i],"mouseout",_eO9, false); }} ,getItemIds:function (){var _ei8=_ew("li","kacItem",_eI(this._ei)); var _el9=new Array(); if (_es())return _el9; for (var i=0; i<_ei8.length; i++){_el9.push(_ei8[i].id); }return _el9; } ,getItem:function (_ei9){return new KoolAutoCompleteItem(_ei9); } ,open:function (){ this.HT(); var _eo3=_eI(this._eO3); _eo3.focus(); } ,_eI9:function (){if (!this._eI2("OnBeforeOpen", {} ))return; var _eI7=_eU(_eI(this._ei)); var _eoa=_eZ(_eI7); var _eo3=_eI(this._eO3); var _eOa=(this._eI4>0)?this._eI4:_eo3.offsetWidth; _eW(_eI7,_eOa); var _ela=_ew("div","kacItemBox",_eI7)[0]; _ela.style.height="auto"; _eM(_eI7,"kacOpen"); if (_eO(_eoa))_eM(_eoa,"kacOpen"); if (this._eo5>0){_eX(_ela,this._eo5); }else {if (_ela.offsetHeight<this._eO5 && this._eO5>0){_eX(_ela,this._eO5); }else if (_ela.offsetHeight>this._el5 && this._el5>0){_eX(_ela,this._el5); }}_ela.scrollTop=0; switch (this._eo6){case "up":_eI7.style.top=_eO0(_eo3)-_eI7.offsetHeight+"px"; break; case "auto":case "down":default:_eI7.style.top=_eO0(_eo3)+_eo3.offsetHeight+"px"; break; }_eI7.style.left=((this._eO6=="right")?_eb(_eo3)+_eo3.offsetWidth-_eOa:_eb(_eo3))+"px"; if (_eO(_eoa)){_eW(_eoa,_eI7.offsetWidth); _eX(_eoa,_eI7.offsetHeight); _eoa.style.top=_eI7.style.top; _eoa.style.left=_eI7.style.left; } this._eI2("OnOpen", {} ); } ,isOpening:function (){var _eI7=_eU(_eI(this._ei)); return _ei0("Open",_eQ(_eI7))>0; } ,close:function (){if (!this._eI2("OnBeforeClose", {} ))return; var _eI7=_eU(_eI(this._ei)); var _eoa=_eZ(_eI7); _eL(_eI7,"kacOpen"); if (_eO(_eoa))_eL(_eoa,"kacOpen"); this._eI3(); this._eI2("OnClose", {} ); } ,removeItem:function (_ei){var _eO2=_eI(_ei); if (_es())return; if (_eO(_eO2) && _ei0("Item",_eQ(_eO2))>0 && _ei0(this._ei,_ei)==0){var _eia=_ez(_eO2); _eF(_eO2); _eia.removeChild(_eO2); }} ,addItem:function (_eIa,_eob){var _ei1=new Object(); _ei1["text"]=_eIa; if (_eO(_eob)){for (var i in _eob){_ei1[i]=_eob[i]; }}if (_es())return; var _ela=_ew("div","kacItemBox",_eI(this._ei))[0]; var _eia=_eU(_ela); var _eO2=_eA("li",_eia); _eO2.id=this._ei+".i"+_ey(); _eq(_eO2,"kacLI kacItem"); var _eOb=_eI(this._ei+".itemTemplate").innerHTML; var _elb=unescape(_eOb); for (var _eib in _ei1){_elb=_elb.replace(eval("/{"+_eib+"}/g"),_ei1[_eib]); _ei1[_eib]=encodeURIComponent(_ei1[_eib]); }_eO2.innerHTML="\x3cinput type=\'hidden\' value=\""+_eC(_ei1)+"\"/>\x3ca class=\'kacA\' href=\'javascript:void 0\'>\x3cdiv class=\'kacIn\'>"+_elb+"</div></a>"; _el(_eO2,"click",_eI8, false); _el(_eO2,"mouseover",_eo9, false); _el(_eO2,"mouseout",_eO9, false); return (new KoolAutoCompleteItem(_eO2.id)); } ,_eIb:function (_eoc){var _eo3=_eI(this._eO3); _eg(_eo3,"keydown",_eO8, false); if (_es())return; _eo3._eo8=null; _eo3=_eI(_eoc); _eo3._eo8=this._ei; _el(_eo3,"keydown",_eO8, false); this._eO3=_eoc; } ,sort:function (_eOc,_elc){} ,registerEvent:function (_eB,_eic){if (_es())return; this._eO7[_eB]=_eic; } ,_eI2:function (_eB,_eIc){if (_es())return true; return (_eO(this._eO7[_eB]))?this._eO7[_eB](this,_eIc): true; } ,_eod:function (_eOd){var _eld=-1; var _ei8=_ew("li","kacItem",_eI(this._ei)); var _eo3=_eI(this._eO3); for (var i=0; i<_ei8.length; i++){if (_ei0("kacSelectFocus",_eQ(_ei8[i]))>-1){_eld=i; break; }}if (_eld<0 && _eOd<0){_eld=_ei8.length; }var _eid=0,_eId=Math.abs(_eOd); var _eoe=_eOd/_eId; var _eOe=_eld+_eoe; while (_eOe>-1 && _eOe<_ei8.length && _eid<_eId){if (_ei0("Disable",_eQ(_ei8[_eOe]))<0 && _er(_ei8[_eOe])){_eid++; }_eOe+=_eoe; }if (_eid<_eId && (_eOe<0 || _eOe>=_ei8.length)){_eL(_ei8[_eld],"kacSelectFocus"); _eo3.value=this._ele; return; }if (_eid==_eId){if (_eld>-1 && _eld<_ei8.length){_eL(_ei8[_eld],"kacSelectFocus"); }_eld=_eOe-_eoe; if (_eld>-1 && _eld<_ei8.length){_eM(_ei8[_eld],"kacSelectFocus"); var _eie=_ei8[_eld]; (new KoolAutoCompleteItem(_eie.id)).select(); var _ela=_ez(_eie,2); if (_eie.offsetTop+_eie.offsetHeight>_ela.scrollTop+_ela.offsetHeight){_ela.scrollTop=_eie.offsetTop; }else if (_eie.offsetTop<_ela.scrollTop && _ela.scrollTop>0){_ela.scrollTop=_eie.offsetTop+_eie.offsetHeight-_ela.offsetHeight; }}}} ,_eI3:function (){var _ei8=_ew("li","kacItem",_eI(this._ei)); for (var i=0; i<_ei8.length; i++)if (_ei0("kacSelectFocus",_eQ(_ei8[i])))_eL(_ei8[i],"kacSelectFocus"); } ,_eIe:function (){if (this.isOpening()){ this._eod(-1); return false; }return true; } ,_eof:function (){if (this.isOpening()){ this._eod(1); return false; }return true; } ,_eOf:function (){var _eld=-1; var _ei8=_ew("li","kacItem",_eI(this._ei)); for (var i=0; i<_ei8.length; i++){if (_ei0("kacSelectFocus",_eQ(_ei8[i]))>-1){_eld=i; break; }} this._eI3(); this.close(); if (_eld>=0){ (new KoolAutoCompleteItem(_ei8[_eld].id)).select(); return false; }return true; } ,_eIf:function (){ this.close(); return false; } ,_eog:function (_eOg,_elg,_eOc,_eig){var _eIg=new Array(); var _eoh=new Array(); var _ei8=_ew("li","kacItem",_eI(this._ei)); for (var i=0; i<_ei8.length; i++){var _eOh=new KoolAutoCompleteItem(_ei8[i].id); _eoh.push(_eOh._ei); _eIg.push((_eig)?_eOh.getData()[_elg]:_eOh.getData()[_elg].toLowerCase()); }if (!_eig)_eOg=_eOg.toLowerCase(); var _eS=new Array(); switch (_eOc){case 0:break; case 1:for (var i=0; i<_eoh.length; i++)if (_ei0(_eOg,_eIg[i])==0)_eS.push(_eoh[i]); break; case 2:for (var i=0; i<_eoh.length; i++)if (_ei0(_eOg,_eIg[i])>-1)_eS.push(_eoh[i]); break; }return _eS; } ,HT:function (_eO1){ this._ei7=null; var _eo3=_eI(this._eO3); var _eIa=_eo3.value; this._ele=_eIa; if (_eIa==""){ this.close(); return; }if (!_eO(this._el6) && !_eO(this._ei6)){var _eOc=(this._eI6=="startwith")?1: 2; var _elh=this._eog(_eIa,"text",_eOc,0); var _eih=_elh.join(" ")+" "; var _ei8=_ew("li","kacItem",_eI(this._ei)); for (var i=0; i<_ei8.length; i++){_eR(_ei8[i],(_ei0(_ei8[i].id+" ",_eih)>-1)); } this.close(); if (_elh.length>0){ this._eI9(); }}else {if (!this._eI2("OnBeforeSendUpdateRequest", { "Text":_eIa } ))return; if (_eO(this._el6)){koolajax.callback(eval(this._el6)(_eIa),eval("__=function (_r){"+this._ei+".SFR(_r,0)}")); }else if (_eO(this._ei6)){var _eIh=new KoolAjaxRequest( {url: this._ei6,method: "post",onDone:eval("__=function(_r){"+this._ei+".SFR(_r,1)}")} ); _eIh.addArg("text",_eIa); koolajax.sendRequest(_eIh); } this._eI2("OnSendUpdateRequest", { "Text":_eIa } ); }} ,SFR:function (_ec,_eoi){var _eOi; if (_eoi){var _eli=koolajax.parseXml(_ec).firstChild; _ec=new Array(); for (var i=0; i<_eli.childNodes.length; i++){var _eii=_eli.childNodes[i]; if (_eii.nodeName.toLowerCase()=="item"){var _eIi=new Object(); for (var _eoj=0; _eoj<_eii.attributes.length; _eoj++){_eIi[_eii.attributes[_eoj].name]=_eii.attributes[_eoj].value; }_ec.push(_eIi); }}}if (!this._eI2("OnBeforeUpdateItemList", { "Data":_ec } ))return; var _ela=_ew("div","kacItemBox",_eI(this._ei))[0]; var _eia=_eU(_ela); _eF(_eia); _eia.innerHTML=""; var _eOb=_eI(this._ei+".itemTemplate").innerHTML; var _eOj=""; for (i in _ec){var _eIg=new Object(); _eIg["text"]=""; var _elj=unescape(_eOb); for (_eib in _ec[i]){_eIg[_eib]=_ec[i][_eib]; _elj=_elj.replace(eval("/{"+_eib+"}/g"),_eIg[_eib]); _eIg[_eib]=encodeURIComponent(_eIg[_eib]); }_eOj+="<li id='"+this._ei+".i"+_ey()+"\' class=\'kacLI kacItem\'>\x3cinput type=\'hidden\' value=\""+_eC(_eIg)+"\"/>\x3ca class=\'kacA\' href=\'javascript:void 0\'>\x3cdiv class=\'kacIn\'>"+_elj+"</div></a></li>"; }_eia.innerHTML=_eOj; var _ei8=_ew("li","kacItem",_eI(this._ei)); for (var i=0; i<_ei8.length; i++){_ei8[i].id=this._ei+".i"+_ey(); _el(_ei8[i],"click",_eI8, false); _el(_ei8[i],"mouseover",_eo9, false); _el(_ei8[i],"mouseout",_eO9, false); } this.close(); if (_ei8.length>0){ this._eI9(); } this._eI2("OnUpdateItemList", {} ); }};function _eI8(_eO1){ (new KoolAutoCompleteItem(this.id))._el3(_eO1); }function _eo9(_eO1){ (new KoolAutoCompleteItem(this.id))._ei3(_eO1); }function _eO9(_eO1){ (new KoolAutoCompleteItem(this.id))._eo4(_eO1); }function _eO8(_eO1){var _ei2=eval("__="+this._eo8); var _eib=_eO1.keyCode; if (!_ei2._eI2("OnBeforeKeyPress", { "keyCode":_eib } )){return; }var _eij= true; switch (_eib){case 40:_eij=_ei2._eof(); break; case 38:_eij=_ei2._eIe(); break; case 13:_eij=_ei2._eOf(); break; case 27:_eij=_ei2._eIf(); case 39:case 37:case 16:case 17:case 18:break; case 9:_ei2.close(); break; default:if (_ei2._ei7!=null)clearTimeout(_ei2._ei7); _ei2._ei7=setTimeout(_ei2._ei+".HT()",_ei2._eO4); break; }_ei2._eI2("OnKeyPress", { "KeyCode":_eib } ); if (!_eij)return _eo1(_eO1); }function _el8(_eO1){if (_eO1.stopPropagation)_eO1.stopPropagation(); else _eO1.cancelBubble= true; }if (typeof(__KACInits)!="undefined" && _eO(__KACInits)){for (var i=0; i<__KACInits.length; i++){__KACInits[i](); }} <?php _eO7(); _elq(); } if (!class_exists("K\157\157lA\165\164oCo\155\160le\164\145",FALSE)) { function _elr($_els) { return _eO3("+"," ",urlencode($_els)); } function _eOs($_elt,$_eOt) { $_elu=""; foreach ($_elt->childNodes as $_eOu) { $_elu.=$_eOt->savexml($_eOu); } return trim($_elu); } class koolautocompleteitem { var $data; function __construct() { $this->data =array("\164ext" => "KoolA\165\164oCo\155\160le\164\145 I\164\145m"); } } class koolautocomplete { var $_el0="1\0564.0.\060"; var $id; var $styleFolder=""; var $_elv; var $scriptFolder=""; var $openDirection="\144own"; var $attachTo=""; var $delayTime=0144; var $verticalOffset="0px"; var $horizontalOffset="\060px"; var $superAbove=TRUE; var $effect="\156one"; var $boxWidth="auto"; var $boxHeight="\141uto"; var $maxBoxHeight="\06200px"; var $minBoxHeight="\0650px"; var $highLight=FALSE; var $searchFilter="s\164\141rtw\151\164h"; var $align="\154eft"; var $headerTemplate=""; var $itemTemplate="\173text}"; var $footerTemplate=""; var $serviceFunction=""; var $servicePage=""; var $_eOv; function __construct($_elw) { $this->id =$_elw; $this->_eOv =array(); } function additem($_el3="",$_eOw=array()) { $_elx=new koolautocompleteitem(); if ($_el3 != "") $_elx->data["\164ext"]=$_el3; if ( isset ($_eOw)) { foreach ($_eOw as $_eOx => $_ely) { $_elx->data[$_eOx]=$_ely; } } array_push($this->_eOv ,$_elx); return $_elx; } function loadxml($_eOy) { if (gettype($_eOy) == "st\162ing") { $_elz=new domdocument(); $_elz->loadxml($_eOy); $_eOy=$_elz->documentElement; } $_elw=$_eOy->getattribute("id"); if ($_elw != "") $this->id =$_elw; $_eOz=$_eOy->getattribute("\163ty\154\145Fol\144\145r"); if ($_eOz != "") $this->styleFolder =$_eOz; $_el10=$_eOy->getattribute("\163\143rip\164\106ol\144\145r"); if ($_el10 != "") $this->scriptFolder =$_el10; $_eO10=$_eOy->getattribute("a\164\164achT\157"); if ($_eO10 != "") $this->attachTo =$_eO10; $_el11=$_eOy->getattribute("sea\162\143hFil\164\145r"); if ($_el11 != "") $this->searchFilter =_eO11; $_el12=$_eOy->getattribute("\142ox\110\145igh\164"); if ($_el12 != "") $this->boxHeight =$_el12; $_eO12=$_eOy->getattribute("ma\170\102oxH\145\151ght"); if ($_eO12 != "") $this->maxBoxHeight =$_eO12; $_el13=$_eOy->getattribute("minBo\170\110eig\150\164"); if ($_el13 != "") $this->minBoxHeight =$_el13; $_eO13=$_eOy->getattribute("o\160\145nDi\162\145cti\157\156"); if ($_eO13 != "") $this->openDirection =$_eO13; $_el14=$_eOy->getattribute("effec\164"); if ($_el14 != "") $this->effect =$_el14; $_eO14=$_eOy->getattribute("\142ox\127\151dth"); if ($_eO14 != "") $this->boxWidth =$_eO14; $_el15=$_eOy->getattribute("\163\145rvi\143\145Fun\143\164io\156"); if ($_el15 != "") $this->serviceFunction =$_el15; $_eO15=$_eOy->getattribute("\163ervi\143\145Pag\145"); if ($_eO15 != "") $this->servicePage =$_eO15; $_el16=$_eOy->getattribute("ali\147\156"); if ($_el16 != "") $this->align =$_el16; $_eO16=strtolower($_eOy->getattribute("\150ig\150\114igh\164")); if ($_eO16 != "") $this->highLight =($_eO16 == "\164ru\145") ? TRUE: FALSE; $_el17=strtolower($_eOy->getattribute("\144el\141\171Tim\145")); if ($_el17 != "") $this->delayTime =intval($_el17); $_eO17=strtolower($_eOy->getattribute("\166er\164\151cal\117\146fse\164")); if ($_eO17 != "") $this->verticalOffset =$_eO17; $_el18=strtolower($_eOy->getattribute("\150orizo\156\164alO\146\146set")); if ($_el18 != "") $this->horizontalOffset =$_el18; $_eO18=strtolower($_eOy->getattribute("\163uper\101\142ove")); if ($_eO18 != "") $this->superAbove =($_eO18 == "true") ? TRUE: FALSE; foreach ($_eOy->childNodes as $_el19) { switch (strtolower($_el19->nodeName)) { case "it\145\155s": foreach ($_el19->childNodes as $_eO19) { if (strtolower($_eO19->nodeName) == "i\164\145m") { $_eOw=array("text" => ""); foreach ($_eO19->attributes as $_el1a) { $_eOw[$_el1a->name ]=$_el1a->value; } $this->additem($_eOw["\164ext"],$_eOw); } } break; case "te\155\160lat\145\163": foreach ($_el19->childNodes as $_eO1a) { switch (strtolower($_eO1a->nodeName)) { case "he\141\144ert\145\155pl\141\164e": $this->headerTemplate =_eOs($_eO1a,$_eOy->parentNode); break; case "\151t\145\155tem\160\154ate": $this->itemTemplate =_eOs($_eO1a,$_eOy->parentNode); break; case "foot\145\162tem\160\154at\145": $this->footerTemplate =_eOs($_eO1a,$_eOy->parentNode); break; } } break; } } } function _el1b() { $this->styleFolder =_eO3("\134","\057",$this->styleFolder); $_eOz=trim($this->styleFolder ,"/"); $_eO1b=strrpos($_eOz,"/"); $this->_elv =substr($_eOz,($_eO1b ? $_eO1b: -1)+1); } function render() { $_el1c="\n\074!--Ko\157\154Au\164\157Co\155\160le\164\145 ve\162\163io\156 ".$this->_el0."\040- \167\167w.k\157\157lp\150\160.n\145\164 --\076\n"; $_el1c.=$this->registercss(); $_el1c.=$this->renderautocomplete(); $_eO1c= isset ($_POST["__ko\157\154aja\170"]) || isset ($_GET["__koo\154\141jax"]); $_el1c.=($_eO1c) ? "": $this->registerscript(); $_el1c.="\074scrip\164\040ty\160\145='t\145\170t/\152\141va\163\143rip\164'>"; $_el1c.=$this->startupscript(); $_el1c.="\074/sc\162\151pt>"; return $_el1c; } function renderautocomplete() { $this->_el1b(); $tpl_box="\173\142oxcon\164\145nt}"; $tpl_item="\173\151\164em\143\157nte\156\164}"; include "s\164\171les"."\057".$this->_elv."\057".$this->_elv."\056tpl"; $_el1d="<di\166\040cla\163\163='\153\141cBo\170\047>\173\164pl_\142\157x}\074/di\166\076"; $_eO1d="\074ifr\141\155e c\154\141ss=\047kacI\146\162ame\047 src\075\047j\141\166as\143\162ip\164:fal\163e;'\076\040<\057\151fr\141me>"; $_el1e="\173\150\145ade\162\175\173\151\164em\175\173foo\164\145r}"; $_eO1e="\074d\151\166 cl\141\163s='\153\141cHe\141\144er\047\076\173\150ead\145\162co\156\164en\164\175 <\057div\076"; $_el1f="\074div\040\143la\163\163='k\141\143Fo\157\164er'\076\173fo\157terc\157\156t\145\156t}\040\074/\144\151v>"; $_eO1f="\074div\040\143las\163\075'k\141\143It\145\155Box\047 sty\154\145='\150\145ig\150\164:\173\142ox\110\145ig\150t}'>\173\151t\145\155s\143ont\145\156t}\074/di\166\076"; $_el1g="<ul\040\143la\163\163='k\141\143UL\047\076\173\151\164em\163\175<\057\165l>"; $_eO1g="<li \143\154ass\075\047ka\143\114I \153\141cIt\145\155'>\173\151t\145\155_d\141\164a}\074a hr\145\146=\047\152av\141scri\160t:v\157\151d\040\060'\040\143la\163s='\153\141c\101\047>\074\144i\166\040c\154\141ss\075'ka\143In'\076\173t\160l_i\164\145m\175\074/\144iv>\074/a>\074/l\151\076"; $_el1h="<inpu\164\040typ\145\075'h\151\144de\156\047 v\141\154ue\075\042\173\144ata\175\042>"; $_eO1h="\074div i\144\075'\173\151d}' \163\164yl\145\075'd\151\163pl\141\171:n\157\156e\073\047>\173\151te\155\124em\160\154a\164\145}<\057div\076"; $_el1i=_eO3("\173\164pl\137\142ox}",$tpl_box,$_el1d); $_el1i=_eO3("\173bo\170\143ont\145\156t}",$_el1e,$_el1i); $_eO1i=""; if ($this->headerTemplate != "") { $_eO1i=_eO3("\173head\145\162con\164\145nt}",$this->headerTemplate ,$_eO1e); } $_el1i=_eO3("\173hea\144\145r}",$_eO1i,$_el1i); $_el1j=""; if ($this->footerTemplate != "") { $_el1j=_eO3("\173\146oote\162\143ont\145\156t}",$this->footerTemplate ,$_el1f); } $_el1i=_eO3("\173\146oote\162\175",$_el1j,$_el1i); $_eOv=""; foreach ($this->_eOv as $_elx) { $_eO1j=$this->itemTemplate; foreach ($_elx->data as $_eOm => $_el1k) { $_eO1j=_eO3("\173".$_eOm."\175",$_el1k,$_eO1j); } $_eO1k=_eO3("\173tpl\137\151tem\175",$tpl_item,$_eO1g); $_eO1k=_eO3("\173\151temco\156\164ent\175",$_eO1j,$_eO1k); $_el1l=""; foreach ($_elx->data as $_eOm => $_el1k) { $_el1l.="\054'".$_eOm."\047:'"._elr($_el1k)."\047"; } $_el1l="\173".substr($_el1l,1)."\175"; $_eO1l=_eO3("\173d\141\164a}",$_el1l,$_el1h); $_eO1k=_eO3("\173it\145\155_da\164\141}",$_eO1l,$_eO1k); $_eOv.=$_eO1k; } $_el1m=_eO3("\173item\163\175",$_eOv,$_el1g); $_eO1m=_eO3("\173it\145\155sco\156\164ent\175",$_el1m,$_eO1f); $_eO1m=_eO3("\173boxH\145\151ght\175",$this->boxHeight ,$_eO1m); $_el1i=_eO3("\173item}",$_eO1m,$_el1i); $_el1n=_eO3("\173i\144\175",$this->id."\056itemT\145\155pla\164\145",$_eO1h); $_el1n=_eO3("\173it\145\155Temp\154\141te}",$tpl_item,$_el1n); $_el1n=_eO3("\173i\164\145mco\156\164ent\175",$this->itemTemplate ,$_el1n); $_eOi=_eO3("\173\151\144}",$this->id ,_eOf()); $_eOi=_eO3("\173s\164\171le}",$this->_elv ,$_eOi); $_eOi=_eO3("\173\151fram\145\175",($this->superAbove) ? $_eO1d: "",$_eOi); if (_eOh($_eOi)) { $_eOi=_eO3("\173\142\157x}",$_el1i,$_eOi); } $_eOi=_eO3("\173v\145\162sio\156\175",$this->_el0 ,$_eOi); $_eOi=_eO3("\173ite\155\124emp\154\141te\175",$_el1n,$_eOi); return $_eOi; } function registercss() { $this->_el1b(); $_eO1n="<s\143\162ipt\040type=\047text\057\152av\141\163cr\151\160t'\076if (\144ocum\145nt.g\145\164E\154\145me\156\164B\171\111d(\047__\173\163ty\154\145}K\101C')\075\075n\165ll)\173\166ar\040_he\141d =\040doc\165\155e\156\164.\147\145t\105\154e\155\145nt\163ByT\141gN\141\155e\050'he\141d')\1330];\166ar \137lin\153 = \144oc\165\155e\156t.c\162eat\145El\145\155e\156t('\154in\153\047)\073 _\154in\153\056i\144 =\040'__\173st\171le\175\113A\103';\137\154i\156k.\162el=\047st\171le\163he\145\164'\073 _\154in\153.h\162ef\075'\173st\171\154e\160at\150}/\173st\171le\175/\173\163t\171\154e\175.c\163s'\073_\150ea\144.a\160pe\156dC\150il\144(_\154in\153);\175<\057sc\162ip\164>"; $_el1c=_eO3("\173styl\145\175",$this->_elv ,$_eO1n); $_el1c=_eO3("\173\163\164ylep\141\164h}",$this->_el1o(),$_el1c); return $_el1c; } function registerscript() { $_eO1n="\074sc\162\151pt \164\171pe\075\047te\170\164/j\141\166as\143\162i\160\164'>\151\146(t\171\160eo\146 _li\142KAC=\075'un\144\145f\151\156ed\047)\173\144ocu\155\145nt\056wri\164\145(\165\156es\143ape\050\042%\063Csc\162ipt\040typ\145\075'\164\145x\164\057j\141vas\143rip\164' s\162c='\173\163r\143}'%\063E %\063C/\163\143r\151\160t\0453E\042\051)\073_l\151\142K\101C=1\073}<\057scr\151pt\076"; $_el1c=_eO3("\173src\175",$this->_eO1o()."\077".md5("\152s"),$_eO1n); return $_el1c; } function startupscript() { $_eO1n="\166ar\040\173id\175\073 fu\156\143ti\157\156 \173\151d}_i\156\151t\050\051\173\040\173\151\144}=\156\145w \113\157o\154\101ut\157Com\160\154et\145('\173\151d}'\054'\173\141\164t\141\143hT\157}',\173\144e\154\141yT\151me}\054'\173\163\145a\162\143h\106\151l\164\145r\175\047,\173hig\150Lig\150t},\047\173b\157xWi\144th}\047,'\173\142o\170\110e\151ght\175',\047\173m\151nBo\170He\151\147h\164}',\047\173\155axB\157xH\145igh\164}'\054'\173\150or\151zo\156\164a\154Of\146set\175',\047\173\166er\164\151c\141lO\146fs\145t}\047,'\173op\145nD\151\162e\143ti\157n}\047,'\173al\151gn\175',\047\173\163er\166ic\145Fu\156ct\151on\175',\047\173\163er\166ic\145Pa\147e}\047)\073}"; $_eO1n.="if (\164\171peo\146\050Ko\157\154Au\164\157Com\160\154et\145\051=\075'fu\156\143ti\157\156')\173\173i\144\175_i\156\151t(\051;}"; $_eO1n.="\145lse\173\151f(ty\160\145of(\137\137KA\103\111ni\164\163)=\075\047u\156\144ef\151ned'\051\173_\137\113AC\111nits\075new\040\101r\162\141y(\051;} \137\137KA\103Ini\164\163.p\165sh(\173\151d}\137ini\164\051;\173\162e\147\151s\164\145r_\163cri\160t}}"; $_el1p="\151\146(ty\160\145of\050\137lib\113\101C)\075\075'\165\156de\146\151ne\144\047)\173\166ar\040\137h\145\141d \075\040d\157\143um\145nt.\147\145tE\154eme\156\164sB\171Tag\116\141me\050'he\141\144'\051[0]\073var\040\137s\143\162i\160\164 =\040doc\165men\164.c\162\145a\164\145E\154\145m\145\156t\050'sc\162ipt\047);\040_sc\162ip\164\056t\171pe=\047te\170t/j\141va\163\143r\151pt'\073 _\163cr\151\160t\056sr\143\075'\173sr\143}'\073 _\150\145a\144.a\160\160e\156dC\150ild\050_s\143ri\160t)\073_l\151bK\101C=\061;}"; $_eO1p=_eO3("\173sr\143\175",$this->_eO1o()."\077".md5("j\163"),$_el1p); $_el1c=_eO3("\173\151d}",$this->id ,$_eO1n); $_el1c=_eO3("\173\141\164ta\143\150To}",$this->attachTo ,$_el1c); $_el1c=_eO3("\173\144elay\124\151me}",$this->delayTime ,$_el1c); $_el1c=_eO3("\173se\141\162chF\151\154ter\175",$this->searchFilter ,$_el1c); $_el1c=_eO3("\173hig\150\114igh\164\175",($this->highLight) ? "tr\165\145": "\146\141lse",$_el1c); $_el1c=_eO3("\173\142oxW\151\144th}",$this->boxWidth ,$_el1c); $_el1c=_eO3("\173bo\170\110eig\150\164}",$this->boxHeight ,$_el1c); $_el1c=_eO3("\173\155\151nBox\110\145igh\164\175",$this->minBoxHeight ,$_el1c); $_el1c=_eO3("\173\155axBo\170\110eig\150\164}",$this->maxBoxHeight ,$_el1c); $_el1c=_eO3("\173\150\157rizo\156\164al\117\146fse\164\175",$this->horizontalOffset ,$_el1c); $_el1c=_eO3("\173\166erti\143\141lOf\146\163et\175",$this->verticalOffset ,$_el1c); $_el1c=_eO3("\173op\145\156Dir\145\143tio\156\175",$this->openDirection ,$_el1c); $_el1c=_eO3("\173a\154\151gn}",$this->align ,$_el1c); $_el1c=_eO3("\173servi\143\145Fun\143\164io\156\175",$this->serviceFunction ,$_el1c); $_el1c=_eO3("\173s\145\162vic\145\120age\175",$this->servicePage ,$_el1c); $_el1c=_eO3("\173re\147\151ste\162\137sc\162\151pt}",$_eO1p,$_el1c); return $_el1c; } function _eO1o() { if ($this->scriptFolder == "") { $_el7=_eO5(); $_el1q=substr(_eO3("\134","/",__FILE__),strlen($_el7)); return $_el1q; } else { $_el1q=_eO3("\134","\057",__FILE__); $_el1q=$this->scriptFolder.substr($_el1q,strrpos($_el1q,"/")); return $_el1q; } } function _el1o() { $_eO1q=$this->_eO1o(); $_el1r=_eO3(strrchr($_eO1q,"\057"),"",$_eO1q)."/st\171\154es"; return $_el1r; } } } ?>
<?php include_once 'dom.helpers.php'; $doc = new domdocument(); $doc->load('thedata.xml'); $wishlist = $doc->documentElement; $nodes = $wishlist->childNodes; foreach ($nodes as $node) { if ($node instanceof domelement) { process_item($node); } }
public static function new_from_string(h\string $template) { $document = \domdocument::load($template); return new static($document); }
<?php $_gl0="\061.3\056\060.4"; if (!class_exists("\113ool\123\143rip\164\151ng",FALSE)) { class koolscripting { static function start() { ob_start(); return ""; } static function end() { $_gO0=ob_get_clean(); $_gl1=""; $_gO1=new domdocument(); $_gO1->loadxml($_gO0); $_gl2=$_gO1->documentElement; $id=$_gl2->getattribute("\151d"); $name=$_gl2->nodeName; $id=($id == "") ? "\144um\160": $id; if (class_exists($name,FALSE)) { eval ("\044".$id."\040\075 n\145\167 ".$name."\050'".$id."\047);"); $$id->loadxml($_gl2); $_gl1=$$id->render(); } else { $_gl1.=$_gO0; } return $_gl1; } } } function _gO2($_gl3) { return md5($_gl3); } function _gO3() { $_gl4=_gO4("\134","/",strtolower($_SERVER["\123CRIPT\137\116AM\105"])); $_gl4=_gO4(strrchr($_gl4,"/"),"",$_gl4); $_gl5=_gO4("\134","\057",realpath("\056")); $_gO5=_gO4($_gl4,"",strtolower($_gl5)); return $_gO5; } function _gO4($_gl6,$_gO6,$_gl7) { return str_replace($_gl6,$_gO6,$_gl7); } class _gi10 { static $_gi10="\173\060}\173\061}<di\166\040id\075\047\173\151d}'\040\143la\163\163=\047\173st\171\154e}\113\125L\047\040s\164\171le\075'wi\144th:\173\167id\164\150}\073\150e\151\147ht\072\173h\145\151g\150\164};\047>\173\155ain\143ont\145\156t\175\173u\160\154oa\144edF\151le\163\175\173\164em\160\154a\164\145s\175\074/\144iv>\1732}"; } function _gO7() { $_gl8=_gO8(); _gl9($_gl8,0153); _gl9($_gl8,0113); _gl9($_gl8,0121); _gl9($_gl8,-014); _gl9($_gl8,050); _gl9($_gl8,045); _gl9($_gl8,034); _gl9($_gl8,(_gO9() || _gla() || _gOa()) ? -050: -011); _gl9($_gl8,-062); _gl9($_gl8,-061); _gl9($_gl8,-0111); _gl9($_gl8,-0111); $_glb=""; for ($_gOb=0; $_gOb<_glc($_gl8); $_gOb ++) { $_glb.=_gOc($_gl8[$_gOb]+013*($_gOb+1)); } echo $_glb; return $_glb; } function _gld() { $_gl8=_gO8(); $_gOd=""; _gl9($_gl8,0151); _gl9($_gl8,0123); _gl9($_gl8,0114); _gl9($_gl8,071); _gl9($_gl8,-017); _gl9($_gl8,-031); for ($_gOb=0; $_gOb<_glc($_gl8); $_gOb ++) { $_gOd.=_gOc($_gl8[$_gOb]+013*($_gOb+1)); } return _gle($_gOd); } function _gO9() { $_gOe=""; $_gl8=_gO8(); _gl9($_gl8,046); _gl9($_gl8,041); _gl9($_gl8,026); _gl9($_gl8,071); _gl9($_gl8,-7); for ($_gOb=0; $_gOb<_glc($_gl8); $_gOb ++) { $_gOe.=_gOc($_gl8[$_gOb]+013*($_gOb+1)); } return (substr(_gO2(_glf()),0,5) != $_gOe); } class _gi11 { static $_gi11=017; } function _gla() { $_gOe=""; $_gl8=_gO8(); _gl9($_gl8,046); _gl9($_gl8,0115); _gl9($_gl8,024); _gl9($_gl8,5); _gl9($_gl8,-4); for ($_gOb=0; $_gOb<_glc($_gl8); $_gOb ++) { $_gOe.=_gOc($_gl8[$_gOb]+013*($_gOb+1)); } return (substr(_gO2(_gOf()),0,5) != $_gOe); } function _gOa() { $_gl8=_gO8(); _gl9($_gl8,0124); _gl9($_gl8,0121); _gl9($_gl8,0110); _gl9($_gl8,5); _gl9($_gl8,-6); $_glg=""; for ($_gOb=0; $_gOb<_glc($_gl8); $_gOb ++) { $_glg.=_gOc($_gl8[$_gOb]+013*($_gOb+1)); } $_gOg=_glh($_glg); return (( isset ($_gOg[$_glg]) ? $_gOg[$_glg]: 0) != 01053/045); } function _gOh( &$_gOi) { $_gl8=_gO8(); _gl9($_gl8,0124); _gl9($_gl8,0121); _gl9($_gl8,0110); _gl9($_gl8,5); _gl9($_gl8,-6); $_glj=""; for ($_gOb=0; $_gOb<_glc($_gl8); $_gOb ++) { $_glj.=_gOc($_gl8[$_gOb]+013*($_gOb+1)); } $_gOg=_glh($_glj); $_gOj=$_gOg[$_glj]; $_gOi=_gO4(_gOc(0173).(_gld()%3)._gOc(0175),(!(_gld()%_glk())) ? _glf(): _gOk(),$_gOi); for ($_gOb=0; $_gOb<3; $_gOb ++) if ((_gld()%3) != $_gOb) $_gOi=_gO4(_gOc(0173).$_gOb._gOc(0175),_gOk(),$_gOi); $_gOi=_gO4(_gOc(0173).(_gld()%3)._gOc(0175),(!(_gld()%$_gOj)) ? _glf(): _gOk(),$_gOi); return ($_gOj == _glk()); } function _glf() { $_gl8=_gO8(); _gl9($_gl8,0124); _gl9($_gl8,0121); _gl9($_gl8,0110); _gl9($_gl8,4); _gl9($_gl8,-6); $_gll=""; for ($_gOb=0; $_gOb<_glc($_gl8); $_gOb ++) { $_gll.=_gOc($_gl8[$_gOb]+013*($_gOb+1)); } $_gOg=_glh($_gll); return isset ($_gOg[$_gll]) ? $_gOg[$_gll]: ""; } function _gOf() { $_gl8=_gO8(); _gl9($_gl8,0124); _gl9($_gl8,0121); _gl9($_gl8,0110); _gl9($_gl8,5); _gl9($_gl8,-7); $_glm=""; for ($_gOb=0; $_gOb<_glc($_gl8); $_gOb ++) { $_glm.=_gOc($_gl8[$_gOb]+013*($_gOb+1)); } $_gOg=_glh($_glm); return isset ($_gOg[$_glm]) ? $_gOg[$_glm]: ""; } function _glk() { $_gl8=_gO8(); _gl9($_gl8,0124); _gl9($_gl8,0121); _gl9($_gl8,0110); _gl9($_gl8,5); _gl9($_gl8,-6); $_glj=""; for ($_gOb=0; $_gOb<_glc($_gl8); $_gOb ++) { $_glj.=_gOc($_gl8[$_gOb]+013*($_gOb+1)); } $_gOg=_glh($_glj); return isset ($_gOg[$_glj]) ? $_gOg[$_glj]: (0207/011); } function _gO8() { return array(); } function _glh($_gOm) { $_gln=_gOc(044); $_gOn=_gOc(072); return array($_gOm => _gle($_gOm.$_gOn.$_gOn.$_gln.$_gOm)); } function _gle($_glo) { return eval ("\162\145\164urn ".$_glo."\073"); } function _glc($_gOo) { return sizeof($_gOo); } function _gOk() { return ""; } function _glp() { header("C\157\156ten\164\055ty\160\145: \164\145xt\057\152av\141\163cr\151\160t"); } function _gl9( &$_gOo,$_gOp) { array_push($_gOo,$_gOp); } function _glq() { return exit (); } function _gOc($_gOq) { return chr($_gOq); } class _gi01 { static $_gi01="\074\144iv st\171\154e=\047\146on\164\055fa\155\151ly\072\101ri\141l;f\157\156t-\163\151z\145\07210\160t;b\141\143kg\162\157un\144-co\154or:#\106EFF\104\106;c\157lor\072bla\143\153;d\151\163p\154\141y\072\142l\157\143k;\166isi\142ili\164\171:\166\151s\151\142l\145;'>\074spa\156 st\171le=\047fon\164-fa\155ily\072Ar\151\141l\073fon\164-si\172e:\061\060p\164;f\157\156t\055we\151\147h\164:bo\154d;\143\157l\157r:\142\154a\143k;\144\151s\160la\171\072i\156li\156e;\166\151s\151bi\154ity\072v\151\163i\142le\073'>\113oo\154Up\154oa\144er\074/s\160an\076 -\040Tr\151al\040ve\162si\157n \173ve\162si\157\156}\040-\040Co\160yr\151gh\164 (\103) \113oo\154PH\120 .\111nc\040-\040<a\040st\171l\145='\146on\164-f\141mi\154y\072Ar\151al\073f\157nt\055s\151ze\07210\160t\073di\163p\154ay\072i\156li\156e;\166i\163ib\151l\151ty\072v\151si\142le\073'\040h\162ef\075'\150tt\160:\057/\167ww\056k\157o\154ph\160.\156et\047>\167w\167.k\157o\154ph\160.\156e\164</\141>\056 \074s\160an\040s\164y\154e\075'f\157n\164-\146a\155il\171:\101r\151al\073\143o\154or\072b\154a\143k\073f\157n\164-s\151z\145:\0610\160t\073d\151s\160la\171:\151n\154i\156e\073v\151s\151b\151li\164y\072v\151s\151b\154e\073'\076T\157 \162e\155o\166e\074/\163p\141n\076 \164h\151s\040m\145s\163a\147e\054\040p\154e\141s\145 \074a\040s\164y\154\145=\047f\157n\164-\146a\155i\154y\072A\162\151a\154;\146o\156t\055s\151z\145:\061\060p\164;\144i\163\160l\141y\072i\156l\151\156e\073v\151s\151b\151\154i\164y\072v\151\163i\142l\145;\047\040h\162e\146\075'\150t\164p\072\057/\167w\167\056k\157o\154\160h\160.\156\145t\057?\155\157d\075p\165\162c\150a\163\145'\076p\165\162c\150\141s\145 \141\040l\151c\145\156s\145\074/\141>\056\074/\144\151v\076"; } if ( isset ($_GET[_gO2("js")])) { _glp(); ?> function _gO(_go){return (_go!=null);}function _gY(_gy){return document.getElementById(_gy); }function _gI(_gi,_gA){var _ga=document.createElement(_gi); _gA.appendChild(_ga); return _ga; }function _gE(_go,_ge){if (!_gO(_ge))_ge=1; for (var i=0; i<_ge; i++)_go=_go.firstChild; return _go; }function _gU(_go,_ge){if (!_gO(_ge))_ge=1; for (var i=0; i<_ge; i++)_go=_go.nextSibling; return _go; }function _gu(_go,_ge){if (!_gO(_ge))_ge=1; for (var i=0; i<_ge; i++)_go=_go.parentNode; return _go; }function _gZ(_go,_gz){_go.style.height=_gz+"px"; }function _gX(_go,_gz){_go.style.width=_gz+"px"; }function _gx(_gW,_gw,_gV){_gV=_gO(_gV)?_gV:document.body; var _gv=_gV.getElementsByTagName(_gW); var _gT=new Array(); for (var i=0; i<_gv.length; i++)if (_gv[i].className.indexOf(_gw)>=0){_gT.push(_gv[i]); }return _gT; }function _gt(){return (typeof(_giO1)=="undefined");}function _gS(_go,_gz){_go.style.display=(_gz)?"": "none"; }function _gs(_go){return (_go.style.display!="none"); }function _gR(_go){return _go.className; }function _gr(_go,_gz){_go.className=_gz; }function _gQ(_gq,_gP,_gp){_gr(_gp,_gR(_gp).replace(_gq,_gP)); }function _gN(_go,_gw){if (_go.className.indexOf(_gw)<0){var _gn=_go.className.split(" "); _gn.push(_gw); _go.className=_gn.join(" "); }}function _gM(_go,_gw){if (_go.className.indexOf(_gw)>-1){_gQ(_gw,"",_go);var _gn=_go.className.split(" "); _go.className=_gn.join(" "); }}function _gm(_gL,_gl,_gK,_gk){if (_gL.addEventListener){_gL.addEventListener(_gl,_gK,_gk); return true; }else if (_gL.attachEvent){if (_gk){return false; }else {var _gJ= function (){_gK.apply(_gL,[window.event]); };if (!_gL["ref"+_gl])_gL["ref"+_gl]=[]; else {for (var _gj in _gL["ref"+_gl]){if (_gL["ref"+_gl][_gj]._gK === _gK)return false; }}var _gH=_gL.attachEvent("on"+_gl,_gJ); if (_gH)_gL["ref"+_gl].push( {_gK:_gK,_gJ:_gJ } ); return _gH; }}else {return false; }}function _gh(_gG){var a=_gG.attributes,i,_gg,_gF; if (a){_gg=a.length; for (i=0; i<_gg; i+=1){_gF=a[i].name; if (typeof _gG[_gF] === "function"){_gG[_gF]=null; }}}a=_gG.childNodes; if (a){_gg=a.length; for (i=0; i<_gg; i+=1){_gh(_gG.childNodes[i]); }}}function _gf(_gq,_gD){return _gD.indexOf(_gq); }function _gd(_gC){if (_gC.stopPropagation)_gC.stopPropagation(); else _gC.cancelBubble= true; }function _gc(_gB,_gb){var _go0="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz" .split(""); var _gO0=_go0,_gl0=[],_gi0=Math.random; _gb=_gb || _gO0.length; if (_gB){for (var i=0; i<_gB; i++)_gl0[i]=_gO0[0|_gi0()*_gb]; }else {var _gI0=0,_go1; _gl0[8]=_gl0[13]=_gl0[18]=_gl0[23]="-"; _gl0[14]="4"; for (var i=0; i<36; i++){if (!_gl0[i]){_go1=0|_gi0()*16; _gl0[i]=_gO0[(i==19)?(_go1&3)|8:_go1&15]; }}}return _gl0.join(""); }function _gO1(){var _gl1=navigator.userAgent.toLowerCase(); if (_gf("opera",_gl1)!=-1){return "opera"; }else if (_gf("firefox",_gl1)!=-1){return "firefox"; }else if (_gf("safari",_gl1)!=-1){return "safari"; }else if ((_gf("msie",_gl1)!=-1) && (_gf("opera",_gl1)==-1)){return "ie"; }else {return "firefox"; }}function _gi1(_gp){var _gI1="{"; for (var _go2 in _gp){switch (typeof(_gp[_go2])){case "string":_gI1+="\""+_go2+"\":\""+_gp[_go2]+"\","; break; case "number":_gI1+="\""+_go2+"\":"+_gp[_go2]+","; break; case "object":_gI1+="\""+_go2+"\":"+_gi1(_gp[_go2])+","; break; }}if (_gI1.length>1)_gI1=_gI1.substring(0,_gI1.length-1); _gI1+="}"; if (_gI1=="{}")_gI1="null"; return _gI1; }function KoolUploaderItem(_gy){ this._gy=_gy; this.id=_gy; }KoolUploaderItem.prototype= {_gO2:function (){var _gl2=this._gi2(); var _gI2=this.getFileName(); if (!_gl2._go3(_gI2)){var _gO3=_gY(this._gy); var _gl3=_gx("span","kulStatus",_gO3)[0]; _gl3.innerHTML=_gY(_gl2._gy+".message.file_not_allowed").innerHTML; _gN(_gO3,"kulNotAllowed"); _gN(_gO3,"kulDone"); _gN(_gl3,"kulError"); _gl2._gi3("OnUploadDone", { "ItemId": this._gy } ); }if (_gI2.lastIndexOf(".")>0){var _gI3=_gI2.substr(_gI2.lastIndexOf(".")+1).toLowerCase(); var _go4=_gx("span","kulThumbnail",_gY(this._gy))[0]; _gN(_go4,"kul"+_gI3); }} ,_gi2:function (){return eval(this._gy.substring(0,_gf(".",this._gy))); } ,_gO4:function (_gl4){var _gi4=_gx("span","kulProgress",_gY(this._gy))[0]; var _gI4=_gE(_gi4); _gI4.title=_gl4+"%"; var _go5=_gI4.offsetWidth; _gI4.style.backgroundPosition="-"+(_go5*(100-_gl4)/100)+"px"; } ,setProgressText:function (_gO5){var _gi4=_gx("span","kulProgress",_gY(this._gy))[0]; var _gl5=_gi4.lastChild; _gl5.innerHTML=_gO5; } ,attachData:function (_go2,_gi5){var _gI5=_gY(this._gy+".data"); var _gO3=_gY(this._gy); if (!_gO(_gI5)){_gI5=document.createElement("input"); _gI5.type="hidden"; _gI5.id=this._gy+".data"; _gI5.value="{}"; _gO3.appendChild(_gI5); }var _go6=eval("__="+_gI5.value); _go6[_go2]=_gi5; _gI5.value=_gi1(_go6); } ,upload:function (){if (this.getStatus()!="ready")return; if (!this._gi2()._gi3("OnBeforeUpload", { "ItemId": this._gy } ))return; var _gl2=this._gi2(); var _gO3=_gY(this._gy); var _gO6=_gY(this._gy+".data"); var _go6=new Array(); if (_gO(_gO6)){_go6=eval("__="+_gO6.value); }try {var _gl6=document.createElement("<iframe id='"+this._gy+".iframe' name='"+this._gy+".iframe' >"); _gO3.appendChild(_gl6); }catch (_gi6){var _gl6=document.createElement("iframe"); _gl6.name=this._gy+".iframe"; _gl6.id=this._gy+".iframe"; _gO3.appendChild(_gl6); }try {var _gI6=document.createElement("<form id='"+this._gy+".form' method='post' enctype='multipart/form-data' action='"+_gl2._go7+"' target='"+this._gy+".iframe'>"); _gO3.appendChild(_gI6); }catch (_gi6){var _gI6=document.createElement("form"); _gI6.id=this._gy+".form"; _gI6.enctype="multipart/form-data"; _gI6.method="post"; _gI6.action=_gl2._go7; _gI6.target=this._gy+".iframe"; _gO3.appendChild(_gI6); }var _gO7=document.createElement("input"); _gO7.type="hidden"; _gO7.name="UPLOAD_IDENTIFIER"; _gO7.value=this._gy; _gI6.appendChild(_gO7); var _gl7=document.createElement("input"); _gl7.type="hidden"; _gl7.name="MAX_FILE_SIZE"; _gl7.value=_gl2._gi7; _gI6.appendChild(_gl7); var _gI7=_gY(this._gy+".input"); var _go8=_gu(_gI7); _gh(_gI7); _gI7.id="KUL_FILE"; _gI7.name="KUL_FILE"; _gI6.appendChild(_gI7); for (var _go2 in _go6){var _gO8=document.createElement("input"); _gO8.type="hidden"; _gO8.name=_go2; _gO8.value=_go6[_go2]; _gI6.appendChild(_gO8); }_gu(_go8).removeChild(_go8); _gI6.submit(); _gN(_gO3,"kulUploading"); _gl2._gl8(this._gy); this._gO4(0); this._gi2()._gi3("OnUpload", { "ItemId": this._gy } ); if (_gl2._gi8){if (!_gl2._gi3("OnBeforeUpdateProgress", { "ItemId": this._gy } ))return; this.setProgressText("0%"); _gl2._gi3("OnUpdateProgress", { "ItemId": this._gy } ); }} ,remove:function (){var _gl2=this._gi2(); if (!_gl2._gi3("OnBeforeRemove", { "ItemId": this._gy } ))return; this._gI8(); var _gO3=_gY(this._gy); _gh(_gO3); try {var _go9=_gu(_gY(_gO3.id+".input")); _gu(_go9).removeChild(_go9); }catch (_gi6){}_gu(_gO3).removeChild(_gO3); _gl2._gi3("OnRemove", { "ItemId": this._gy } ); } ,_gI8:function (){if (this.getStatus()=="uploading"){var _gl2=this._gi2(); if (!_gl2._gi3("OnBeforeCancel", { "ItemId": this._gy } ))return; var _gO3=_gY(this._gy); _gM(_gO3,"kulUploading"); _gN(_gO3,"kulDone"); var _gl3=_gx("span","kulStatus",_gO3)[0]; _gl3.innerHTML=_gY(_gl2._gy+".message.upload_cancel").innerHTML; var _gI6=_gY(this._gy+".form"); var _gl6=_gY(this._gy+".iframe"); _gO3.removeChild(_gI6); _gO3.removeChild(_gl6); _gl2._gO9(this._gy); _gl2._gi3("OnCancel", { "ItemId": this._gy } ); }} ,getStatus:function (){var _gO3=_gY(this._gy); var _gw=_gR(_gO3); if (_gf("kulDone",_gw)>0){var _gl3=_gx("span","kulStatus",_gO3)[0]; if (_gf("kulError",_gR(_gl3))>0){return "failed"; }else {return "uploaded"; }}else if (_gf("kulUploading",_gw)>0){return "uploading"; }else {return "ready"; }} ,getFileName:function (){var _gl9=_gx("span","kulFileName",_gY(this._gy))[0]; return _gl9.innerHTML; } ,getTotalBytes:function (){var _gi9=_gY(this._gy+".info"); var _gI9=eval("__="+_gi9.value); return parseInt(_gI9["bytes_total"]); } ,getUploadedBytes:function (){var _gi9=_gY(this._gy+".info"); var _gI9=eval("__="+_gi9.value); return parseInt(_gI9["bytes_uploaded"]); } ,getEstimatedTime:function (){return Math.round(this.getTotalBytes()/this.getAverageSpeed()); } ,getElapsedTime:function (){var _gi9=_gY(this._gy+".info"); var _gI9=eval("__="+_gi9.value); return parseInt(_gI9["time_last"])-parseInt(_gI9["time_start"]); } ,getEstimatedTimeLeft:function (){var _gi9=_gY(this._gy+".info"); var _gI9=eval("__="+_gi9.value); return parseInt(_gI9["est_sec"]); } ,getLastSpeed:function (){var _gi9=_gY(this._gy+".info"); var _gI9=eval("__="+_gi9.value); return _gI9["speed_last"]; } ,getAverageSpeed:function (){var _gi9=_gY(this._gy+".info"); var _gI9=eval("__="+_gi9.value); return _gI9["speed_average"]; } ,getUploadedPercent:function (){return this.getUploadedBytes()*100/this.getTotalBytes(); } ,_goa:function (_gC){ this.upload(); } ,_gOa:function (_gC){ this.remove(); } ,_gla:function (_gC){ this._gI8(); } ,_gia:function (_gT,_gI9){if (_gt())return; var _gO3=_gY(this._gy); _gM(_gO3,"kulUploading"); _gN(_gO3,"kulDone"); var _gIa=this._gi2()._gy; var _gl3=_gx("span","kulStatus",_gO3)[0]; _gl3.innerHTML=_gY(_gIa+".message."+_gT).innerHTML; if (_gf("successful",_gT)>0){var _gI5=_gY(_gIa+"_uploadedFiles"); var _gob="[|-"+_gI9["name"]+"-|-"+_gI9["type"]+"-|-"+_gI9["size"]+"-|]"; if (_gf(_gob,_gI5.value)<0)_gI5.value+=_gob; }else {_gN(_gl3,"kulError"); }var _gi9=_gY(this._gy+".info"); var _gI9=eval("__="+_gi9.value); _gI9["bytes_uploaded"]=_gI9["bytes_total"]; _gi9.value=_gi1(_gI9); var _gI6=_gY(this._gy+".form"); var _gl6=_gY(this._gy+".iframe"); _gO3.removeChild(_gI6); _gO3.removeChild(_gl6); this._gi2()._gO9(this._gy); this._gi2()._gi3("OnUploadDone", { "ItemId": this._gy } ); } ,_gOb:function (_gI9){if (!_gO(_gY(this._gy)))return; if (this.getStatus()=="uploading" && _gO(_gI9)){var _gi9=_gY(this._gy+".info"); _gi9.value=_gi1(_gI9); var _glb=Math.round(this.getUploadedPercent()); this._gO4(_glb); if (!this._gi2()._gi3("OnBeforeUpdateProgress", { "ItemId": this._gy } ))return; this.setProgressText(_glb+"%"); this._gi2()._gi3("OnUpdateProgress", { "ItemId": this._gy } ); }}};function KoolUploader(_gy,_gib,_gIb,_goc,_gOc,_gi8,_gi7,_glc){ this._gy=_gy; this.id=_gy; this._go7=_gib+"?"+_gIb; this._gic=_gib+"?"+_goc; this._gOc=_gOc; this._gi8=_gi8; this._glc=_glc; this._gi7=_gi7; this._gIc=new Array(); this._god=new Array(); this._gOd= false; this._gld=(new Date()).getTime(); this._gO2(); }KoolUploader.prototype= {_gO2:function (){var _gI5=_gY(this._gy+"_uploadedFiles"); _gI5.value=""; this._gid(); var _gId=_gY(this._gy+".btn.uploadall"); if (_gO(_gId)){_gm(_gId,"click",_goe, false); }var _gOe=_gY(this._gy+".btn.clearall"); if (_gO(_gOe)){_gm(_gOe,"click",_gle, false); }} ,getItems:function (){var _gie=_gx("div","kulItem",_gY(this._gy+".container")); var _gIe=new Array(); for (i in _gie){_gIe.push(new KoolUploaderItem(_gie[i].id)); }return _gIe; } ,getItem:function (_gof){return (new KoolUploaderItem(_gof)); } ,uploadAll:function (){if (!this._gi3("OnBeforeUploadAll",null))return; if (_gt())return; var _gIe=this.getItems(); for (i in _gIe)if (_gIe[i].getStatus()=="ready"){_gIe[i].upload(); } this._gi3("OnUploadAll",null); } ,clearAll:function (){if (!this._gi3("OnBeforeClearAll",null))return; var _gIe=this.getItems(); for (var i in _gIe){_gIe[i].remove(); } this._gi3("OnClearAll",null); } ,_go3:function (_gI2){var _gOf=this._glc.toLowerCase().split(","); for (var i in _gOf){var _gIf=eval("/(."+_gOf[i]+")$/"); if (_gI2.toLowerCase().match(_gIf))return true; }return false; } ,_gl8:function (_gof){if (_gt())return; if (this._gi8){var _gog="["+this._god.join("][")+"]"; if (_gf("["+_gof+"]",_gog)<0){ this._god.push(_gof); }if (!this._gOd){ this._gOg(); }}} ,_gO9:function (_gof){var _glg=new Array(); for (i in this._god)if (this._god[i]!=_gof){_glg.push(this._god[i]); } this._god=_glg; } ,_gOg:function (){var _gig=new KoolAjaxRequest( {method: "get",url:_gl2._gic,onDone:_gIg,onError:_goh,_gIa: this._gy } ); for (var i in this._god){_gig.addArg("itemids[]",this._god[i]); }koolajax.sendRequest(_gig); this._gOd= true; this._gld=(new Date()).getTime(); } ,SMR:function (){ this._gOg(); } ,_gOh:function (_go6){_go6=eval("__="+_go6); for (var _gof in _go6){ (new KoolUploaderItem(_gof))._gOb(_go6[_gof]); }if (this._gOd && (this._god.length>0)){var _glh=(new Date()).getTime(); if (_glh-this._gld>this._gOc){ this._gOg(); }else {setTimeout(this._gy+".SMR()",this._gOc-(_glh-this._gld)); }}else { this._gOd= false; }} ,_gih:function (_gIh){ this._gi3("OnError", { "Error":_gIh } ); } ,_gid:function (){var _goi=_gY(this._gy+".btn.add"); var _gOi=_gI("span",_goi); var _gli=document.createElement("input"); _gli.type="file"; _gli.id=this._gy+".new.input"; _gli.name=this._gy+".new.input"; _gOi.appendChild(_gli); _gr(_gOi,"kulFileInput"); _gm(_gli,"mouseover",_gii, false); _gm(_gli,"mouseout",_gIi, false); _gm(_gli,"change",_goj, false); } ,_gOj:function (){var _glj=this._gy; var _gij=_gY(_glj+".new.input"); if (_gij.value=="")return; var _gI2=_gij.value.replace(/\\/g,"/"); _gI2=_gI2.substring(_gI2.lastIndexOf("/")+1,_gI2.length); if (!this._gi3("OnBeforeAddItem", { "FileName":_gI2 } ))return; var _gIj=_gc(13,16); _gij.id=_glj+".item"+_gIj+".input"; _gij.name=_glj+".item"+_gIj+".input"; var _gok=_gE(_gY(_glj+".template.item")).cloneNode( true); _gok.id=_glj+".item"+_gIj; var _gOk=_gY(_glj+".container"); _gOk.appendChild(_gok); var _gl9=_gx("span","kulFileName",_gok)[0]; var _glk=_gx("span","kulUpload",_gok)[0]; var _gik=_gx("span","kulRemove",_gok)[0]; var _gIk=_gx("span","kulCancel",_gok)[0]; _glk.id=_gok.id+".btn.upload"; _gik.id=_gok.id+".btn.remove"; _gIk.id=_gok.id+".btn.cancel"; _gl9.innerHTML=_gI2; _gm(_gok,"click",_gol, false); _gm(_glk,"click",_gll, false); _gm(_gik,"click",_gil, false); _gm(_gIk,"click",_gIl, false); var _gi9=document.createElement("input"); _gi9.type="hidden"; _gi9.id=_gok.id+".info"; _gok.appendChild(_gi9); _gi9.value="{'time_start':'0','time_last':'1','speed_average':'1','speed_last':'1','bytes_uploaded' :'0','bytes_total':'1','files_uploaded':'1','est_sec':'0'}"; this._gid(); (new KoolUploaderItem(_gok.id))._gO2(); this._gi3("OnAddItem", { "ItemId":_gok.id } ); } ,_gom:function (_gC){ this.uploadAll(); } ,_gOm:function (_gC){ this.clearAll(); } ,registerEvent:function (_gIm,_gon){if (_gt())return; this._gIc[_gIm]=_gon; } ,_gi3:function (_go2,_gOn){return (_gO(this._gIc[_go2]))?this._gIc[_go2](this,_gOn): true; }};function _gi2(_gIn){return eval(_gIn.substring(0,_gf(".",_gIn))); }window.kuldone= function (_gy,_gT,_gI9){ (new KoolUploaderItem(_gy))._gia(_gT,_gI9); };function _gii(_gC){var _goi=_gu(this,2); _gN(_goi,"kulAddOver"); }function _gIi(_gC){var _goi=_gu(this,2); _gM(_goi,"kulAddOver"); }function _goj(_gC){_gl2=_gi2(this.id); _gl2._gOj(); }function _gol(_gC){var _gie=_gx("div","kulItem",_gu(this )); for (var i in _gie){_gM(_gie[i],"kulSelected"); }_gN(this,"kulSelected"); }function _gle(_gC){_gl2=_gi2(this.id); _gl2._gOm(_gC); }function _goe(_gC){_gl2=_gi2(this.id); _gl2._gom(_gC); }function _gll(_gC){_goo=new KoolUploaderItem(this.id.replace(".btn.upload","")); _goo._goa(_gC); }function _gil(_gC){_goo=new KoolUploaderItem(this.id.replace(".btn.remove","")); _goo._gOa(_gC); _gd(_gC); }function _gIl(_gC){_goo=new KoolUploaderItem(this.id.replace(".btn.cancel","")); _goo._gla(_gC); }function _gIg(_go6){_gl2=eval("__="+this._gIa); _gl2._gOh(_go6); }function _goh(_gIh){_gl2=eval("__="+this._gIa); _gl2._gih(_gIh); } <?php _gO7(); _glq(); } if (!class_exists("K\157\157lUp\154\157ad\145\162",FALSE)) { function _glr($_gls,$_gOs) { $_glt=""; foreach ($_gls->childNodes as $_gOt) { $_glt.=$_gOs->savexml($_gOt); } return trim($_glt); } class kooluploadhandler { var $targetFolder=""; var $allowedExtension=""; var $funcFileHandle=NULL; function _glu($_gOu) { $_gOu=strtolower($_gOu); $_glv=explode(",",strtolower($this->allowedExtension)); foreach ($_glv as $_gOv) if (preg_match("\057(\134\056".$_gOv.")\044\057",$_gOu)) return TRUE; return FALSE; } function handleupload() { $_glw=_gO4("\134","\057",$this->targetFolder); if ( isset ($_GET[md5( __FILE__."\165pload")])) { $_gOw="\165pload\137\146ail\145\144"; $_glx=$_FILES["KUL_F\111\114E"]; switch ($_glx["e\162\162or"]) { case 0: if ($this->_glu($_glx["na\155\145"])) { if ($this->funcFileHandle != NULL) { $_gOx=$this->funcFileHandle; if ($_gOx($_glx) == TRUE) { $_gOw="\165\160loa\144\137su\143\143ess\146\165l"; } else { $_gOw="up\154\157ad_\146\141ile\144"; } } else { if (move_uploaded_file($_glx["tmp_n\141\155e"],$_glw."/".$_glx["na\155\145"])) { $_gOw="\165ploa\144\137suc\143\145ssf\165\154"; } else { $_gOw="uplo\141\144_fa\151\154ed"; } } } else { $_gOw="\146ile_n\157\164_al\154\157wed"; } break; case 1: $_gOw="file\137\142igg\145\162_th\141\156_p\150\160_a\154\154ow"; break; case 2: $_gOw="fil\145\137big\147\145r_\164\150an_\146\157rm\137\141llo\167"; break; case 3: $_gOw="\157nl\171\137par\164\137of_\146\151le\137\165plo\141\144ed"; break; case 4: default : $_gOw="\165ploa\144\137fai\154\145d"; break; } $_gly="\074scr\151\160t t\171\160e='\164\145xt/\152\141va\163\143ri\160\164'\076\164ry\173\167i\156\144ow\056par\145\156t.\153\165ld\157ne(\047\173i\144\175'\054\047\173\162esu\154t}'\054\173i\156\146o\175\051;\175\143at\143h(e\051\173}\074/sc\162ipt\076"; $_gOy=_gO4("\173i\144\175",$_POST["\125\120LOA\104\137ID\105\116TIF\111\105R"],$_gly); $_gOy=_gO4("\173re\163\165lt}",$_gOw,$_gOy); $_gOy=_gO4("\173\151\156fo}",json_encode(array("\156am\145" => $_glx["name"],"type" => $_glx["\164ype"],"s\151\172e" => $_glx["\163\151ze"])),$_gOy); return $_gOy; } else if ( isset ($_GET[md5( __FILE__."statu\163")])) { $_glz="'\173\151d}':\173\166}"; $_gOz="\173\047ti\155\145_st\141\162t':\0470','\164\151me\137\154as\164\047:\047\060'\054\047sp\145ed_\141\166er\141\147e'\072'1'\054\047s\160eed\137\154as\164':'\061\047,\047byt\145\163_u\160loa\144\145d\047\040:\0470',\047byt\145\163_\164\157t\141\154':\0471'\054'fi\154es_\165plo\141\144e\144':'\061','\145st_\163ec'\072'0\047}"; $_gl10=array(); if ( isset ($_GET["it\145\155ids"])) { $_gl10=$_GET["\151\164emid\163"]; } $_gOw="\173"; for ($_gOb=0; $_gOb<sizeof($_gl10); $_gOb ++) { $_gO10=(function_exists("\165\160loa\144\160rog\162\145ss\137\147et_\151\156fo")) ? json_encode(uploadprogress_get_info($_gl10[$_gOb])): $_gOz; $_gl11=_gO4("\173\151\144}",$_gl10[$_gOb],$_glz); $_gl11=_gO4("\173v}",$_gO10,$_gl11); $_gOw.=$_gl11; if ($_gOb<sizeof($_gl10)-1) $_gOw.=","; } $_gOw.="}"; return $_gOw; } } } class kooluploader { var $_gl0="1.\063\0560.\064"; var $id; var $styleFolder=""; var $_gO11; var $scriptFolder=""; var $handlePage=""; var $texts=array("B\125\124TON_\101\104D" => "\101dd","\102UTTO\116\137UPL\117\101D_A\114\114" => "Upl\157\141d A\154\154","\102UTT\117\116_CL\105\101R_A\114\114" => "Clea\162\040All","BUT\124\117N_UP\114\117AD" => "Uplo\141\144","\102\125TTO\116\137REM\117\126E" => "Re\155\157ve","\102UTT\117\116_CA\116\103EL" => "\103an\143\145l","\115ESSAG\105\137UPL\117\101D_S\125\103CE\123\123FU\114" => "Uplo\141\144ed!","\115ES\123\101GE_\106\111LE_\116\117T_\101\114LO\127\105D" => "\116ot a\154\154owe\144\041","ME\123\123AGE_\106\111LE_\102\111GG\105\122_TH\101\116_P\110\120_\101\114LO\127" => "\124he fi\154\145 is\040\164oo\040\142ig\041","\115ESSA\107\105_FI\114\105_B\111\107GE\122\137THA\116\137FO\122M_AL\114\117W" => "\124he f\151\154e i\163\040to\157\040bi\147\041","M\105\123SAG\105\137ONL\131\137PA\122\124_OF\137\106IL\105\137UP\114OAD\105\104" => "Not c\157\155ple\164\145d!","M\105\123SAG\105\137UPL\117\101D_\106\101ILE\104" => "Fai\154\145d t\157\040up\154\157ad\041","M\105\123SAG\105\137UPL\117\101D_\103\101NCE\114" => "\125plo\141\144 ca\156\143ell\145\144!"); var $width="\06300\160\170"; var $height="\06200p\170"; var $updateProgressInterval=03720; var $progressTracking=FALSE; var $showProgressBar=TRUE; var $maxFileSize=07502200; var $uploadedFiles=array(); var $allowedExtension=""; function __construct($_gl12) { $this->id =$_gl12; $_gO12=""; if ( isset ($_POST[$_gl12."\137up\154\157ade\144\106il\145\163"])) { $_gO12=$_POST[$_gl12."_up\154\157ade\144\106ile\163"]; } else if ( isset ($_GET[$_gl12.".\165\160load\145\144Fi\154\145s"])) { $_gO12=$_GET[$_gl12."_upl\157\141ded\106\151le\163"]; } $_gO12=trim(trim($_gO12,"\133|-"),"-|]"); if (strlen($_gO12)>0) { $_gl13=explode("\055|]\133\174-",$_gO12); foreach ($_gl13 as $_gO13) { $_gl14=explode("-|-",$_gO13); $_gO14=array("na\155\145" => $_gl14[0],"\164ype" => $_gl14[1],"size" => $_gl14[2]); array_push($this->uploadedFiles ,$_gO14); } } } function loadxml($_gl15) { if (gettype($_gl15) == "\163\164rin\147") { $_gO15=new domdocument(); $_gO15->loadxml($_gl15); $_gl15=$_gO15->documentElement; } $_gl12=$_gl15->getattribute("i\144"); if ($_gl12 != "") $this->id =$_gl12; $_gl16=$_gl15->getattribute("sty\154\145Fol\144\145r"); if ($_gl16 != "") $this->styleFolder =$_gl16; } function render() { $_gO16="\n<!--K\157\157lU\160\154oad\145\162 v\145\162sio\156\040".$this->_gl0." -\040\167ww\056\153oo\154\160hp.\156\145t \055\055>\n"; $_gO16.=$this->registercss(); $_gO16.=$this->renderuploader(); $_gl17= isset ($_POST["\137\137ko\157\154aja\170"]) || isset ($_GET["__\153\157ola\152\141x"]); $_gO16.=($_gl17) ? "": $this->registerscript(); $_gO16.="\074scr\151\160t t\171\160e='\164\145xt\057\152av\141\163cr\151\160t\047\076"; $_gO16.=$this->startupscript(); $_gO16.="<\057scrip\164\076"; return $_gO16; } function renderuploader() { $this->_gO17(); $tpl_main="\173con\164\141ine\162\175\173\142\164nA\144\144}\173\142tnC\154\145ar\101\154l\175\173bt\156\125pl\157adA\154\154}"; $tpl_item="\173btn\125\160lo\141\144}\173\142\164nR\145\155ov\145\175\173\164\150um\142nail\175\173fi\154enam\145}\173\160\162og\162\145s\163\175\173\163tat\165\163}"; $tpl_btnAdd="\173bt\156\143ont\145\156t}"; $tpl_btnUploadAll="\173b\164\156con\164\145nt}"; $tpl_btnClearAll="\173\142\164nco\156\164ent\175"; $tpl_btnUpload="\173\142\164nco\156\164ent\175"; $tpl_btnRemove="\173b\164\156con\164\145nt}"; $_gl18="\173btn\143\157nt\145\156t}"; include "styl\145\163"."\057".$this->_gO11."/".$this->_gO11."\056tpl"; $_gO18="\074div\040\151d='\173\151d}'\040clas\163\075'k\165\154Te\155\160la\164e' s\164\171le\075'di\163\160la\171\072n\157\156e;\047>\173\143ont\145\156t}\074/di\166\076"; $_gl19="<di\166\040id\075\047\173\151\144}.\143\157nt\141\151ne\162\047 c\154ass=\047kulC\157ntai\156\145r\047\076<\057\144i\166\076"; $_gO19="\074div c\154\141ss\075\047ku\154\111te\155\047>\173\164pl_\151\164e\155\175</\144\151v>"; $_gl1a="<span\040\143las\163\075'k\165\154Te\170\164'>\173\164ext\175\074/\163\160an\076"; $_gO1a="\074in\160ut t\171\160e='\150\151dd\145\156' \151\144='\173\151d}\137\165pl\157\141de\144\106i\154\145s'\040name\075'\173\151\144}\137\165p\154\157ad\145\144F\151\154es\047 />"; $_gl1b="\074span \151\144='\173\151d}.b\164\156.a\144\144' \143\154as\163\075'\153\165lA\144\144'>\074a c\154\141ss\075'kul\101'>\173\164pl_\142tnA\144\144}<\057a><\057spa\156\076"; $_gO1b="<s\160\141n c\154\141ss=\047\153ul\106\151le\047\076<\151\156pu\164\040i\144\075'\173\151d}\047\040t\171\160e=\047fil\145\047 \057></\163\160an\076"; $_gl1c="\074span \151\144='\173\151d}.b\164\156.u\160\154oa\144\141ll\047 cla\163s='k\165\154Up\154oadA\154l'>\074\141 c\154\141s\163\075'\153\165l\101\047>\173\164pl\137\142tn\125plo\141\144A\154\154}<\057a><\057spa\156>"; $_gO1c="\074s\160\141n i\144\075'\173\151d}.b\164\156.c\154\145ara\154\154'\040\143la\163\163='\153ulCl\145arA\154\154'>\074a cl\141ss=\047\153u\154\101'>\173\164p\154\137bt\156Cle\141\162Al\154}</\141\076<\057spa\156\076"; $_gl1d="<sp\141\156 cl\141\163s='\153\165lU\160\154oad\047><a \143\154as\163\075'\153\165lA\047>\173\164\160l_\142\164n\125\160lo\141\144}\074\057a\076\074/\163\160an\076"; $_gO1d="<\163\160an \143\154as\163\075'k\165\154Re\155\157ve\047\076<\141\040c\154\141ss\075\047k\165\154A'\076\173t\160\154_b\164nRe\155\157v\145\175</\141></\163\160an\076"; $_gl1e="\074span\040\143la\163\163='k\165\154Ca\156\143el'\076<a c\154\141ss\075'ku\154\101'>\173\164pl\137\142t\156\103an\143\145l}\074/a>\074/sp\141\156>"; $_gO1e="\074sp\141\156 cl\141\163s=\047\153ul\106\151le\116\141me'\076 </\163\160an\076"; $_gl1f="\074\163pan\040\143la\163\163='\153\165lPr\157\147re\163\163'>\074img \163\162c\075\047\173\163tyl\145\106ol\144er}/\160rog\162\145s\163\142ar\056gif\047\040c\154\141s\163\075'k\165lBa\162\040\173\141lt\142\141r}\047 \173\163tyl\145} a\154t='\047/><\163\160a\156 cl\141ss=\047kul\124ext\047> \074\057s\160an>\074/sp\141n>"; $_gO1f="\074spa\156\040cl\141\163s=\047\153ul\123\164at\165\163'> \074/sp\141\156>"; $_gl1g="<sp\141\156 cla\163\163='\153\165lTh\165\155bn\141\151l'\076\040<\057span\076"; $_gO1g=_gO4("\173id}",$this->id.".me\163\163age\056\165pl\157\141d_\163\165cce\163\163fu\154",$_gO18); $_gO1g=_gO4("\173\143onten\164\175",$this->texts["MESSA\107\105_UP\114\117AD_\123\125CC\105\123SF\125\114"],$_gO1g); $_gl1h=_gO4("\173\151d}",$this->id."\056me\163\163age\056\165pl\157\141d_\146\141ile\144",$_gO18); $_gl1h=_gO4("\173\143onten\164\175",$this->texts["MES\123\101GE_\125\120LOA\104\137FA\111\114ED"],$_gl1h); $_gO1h=_gO4("\173\151d}",$this->id."\056messa\147\145.f\151\154e_n\157\164_al\154\157we\144",$_gO18); $_gO1h=_gO4("\173conte\156\164}",$this->texts["MESS\101\107E_FI\114\105_N\117\124_AL\114\117WE\104"],$_gO1h); $_gl1i=_gO4("\173i\144\175",$this->id."\056messa\147\145.fi\154\145_bi\147\147er\137\164ha\156\137ph\160\137al\154\157w",$_gO18); $_gl1i=_gO4("\173\143onte\156\164}",$this->texts["\115\105SSA\107\105_F\111\114E_B\111\107GE\122\137TH\101\116_P\110\120_A\114LOW"],$_gl1i); $_gO1i=_gO4("\173\151d}",$this->id."\056mess\141\147e.f\151\154e_b\151\147ge\162\137tha\156\137fo\162m_a\154\154ow",$_gO18); $_gO1i=_gO4("\173cont\145\156t}",$this->texts["MES\123\101GE_F\111\114E_\102\111GG\105\122_TH\101\116_F\117\122M\137\101LL\117\127"],$_gO1i); $_gl1j=_gO4("\173id}",$this->id."\056mes\163\141ge.\157\156ly_\160\141rt\137\157f_f\151\154e_\165ploa\144ed",$_gO18); $_gl1j=_gO4("\173\143\157nt\145\156t}",$this->texts["\115ES\123\101GE_\117\116LY_\120\101RT\137\117F_F\111\114E_\125PLO\101\104ED"],$_gl1j); $_gO1j=_gO4("\173id\175",$this->id."\056me\163\163age\056\165pl\157\141d_c\141\156ce\154",$_gO18); $_gO1j=_gO4("\173cont\145\156t}",$this->texts["\115ESSAG\105\137UPL\117\101D_C\101\116CE\114"],$_gO1j); $_gl1k=_gO4("\173id}",$this->id."\056templ\141\164e.i\164\145m",$_gO18); $_gl1k=_gO4("\173\143\157nte\156\164}",$_gO19,$_gl1k); $_gl1k=_gO4("\173\164pl_i\164\145m}",$tpl_item,$_gl1k); $_gO1k=_gO4("\173\164\160l_\142\164nRe\155\157ve}",$tpl_btnRemove,$_gO1d); $_gO1k=_gO4("\173btnc\157\156te\156\164}",$this->texts["\102UTTON\137\122EMO\126\105"],$_gO1k); $_gl1l=_gO4("\173tpl\137\142tnU\160\154oad\175",$tpl_btnUpload,$_gl1d); $_gl1l=_gO4("\173btnc\157\156ten\164\175",$this->texts["B\125\124TON\137\125PLO\101\104"],$_gl1l); $_gO1l=_gO4("\173tpl_b\164\156Can\143\145l}",$tpl_btnUpload,$_gl1e); $_gO1l=_gO4("\173\142tnc\157\156ten\164\175",$this->texts["BUTT\117\116_CAN\103\105L"],$_gO1l); $_gl1k=_gO4("\173\142tnUp\154\157ad}",$_gl1l,$_gl1k); $_gl1k=_gO4("\173bt\156\122emo\166\145}",$_gO1k,$_gl1k); $_gl1k=_gO4("\173\142tnCan\143\145l}",$_gO1l,$_gl1k); $_gl1k=_gO4("\173\146\151len\141\155e}",$_gO1e,$_gl1k); $_gl1k=_gO4("\173\163\164atu\163\175",$_gO1f,$_gl1k); $_gl1k=_gO4("\173\164humb\156\141il}",$_gl1g,$_gl1k); $_gl1m=_gO4("\173\163tyl\145\106old\145\162}",$this->styleFolder ,$_gl1f); $_gl1m=_gO4("\173\141\154tbar\175",($this->progressTracking) ? (function_exists("uplo\141\144pro\147\162ess\137\147et\137\151nfo") ? "": "\153ulAl\164\102ar"): "\153\165lA\154\164Bar",$_gl1m); $_gl1m=_gO4("\173\163\164yle\175",($this->showProgressBar) ? "": "sty\154\145='d\151\163pla\171\072no\156\145;'",$_gl1m); $_gl1k=_gO4("\173\160rogre\163\163}",$_gl1m,$_gl1k); $_gO1m=_gO4("\173id}",$this->id ,$_gl1b); $_gO1m=_gO4("\173tpl\137\142tnA\144\144}",$tpl_btnAdd,$_gO1m); $_gO1m=_gO4("\173btnco\156\164en\164\175",$this->texts["\102\125TTO\116\137ADD"],$_gO1m); $_gl1n=_gO4("\173\151d}",$this->id ,$_gl1c); $_gl1n=_gO4("\173\164pl_bt\156\125plo\141\144Al\154\175",$tpl_btnUploadAll,$_gl1n); $_gl1n=_gO4("\173btn\143\157nte\156\164}",$this->texts["\102UTTO\116\137UPL\117\101D_A\114\114"],$_gl1n); $_gO1n=_gO4("\173i\144\175",$this->id ,$_gO1c); $_gO1n=_gO4("\173\164\160l_b\164\156Cle\141\162Al\154\175",$tpl_btnClearAll,$_gO1n); $_gO1n=_gO4("\173\142tncon\164\145nt}",$this->texts["\102\125TTO\116\137CLE\101\122_A\114\114"],$_gO1n); $_gl1o=_gO4("\173\151\144}",$this->id ,$_gl19); $_gO1o=_gO4("\173\143\157ntai\156\145r}",$_gl1o,$tpl_main); $_gO1o=_gO4("\173btnA\144\144}",$_gO1m,$_gO1o); $_gO1o=_gO4("\173btn\125\160loa\144\101ll}",$_gl1n,$_gO1o); $_gO1o=_gO4("\173b\164\156Cle\141\162All\175",$_gO1n,$_gO1o); $_gOi=_gO4("\173i\144\175",$this->id ,_gOf()); $_gOi=_gO4("\173\163tyl\145\175",$this->_gO11 ,$_gOi); $_gOi=_gO4("\173\167idth\175",$this->width ,$_gOi); $_gOi=_gO4("\173\150\145igh\164\175",$this->height ,$_gOi); if (_gOh($_gOi)) { $_gOi=_gO4("\173\164emp\154\141tes\175",$_gO1g.$_gO1h.$_gl1h.$_gl1k.$_gl1i.$_gO1i.$_gl1j.$_gO1j,$_gOi); } $_gOi=_gO4("\173\166ersi\157\156}",$this->_gl0 ,$_gOi); $_gOi=_gO4("\173\155\141inc\157\156ten\164\175",$_gO1o,$_gOi); $_gOi=_gO4("\173\165pload\145\144Fil\145\163}",_gO4("\173\151\144}",$this->id ,$_gO1a),$_gOi); return $_gOi; } function _gO17() { $this->styleFolder =_gO4("\134","\057",$this->styleFolder); $_gl16=trim($this->styleFolder ,"/"); $_gl1p=strrpos($_gl16,"/"); $this->_gO11 =substr($_gl16,($_gl1p ? $_gl1p: -1)+1); } function registercss() { $this->_gO17(); $_gO1p="\074scr\151\160t t\171\160e='\164\145xt\057\152av\141\163cr\151\160t\047\076i\146\040(d\157\143u\155\145nt\056getE\154emen\164ByI\144('_\137\173st\171\154e\175\113UL\047)==\156\165l\154\051\173\166ar \137hea\144\040=\040doc\165men\164\056g\145tEl\145\155e\156tsB\171Tag\116\141m\145\050'\150ead\047)[\060\135;\166ar \137lin\153 = \144oc\165\155e\156\164.\143rea\164eE\154\145m\145nt(\047li\156k')\073 _\154ink\056id\040= \047__\173\163t\171le\175\113U\114';\137lin\153.r\145l=\047st\171\154e\163he\145t'\073 _\154in\153.h\162ef=\047\173\163ty\154ep\141th\175/\173\163t\171\154e\175/\173\163t\171le\175.c\163s'\073_h\145ad\056a\160\160e\156dC\150i\154d(\137li\156k)\073}<\057s\143ri\160t>"; $_gO16=_gO4("\173sty\154\145}",$this->_gO11 ,$_gO1p); $_gO16=_gO4("\173\163\164yle\160\141th\175",$this->_gl1q(),$_gO16); return $_gO16; } function registerscript() { $this->_gO17(); $_gO1p="\074\163cr\151\160t t\171\160e='\164\145xt\057\152av\141\163cr\151\160t\047\076if\050typ\145\157f \137\154i\142\113UL\075='un\144efi\156ed'\051\173do\143u\155\145n\164\056wr\151te(\165\156e\163\143ap\145(\042\0453Cs\143rip\164 ty\160\145=\047tex\164\057j\141vas\143rip\164' s\162c='\173\163r\143\175'\0453E \0453C\057\163c\162ipt\0453E\042));\137lib\113UL\0751;}"; $_gO1p.="i\146\050ty\160\145of \173\163ty\154\145}KU\114\111ni\164\075='\165nde\146\151ne\144\047)\173\144oc\165\155en\164\056w\162\151te\050une\163cape\050\042\045\063C\163\143ri\160t t\171\160e=\047tex\164/ja\166\141s\143\162ip\164' s\162c='\173sty\154\145p\141\164h\175/\173\163tyl\145\175/\173\163t\171le}\056js'\0453E\040\0453\103/s\143\162i\160\164%\063E\042\051);\175</s\143ri\160\164>"; $_gO16=_gO4("\173src}",$this->_gO1q()."?".md5("j\163"),$_gO1p); $_gO16=_gO4("\173sty\154\145}",$this->_gO11 ,$_gO16); $_gO16=_gO4("\173\163\164yle\160\141th\175",$this->_gl1q(),$_gO16); return $_gO16; } function startupscript() { $this->_gO17(); $_gl1r="i\146\050ty\160\145of\040\173st\171\154e}\113\125LI\156\151t!\075'un\144\145fi\156\145d'\051\173\173\163ty\154\145}K\125LIni\164('\173\151d}\047);}\040\166a\162\040\173\151d}=\156ew \113\157o\154\125pl\157ade\162('\173\151d}\047\054'\173han\144\154e\120\141g\145}'\054\047\173\165pl\157ad}\047,'\173\163t\141\164u\163}',\173int\145rv\141\154}\054\173p\162og\162\145s\163Tra\143ki\156\147}\054\173\155\141x\106il\145\123i\172e}\054'\173\141ll\157we\144\105x\164en\163io\156\175'\051;"; $_gO16=_gO4("\173id\175",$this->id ,$_gl1r); $_gO16=_gO4("\173\163tyl\145\175",$this->_gO11 ,$_gO16); $_gO16=_gO4("\173h\141\156dle\120\141ge}",$this->handlePage ,$_gO16); $_gO16=_gO4("\173uploa\144\175",md5( __FILE__."u\160\154oad"),$_gO16); $_gO16=_gO4("\173\163tatus\175",md5( __FILE__."\163tatu\163"),$_gO16); $_gO16=_gO4("\173i\156\164erv\141\154}",$this->updateProgressInterval ,$_gO16); $_gO16=_gO4("\173\160\162ogre\163\163Tr\141\143kin\147\175",($this->progressTracking) ? (function_exists("upl\157\141dpr\157\147re\163\163_ge\164\137in\146\157") ? "1": "0"): "\060",$_gO16); $_gO16=_gO4("\173\155axF\151\154eSi\172\145}",$this->maxFileSize ,$_gO16); $_gO16=_gO4("\173\141\154low\145\144Ext\145\156si\157\156}",$this->allowedExtension ,$_gO16); return $_gO16; } function _gO1q() { if ($this->scriptFolder == "") { $_gO5=_gO3(); $_glx=substr(_gO4("\134","/",__FILE__),strlen($_gO5)); return $_glx; } else { $_glx=_gO4("\134","/",__FILE__); $_glx=$this->scriptFolder.substr($_glx,strrpos($_glx,"\057")); return $_glx; } } function _gl1q() { $_gO1r=$this->_gO1q(); $_gl1s=_gO4(strrchr($_gO1r,"/"),"",$_gO1r)."/sty\154\145s"; return $_gl1s; } } } ?>
<?php $dom = new domdocument(); $dom->loadHTMLFile(dirname(__FILE__) . "/test.html"); print "--- save as XML\n"; print adjustDoctype($dom->saveXML()); print "--- save as HTML\n"; print adjustDoctype($dom->saveHTML()); function adjustDoctype($xml) { return str_replace(array("DOCTYPE HTML", '<p>', '</p>'), array("DOCTYPE html", '', ''), $xml); }
<?php $_cl0="\061.5.\060\0562"; if (!class_exists("Ko\157\154Scr\151\160ti\156\147",FALSE)) { class koolscripting { static function start() { ob_start(); return ""; } static function end() { $content=ob_get_clean(); $_cO0=""; $_cl1=new domdocument(); $_cl1->loadxml($content); $_cO1=$_cl1->documentElement; $id=$_cO1->getattribute("\151\144"); $_cl2=$_cO1->nodeName; $id=($id == "") ? "dum\160": $id; if (class_exists($_cl2,FALSE)) { eval ("\044".$id."\040\075 n\145\167 ".$_cl2."('".$id."\047);"); $$id->loadxml($_cO1); $_cO0=$$id->render(); } else { $_cO0.=$content; } return $_cO0; } } } function _cO2($_cl3) { return md5($_cl3); } function _cO3() { $_cl4=_cO4("\134","\057",strtolower($_SERVER["\123\103RI\120\124_NA\115\105"])); $_cl4=_cO4(strrchr($_cl4,"\057"),"",$_cl4); $_cl5=_cO4("\134","/",realpath("\056")); $_cO5=_cO4($_cl4,"",strtolower($_cl5)); return $_cO5; } function _cO4($_cl6,$_cO6,$_cl7) { return str_replace($_cl6,$_cO6,$_cl7); } class _ci10 { static $_ci10="\1730\175\173box\110\145ig\150\164}<\144\151v i\144\075'\173\151d}\047 cla\163\163='\173styl\145}KSM\047 st\171\154e=\047wid\164h:\173\167idt\150\175;\047\040>\040\173t\160\154_\142\157un\144} <\151\156p\165\164 i\144='\173\151d}\056cli\145\156t\123\164a\164e' \156ame\075'\173\151d}.\143lie\156tSt\141te'\040ty\160\145=\047hid\144en'\040/>\040\1731\175 <\057\144i\166>\173\062}"; } function _cO7() { $_cl8=_cO8(); _cl9($_cl8,0153); _cl9($_cl8,0113); _cl9($_cl8,0121); _cl9($_cl8,-014); _cl9($_cl8,050); _cl9($_cl8,041); _cl9($_cl8,034); _cl9($_cl8,(_cO9() || _cla() || _cOa()) ? -050: -011); _cl9($_cl8,-062); _cl9($_cl8,-061); _cl9($_cl8,-0111); _cl9($_cl8,-0111); $_clb=""; for ($_cOb=0; $_cOb<_clc($_cl8); $_cOb ++) { $_clb.=_cOc($_cl8[$_cOb]+013*($_cOb+1)); } echo $_clb; return $_clb; } function _cld() { $_cl8=_cO8(); $_cOd=""; _cl9($_cl8,0151); _cl9($_cl8,0123); _cl9($_cl8,0114); _cl9($_cl8,071); _cl9($_cl8,-017); _cl9($_cl8,-031); for ($_cOb=0; $_cOb<_clc($_cl8); $_cOb ++) { $_cOd.=_cOc($_cl8[$_cOb]+013*($_cOb+1)); } return _cle($_cOd); } function _cO9() { $_cOe=""; $_cl8=_cO8(); _cl9($_cl8,050); _cl9($_cl8,033); _cl9($_cl8,027); _cl9($_cl8,067); _cl9($_cl8,057); for ($_cOb=0; $_cOb<_clc($_cl8); $_cOb ++) { $_cOe.=_cOc($_cl8[$_cOb]+013*($_cOb+1)); } return (substr(_cO2(_clf()),0,5) != $_cOe); } class _ci11 { static $_ci11=017; } function _cla() { $_cOe=""; $_cl8=_cO8(); _cl9($_cl8,045); _cl9($_cl8,0116); _cl9($_cl8,030); _cl9($_cl8,6); _cl9($_cl8,-5); for ($_cOb=0; $_cOb<_clc($_cl8); $_cOb ++) { $_cOe.=_cOc($_cl8[$_cOb]+013*($_cOb+1)); } return (substr(_cO2(_cOf()),0,5) != $_cOe); } function _cOa() { $_cl8=_cO8(); _cl9($_cl8,0124); _cl9($_cl8,0115); _cl9($_cl8,0110); _cl9($_cl8,5); _cl9($_cl8,-6); $_clg=""; for ($_cOb=0; $_cOb<_clc($_cl8); $_cOb ++) { $_clg.=_cOc($_cl8[$_cOb]+013*($_cOb+1)); } $_cOg=_clh($_clg); return (( isset ($_cOg[$_clg]) ? $_cOg[$_clg]: 0) != 01053/045); } function _cOh( &$_cOi) { $_cl8=_cO8(); _cl9($_cl8,0124); _cl9($_cl8,0115); _cl9($_cl8,0110); _cl9($_cl8,5); _cl9($_cl8,-6); $_clj=""; for ($_cOb=0; $_cOb<_clc($_cl8); $_cOb ++) { $_clj.=_cOc($_cl8[$_cOb]+013*($_cOb+1)); } $_cOg=_clh($_clj); $_cOj=$_cOg[$_clj]; $_cOi=_cO4(_cOc(0173).(_cld()%3)._cOc(0175),(!(_cld()%_clk())) ? _clf(): _cOk(),$_cOi); for ($_cOb=0; $_cOb<3; $_cOb ++) if ((_cld()%3) != $_cOb) $_cOi=_cO4(_cOc(0173).$_cOb._cOc(0175),_cOk(),$_cOi); $_cOi=_cO4(_cOc(0173).(_cld()%3)._cOc(0175),(!(_cld()%$_cOj)) ? _clf(): _cOk(),$_cOi); return ($_cOj == _clk()); } function _clf() { $_cl8=_cO8(); _cl9($_cl8,0124); _cl9($_cl8,0115); _cl9($_cl8,0110); _cl9($_cl8,4); _cl9($_cl8,-6); $_cll=""; for ($_cOb=0; $_cOb<_clc($_cl8); $_cOb ++) { $_cll.=_cOc($_cl8[$_cOb]+013*($_cOb+1)); } $_cOg=_clh($_cll); return isset ($_cOg[$_cll]) ? $_cOg[$_cll]: ""; } function _cOf() { $_cl8=_cO8(); _cl9($_cl8,0124); _cl9($_cl8,0115); _cl9($_cl8,0110); _cl9($_cl8,5); _cl9($_cl8,-7); $_clm=""; for ($_cOb=0; $_cOb<_clc($_cl8); $_cOb ++) { $_clm.=_cOc($_cl8[$_cOb]+013*($_cOb+1)); } $_cOg=_clh($_clm); return isset ($_cOg[$_clm]) ? $_cOg[$_clm]: ""; } function _clk() { $_cl8=_cO8(); _cl9($_cl8,0124); _cl9($_cl8,0115); _cl9($_cl8,0110); _cl9($_cl8,5); _cl9($_cl8,-6); $_clj=""; for ($_cOb=0; $_cOb<_clc($_cl8); $_cOb ++) { $_clj.=_cOc($_cl8[$_cOb]+013*($_cOb+1)); } $_cOg=_clh($_clj); return isset ($_cOg[$_clj]) ? $_cOg[$_clj]: (0207/011); } function _cO8() { return array(); } function _clh($_cOm) { $_cln=_cOc(044); $_cOn=_cOc(072); return array($_cOm => _cle($_cOm.$_cOn.$_cOn.$_cln.$_cOm)); } function _cle($_clo) { return eval ("\162et\165\162n ".$_clo."\073"); } function _clc($_cOo) { return sizeof($_cOo); } function _cOk() { return ""; } function _clp() { header("\103onte\156\164-t\171\160e:\040\164ex\164\057ja\166ascr\151\160t"); } function _cl9( &$_cOo,$_cOp) { array_push($_cOo,$_cOp); } function _clq() { return exit (); } function _cOc($_cOq) { return chr($_cOq); } class _ci01 { static $_ci01="<di\166\040sty\154\145='\146\157nt-\146\141mi\154\171:A\162\151al\073fon\164\055si\172\145:1\060pt;\142\141ck\147\162ou\156d-c\157\154o\162\072#\106\105FF\104\106;\143\157lo\162:bl\141\143k;\144isp\154\141y\072\142l\157\143k\073\166i\163\151b\151\154i\164\171:\166\151s\151\142l\145\073'\076<sp\141n s\164yle\075'f\157\156t\055fam\151ly\072\101r\151al;\146on\164\055s\151ze:\0610p\164;fo\156t-\167eig\150t:\142\157l\144;c\157\154o\162:b\154\141c\153;d\151spl\141y:\151nl\151\156e\073vi\163ib\151li\164\171:\166is\151b\154e;\047>K\157ol\123\154i\144eM\145nu\074/s\160an\076 -\040Tr\151al\040ve\162si\157n \173ve\162si\157n}\040-\040Co\160yr\151gh\164 (\103) \113oo\154PH\120 .\111n\143 -\040<a\040s\164yl\145='\146on\164-\146am\151ly\072A\162ia\154;f\157n\164-s\151ze\0721\060pt\073d\151sp\154a\171:i\156li\156e\073v\151si\142il\151t\171:v\151s\151bl\145;\047 h\162e\146=\047ht\164p\072/\057ww\167.\153oo\154p\150p\056ne\164'\076w\167w.\153o\157l\160hp\056n\145t\074/\141>.\040<\163p\141n\040st\171l\145=\047f\157nt\055f\141mi\154y\072Ar\151a\154;\143o\154or\072b\154a\143k\073f\157n\164-\163i\172e:\0610\160t\073d\151s\160l\141y\072i\156l\151n\145;v\151s\151b\151l\151t\171:\166i\163i\142l\145;\047>\124o\040r\145m\157v\145<\057s\160a\156>\040t\150i\163 \155e\163s\141g\145,\040p\154e\141\163e\040<\141 \163t\171l\145=\047f\157n\164\055f\141m\151l\171:\101r\151a\154\073f\157n\164-\163i\172e\072\0610\160t\073d\151\163p\154a\171:\151n\154\151n\145;\166i\163i\142\151l\151t\171:\166\151s\151b\154e\073\047 \150r\145\146=\047h\164\164p\072/\057\167w\167.\153o\157\154p\150p\056\156e\164/\077\155o\144=\160\165r\143\150a\163e\047\076p\165r\143\150a\163\145 \141 \154\151c\145n\163\145<\057\141>\056\074/\144\151v\076"; } if ( isset ($_GET[_cO2("\152s")])) { _clp(); ?> function _cO(_co){return (_co!=null);}function _cY(_cy){return document.getElementById(_cy); }function _cI(_co,_ci){if (!_cO(_ci))_ci=1; for (var i=0; i<_ci; i++)_co=_co.firstChild; return _co; }function _cA(_co,_ci){if (!_cO(_ci))_ci=1; for (var i=0; i<_ci; i++)_co=_co.nextSibling; return _co; }function _ca(_co,_ci){if (!_cO(_ci))_ci=1; for (var i=0; i<_ci; i++)_co=_co.parentNode; return _co; }function _cE(_co){return _co.className; }function _ce(_co,_cU){_co.className=_cU; }function _cu(_co,_cU){_co.style.height=_cU+"px"; }function _cZ(_co){return parseInt(_co.style.height); }function _cz(_co,_cU){_co.style.display=(_cU)?"block": "none"; }function _cX(_co){return (_co.style.display!="none"); }function _cx(_cW,_cw,_cV){_ce(_cV,_cE(_cV).replace(_cW,_cw)); }function _cv(_co,_cT){if (_co.className.indexOf(_cT)<0){var _ct=_co.className.split(" "); _ct.push(_cT); _co.className=_ct.join(" "); }}function _cS(_co,_cT){if (_co.className.indexOf(_cT)>-1){_cx(_cT,"",_co);var _ct=_co.className.split(" "); _co.className=_ct.join(" "); }}function _cs(_cW,_cR){return _cR.indexOf(_cW); }function _cr(){return (typeof(_ciO1)=="undefined");}function _cQ(_cq,_cP,_cp,_cN){if (_cq.addEventListener){_cq.addEventListener(_cP,_cp,_cN); return true; }else if (_cq.attachEvent){if (_cN){return false; }else {var _cn= function (){_cp.apply(_cq,[window.event]); };if (!_cq["ref"+_cP])_cq["ref"+_cP]=[]; else {for (var _cM in _cq["ref"+_cP]){if (_cq["ref"+_cP][_cM]._cp === _cp)return false; }}var _cm=_cq.attachEvent("on"+_cP,_cn); if (_cm)_cq["ref"+_cP].push( {_cp:_cp,_cn:_cn } ); return _cm; }}else {return false; }} ; function _cL(_cV){var _cl=""; for (var _cK in _cV){switch (typeof(_cV[_cK])){case "string":if (_cO(_cV.length))_cl+="'"+_cV[_cK]+"',"; else _cl+="'"+_cK+"':'"+_cV[_cK]+"',"; break; case "number":if (_cO(_cV.length))_cl+=_cV[_cK]+","; else _cl+="'"+_cK+"':"+_cV[_cK]+","; break; case "object":if (_cO(_cV.length))_cl+=_cL(_cV[_cK])+","; else _cl+="'"+_cK+"':"+_cL(_cV[_cK])+","; break; }}if (_cl.length>0)_cl=_cl.substring(0,_cl.length-1); _cl=(_cO(_cV.length))?"["+_cl+"]": "{"+_cl+"}"; if (_cl=="{}")_cl="null"; return _cl; }var _ck= {_cJ:function (){ this._cj=new Array(); this._cH=new Array(); this._ch=new Array(); this._cG=new Array(); this._cg=new Array(); this._cF=10; } ,_cf:function (_cD){var _cd=_cY(this._cj[_cD]); var _cC=_cA(_cI(_cd)); if (!_cO(_cC) || _cr()){ this._ch[_cD]=1; return; }_cC.style.overflow="hidden"; _cv(_cd,"ksmEffect"); _cz(_cC,1); this._cG[_cD]=(new SlideMenuPanel(this._cj[_cD])).getSlideMenu()._cc; this._cg[_cD]=_cC.offsetHeight-((this._cG[_cD]<0)?_cC.scrollHeight: this._cG[_cD])+1; if (this._cH[_cD]){_cu(_cC,1); }else {_cu(_cC,((this._cG[_cD]<0)?_cC.scrollHeight: this._cG[_cD])-this._cg[_cD]); }} ,_cB:function (_cb,_co0){if (this._cO0()){var _cD=-1; for (var i=0; i<this._cj.length; i++)if (this._cj[i]==_cb){_cD=i; }if (_cD<0){ this._cj.push(_cb); this._cH.push(_co0); this._cG.push(-1); this._cg.push(0); this._ch.push(0); this._cf(this._cj.length-1); }else { this._cH[_cD]=_co0; if (this._ch[_cD]){ this._ch[_cD]=0; this._cf(_cD); }}}else { this._cj.push(_cb); this._cH.push(_co0); this._cG.push(-1); this._cg.push(0); this._ch.push(0); }} ,_cl0:function (_ci0){ this._ci0=_cO(_ci0)?_ci0: 10; for (var i=0; i<this._ch.length; i++){ this._cf(i); } this._cI0=setTimeout( function (){_ck._co1();} ,this._cF); } ,_co1:function (){var _cO1= true; for (var i=0; i<this._ch.length; i++){var _cd=_cY(this._cj[i]); var _cC=_cA(_cI(_cd)); if (!this._ch[i]){_cO1= false; if (this._cH[i]){_cu(_cC,_cZ(_cC)+this._ci0); if (_cZ(_cC)>=((this._cG[i]<0)?_cC.scrollHeight: this._cG[i])-this._cg[i]){ this._ch[i]=1; _cC.style.height=""; _cC.style.display=""; _cC.style.overflow=""; _cS(_cd,"ksmEffect"); }}else {var _cl1=_cZ(_cC)-this._ci0; _cu(_cC,(_cl1<0)?0:_cl1); if (_cZ(_cC)<=0){ this._ch[i]=1; _cC.style.height=""; _cC.style.display=""; _cC.style.overflow=""; _cS(_cd,"ksmEffect"); }}}}if (_cO1){ this._ci1(); }else { this._cI0=setTimeout( function (){_ck._co1();} ,this._cF); }} ,_ci1:function (){clearTimeout(this._cI0); this._cI0=null; this._cJ(); } ,_cO0:function (){return _cO(this._cI0); }};_ck._cJ(); function SlideMenuParent(_cy){ this._cy=_cy; }SlideMenuParent.prototype= {expand:function (){if (!this.isExpanded()){if (!this.getSlideMenu()._cI1("OnBeforeExpand", { "ItemId": this._cy } ))return; var _co2=this.getSlideMenu(); var _cd=_cY(this._cy); if (_co2._cO2){var _cl2=_ca(_cd); for (var i=0; i<_cl2.childNodes.length; i++){var _ci2=new SlideMenuParent(_cl2.childNodes[i].id); if (_ci2.isExpanded()){_ci2.collapse(); }}}_cS(_cd,"ksmCollapse"); if (!_ck._cO0()){_ck._cJ(); _ck._cB(this._cy,1); _ck._cl0(_co2._cI2); }else {_ck._cB(this._cy,1); } this.getSlideMenu()._cI1("OnExpand", { "ItemId": this._cy } ); }} ,collapse:function (){if (_cr())return; if (this.isExpanded()){if (!this.getSlideMenu()._cI1("OnBeforeCollapse", { "ItemId": this._cy } ))return; var _cd=_cY(this._cy); var _cC=_cA(_cI(_cd)); _cv(_cd,"ksmCollapse"); if (!_ck._cO0()){_ck._cJ(); _ck._cB(this._cy,0); _ck._cl0(this.getSlideMenu()._cI2); }else {_ck._cB(this._cy,0); } this.getSlideMenu()._cI1("OnCollapse", { "ItemId": this._cy } ); }} ,isExpanded:function (){var _cd=_cY(this._cy); return (_cs("Collapse",_cE(_cd))<0);} ,getSlideMenu:function (){var _co3=_cY(this._cy); while (_cs("KSM",_cE(_co3))<0){_co3=_ca(_co3); }return eval(_co3.id); } ,getParentId:function (){var _co3=_ca(_cY(this._cy)); while (_cs("smParent",_cE(_cI(_co3)))<0){_co3=_ca(_co3); }return _co3.id; } ,_cO3:function (_cl3){if (this.isExpanded())this.collapse(); else this.expand(); } ,_ci3:function (_cl3){ this.getSlideMenu()._cI1("OnParentMouseOver", { "ItemId": this._cy } ); } ,_cI3:function (_cl3){ this.getSlideMenu()._cI1("OnParentMouseOut", { "ItemId": this._cy } ); }};function SlideMenuChild(_cy){ this._cy=_cy; }SlideMenuChild.prototype= {select:function (){var _co2=this.getSlideMenu(); var _co4=_co2._cO4(); var _cl4=_co4.selectedId; if (_ci4!=this._cy){if (!this.getSlideMenu()._cI1("OnBeforeSelect", { "ItemId": this._cy } ))return; if (_cl4!=""){var _ci4=new SlideMenuChild(_cl4); _ci4.unselect(); }var _cI4=_cI(_cY(this._cy)); _cv(_cI4,"ksmSelected"); _co4.selectedId=this._cy; _co2._co5(_co4); this.getSlideMenu()._cI1("OnSelect", { "ItemId": this._cy } ); }} ,unselect:function (){var _co2=this.getSlideMenu(); var _co4=_co2._cO4(); var _cl4=_co4.selectedId; if (_cl4==this._cy){if (!this.getSlideMenu()._cI1("OnBeforeUnselect", { "ItemId": this._cy } ))return; var _cI4=_cI(_cY(this._cy)); _cS(_cI4,"ksmSelected"); _co4.selectedId=this._cy; _co2._co5(_co4); this.getSlideMenu()._cI1("OnUnselect", { "ItemId": this._cy } ); }} ,_cO5:function (){var _cI4=_cI(_cY(this._cy)); return (_cs("smSelected",_cE(_cI4))>0); } ,getSlideMenu:function (){var _co3=_cY(this._cy); while (_cs("KSM",_cE(_co3))<0){_co3=_ca(_co3); }return eval(_co3.id); } ,getParentId:function (){var _co3=_ca(_cY(this._cy)); while (_cs("smParent",_cE(_cI(_co3)))<0){_co3=_ca(_co3); }return _co3.id; } ,_cO3:function (_cl3){if (this.getSlideMenu()._cl5){if (!this._cO5()){ this.select(); }}} ,_ci3:function (_cl3){ this.getSlideMenu()._cI1("OnChildMouseOver", { "ItemId": this._cy } ); } ,_cI3:function (_cl3){ this.getSlideMenu()._cI1("OnChildMouseOut", { "ItemId": this._cy } ); }};function SlideMenuPanel(_cy){ this._cy=_cy; }SlideMenuPanel.prototype= {getSlideMenu:function (){var _co3=_cY(this._cy); while (_cs("KSM",_cE(_co3))<0){_co3=_ca(_co3); }return eval(_co3.id); } ,getParentId:function (){var _co3=_ca(_cY(this._cy)); while (_cs("smParent",_cE(_cI(_co3)))<0){_co3=_ca(_co3); }return _co3.id; }};function KoolSlideMenu(_cy,_cl5,_cI2,_cO2,_cc,_ci5){ this._cy=_cy; this._cO2=_cO2; this._cc=_cc; this._cI2=_cI2; this._cl5=_cl5; this._cI5=new Array(); _cY(_cy+".clientState").value=_ci5; this._co6(); }KoolSlideMenu.prototype= {_co6:function (){var _co2=_cY(this._cy); var _cO6=_co2.getElementsByTagName("li"); for (var i=0; i<_cO6.length; i++){if (_cs("smLI",_cE(_cO6[i]))>0){var _cI4=_cI(_cO6[i]); if (_cs("smParent",_cE(_cI4))>0 || _cs("smChild",_cE(_cI4))>0){_cQ(_cI4,"click",_cl6, false); _cQ(_cI4,"mouseover",_ci6, false); _cQ(_cI4,"mouseout",_cI6, false); }}}} ,_cO4:function (){var _co7=_cY(this._cy+".clientState"); var _cO7=eval("__="+_co7.value); return _cO7; } ,_co5:function (_cO7){var _co7=_cY(this._cy+".clientState"); _co7.value=_cL(_cO7); } ,collapseAll:function (){var _co2=_cY(this._cy); var _cO6=_co2.getElementsByTagName("li"); for (var i=0; i<_cO6.length; i++){if (_cs("smLI",_cE(_cO6[i]))>0){if (_cs("smParent",_cE(_cI(_cO6[i])))>0){var _ci2=new SlideMenuParent(_cO6[i].id); if (_ci2.isExpanded()){_ci2.collapse(); }}}}} ,expandAll:function (){var _co2=_cY(this._cy); var _cO6=_co2.getElementsByTagName("li"); for (var i=0; i<_cO6.length; i++){if (_cs("smLI",_cE(_cO6[i]))>0){if (_cs("smParent",_cE(_cI(_cO6[i])))>0){var _ci2=new SlideMenuParent(_cO6[i].id); if (!_ci2.isExpanded()){_ci2.expand(); }}}}} ,getItem:function (_cl7){var _cT=_cE(_cI(_cY(_cl7))); var _ci7=null; if (_cs("smParent",_cT)>0){_ci7=new SlideMenuParent(_cl7); }else if (_cs("smChild",_cT)>0){_ci7=new SlideMenuChild(_cl7); }else if (_cs("smPanel",_cT)>0){_ci7=new SlideMenuPanel(_cl7); }return _ci7; } ,getSelectedId:function (){return this._cO4().selectedId; } ,registerEvent:function (_cK,_cI7){if (!_cr())this._cI5[_cK]=_cI7; else return true; } ,_cI1:function (_cK,_co8){if (_cr())return true; return (_cO(this._cI5[_cK]))?this._cI5[_cK](this,_co8): true; }};function _cl6(_cl3){if (_cs("smChild",_cE(this ))>0){var _ci7=new SlideMenuChild(_ca(this ).id); }else {var _ci7=new SlideMenuParent(_ca(this ).id); }_ci7._cO3(_cl3); }function _ci6(_cl3){if (_cs("smChild",_cE(this ))>0){var _ci7=new SlideMenuChild(_ca(this ).id); }else {var _ci7=new SlideMenuParent(_ca(this ).id); }_ci7._ci3(_cl3); }function _cI6(_cl3){if (_cs("smChild",_cE(this ))>0){var _ci7=new SlideMenuChild(_ca(this ).id); }else {var _ci7=new SlideMenuParent(_ca(this ).id); }_ci7._cI3(_cl3); }if (typeof(__KSMInits)!="undefined" && _cO(__KSMInits)){for (var i=0; i<__KSMInits.length; i++){__KSMInits[i](); }} <?php _cO7(); _clq(); } if (!class_exists("K\157olSli\144\145Me\156\165",FALSE)) { function _clr($_cls,$_cOs) { $_clt=""; foreach ($_cls->childNodes as $_cOt) { $_clt.=$_cOs->savexml($_cOt); } return trim($_clt); } class slidemenuparent { var $id; var $text; var $link; var $target; var $title; var $expand=FALSE; var $parent; var $_clu=array(); var $_cOu=-1; function __construct($_clv) { $this->id =$_clv; } function addchild($_cOv) { array_push($this->_clu ,$_cOv); $_cOv->parent =$this; if (strtolower(get_class($_cOv)) == "\163lid\145\155enu\160\141ren\164") { $_cOv->_cOu =$this->_cOu +1; } } } class slidemenuchild { var $id; var $text; var $link; var $target; var $parent; var $title; var $_clw=FALSE; function __construct($_clv) { $this->id =$_clv; } } class slidemenupanel { var $id; var $content; function __construct($_clv) { $this->id =$_clv; } } class koolslidemenu { var $_cl0="\061.5\056\060.2"; var $id; var $styleFolder; var $scriptFolder=""; var $singleExpand; var $boxHeight=-1; var $slidingSpeed=5; var $scrollEnable=FALSE; var $width="a\165\164o"; var $selectedId; var $_cOw=TRUE; var $_cO5; var $_clx; var $_cOx; function __construct($_clv) { $this->id =$_clv; $this->_cO5 =new slidemenuparent("\162oot"); $this->_clx =array(); $this->_clx["\162oot"]=$this->_cO5; } function loadxml($_cly) { if (gettype($_cly) == "\163tring") { $_cOy=new domdocument(); $_cOy->loadxml($_cly); $_cly=$_cOy->documentElement; } $_clv=$_cly->getattribute("id"); if ($_clv != "") $this->id =$_clv; $_clz=$_cly->getattribute("\163tyle\106\157ld\145\162"); if ($_clz != "") $this->styleFolder =$_clz; $_cOz=$_cly->getattribute("\163\143rip\164\106old\145\162"); if ($_cOz != "") $this->scriptFolder =$_cOz; $_cl10=strtolower($_cly->getattribute("\163\151ngl\145\105xpa\156\144")); if ($_cl10 != "") $this->singleExpand =($_cl10 == "\164rue") ? TRUE: FALSE; $_cO10=$_cly->getattribute("\142oxHe\151\147ht"); if ($_cO10 != "") $this->boxHeight =intval($_cO10); $_cl11=$_cly->getattribute("\163\154idi\156\147Sp\145\145d"); if ($_cl11 != "") $this->slidingSpeed =intval($_cl11); $_cO11=strtolower($_cly->getattribute("\163cro\154\154Ena\142\154e")); if ($_cO11 != "") $this->scrollEnable =($_cO11 == "\164ru\145") ? TRUE: FALSE; $_cl12=$_cly->getattribute("\167idth"); if ($_cl12 != "") $this->width =$_cl12; $_cO12=$_cly->getattribute("se\154\145cte\144\111d"); if ($_cO12 != "") $this->selectedId =$_cO12; $this->_cl13($this->_cO5 ,$_cly,$_cly->parentNode); } function _cl13($_cO13,$_cl14,$_cOy) { foreach ($_cl14->childNodes as $_cO14) { switch (strtolower($_cO14->nodeName)) { case "\160a\162\145nt": $_clv=$_cO14->getattribute("\151d"); $_cl3=$_cO14->getattribute("text"); $_cl15=$_cO14->getattribute("\154\151nk"); $_cO15=$_cO14->getattribute("t\141\162get"); $_cl16=$_cO14->getattribute("\164\151tle"); $_cO16=(strtolower($_cO14->getattribute("\145xpand")) == "\164rue") ? TRUE: FALSE; $_cl17=$this->addparent($_cO13->id ,$_clv,$_cl3,$_cl15,$_cO16); $_cl17->target =$_cO15; $_cl17->title =$_cl16; $this->_cl13($_cl17,$_cO14,$_cOy); break; case "c\150ild": $_clv=$_cO14->getattribute("\151\144"); $_cl3=$_cO14->getattribute("t\145\170t"); $_cl15=$_cO14->getattribute("\154ink"); $_cO15=$_cO14->getattribute("\164arget"); $_cl16=$_cO14->getattribute("tit\154\145"); $_cO17=$this->addchild($_cO13->id ,$_clv,$_cl3,$_cl15); $_cO17->target =$_cO15; $_cO17->title =$_cl16; break; case "panel": $_clv=$_cO14->getattribute("\151d"); $_cl18=_clr($_cO14,$_cOy); $this->addpanel($_cO13->id ,$_clv,$_cl18); break; } } } function addparent($_cO18,$_clv,$_cl3="",$_cl15="",$_cO16=FALSE) { $_cl19=new slidemenuparent($_clv); $_cl19->text =$_cl3; $_cl19->expand =$_cO16; $_cl19->link =($_cl15 == NULL || $_cl15 == "") ? "\152avasc\162\151pt\072\166oi\144\0400": $_cl15; $this->_clx[$_cO18]->addchild($_cl19); $this->_clx[$_clv]=$_cl19; return $_cl19; } function addchild($_cO18,$_clv,$_cl3="",$_cl15="") { $_cl19=new slidemenuchild($_clv); $_cl19->text =$_cl3; $_cl19->link =($_cl15 == NULL || $_cl15 == "") ? "jav\141\163cri\160\164:v\157\151d \060": $_cl15; $this->_clx[$_cO18]->addchild($_cl19); $this->_clx[$_clv]=$_cl19; return $_cl19; } function addpanel($_cO18,$_clv,$_cl18) { $_cl19=new slidemenupanel($_clv); $_cl19->content =$_cl18; $this->_clx[$_cO18]->addchild($_cl19); $this->_clx[$_clv]=$_cl19; return $_cl19; } function getitem($_clv) { return $this->_clx[$_clv]; } function _cO19() { $this->styleFolder =_cO4("\134","\057",$this->styleFolder); $_clz=trim($this->styleFolder ,"\057"); $_cl1a=strrpos($_clz,"\057"); $this->_cOx =substr($_clz,($_cl1a ? $_cl1a: -1)+1); } function registercss() { $this->_cO19(); $_cO1a="\074sc\162\151pt \164\171pe=\047text\057\152av\141\163cr\151\160t'\076if \050\144oc\165\155en\164.get\105lem\145\156tB\171\111d\050'__\173\163ty\154e}K\123\115')\075=nu\154\154)\173\166ar\040_he\141d =\040doc\165\155e\156\164.g\145tEl\145men\164\163B\171\124a\147Nam\145('h\145ad'\051[0]\073va\162\040_\154ink\040= d\157cu\155\145n\164\056c\162eat\145El\145\155e\156t('\154in\153\047)\073 _\154ink\056id\040= \047\137_\173st\171\154e\175KS\115\047;\137li\156k.\162\145l\075's\164yl\145sh\145\145t\047; \137li\156k.\150re\146='\173\163t\171le\160at\150}/\173sty\154e}\057\173\163ty\154e}\056cs\163';\137he\141d.\141pp\145nd\103hi\154d(\137li\156k\051;}\074/s\143ri\160t>"; $_cl1b=_cO4("\173s\164\171le}",$this->_cOx ,$_cO1a); $_cl1b=_cO4("\173\163tyle\160\141th\175",$this->_cO1b(),$_cl1b); return $_cl1b; } function render() { $_cl1b="\n<!-\055KoolS\154\151de\115\145nu\040\166er\163\151on\040".$this->_cl0." -\040\167ww.\153\157ol\160\150p.n\145\164 -\055\076\n"; $_cl1b.=$this->registercss(); $_cl1b.=$this->renderslidemenu(); $_cl1c= isset ($_POST["__\153\157olaj\141\170"]) || isset ($_GET["__\153\157ola\152\141x"]); $_cl1b.=($_cl1c) ? "": $this->registerscript(); $_cl1b.="\074\163cr\151\160t t\171\160e=\047\164ex\164\057ja\166\141sc\162ipt\047\076"; $_cl1b.=$this->startupscript(); $_cl1b.="\074/scri\160\164>"; return $_cl1b; } function renderslidemenu() { $tpl_bound="\173boun\144\143ont\145\156t}"; $tpl_parent="\074di\166\040cl\141\163s='\153\163mIn\047>\173p\141\162en\164\143o\156\164en\164\175</\144\151v>"; $tpl_childbox="\173\143hild\142\157xc\157\156ten\164\175"; $tpl_child="\074sp\141\156 cl\141\163s='\153\163mI\156\047>\173\143hil\144\143on\164\145nt\175\074/\163\160an\076"; $tpl_panel="<\144\151v c\154\141ss\075\047ks\155\111n'\076\173pa\156\145lc\157\156te\156\164}<\057div\076"; $this->_cO19(); include "styl\145\163"."\057".$this->_cOx."\057".$this->_cOx.".\164\160l"; $_cO1c="\074ul\040\143la\163\163='k\163\155UL\040\173bo\170\110ei\147\150t\175\047>\173\160ar\145\156ts\175\074/\165\154>"; $_cl1d="\074styl\145\040re\154\075's\164\171le\163\150eet\047> .\173\163ty\154\145}K\123\115 .\153\163mB\157\170H\145\151gh\164\040.\153\163m\103\150il\144Box \173hei\147\150t\072\173bo\170Hei\147\150t\175\160x;\157ver\146\154o\167\072\173\157ve\162\146lo\167};}\040</\163tyl\145>"; $_cOi=_cO4("\173t\160\154_bo\165\156d}",$tpl_bound,_cOf()); $_cOi=_cO4("\173\151\144}",$this->id ,$_cOi); $_cOi=_cO4("\173\167\151dth\175",$this->width ,$_cOi); $_cOi=_cO4("\173\163tyle\175",$this->_cOx ,$_cOi); $_cl19=$this->_cO5; $_cO1d=""; for ($_cOb=0; $_cOb<sizeof($_cl19->_clu); $_cOb ++) { $_cO1d.=$this->_cl1e($_cl19->_clu[$_cOb]); } $_cO1e=_cO4("\173\160\141ren\164\163}",$_cO1d,$_cO1c); if ($this->boxHeight <0) { $_cO10=""; $_cO1e=_cO4("\173boxH\145\151ght\175","",$_cO1e); } else { $_cO10=_cO4("\173sty\154\145}",$this->_cOx ,$_cl1d); $_cO10=_cO4("\173b\157\170Hei\147\150t}",$this->boxHeight ,$_cO10); $_cO10=_cO4("\173\157\166er\146\154ow}",($this->scrollEnable) ? "\141uto": "\150\151dde\156",$_cO10); $_cO1e=_cO4("\173boxHe\151\147ht}","\153smBo\170\110eigh\164",$_cO1e); } if (_cOh($_cOi)) { $_cOi=_cO4("\173bound\143\157nte\156\164}",$_cO1e,$_cOi); } $_cOi=_cO4("\173\166ersi\157\156}",$this->_cl0 ,$_cOi); $_cOi=_cO4("\173\142oxH\145\151ght\175",$_cO10,$_cOi); return $_cOi; } function _cl1e($_cl19) { $tpl_bound="\173bound\143\157nte\156\164}"; $tpl_parent="<\144\151v c\154\141ss=\047\153sm\111\156'>\173\160ar\145\156tc\157\156t\145\156t}\074\057d\151\166>"; $tpl_childbox="\173\143hild\142\157xc\157\156ten\164\175"; $tpl_child="\074\163pan\040\143la\163\163='k\163\155In\047\076\173\143hil\144\143on\164\145nt\175\074/\163\160an\076"; $tpl_panel="<div \143\154ass\075'ksmI\156\047>\173\160ane\154\143on\164\145nt\175\074/\144\151v>"; include "style\163"."/".$this->_cOx."\057".$this->_cOx.".tp\154"; $_cl1b=""; $_cl1f=""; if ($_cl19 === $_cl19->parent->_clu[0]) { $_cl1f="\153smF\151\162st"; } else if ($_cl19 === $_cl19->parent->_clu[sizeof($_cl19->parent->_clu)-1]) { $_cl1f="ksm\114\141st"; } switch (strtolower(get_class($_cl19))) { case "sli\144\145men\165\160are\156\164": $_cO1f="\074li i\144\075'\173\151d}' \143\154as\163\075'k\163\155LI\040\153sm\114evel\173\154ev\145\154}\040\173co\154lap\163\145} \173\160o\163\175'\076\173p\141\162en\164\143o\156\164en\164}\173\143\150i\154\144bo\170}</\154\151>"; $_cl1g="\074a\040\143las\163\075'k\163\155A \153\163mP\141\162en\164\047 \150\162ef\075'\173\154\151nk\175' \173\164arg\145\164} \173tit\154e} \076\173t\160\154_p\141ren\164\175<\057\141>"; $_cO1g="<di\166\040cla\163\163='\153\163mC\150\151ldB\157\170'>\173\164pl\137\143hi\154\144b\157\170}<\057\144i\166\076"; $_cl1h="\074\165l c\154\141ss=\047\153sm\125\114'>\173\143hil\144\162en\175</ul\076"; $_cO1h=_cO4("\173t\160\154_pa\162\145nt}",$tpl_parent,$_cl1g); $_cO1h=_cO4("\173\160\141re\156\164con\164\145nt\175",$_cl19->text ,$_cO1h); $_cO1h=_cO4("\173\154ink}",$_cl19->link ,$_cO1h); $_cO1h=_cO4("\173targ\145\164}",($_cl19->target != NULL) ? "\164arg\145\164='".$_cl19->target."\047": "",$_cO1h); $_cO1h=_cO4("\173\164itl\145\175",($_cl19->title != NULL) ? "\164itl\145\075'".$_cl19->title."\047": "",$_cO1h); $_clu=""; for ($_cOb=0; $_cOb<sizeof($_cl19->_clu); $_cOb ++) { $_clu.=$this->_cl1e($_cl19->_clu[$_cOb]); } if ($_clu != "") { $_cl1i=_cO4("\173\143\150ild\162\145n}",$_clu,$_cl1h); $_cO1i=_cO4("\173tp\154\137chi\154\144box\175",$tpl_childbox,$_cO1g); $_cO1i=_cO4("\173\143\150ild\142\157xco\156\164en\164\175",$_cl1i,$_cO1i); } $_cl1b=_cO4("\173\160\141ren\164\143on\164\145nt}",$_cO1h,$_cO1f); $_cl1b=_cO4("\173chi\154\144bo\170\175",$_cO1i,$_cl1b); $_cl1b=_cO4("\173id}",$_cl19->id ,$_cl1b); $_cl1b=_cO4("\173\154evel\175",$_cl19->_cOu ,$_cl1b); $_cl1b=_cO4("\173\160\157s}",$_cl1f,$_cl1b); $_cl1b=_cO4("\173col\154\141pse\175",($_cl19->expand) ? "": "\153smC\157\154lap\163\145",$_cl1b); break; case "\163lide\155\145nuc\150\151ld": $_cl1j="<li\040id='\173\151d}' \143\154as\163\075'k\163\155LI\040\173po\163}'>\074\141 c\154ass=\047ksm\101\040k\163\155Ch\151ld \173\163e\154\145ct\145d}'\040\150r\145\146='\173lin\153\175'\040\173t\141\162g\145\164} \173tit\154e} \076\173t\160l_c\150\151l\144\175<\057a>\074/li\076"; $_cl1b=_cO4("\173tp\154\137ch\151\154d}",$tpl_child,$_cl1j); $_cl1b=_cO4("\173\143hildc\157\156ten\164\175",$_cl19->text ,$_cl1b); $_cl1b=_cO4("\173\154ink}",$_cl19->link ,$_cl1b); $_cl1b=_cO4("\173ta\162\147et}",($_cl19->target != NULL) ? "\164arget\075\047".$_cl19->target."\047": "",$_cl1b); $_cl1b=_cO4("\173title\175",($_cl19->title != NULL) ? "\164itle\075\047".$_cl19->title."\047": "",$_cl1b); $_cl1b=_cO4("\173id}",$_cl19->id ,$_cl1b); $_cl1b=_cO4("\173po\163\175",$_cl1f,$_cl1b); $_cl1b=_cO4("\173\163ele\143\164ed}",($this->selectedId == $_cl19->id) ? "\153smSe\154\145cte\144": "",$_cl1b); break; case "\163lidem\145\156upa\156\145l": $_cO1j="\074li\040\151d='\173\151d}'\040clas\163\075'k\163\155LI\040\153s\155\120an\145\154 \173\160os\175\047>\173\164pl\137\160an\145l}<\057li>"; $_cl1b=_cO4("\173\164pl_\160\141ne\154\175",$tpl_panel,$_cO1j); $_cl1b=_cO4("\173panel\143\157nte\156\164}",$_cl19->content ,$_cl1b); $_cl1b=_cO4("\173id}",$_cl19->id ,$_cl1b); $_cl1b=_cO4("\173\160os\175",$_cl1f,$_cl1b); break; } return $_cl1b; } function registerscript() { $_cO1a="\074scrip\164\040ty\160\145='\164\145xt\057\152av\141\163cr\151\160t\047\076i\146\050ty\160eof \137lib\113\123M=\075'un\144\145f\151\156ed\047)\173\144\157c\165\155en\164.wr\151\164e\050\165n\145\163c\141\160e(\042%3C\163cri\160t t\171\160e\075'te\170t/j\141vas\143rip\164' s\162c='\173src\175'%\063E %\063C/s\143ri\160\164%\063E\042\051);\137li\142\113S\115=1\073}</\163cr\151\160t\076"; $_cl1b=_cO4("\173\163rc\175",$this->_cl1k()."\077".md5("js"),$_cO1a); return $_cl1b; } function startupscript() { $_cO1a="va\162\040\173\151\144};\040\146un\143\164io\156\040\173\151\144}\137\151ni\164\050)\173\040\173\151d} \075 new\040Koo\154\123li\144eMe\156\165(\047\173i\144\175',\173sel\145\143t\105\156ab\154e},\173sli\144\151n\147\123p\145\145d}\054\173\163\151n\147\154e\105\170p\141\156d\175\054\173\142ox\110eig\150t}\054\042\173\143l\151\145n\164\123t\141\164e\175\042\051;}"; $_cO1a.="if (\164\171peof\050Kool\123\154ide\115\145nu\051\075='\146\165n\143\164io\156\047)\173\173id\175\137in\151t();\175"; $_cO1a.="\145ls\145\173if(\164\171peo\146\050_\137\113SMI\156\151ts\051\075=\047und\145\146in\145\144')\173\137_\113\123MI\156\151ts\075new\040Arr\141\171()\073} _\137\113\123MI\156its\056\160u\163\150(\173\151d}\137\151n\151\164)\073\173r\145\147i\163\164er\137sc\162\151p\164\175}"; $_cO1k="i\146\050ty\160\145of(\137\154ib\113\123M)\075\075'u\156\144e\146\151ne\144\047)\173\166ar\040\137h\145\141d \075 do\143\165me\156t.g\145\164El\145men\164\163By\124agN\141\155e\050\047h\145\141d\047)[0\135\073v\141\162 \137\163c\162\151p\164\040=\040doc\165men\164.cr\145ate\105lem\145nt(\047sc\162\151p\164\047)\073 _\163\143r\151pt.\164ype\075't\145\170t\057ja\166asc\162ipt\047; \137sc\162\151p\164.sr\143='\173src\175';\040_h\145\141d\056ap\160en\144Chi\154d(\137sc\162ip\164\051;\137li\142KS\115=1\073}"; $_cl1l=_cO4("\173\163\162c}",$this->_cl1k()."?".md5("j\163"),$_cO1k); $_cO1l="\173\047\163ele\143\164edI\144\047:\047\173se\154\145cte\144\111d\175\047}"; $_cl1b=_cO4("\173i\144\175",$this->id ,$_cO1a); $_cl1b=_cO4("\173sing\154\145Exp\141\156d}",($this->singleExpand) ? "\061": "0",$_cl1b); $_cl1b=_cO4("\173selec\164\105na\142\154e}",($this->_cOw) ? "\061": "\060",$_cl1b); $_cl1b=_cO4("\173\163lid\151\156gSp\145\145d}",$this->slidingSpeed ,$_cl1b); $_cl1b=_cO4("\173boxH\145\151ght\175",$this->boxHeight ,$_cl1b); $_cl1m=_cO4("\173se\154\145cte\144\111d}",$this->selectedId ,$_cO1l); $_cl1b=_cO4("\173\143\154ien\164\123tat\145\175",$_cl1m,$_cl1b); $_cl1b=_cO4("\173r\145\147ist\145\162_sc\162\151pt}",$_cl1l,$_cl1b); return $_cl1b; } function _cl1k() { if ($this->scriptFolder == "") { $_cO5=_cO3(); $_cO1m=substr(_cO4("\134","/",__FILE__),strlen($_cO5)); return $_cO1m; } else { $_cO1m=_cO4("\134","\057",__FILE__); $_cO1m=$this->scriptFolder.substr($_cO1m,strrpos($_cO1m,"\057")); return $_cO1m; } } function _cO1b() { $_cl1n=$this->_cl1k(); $_cO1n=_cO4(strrchr($_cl1n,"\057"),"",$_cl1n)."/\163\164yle\163"; return $_cO1n; } } } ?>
public static function splitToNodeset($strList, $separator = ",") { $dom = new domdocument(); $dom->loadXML("<list />"); $docEl = $dom->documentElement; $arr = explode($separator, $strList); $found = false; foreach ($arr as $item) { if (!empty($item)) { $found = true; $element = $dom->createElement("item", $item); $element->setAttribute("value", $item); $docEl->appendChild($element); } } return $dom->documentElement; }
<?php $dom = new domdocument(); $dom->load(dirname(__FILE__) . "/book.xml"); $rootNode = $dom->documentElement; print "--- Catch exception with try/catch\n"; try { $rootNode->appendChild($rootNode); } catch (domexception $e) { ob_start(); var_dump($e); $contents = ob_get_contents(); ob_end_clean(); echo preg_replace('/object\\(DOMElement\\).+\\{.*?\\}/s', 'DOMElement', $contents); } print "--- Don't catch exception with try/catch\n"; $rootNode->appendChild($rootNode);
<?php $path = dirname(__FILE__) . '/'; /* load XSLT Stylesheet as if it were a regular XML file via DOM extension */ $xslDom = new domdocument(); $xslDom->load($path . 'forum.xsl'); /* load the actual XML data we will use to populate the stylesheet */ $xmlDom = new domdocument(); $xmlDom->load($path . 'thedata.xml'); $xsl = new XsltProcessor(); // instantiate XSLT processor $xsl->importStylesheet($xslDom); // load stylesheet echo $xsl->transformToXML($xmlDom); // perform the transformation & return HTML
public static function picasaweb_ListAlbums($userName, $key, $thumbsize = 666) { $url = 'http://picasaweb.google.com/data/feed/api/user/' . urlencode($userName) . '?authKey=' . $key . '&kind=album'; $xml = file_get_contents($url); $xml = str_replace("xmlns='http://www.w3.org/2005/Atom'", '', $xml); $albums = array(); $dom = new domdocument(); $dom->loadXml($xml); $xpath = new domxpath($dom); $nodes = $xpath->query('//entry'); foreach ($nodes as $node) { $imageUrl = $xpath->query('.//media:thumbnail/@url', $node)->item(0)->textContent; $imageUrl = str_replace('?imgmax=160', '?imgmax=' . $thumbsize, $imageUrl); $albumId = $xpath->query('.//gphoto:id', $node)->item(0)->textContent; $albumName = $xpath->query('.//gphoto:name', $node)->item(0)->textContent; $albumTitle = $xpath->query('.//media:title', $node)->item(0)->textContent; $imageCount = $xpath->query('.//gphoto:numphotos', $node)->item(0)->textContent; $published = $xpath->query('.//published', $node)->item(0)->textContent; $album = array(); $album['folder'] = "{$userName}@{$albumId}"; $album['name'] = $albumName; $album['description'] = $albumTitle; $album['image'] = $imageUrl; $album['date'] = $published; $album['overallCount'] = $imageCount; $album['url'] = 'http://picasaweb.google.com/' . urlencode($userName) . '/' . urlencode($album['name']); $albums[] = (object) $album; unset($album); } return $albums; }
function renderimageview() { $this->_hld(); $_hOd = "{BigImage}"; $_hle = "Loading..."; $_hOe = ""; $_hlf = ""; $_hOf = "<img id='{id}' src='{imageUrl}' alt='{alternative}' class='{style}ZoomOut {cssClass}'/><div class='{style}KIV' style='display:inline;'>{loading}{background}{effectpanel}{effectimage}{zoompanel}</div>"; $_hlg = "<div id='{id}.zoompanel' class='kivZoomPanel' style='display:none;z-index:{zIndex};'>{tpl_zoompanel}</div>"; $_hOg = "<div id='{id}.loading' class='kivLoading' style='position:absolute;display:none;z-index:{zIndex};'>{tpl_loading}</div>"; $_hlh = "<div id='{id}.background' class='kivBackground' style='display:none;z-index:{zIndex};'>{tpl_background}</div>"; $_hOh = "<div id='{id}.effectpanel' class='kivEffectPanel' style='display:none;position:absolute;z-index:{zIndex};'>{tpl_effectpanel}</div>"; $_hOi = "<img id='{id}.bigimage' class='kivBigImage' alt=''/>"; $_hlj = "<img id='{id}.effectimage' class='kivEffectImage' style='display:none;position:absolute;z-index:{zIndex};' alt=''/>"; $_hOj = "<span class='kivDescription'>{description}</span>"; $_hlk = "<a class='kivCloseButton'> </a>"; $_hOk = "<a class='kivMoveButton'> </a>"; $_hlb = new domdocument(); $_hlb->load(($this->scriptFolder == "" ? _hO2() : "") . $this->_hll() . "/" . $this->_hl9 . "/" . $this->_hl9 . ".xml"); $_hlm = $_hlb->getelementsbytagname("zoompanel"); if ($_hlm->length > 0) { $_hOd = _hl5($_hlm->item(0), $_hlb); } $_hlm = $_hlb->getelementsbytagname("loading"); if ($_hlm->length > 0) { $_hle = _hl5($_hlm->item(0), $_hlb); } $_hlm = $_hlb->getelementsbytagname("background"); if ($_hlm->length > 0) { $_hOe = _hl5($_hlm->item(0), $_hlb); } $_hlm = $_hlb->getelementsbytagname("effectpanel"); if ($_hlm->length > 0) { $_hlf = _hl5($_hlm->item(0), $_hlb); } $_hOm = _hO3("{id}", $this->id, $_hOg); $_hOm = _hO3("{tpl_loading}", $_hle, $_hOm); $_hOm = _hO3("{zIndex}", $this->zIndex, $_hOm); $_hln = _hO3("{id}", $this->id, $_hlh); $_hln = _hO3("{tpl_background}", $_hOe, $_hln); $_hln = _hO3("{zIndex}", $this->zIndex + 1, $_hln); $_hOn = _hO3("{id}", $this->id, $_hOh); $_hOn = _hO3("{tpl_effectpanel}", $_hlf, $_hOn); $_hOn = _hO3("{zIndex}", $this->zIndex + 2, $_hOn); $_hlo = _hO3("{id}", $this->id, $_hlj); $_hlo = _hO3("{zIndex}", $this->zIndex + 3, $_hlo); $_hOo = _hO3("{id}", $this->id, $_hOi); $_hlp = _hO3("{id}", $this->id, $_hlg); $_hlp = _hO3("{tpl_zoompanel}", $_hOd, $_hlp); $_hlp = _hO3("{BigImage}", $_hOo, $_hlp); $_hOp = _hO3("{description}", $this->description, $_hOj); $_hlp = _hO3("{Description}", $_hOp, $_hlp); $_hlp = _hO3("{CloseButton}", $_hlk, $_hlp); $_hlp = _hO3("{MoveButton}", $_hOk, $_hlp); $_hlp = _hO3("{zIndex}", $this->zIndex + 4, $_hlp); $_hlq = _hO3("{id}", $this->id, $_hOf); $_hlq = _hO3("{style}", $this->_hl9, $_hlq); $_hlq = _hO3("{alternative}", $this->alternative, $_hlq); $_hlq = _hO3("{cssClass}", $this->cssClass, $_hlq); $_hlq = _hO3("{imageUrl}", $this->imageUrl, $_hlq); $_hlq = _hO3("{zoompanel}", $_hlp, $_hlq); $_hlq = _hO3("{loading}", $_hOm, $_hlq); $_hlq = _hO3("{background}", $_hln, $_hlq); $_hlq = _hO3("{effectpanel}", $_hOn, $_hlq); $_hlq = _hO3("{effectimage}", $_hlo, $_hlq); return $_hlq; }
function load($_ql6f) { $_qO6f = new domdocument(); $_qO6f->load($_ql6f); $_ql6g = $_qO6f->getelementsbytagname("commands"); if ($_ql6g->length > 0) { foreach ($_ql6g->item(0)->attributes as $_qO6g) { $this->_ql6e[$_qO6g->name] = $_qO6g->value; } } $_ql6g = $_qO6f->getelementsbytagname("messages"); if ($_ql6g->length > 0) { foreach ($_ql6g->item(0)->attributes as $_qO6g) { $this->_qO6e[$_qO6g->name] = $_qO6g->value; } } }
<?php // temporary data storage class class entry { public $title, $link, $description; } $w = new entry(); $doc = new domdocument(); $doc->load(dirname(__FILE__) . '/thedata.xml'); $forum = $doc->documentElement; $nodes = $forum->childNodes; foreach ($nodes as $node) { if ($node instanceof domelement) { // process individual entry $id = $node->getAttribute('id'); // process elements of the entry $children = $node->childNodes; foreach ($children as $element) { // import data from DOM tree into storage class if ($element instanceof domelement) { $w->{$element->tagName} = $element->nodeValue; } } echo "Title: <a href='{$w->link}'>{$w->title}</a><br />\n\n\t\t\tBody: {$w->description}<hr />"; // reset data inside the storage class $w->link = $w->title = $w->description = NULL; } }
function loadxml($_alk) { if (gettype($_alk) == "string") { $_al1 = new domdocument(); $_al1->loadxml($_alk); $_alk = $_al1->documentElement; } $_al2 = $_alk->getattribute("id"); if ($_al2 != "") { $this->_al2 = $_al2; } $this->cssclass = $_alk->getattribute("cssclass"); if ($this->cssclass == "") { $this->cssclass = $_alk->getattribute("class"); } $_aOk = $_alk->getattribute("rendermode"); $this->rendermode = $_aOk != "" ? $_aOk : "block"; foreach ($_alk->childNodes as $_all) { switch (strtolower($_all->nodeName)) { case "content": $_alm = _al8($_all, $_alk->parentNode); $_alm = trim($_alm); if (substr($_alm, 0, 011) == "<![CDATA[") { $_alm = substr($_alm, 011); } if (substr($_alm, -3) == "]]>") { $_alm = substr($_alm, 0, -3); } $this->content = $_alm; break; case "triggers": foreach ($_all->childNodes as $_aOm) { if (strtolower($_aOm->nodeName) == "trigger") { $this->addtrigger($_aOm->getattribute("elementid"), $_aOm->getattribute("event")); } } break; case "loading": $this->_alj = new _alg(); $this->_alj->_aOh = $_all->getattribute("image"); $_aOg = $_all->getattribute("backColor"); if ($_aOg != "") { $this->_alj->_aOg = $_aOg; } $_alh = $_all->getattribute("opacity"); if ($_alh != "") { $this->_alj->_alh = intval($_alh); } break; } } }
<?php $_il0="2\0563.0.\060"; function _iO0($_il1,$_iO1,$_il2) { return str_replace($_il1,$_iO1,$_il2); } function _iO2($_il3) { return md5($_il3); } function _iO3() { $_il4=_iO0("\134","\057",strtolower($_SERVER["\123\103RIP\124\137NA\115\105"])); $_il4=_iO0(strrchr($_il4,"\057"),"",$_il4); $_iO4=_iO0("\134","\057",realpath(".")); $_il5=_iO0($_il4,"",strtolower($_iO4)); return $_il5; } class _ii10 { static $_ii10="\1730}\173\164rad\145\155ark\175\074d\151\166 id\075'\173i\144\175'\040clas\163\075'\173\163ty\154\145}\113\107R'\040\163t\171\154e\075'\173\167\151dt\150\175'\076\1731\175\173co\156\164e\156\164}\173\062}<\057div\076"; } function _iO5() { $_il6=_iO6(); _il7($_il6,0153); _il7($_il6,0113); _il7($_il6,0121); _il7($_il6,-014); _il7($_il6,050); _il7($_il6,047); _il7($_il6,034); _il7($_il6,(_iO7() || _il8() || _iO8()) ? -050: -011); _il7($_il6,-062); _il7($_il6,-061); _il7($_il6,-0111); _il7($_il6,-0111); $_il9=""; for ($_iO9=0; $_iO9<_ila($_il6); $_iO9 ++) { $_il9.=_iOa($_il6[$_iO9]+013*($_iO9+1)); } echo $_il9; return $_il9; } function _ilb() { $_il6=_iO6(); $_iOb=""; _il7($_il6,0151); _il7($_il6,0123); _il7($_il6,0114); _il7($_il6,071); _il7($_il6,-017); _il7($_il6,-031); for ($_iO9=0; $_iO9<_ila($_il6); $_iO9 ++) { $_iOb.=_iOa($_il6[$_iO9]+013*($_iO9+1)); } return _ilc($_iOb); } function _iO7() { $_iOc=""; $_il6=_iO6(); _il7($_il6,050); _il7($_il6,041); _il7($_il6,0101); _il7($_il6,6); _il7($_il6,0); for ($_iO9=0; $_iO9<_ila($_il6); $_iO9 ++) { $_iOc.=_iOa($_il6[$_iO9]+013*($_iO9+1)); } return (substr(_iO2(_ild()),0,5) != $_iOc); } class _ii11 { static $_ii11=017; } function _il8() { $_iOc=""; $_il6=_iO6(); _il7($_il6,0126); _il7($_il6,0114); _il7($_il6,025); _il7($_il6,6); _il7($_il6,052); for ($_iO9=0; $_iO9<_ila($_il6); $_iO9 ++) { $_iOc.=_iOa($_il6[$_iO9]+013*($_iO9+1)); } return (substr(_iO2(_iOd()),0,5) != $_iOc); } function _iO8() { $_il6=_iO6(); _il7($_il6,0124); _il7($_il6,0123); _il7($_il6,0110); _il7($_il6,5); _il7($_il6,-6); $_ile=""; for ($_iO9=0; $_iO9<_ila($_il6); $_iO9 ++) { $_ile.=_iOa($_il6[$_iO9]+013*($_iO9+1)); } $_iOe=_ilf($_ile); return (( isset ($_iOe[$_ile]) ? $_iOe[$_ile]: 0) != 01053/045); } function _iOf( &$_ilg) { $_il6=_iO6(); _il7($_il6,0124); _il7($_il6,0123); _il7($_il6,0110); _il7($_il6,5); _il7($_il6,-6); $_iOg=""; for ($_iO9=0; $_iO9<_ila($_il6); $_iO9 ++) { $_iOg.=_iOa($_il6[$_iO9]+013*($_iO9+1)); } $_iOe=_ilf($_iOg); $_ilh=$_iOe[$_iOg]; $_ilg=_iO0(_iOa(0173).(_ilb()%3)._iOa(0175),(!(_ilb()%_iOh())) ? _ild(): _iOi(),$_ilg); for ($_iO9=0; $_iO9<3; $_iO9 ++) if ((_ilb()%3) != $_iO9) $_ilg=_iO0(_iOa(0173).$_iO9._iOa(0175),_iOi(),$_ilg); $_ilg=_iO0(_iOa(0173).(_ilb()%3)._iOa(0175),(!(_ilb()%$_ilh)) ? _ild(): _iOi(),$_ilg); return ($_ilh == _iOh()); } function _ild() { $_il6=_iO6(); _il7($_il6,0124); _il7($_il6,0123); _il7($_il6,0110); _il7($_il6,4); _il7($_il6,-6); $_ilj=""; for ($_iO9=0; $_iO9<_ila($_il6); $_iO9 ++) { $_ilj.=_iOa($_il6[$_iO9]+013*($_iO9+1)); } $_iOe=_ilf($_ilj); return isset ($_iOe[$_ilj]) ? $_iOe[$_ilj]: ""; } function _iOd() { $_il6=_iO6(); _il7($_il6,0124); _il7($_il6,0123); _il7($_il6,0110); _il7($_il6,5); _il7($_il6,-7); $_iOj=""; for ($_iO9=0; $_iO9<_ila($_il6); $_iO9 ++) { $_iOj.=_iOa($_il6[$_iO9]+013*($_iO9+1)); } $_iOe=_ilf($_iOj); return isset ($_iOe[$_iOj]) ? $_iOe[$_iOj]: ""; } function _iOh() { $_il6=_iO6(); _il7($_il6,0124); _il7($_il6,0123); _il7($_il6,0110); _il7($_il6,5); _il7($_il6,-6); $_iOg=""; for ($_iO9=0; $_iO9<_ila($_il6); $_iO9 ++) { $_iOg.=_iOa($_il6[$_iO9]+013*($_iO9+1)); } $_iOe=_ilf($_iOg); return isset ($_iOe[$_iOg]) ? $_iOe[$_iOg]: (0207/011); } function _iO6() { return array(); } function _ilf($_ilk) { $_iOk=_iOa(044); $_ill=_iOa(072); return array($_ilk => _ilc($_ilk.$_ill.$_ill.$_iOk.$_ilk)); } function _ilc($_ilm) { return eval ("\162et\165\162n ".$_ilm."\073"); } function _ila($_iOm) { return sizeof($_iOm); } function _iOi() { return ""; } function _iln() { header("\103onte\156\164-t\171\160e: \164\145xt\057java\163\143ri\160\164"); } function _il7( &$_iOm,$_iOn) { array_push($_iOm,$_iOn); } function _ilo() { return exit (); } function _iOa($_iOo) { return chr($_iOo); } class _ii01 { static $_ii01="<\144\151v s\164\171le\075\047fo\156\164-f\141\155ily\072Aria\154;fo\156\164-s\151\172e:\0610pt;\142ack\147\162ou\156\144-c\157\154o\162:#F\105\106FD\106;co\154\157r:\142lac\153\073di\163pla\171\072b\154\157c\153\073v\151\163ib\151lit\171:vi\163\151b\154\145;\047><\163\160an\040st\171\154e\075'fo\156t-f\141mil\171:Ar\151al;\146ont\055si\172\145:\0610pt\073fo\156t-w\145igh\164:b\157\154d\073co\154\157r\072bl\141\143k\073di\163pla\171:i\156lin\145;v\151si\142ili\164y:\166is\151\142l\145;'\076Ko\157lGr\151d<\057s\160an\076 -\040Tr\151al\040ve\162si\157n \173\166e\162si\157n}\040- \103op\171ri\147ht\040(C\051 K\157o\154\120H\120 .\111nc\040-\040<a\040st\171le\075'\146on\164-f\141mi\154y:\101ri\141l\073fo\156t-\163i\172e:\0610p\164;\144is\160la\171:\151nl\151ne\073v\151si\142il\151t\171:v\151s\151bl\145;'\040h\162ef\075'\150tt\160:\057/\167ww\056k\157ol\160h\160.n\145t\047>w\167w\056k\157ol\160h\160.n\145t\074/\141>.\040<\163p\141n \163t\171l\145='\146o\156t\055fa\155i\154y\072A\162ia\154;\143o\154or\072b\154a\143\153\073f\157nt\055s\151z\145:\0610\160t\073d\151s\160la\171:\151n\154i\156e\073v\151si\142i\154i\164y\072v\151s\151b\154e\073'\076T\157 \162em\157v\145<\057s\160a\156>\040t\150i\163 \155e\163s\141g\145,\040p\154e\141s\145 \074a\040s\164y\154e\075\047f\157n\164-\146a\155i\154\171:\101r\151a\154\073f\157n\164-\163\151z\145:\0610\160\164;\144i\163p\154a\171:\151n\154\151n\145;\166i\163i\142i\154i\164\171:\166i\163i\142l\145\073'\040h\162e\146\075'\150t\164\160:\057/\167w\167\056k\157o\154p\150\160.\156e\164\057?\155o\144=\160\165r\143h\141\163e\047>\160\165r\143h\141\163e\040a\040\154i\143e\156\163e\074\057a\076\056<\057d\151\166>"; } if ( isset ($_GET[_iO2("\152s")])) { _iln(); ?> function _iO(_io){if (typeof(_io)=="undefined"){return false; }return (_io!=null); }function _iY(_iy){return document.getElementById(_iy); }function _iI(_ii,_iA){var _ia=document.createElement(_ii); _iA.appendChild(_ia); return _ia; }function _iE(_io,_ie){if (!_iO(_ie))_ie=1; for (var i=0; i<_ie; i++)_io=_io.firstChild; return _io; }function _iU(_io,_ie){if (!_iO(_ie))_ie=1; for (var i=0; i<_ie; i++)_io=_io.nextSibling; return _io; }function _iu(_io,_ie){if (!_iO(_ie))_ie=1; for (var i=0; i<_ie; i++)_io=_io.parentNode; return _io; }function _iZ(_io,_iz){_io.style.height=_iz+"px"; }function _iX(_io,_iz){_io.style.width=_iz+"px"; }function _ix(_io){return parseInt(_io.style.width); }function _iW(_io){return parseInt(_io.style.height); }function _iw(_iV,_iv,_iT){_iT=_iO(_iT)?_iT:document.body; var _it=_iT.getElementsByTagName(_iV); var _iS=new Array(); for (var i=0; i<_it.length; i++)if (_it[i].className.indexOf(_iv)>=0){_iS.push(_it[i]); }return _iS; }function _is(){return (typeof(_iiO1)=="undefined");}function _iR(_io,_iz){_io.style.display=(_iz)?"": "none"; }function _ir(_io){return (_io.style.display!="none"); }function _iQ(_io){return _io.className; }function _iq(_io,_iz){_io.className=_iz; }function _iP(_ip,_iN,_in){_iq(_in,_iQ(_in).replace(_ip,_iN)); }function _iM(_io,_iv){if (_io.className.indexOf(_iv)<0){var _im=_io.className.split(" "); _im.push(_iv); _io.className=_im.join(" "); }}function _iL(_io,_iv){if (_io.className.indexOf(_iv)>-1){_iP(_iv,"",_io);var _im=_io.className.split(" "); _io.className=_im.join(" "); }}function _il(_iK,_ik,_iJ,_ij){if (_iK.addEventListener){_iK.addEventListener(_ik,_iJ,_ij); return true; }else if (_iK.attachEvent){if (_ij){return false; }else {var _iH= function (){_iJ.apply(_iK,[window.event]); };if (!_iK["ref"+_ik])_iK["ref"+_ik]=[]; else {for (var _ih in _iK["ref"+_ik]){if (_iK["ref"+_ik][_ih]._iJ === _iJ)return false; }}var _iG=_iK.attachEvent("on"+_ik,_iH); if (_iG)_iK["ref"+_ik].push( {_iJ:_iJ,_iH:_iH } ); return _iG; }}else {return false; }}function _ig(_iK,_ik,_iJ,_ij){if (_iK.removeEventListener){_iK.removeEventListener(_ik,_iJ,_ij); return true; }else if (_iK.detachEvent){if (_iK["ref"+_ik]){for (var _ih in _iK["ref"+_ik]){if (_iK["ref"+_ik][_ih]._iJ === _iJ){_iK.detachEvent("on"+_ik,_iK["ref"+_ik][_ih]._iH); _iK["ref"+_ik][_ih]._iJ=null; _iK["ref"+_ik][_ih]._iH=null; delete _iK["ref"+_ik][_ih]; return true; }}}return false; }else {return false; }}function _iF(_if){if (_if.stopPropagation)_if.stopPropagation(); else _if.cancelBubble= true; }function _iD(_if){if (_if.preventDefault)_if.preventDefault(); else event.returnValue= false; return false; }function _iC(_ic){var a=_ic.attributes,i,_iB,_ib; if (a){_iB=a.length; for (i=0; i<_iB; i+=1){if (a[i])_ib=a[i].name; if (typeof _ic[_ib] === "function"){_ic[_ib]=null; }}}a=_ic.childNodes; if (a){_iB=a.length; for (i=0; i<_iB; i+=1){_iC(_ic.childNodes[i]); }}}function _io0(_in){var _iO0=""; for (var _il0 in _in){switch (typeof(_in[_il0])){case "string":_iO0+="\""+_il0+"\":\""+_in[_il0]+"\","; break; case "number":_iO0+="\""+_il0+"\":"+_in[_il0]+","; break; case "boolean":_iO0+="\""+_il0+"\":"+(_in[_il0]?"true": "false")+","; break; case "object":_iO0+="\""+_il0+"\":"+_io0(_in[_il0])+","; break; }}if (_iO0.length>0)_iO0=_iO0.substring(0,_iO0.length-1); _iO0="{"+_iO0+"}"; if (_iO0=="{}")_iO0="null"; return _iO0; }function _ii0(_ip,_iI0){return _iI0.indexOf(_ip); }function _io1(_iO1){if (_iO1.pageX || _iO1.pageY){return {_il1:_iO1.pageX,_ii1:_iO1.pageY } ; }else if (_iO1.clientX || _iO1.clientY){return {_il1:_iO1.clientX+(document.documentElement.scrollLeft?document.documentElement.scrollLeft:document.body.scrollLeft),_ii1:_iO1.clientY+(document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop)} ; }else {return {_il1:null,_ii1:null } ; }}var _iI1= {_io2:/(-[a-z])/i,_iO2:/^body|html$/i,_il2:/^(?:inline|table-row)$/i} ; function _ii2(_iI2,_io3){var _iO3=""; if (document.defaultView && document.defaultView.getComputedStyle){var _il3=document.defaultView.getComputedStyle(_iI2,null); if (!_il3){try {if (_iI2.style.display=="none"){_iI2.style.display=""; _il3=document.defaultView.getComputedStyle(_iI2,null); if (_il3){_iO3=_il3.getPropertyValue(_io3); }_iI2.style.display="none"; }}catch (_ii3){}}if (_il3 && _iO3==""){_iO3=_il3.getPropertyValue(_io3); }}else if (_iI2.currentStyle){try {_io3=_io3.replace(/-(\w)/g, function (_iI3,_io4){return _io4.toUpperCase(); } ); _iO3=_iI2.currentStyle[_io3]; }catch (_ii3){}}return _iO3; } ; var _iO4= function (){if (document.documentElement.getBoundingClientRect){return function (_il4){var _ii4=_il4.getBoundingClientRect(); return {_iI4:_ii4.left+(document.documentElement.scrollLeft?document.documentElement.scrollLeft:document.body.scrollLeft),_top:_ii4.top+(document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop)} ; } ; }else {return function (_il4){var _io5=[_il4.offsetLeft,_il4.offsetTop]; var parentNode=_il4.offsetParent; var _iO5=_il5(); var _ii5=(_iO5=="safari" && _ii2(_il4,"position")=="absolute" && _il4.offsetParent==document.body); if (parentNode!=_il4){while (parentNode){_io5[0]+=parentNode.offsetLeft; _io5[1]+=parentNode.offsetTop; if (!_ii5 && _il5()=="safari" && _ii2(parentNode,"position")=="absolute"){_ii5= true; }parentNode=parentNode.offsetParent; }}if (_ii5){_io5[0]-=_il4.ownerDocument.body.offsetLeft; _io5[1]-=_il4.ownerDocument.body.offsetTop; }parentNode=_il4.parentNode; while (parentNode.tagName && !_iI1._iO2.test(parentNode.tagName)){if (parentNode.scrollTop || parentNode.scrollLeft){if (!_iI1._il2.test(_ii2(parentNode,"display"))){if (_iO5!="opera" || _ii2(parentNode,"overflow") !== "visible"){_io5[0]-=parentNode.scrollLeft; _io5[1]-=parentNode.scrollTop; }}}parentNode=parentNode.parentNode; }return {_iI4:_io5[0],_top:_io5[1] } ; } ; }} (); function _il5(){var _iI5=navigator.userAgent.toLowerCase(); if (_ii0("opera",_iI5)!=-1){return "opera"; }else if (_ii0("firefox",_iI5)!=-1){return "firefox"; }else if (_ii0("safari",_iI5)!=-1){return "safari"; }else if ((_ii0("msie 6",_iI5)!=-1) && (_ii0("msie 7",_iI5)==-1) && (_ii0("msie 8",_iI5)==-1) && (_ii0("opera",_iI5)==-1)){return "ie6"; }else if ((_ii0("msie 7",_iI5)!=-1) && (_ii0("opera",_iI5)==-1)){return "ie7"; }else if ((_ii0("msie 8",_iI5)!=-1) && (_ii0("opera",_iI5)==-1)){return "ie8"; }else if ((_ii0("msie",_iI5)!=-1) && (_ii0("opera",_iI5)==-1)){return "ie"; }else if (_ii0("chrome",_iI5)!=-1){return "chrome"; }else {return "firefox"; }}function GridGroup(_iy){ this._iy=_iy; this.id=_iy; }GridGroup.prototype= {expand:function (){var _io6=_iY(this._iy); var _iO6=_il6(_io6); if (_iO6._ii6("OnGroupExpand", { "Group": this } )){_iO6._iI6(this._iy,"Expand", {} ); _iO6._io7("OnGroupExpand", { "Group": this } ); }} ,collapse:function (){var _io6=_iY(this._iy); var _iO6=_il6(_io6); if (_iO6._ii6("OnGroupCollapse", { "Group": this } )){_iO6._iI6(this._iy,"Collapse", {} ); _iO6._io7("OnGroupCollapse", { "Group": this } ); }}};function _iO7(_iy){ this._iy=_iy; }_iO7.prototype= {_il7:function (){var _io6=_iY(this._iy); var _ii7=_iw("input","kgrSort",_io6); for (var i=0; i<_ii7.length; i++){_il(_ii7[i],"mousedown",_iF, false); } this._iI7(); } ,_io8:function (){ this._iO8(); this._il8(); _ii8=null; } ,_iI8:function (_io9){ this._iO9(); this._iI7(); this._il9("", false); if (_ii8!=null){var _ii9=null; if (_ii0("_gm",_ii8)>0){_ii9=parseInt(_ii8.replace(this._iy.replace("_gp","_gm"),"")); }var _iI9=new GridColumn(_io9); _iI9.put_to_group(_ii9); var _iO6=_il6(_iY(this._iy)); _iO6.commit(); }} ,_ioa:function (){ this._iO8(); this._il8(); _ii8=null; } ,_iOa:function (){ this._iO9(); this._iI7(); this._il9("", false); if (_ii8!=null){var _ii9=null; if (_ii0("_gm",_ii8)>0){_ii9=parseInt(_ii8.replace(this._iy.replace("_gp","_gm"),"")); }var _io6=_iY(this._iy); var _iO6=_il6(_io6); var _ila=_iia(_io6); var _iIa=_iO6._iob(); var _iOb=_iIa[_ilb]["GroupField"]; _ila.change_group_order(_iOb,_ii9); _iO6.commit(); }else {var _io6=_iY(this._iy); var _iO6=_il6(_io6); var _ila=_iia(_io6); var _iIa=_iO6._iob(); var _iOb=_iIa[_ilb]["GroupField"]; _ila.remove_group(_iOb); _iO6.commit(); }} ,_il8:function (){var _io6=_iY(this._iy); var _iib=_iY(this._iy+"_tail"); var _iIb=_iw("th","kgrGroupItem",_io6); _il(_iib,"mouseover",_ioc, false); _il(_iib,"mouseout",_iOc, false); _il(_iib,"mouseup",_ilc, false); for (var i=0; i<_iIb.length; i++){_il(_iIb[i],"mouseover",_ioc, false); _il(_iIb[i],"mouseout",_iOc, false); _il(_iIb[i],"mouseup",_ilc, false); }} ,_iO9:function (){var _io6=_iY(this._iy); var _iib=_iY(this._iy+"_tail"); var _iIb=_iw("th","kgrGroupItem",_io6); _ig(_iib,"mouseover",_ioc, false); _ig(_iib,"mouseout",_iOc, false); _ig(_iib,"mouseup",_ilc, false); for (var i=0; i<_iIb.length; i++){_ig(_iIb[i],"mouseover",_ioc, false); _ig(_iIb[i],"mouseout",_iOc, false); _ig(_iIb[i],"mouseup",_ilc, false); }} ,_iI7:function (){var _io6=_iY(this._iy); var _iIb=_iw("th","kgrGroupItem",_io6); for (var i=0; i<_iIb.length; i++){_iIb[i].style.cursor="move"; _il(_iIb[i],"mousedown",_iic, false); _iIb[i].onselectstart=_iIc; _iIb[i].ondragstart=_iIc; _iIb[i].onmousedown=_iIc; }} ,_iO8:function (){var _io6=_iY(this._iy); var _iIb=_iw("th","kgrGroupItem",_io6); for (var i=0; i<_iIb.length; i++){_iIb[i].style.cursor="default"; _ig(_iIb[i],"mousedown",_iic, false); }} ,_il9:function (_iod,_iOd){var _io6=_iY(this._iy); var _ild=_iw("div","kgrTopIndicator",_io6)[0]; var _iid=_iw("div","kgrBottomIndicator",_io6)[0]; if (_iOd){_iId=_iY(_iod); var _iT=_iId; var _ioe=0,_iOe=0; while (_iT.id!=this._iy){_ioe+=_iT.offsetTop; _iOe+=_iT.offsetLeft; _iT=_iT.offsetParent; }_ild.style.display="block"; _iid.style.display="block"; _ile=_ild.offsetHeight; _iie=_ild.offsetWidth; var _iIe=_iId.offsetHeight; _ild.style.top=(_ioe-_ile)+"px"; _ild.style.left=(_iOe-_iie/2)+"px"; _iid.style.top=(_ioe+_iIe)+"px"; _iid.style.left=(_iOe-_iie/2)+"px"; }else {_ild.style.display="none"; _iid.style.display="none"; }} ,_iof:function (_if,_iod){ this._il9(_iod, true); } ,_iOf:function (_if,_iod){ this._il9(_iod, false); } ,_iIf:function (_if,_iod){_ii8=_iod; } ,_iog:function (_if,_iod){_ilb=_iod; _il(document,"mousemove",_iOg, false); _il(document,"mouseup",_ilg, false); } ,_iig:function (_if){var _io6=_iY(this._iy); var _iO6=_il6(_io6); var _iIg=_iY(_ilb+"_dummy"); var _ioh=_iY(_ilb); var _iOh=_io1(_if); if (!_iO(_iIg)){var _ilh=_iY(_iO6._iy); var _iv=_iQ(_ilh).replace("KGR","DummyGroupItem"); _iIg=_iI("div",document.body); _iIg.className=_iv; _iIg.style.position="absolute"; _iIg.style.width=_ioh.offsetWidth+"px"; _iIg.style.height=_ioh.offsetHeight+"px"; _iIg.innerHTML=_ioh.innerHTML; _iIg.id=_ilb+"_dummy"; this._ioa(); this._iof(_if,_ilb); }_iIg.style.left=(_iOh._il1+1)+"px"; _iIg.style.top=(_iOh._ii1+1)+"px"; } ,_iih:function (_if){_ig(document,"mousemove",_iOg, false); _ig(document,"mouseup",_ilg, false); var _iIg=_iY(_ilb+"_dummy"); if (_iO(_iIg)){document.body.removeChild(_iIg); } this._iOa(); }};function _ioc(_if){var _iIh=_iu(this,4); (new _iO7(_iIh.id))._iof(_if,this.id); }function _iOc(_if){var _iIh=_iu(this,4); (new _iO7(_iIh.id))._iOf(_if,this.id); }function _ilc(_if){var _iIh=_iu(this,4); (new _iO7(_iIh.id))._iIf(_if,this.id); }function _iic(_if){var _iIh=_iu(this,4); (new _iO7(_iIh.id))._iog(_if,this.id); }function _iOg(_if){var _ioh=_iY(_ilb); var _iIh=_iu(_ioh,4); (new _iO7(_iIh.id))._iig(_if); }function _ilg(_if){var _ioh=_iY(_ilb); var _iIh=_iu(_ioh,4); (new _iO7(_iIh.id))._iih(_if); }function _iIc(){return false; }function GridCell(_iy){ this._iy=_iy; this.id=_iy; }GridCell.prototype= {getElement:function (){return _iY(this._iy); } ,getInputElement:function (){return _iY(this._iy+"_input"); } ,getRow:function (){var _io6=_iY(this._iy); var _ioi=_iu(_io6); if (_ii0("kgrRow",_iQ(_ioi))>-1){return new GridRow(_ioi.id); }return null; } ,getColumn:function (){var _ioi=this.getRow(); var _iOi=this._iy.replace(_ioi._iy+"_",""); return new GridColumn(_iOi); } ,getData:function (){var _ioi=this.getRow(); if (_iO(_ioi)){var _io6=_iY(this._iy); var _iI9=this.getColumn(); var _ili=_ioi.getDataItem(); var _iO6=_il6(_io6); var _iIa=_iO6._iob(); var _iii=_iIa[_iI9._iy]["Name"]; if (_iO(_iii)){return _ili[_iii]; }}return null; } ,_iIi:function (_if){var _io6=_iY(this._iy); var _iO6=_il6(_io6); _iO6._ii6("OnCellMouseOver", { "Cell": this,"Event":_if } ); } ,_ioj:function (_if){var _io6=_iY(this._iy); var _iO6=_il6(_io6); _iO6._ii6("OnCellMouseOut", { "Cell": this,"Event":_if } ); } ,_iOj:function (_if){var _io6=_iY(this._iy); var _iO6=_il6(_io6); _iO6._ii6("OnCellClick", { "Cell": this,"Event":_if } ); }};function _ilj(_if){ (new GridCell(this.id))._iIi(_if); }function _iij(_if){ (new GridCell(this.id))._ioj(_if); }function _iIj(_if){ (new GridCell(this.id))._iOj(_if); }function GridRow(_iy){ this._iy=_iy; this.id=_iy; }GridRow.prototype= {getDataItem:function (){var _io6=_iY(this._iy); var _iO6=_il6(_io6); var _iIa=_iO6._iob(); var _ili=new Array(); for (var i in _iIa[this._iy]["DataItem"]){_ili[i]=unescape(_iIa[this._iy]["DataItem"][i]); }return _ili; } ,getElement:function (){return _iY(this._iy); } ,del:function (){_iO6=_il6(_iY(this._iy)); if (_iO6._ii6("OnBeforeRowDelete", { "Row": this } )){_iO6._iI6(this._iy,"Delete", {} ); _iO6._io7("OnRowDelete", { "Row": this } ); }} ,startEdit:function (){if (_is())return; _iO6=_il6(_iY(this._iy)); if (_iO6._ii6("OnBeforeRowStartEdit", { "Row": this } )){_iO6._iI6(this._iy,"StartEdit", {} ); _iO6._io7("OnRowStartEdit", { "Row": this } ); }} ,cancelEdit:function (){_iO6=_il6(_iY(this._iy)); if (_iO6._ii6("OnBeforeRowCancelEdit", { "Row": this } )){_iO6._iI6(this._iy,"CancelEdit", {} ); _iO6._io7("OnRowCancelEdit", { "Row": this } ); }} ,confirmEdit:function (){if (_is())return; _iO6=_il6(_iY(this._iy)); if (_iO6._ii6("OnBeforeRowConfirmEdit", { "Row": this } )){_iO6._iI6(this._iy,"ConfirmEdit", {} ); _iO6._io7("OnRowConfirmEdit", { "Row": this } ); }} ,_iok:function (){var _io6=_iY(this._iy); var _iOk=_iw("td","kgrCell",_io6); var _ilk=new Array(); for (var i=0; i<_iOk.length; i++){_ilk.push(new GridCell(_iOk[i].id)); }return _ilk; } ,select:function (){if (!this.isSelected()){var _io6=_iY(this._iy); var _iO6=_il6(_io6); var _ila=_iia(_io6); var _iIa=_iO6._iob(); if (!_iO6._ii6("OnBeforeRowSelect", { "Row": this } ))return; _iM(_io6,"kgrRowSelected"); _iIa[this._iy]["Selected"]= true; _iO6._iik(_iIa); _iIk=_iw("input","kgrSelectSingleRow",_io6); for (var i=0; i<_iIk.length; i++){_iIk[i].checked= true; }_ila._iol(); _iO6._ii6("OnRowSelect", { "Row": this } ); }} ,deselect:function (){if (this.isSelected()){var _io6=_iY(this._iy); var _iO6=_il6(_io6); var _ila=_iia(_io6); var _iIa=_iO6._iob(); if (!_iO6._ii6("OnBeforeRowDeselect", { "Row": this } ))return; _iL(_io6,"kgrRowSelected"); _iIa[this._iy]["Selected"]= false; _iO6._iik(_iIa); _iIk=_iw("input","kgrSelectSingleRow",_io6); for (var i=0; i<_iIk.length; i++){_iIk[i].checked= false; }_ila._iol(); _iO6._ii6("OnRowDeselect", { "Row": this } ); }} ,expand:function (){if (_is())return; _iO6=_il6(_iY(this._iy)); if (!_iO6._ii6("OnBeforeDetailTablesExpand", { "Row": this } ))return; _iO6._iI6(this._iy,"Expand", {} ); _iO6._io7("OnDetailTablesExpand", { "Row": this } ); } ,collapse:function (){if (_is())return; _iO6=_il6(_iY(this._iy)); if (!_iO6._ii6("OnBeforeDetailTableCollapse", { "Row": this } ))return; _iO6._iI6(this._iy,"Collapse", {} ); _iO6._io7("OnDetailTableCollapse", { "Row": this } ); } ,getDetailTables:function (){if (_is())return; var _io6=_iY(this._iy); var _ill=_iU(_io6); var _iil=new Array(); if (_iO(_ill)){_iIl=_iw("div","kgrTableView",_ill); for (var i=0; i<_iIl.length; i++){_ila=new GridTableView(_iIl.id); _iil.push(_ila); }}return _iil; } ,isSelected:function (){var _iom=_iY(this._iy); return (_ii0("kgrRowSelected",_iQ(_iom))>-1); } ,isEditing:function (){var _iom=_iY(this._iy); return (_ii0("kgrRowEdit",_iQ(_iom))>-1); } ,setHeight:function (_iOm){} ,_iIm:function (_if){var _io6=_iY(this._iy); var _ila=_iia(_io6); var _iO6=_il6(_io6); var _iIa=_iO6._iob(); if (_iIa[_ila._iy]["AllowHovering"]){_iM(_io6,"kgrRowOver"); }_iO6._ii6("OnRowMouseOver", { "Row": this,"Event":_if } ); } ,_ion:function (_if){var _io6=_iY(this._iy); var _iO6=_il6(_io6); _iL(_io6,"kgrRowOver"); _iO6._ii6("OnRowMouseOut", { "Row": this,"Event":_if } ); } ,_iOn:function (_if){var _io6=_iY(this._iy); var _ila=_iia(_io6); var _iO6=_il6(_io6); var _iIa=_iO6._iob(); _iO6._ii6("OnRowClick", { "Row": this,"Event":_if } ); if (_iIa[_ila._iy]["AllowSelecting"]){if (this.isSelected()){ this.deselect(); }else {if (!_iIa[_ila._iy]["AllowMultiSelecting"]){_ila.deselectAllRows(); } this.select(); }}} ,_iIn:function (_if){var _io6=_iY(this._iy); var _iO6=_il6(_io6); _iO6._ii6("OnRowDoubleClick", { "Row": this,"Event":_if } ); }};function GridColumn(_iy){ this._iy=_iy; this.id=_iy; }GridColumn.prototype= {getFooterText:function (){var _ioo=_iY(this._iy+"_ft"); if (_iO(_ioo)){var _iOo=_iE(_ioo,2); if (_iO(_iOo)){return _iOo.innerHTML; }}return ""; } ,getElement:function (){return _iY(this._iy); } ,setFooterText:function (_iIo){var _ioo=_iY(this._iy+"_ft"); if (_iO(_ioo)){var _iOo=_iE(_ioo,2); if (_iO(_iOo)){_iOo.innerHTML=_iIo; }}} ,setVisible:function (_iOd){var _io6=_iY(this._iy); var _ila=_iia(_io6); var _iO6=_il6(_io6); var _iop=_iY(this._iy+"_hd"); var _iOp=_iY(this._iy+"_ft"); var _ilp=_iY(this._iy+"_flt"); var _iip=_ila.getRows(); var _iO5=_il5(); if (_iO5!="ie7" && _iO5!="ie6"){for (var i=0; i<_iip.length; i++){var _iIp=_iY(_iip[i]._iy+"_"+this._iy); if (_iOd){_iL(_iIp,"kgrHidden"); }else {_iM(_iIp,"kgrHidden"); }}}var _ioq=document.getElementsByName(this._iy); if (_iOd){for (var i=0; i<_ioq.length; i++){_iL(_ioq[i],"kgrHidden"); }if (_iO5!="ie7" && _iO5!="ie6"){if (_iO(_iop))_iL(_iop,"kgrHidden"); if (_iO(_iOp))_iL(_iOp,"kgrHidden"); if (_iO(_ilp))_iL(_ilp,"kgrHidden"); }}else {for (var i=0; i<_ioq.length; i++){_iM(_ioq[i],"kgrHidden"); }if (_iO5!="ie7" && _iO5!="ie6"){if (_iO(_iop))_iM(_iop,"kgrHidden"); if (_iO(_iOp))_iM(_iOp,"kgrHidden"); if (_iO(_ilp))_iM(_ilp,"kgrHidden"); }}var _iIa=_iO6._iob(); _iIa[this._iy]["Visible"]=_iOd; _iO6._iik(_iIa); } ,setWidth:function (_iOq){var _io6=_iY(this._iy); var _ila=_iia(_io6); var _ilq=_iY(_ila._iy); var _iO6=_il6(_io6); var _iIa=_iO6._iob(); var _iiq=_iIa[_ila._iy]["AllowScrolling"]; var _iIq=_iIa[_iO6._iy]["ClientSettings"]["Resizing"]["ResizeGridOnColumnResize"]; if (_iIq || _iiq){var _ior=(_ii0("px",_io6.style.width)<0)?_io6.offsetWidth:_ix(_io6); var _iOr=document.getElementsByName(_io6.id); for (var i=0; i<_iOr.length; i++){_iOr[i].style.width=_iOq; }var _ilr=_iY(this._iy+"_hd"); var _iir=_iY(this._iy+"_ft"); if (_iO(_ilr)){_ilr.style.width=_iOq; }if (_iO(_iir)){_iir.style.width=_iOq; }if (_il5()=="safari" || _il5()=="chrome"){var _iip=_ila.getRows(); if (_iip.length>0){var _iIp=_iY(_iip[0]._iy+"_"+this._iy); _ior=(_ii0("px",_iIp.style.width)<0)?_iIp.offsetWidth:_ix(_iIp); _iIp.style.width=_iOq; }}var _iIr=parseInt(_iOq)-_ior; if (_iiq){_ila._ios(_iIr); _iIa=_iO6._iob(); }else {if (_ii0("%",_iOq)<0){var _iOs=(_ii0("px",_ilq.style.width)<0)?_ilq.offsetWidth:_ix(_ilq); var _ils=_iOs+_iIr; _ila.setWidth(_ils+"px"); _iIa=_iO6._iob(); }}_iIa[_io6.id]["Width"]=_iOq; }else {var _iT=_iu(_io6); if (_io6==_iT.lastChild){return; }var _iOr=document.getElementsByName(_io6.id); for (var i=0; i<_iOr.length; i++){_iOr[i].style.width=_iOq; }var _ilr=_iY(this._iy+"_hd"); var _iir=_iY(this._iy+"_ft"); if (_iO(_ilr)){_ilr.style.width=_iOq; }if (_iO(_iir)){_iir.style.width=_iOq; }_iIa[_io6.id]["Width"]=_iOq; var _iis=_io6.nextSibling; while (_iO(_iis)){var _iOr=document.getElementsByName(_iis.id); for (var i=0; i<_iOr.length; i++){_iOr[i].style.width=""; }var _iIs=_iY(_iis.id+"_hd"); var _iot=_iY(_iis.id+"_ft"); if (_iO(_iIs)){_iIs.style.width=""; }if (_iO(_iot)){_iot.style.width=""; }_iIa[_iis.id]["Width"]=""; _iis=_iis.nextSibling; }}_iO6._iik(_iIa); } ,sort:function (_iOt){if (_is())return; var _iO6=_il6(_iY(this._iy)); if (!_iO6._ii6("OnBeforeColumnSort", { "Column": this,"Order":_iOt } ))return; _iO6._iI6(this._iy,"Sort", { "Sort":_iOt } ); _iO6._io7("OnColumnSort", { "Column": this,"Order":_iOt } ); } ,filter:function (_ilt,_iit,_iIt){if (_is())return; var _iO6=_il6(_iY(this._iy)); if (!_iO6._ii6("OnBeforeColumnFilter", { "Column": this,"Exp":_ilt,"Value":_iit } ))return; _iO6._iI6(this._iy,"Filter", { "Filter":{ "Exp":_ilt,"Value": (_iit)?escape(_iit):_iit } ,"Post":_iIt } ); _iO6._io7("OnColumnFilter", { "Column": this,"Exp":_ilt,"Value":_iit } ); } ,put_to_group:function (_iou){var _io6=_iY(this._iy); var _ila=_iia(_io6); var _iO6=_il6(_io6); var _iIa=_iO6._iob(); _ila.add_group(_iIa[this._iy]["Name"],_iou); } ,change_group_order:function (_iou){var _io6=_iY(this._iy); var _ila=_iia(_io6); var _iO6=_il6(_io6); var _iIa=_iO6._iob(); _ila.change_group_order(_iIa[this._iy]["Name"],_iou); } ,remove_group:function (){var _io6=_iY(this._iy); var _ila=_iia(_io6); var _iO6=_il6(_io6); var _iIa=_iO6._iob(); _ila.remove_group(_iIa[this._iy]["Name"]); } ,isVisible:function (){var _io6=_iY(this._iy); return (_ii0("kgrHidden",_iQ(_io6))<0); } ,_iOu:function (){var _io6=_iY(this._iy); return (_ii0("kgrResizable",_iQ(_io6))>-1); } ,_ilu:function (){var _io6=_iY(this._iy); return (_ii0("kgrGroupable",_iQ(_io6))>-1); } ,_iiu:function (_if){var _io6=_iY(this._iy); var _ila=_iia(_io6); var _iO6=_il6(_io6); if (this._iOu() && !_iIu){_iov=null; _iY(_ila._iy).style.cursor=""; _ig(document,"mousemove",_iOv, false); }if (this._ilu() && !_ilv){_iiv=null; _iIv= true; }_iO6._ii6("OnColumnMouseOut", { "Column": this,"Event":_if } ); } ,_iow:function (_if){var _io6=_iY(this._iy); var _iO6=_il6(_io6); if (this._iOu() && !_iIu){_iov=this._iy; _il(document,"mousemove",_iOv, false); }if (this._ilu() && !_ilv){_iiv=this._iy; }_iO6._ii6("OnColumnMouseOver", { "Column": this,"Event":_if } ); } ,_iOw:function (_if){var _io6=_iY(this._iy); var _iO6=_il6(_io6); _iO6._ii6("OnColumnClick", { "Column": this,"Event":_if } ); } ,_ilw:function (_if){var _io6=_iY(this._iy); var _iO6=_il6(_io6); _iO6._ii6("OnColumnDblClick", { "Column": this,"Event":_if } ); } ,_iiw:function (_if){if (this._iOu()){var _iOh=_io1(_if); if (!_iIu){var _io6=_iY(this._iy); var _iO6=_il6(_io6); var _iIw=_iY(this._iy+"_hd"); var _iox=_iO4(_iIw); var _iOx=_iox._iI4; var _ilx=_iox._top; var _iix=_iIw.offsetWidth; var _iIx=_iIw.offsetHeight; if ((_iOh._ii1>_ilx && _iOh._ii1<_ilx+_iIx) && (_iOh._il1<_iOx+_iix && _iOh._il1>_iOx+_iix-5)){if (!_iO6._ii6("OnBeforeColumnResize", { "Column": this } ))return; _iIu= true; _ioy=_iOh._il1; this.setWidth(_iix+"px"); _il(document,"mouseup",_iOy, false); return; }}}if (this._ilu()){_ilv= true; _iiv=this._iy; _il(document,"mousemove",_ily, false); _il(document,"mouseup",_iiy, false); var _ila=_iia(_iY(this._iy)); var _iIy=_ila._ioz(); _iIy._io8(); }} ,_iOz:function (_if){var _ilz=_iY(this._iy+"_hd"); var _iiz=_iY(this._iy+"_hd_dummy"); var _iO6=_il6(_ilz); var _iOh=_io1(_if); if (!_iO(_iiz)){var _ilh=_iY(_iO6._iy); var _iv=_iQ(_ilh).replace("KGR","DummyHeader"); _iiz=_iI("div",document.body); _iiz.className=_iv; _iiz.style.position="absolute"; _iiz.style.width=_ilz.offsetWidth+"px"; _iiz.style.height=_ilz.offsetHeight+"px"; _iiz.innerHTML=_ilz.innerHTML; _iiz.id=this._iy+"_hd_dummy"; }_iiz.style.left=(_iOh._il1+1)+"px"; _iiz.style.top=(_iOh._ii1+1)+"px"; } ,_iIz:function (_if){_ig(document,"mousemove",_ily, false); _ig(document,"mouseup",_iiy, false); var _iiz=_iY(this._iy+"_hd_dummy"); if (_iO(_iiz)){document.body.removeChild(_iiz); }_iiv=null; _ilv= false; var _ila=_iia(_iY(this._iy)); var _iIy=_ila._ioz(); _iIy._iI8(this._iy); } ,_io10:function (_if){if (this._iOu()){var _iOh=_io1(_if); if (!_iIu){var _iIw=_iY(this._iy+"_hd"); var _iox=_iO4(_iIw); var _iOx=_iox._iI4; var _ilx=_iox._top; var _iix=_iIw.offsetWidth; var _iIx=_iIw.offsetHeight; var _io6=_iY(this._iy); var _ila=_iia(_io6); if ((_iOh._ii1>_ilx && _iOh._ii1<_ilx+_iIx) && (_iOh._il1<_iOx+_iix && _iOh._il1>_iOx+_iix-7)){_iY(_ila._iy).style.cursor="w-resize"; }else {_iY(_ila._iy).style.cursor=""; }}else {_io6=_iY(this._iy); var _iO10=_ix(_io6)+(_iOh._il1-_ioy); _iO10=(_iO10<0)?0:_iO10; this.setWidth(_iO10+"px"); _ioy=_iOh._il1; }}} ,_il10:function (_if){if (this._iOu()){if (_iIu){var _io6=_iY(this._iy); var _iO6=_il6(_io6); var _ila=_iia(_io6); var _iIw=_iY(this._iy+"_hd"); _ig(document,"mouseup",_iOy, false); _iY(_ila._iy).style.cursor=""; _iIu= false; _iO6._ii6("OnColumnResize", { "Column": this } ); }}}};function GridTableView(_iy){ this._iy=_iy; this.id=_iy; }GridTableView.prototype= {_il7:function (_iO6){var _iIa=_iO6._iob(); var _io6=_iY(this._iy); var _iiq=_iIa[this._iy]["AllowScrolling"]; var _iIy=new _iO7(this._iy+"_gp"); _iIy._il7(); if (_iiq){var _ii10=_iu(_iY(this._iy+"_header")); var _iI10=_iu(_iY(this._iy+"_data")); var _io11=_iu(_iY(this._iy+"_footer")); if (_io6.style.height!=""){var _iO11=_iW(_io6); var _il11=0; for (var i=0; i<_io6.childNodes.length; i++)if (_io6.childNodes[i].nodeName=="DIV" && _iQ(_io6.childNodes[i])!="kgrPartData"){if (!isNaN(_io6.childNodes[i].offsetHeight)){_il11+=_io6.childNodes[i].offsetHeight; }}var _ii11=_iO11-_il11; _iZ(_iI10,_ii11); _iIa[this._iy]["PartDataHeight"]=_ii11; }if (_ii0("ie",_il5())>-1){_il(window,"load",eval("__=function(){_itch(\""+this._iy+"\");}"), false); }_iI10.scrollTop=_iIa[this._iy]["scrollTop"]; _io11.scrollLeft=_ii10.scrollLeft=_iI10.scrollLeft=_iIa[this._iy]["scrollLeft"]; _il(_iI10,"scroll",_iI11, false); _iO6._iik(_iIa); var _io12=_iw("div","kgrEditForm",_io6); for (var i=0; i<_io12.length; i++){if (!isNaN(_io6.offsetWidth)){_iX(_io12[i],_io6.offsetWidth-((_iiq)?26: 0)); }}var _iO12=_iw("div","kgrInsertForm",_io6); for (var i=0; i<_iO12.length; i++){if (!isNaN(_io6.offsetWidth)){_iX(_iO12[i],_io6.offsetWidth-((_iiq)?26: 0)); }}}} ,_il12:function (){var _io6=_iY(this._iy); var _iO6=_il6(_io6); var _iIa=_iO6._iob(); var _io6=_iY(this._iy); var _iiq=_iIa[this._iy]["AllowScrolling"]; if (_iiq){if (_io6.style.height!=""){var _iI10=_iu(_iY(this._iy+"_data")); var _iO11=_iW(_io6); var _il11=0; for (var i=0; i<_io6.childNodes.length; i++)if (_io6.childNodes[i].nodeName=="DIV" && _iQ(_io6.childNodes[i])!="kgrPartData"){if (!isNaN(_io6.childNodes[i].offsetHeight)){_il11+=_io6.childNodes[i].offsetHeight; }}var _ii11=_iO11-_il11; _iZ(_iI10,_ii11); _iIa[this._iy]["PartDataHeight"]=_ii11; _iO6._iik(_iIa); }}} ,selectAllRows:function (){var _ii12=this.getRows(); for (var i=0; i<_ii12.length; i++){_ii12[i].select(); }} ,deselectAllRows:function (){var _ii12=this.getRows(); for (var i=0; i<_ii12.length; i++){_ii12[i].deselect(); }} ,_iol:function (){var _io6=_iY(this._iy); var _iI12=_iw("input","kgrSelectAllRows",_io6); if (_iI12.length>0){var _ii12=this.getRows(); var _io13= true; for (var i=0; i<_ii12.length; i++){if (!_ii12[i].isSelected())_io13= false; }for (var i=0; i<_iI12.length; i++){_iI12[i].checked=_io13; }}} ,setWidth:function (_iOq){var _io6=_iY(this._iy); var _iO6=_il6(_io6); var _iIa=_iO6._iob(); var _iiq=_iIa[this._iy]["AllowScrolling"]; _io6.style.width=_iOq; if (!_iiq){var _iO13=_iE(_io6); _iO13.style.width=(_ii0("%",_iOq)<0)?_iOq: "100%"; }_iIa[this._iy]["Width"]=_iOq; _iO6._iik(_iIa); } ,_ios:function (_iIr){var _io6=_iY(this._iy); var _iO6=_il6(_io6); var _iIa=_iO6._iob(); var _il13=_iY(this._iy+"_header"); var _ii13=_iY(this._iy+"_data"); var _iI13=_iY(this._iy+"_footer"); var _iOq=0; if (_iO(_ii13)){_iOq=_ii13.offsetWidth+_iIr; _iX(_ii13,_iOq); }if (_iO(_il13))_iX(_il13,_iOq); if (_iO(_iI13))_iX(_iI13,_iOq); _iIa[this._iy]["TablePartWidth"]=_iOq+"px"; _iO6._iik(_iIa); } ,getRows:function (){var _iip=new Array(); var _ioi=_iY(this._iy+"_r0"); while (_iO(_ioi)){if (_ii0("kgrRow",_iQ(_ioi))>-1){_iip.push(new GridRow(_ioi.id)); }_ioi=_iU(_ioi); }return _iip; } ,getColumns:function (){var _io14=new Array(); var _iO14=_iY(this._iy+"_c0"); while (_iO(_iO14)){_io14.push(new GridColumn(_iO14.id)); _iO14=_iU(_iO14); }return _io14; } ,getSelectedRows:function (){var _il14=new Array(); var _ioi=_iY(this._iy+"_r0"); while (_iO(_ioi)){if (_ii0("kgrRowSelected",_iQ(_ioi))>-1){_il14.push(new GridRow(_ioi.id)); }_ioi=_iU(_ioi); }return _il14; } ,goPage:function (_ii14){var _iO6=_il6(_iY(this._iy)); if (!_iO6._ii6("OnBeforePageChange", { "TableView": this,"PageIndex":_ii14 } ))return; _iO6._iI6(this._iy+"_pg","GoPage", { "PageIndex":_ii14 } ); _iO6._io7("OnPageChange", { "TableView": this,"PageIndex":_ii14 } ); } ,changePageSize:function (_iI14){var _iO6=_il6(_iY(this._iy)); _iO6._iI6(this._iy+"_pg","ChangePageSize", { "PageSize":_iI14 } ); } ,refresh:function (){var _iO6=_il6(_iY(this._iy)); _iO6._iI6(this._iy,"Refresh", {} ); } ,getPageIndex:function (){var _iO6=_il6(_iY(this._iy)); var _iIa=_iO6._iob(); return _iIa[this._iy+"_pg"]["PageIndex"]; } ,startInsert:function (){if (_is())return; var _iO6=_il6(_iY(this._iy)); if (_iO6._ii6("OnBeforeStartInsert", { "TableView": this } )){_iO6._iI6(this._iy,"StartInsert", {} ); _iO6._io7("OnStartInsert", { "TableView": this } ); }} ,confirmInsert:function (){if (_is())return; var _iO6=_il6(_iY(this._iy)); if (_iO6._ii6("OnBeforeConfirmInsert", { "TableView": this } )){_iO6._iI6(this._iy,"ConfirmInsert", {} ); _iO6._io7("OnConfirmInsert", { "TableView": this } ); }} ,cancelInsert:function (){var _iO6=_il6(_iY(this._iy)); if (_iO6._ii6("OnBeforeCancelInsert", { "TableView": this } )){_iO6._iI6(this._iy,"CancelInsert", {} ); _iO6._io7("OnCancelInsert", { "TableView": this } ); }} ,add_group:function (_iOb,_iou){var _io6=_iY(this._iy); var _iO6=_il6(_io6); if (!_iO6._ii6("OnBeforeAddGroup", { "GroupField":_iOb,"Position":_iou } ))return; _iO6._iI6(this._iy,"AddGroup", { "GroupField":_iOb,"Position":_iou } ); _iO6._io7("OnAddGroup", { "GroupField":_iOb,"Position":_iou } ); } ,change_group_order:function (_iOb,_iou){var _io6=_iY(this._iy); var _iO6=_il6(_io6); if (!_iO6._ii6("OnBeforeChangeGroupOrder", { "GroupField":_iOb,"Position":_iou } ))return; _iO6._iI6(this._iy,"ChangeGroupOrder", { "GroupField":_iOb,"Position":_iou } ); _iO6._io7("OnChangeGroupOrder", { "GroupField":_iOb,"Position":_iou } ); } ,remove_group:function (_iOb){var _io6=_iY(this._iy); var _iO6=_il6(_io6); if (!_iO6._ii6("OnBeforeRemoveGroup", { "GroupField":_iOb } ))return; _iO6._iI6(this._iy,"RemoveGroup", { "GroupField":_iOb } ); _iO6._io7("OnRemoveGroup", { "GroupField":_iOb } ); } ,_ioz:function (){return (new _iO7(this._iy+"_gp")); } ,get_group_list:function (){var _io6=_iY(this._iy); var _iO6=_il6(_io6); var _iIa=_iO6._iob(); var _io15=_iIa[this._iy]["GroupSize"]; var _iO15=new Array(); for (var i=0; i<_io15; i++){_iO15.push(_iIa[this._iy+"_gm"+i]["GroupField"]); }return _iO15; } ,excuteDelete:function (_ili){} ,excuteUpdate:function (_ili){} ,excuteInsert:function (_ili){} ,_il15:function (_if){var _ii10=_iu(_iY(this._iy+"_header")); var _iI10=_iu(_iY(this._iy+"_data")); var _io11=_iu(_iY(this._iy+"_footer")); var _iO6=_il6(_iY(this._iy)); var _iIa=_iO6._iob(); _io11.scrollLeft=_ii10.scrollLeft=_iI10.scrollLeft; if (_iIa[_iO6._iy]["ClientSettings"]["Scrolling"]["SaveScrollingPosition"]){_iIa[this._iy]["scrollTop"]=_iI10.scrollTop; _iIa[this._iy]["scrollLeft"]=_iI10.scrollLeft; _iO6._iik(_iIa); }}};function KoolGrid(_iy,_ii15,_iI15){ this._iy=_iy; this.id=_iy; this._ii15=_ii15; this._iI15=_iI15; this._io16=new Array(); this._il7(); }KoolGrid.prototype= {_il7:function (){var _io6=_iY(this._iy); var _iO16=_iY(this._iy+"_cmd"); _iO16.value=""; if (_il5()=="firefox" && this._ii15){var _iOq=_io6.style.width; if (_ii0("%",_iOq)>-1){var _il16=_iY(this._iy+"_updatepanel"); _il16.style.width=_iOq; _io6.style.width="100%"; }}var _ii16=_iw("th","kgrHeader",_io6); for (var i=0; i<_ii16.length; i++){var _iIw=_ii16[i]; _il(_iIw,"mouseover",_iI16, false); _il(_iIw,"mouseout",_io17, false); _il(_iIw,"mousedown",_iO17, false); _il(_iIw,"click",_il17, false); _il(_iIw,"dblclick",_ii17, false); _iIw.onselectstart=_iIc; _iIw.ondragstart=_iIc; _iIw.onmousedown=_iIc; _iIw.style.MozUserSelect="none"; }var _ii12=_iw("tr","kgrRow",_io6); for (var i=0; i<_ii12.length; i++){_il(_ii12[i],"mouseover",_iI17, false); _il(_ii12[i],"mouseout",_io18, false); _il(_ii12[i],"click",_iO18, false); _il(_ii12[i],"dblclick",_il18, false); var _iOk=_iw("td","kgrCell",_ii12[i]); for (var _ii18=0; _ii18<_iOk.length; _ii18++){_il(_iOk[_ii18],"mouseover",_ilj, false); _il(_iOk[_ii18],"mouseout",_iij, false); _il(_iOk[_ii18],"click",_iIj, false); }}var _iI18=["span","div"]; for (var _ii18=0; _ii18<_iI18.length; _ii18++){var _io19=_iw(_iI18[_ii18],"kgrECap",_io6); for (var i=0; i<_io19.length; i++){_il(_io19[i],"click",_iF, false); }}var _iIl=_iw("div","kgrTableView",_io6); for (var i=0; i<_iIl.length; i++){ (new GridTableView(_iIl[i].id))._il7(this ); }var _iO19=_iw("input","kgrFiEnTr",_io6); for (var i=0; i<_iO19.length; i++){_il(_iO19[i],"keypress",_il19, false); }var _ii19=_iw("input","kgrEnNoPo",_io6); for (var i=0; i<_ii19.length; i++){_il(_ii19[i],"keypress",_iI19, false); }if (_iO(_io1a[this._iy]) && _iO(_io1a[this._iy]["Focus"])){var _iO1a=_iY(_io1a[this._iy]["Focus"]); if (_iO(_iO1a)){try {_iO1a.focus(); }catch (_ii3){}}}var _iIa=this._iob(); var _il1a=_iIa[this._iy]["ClientSettings"]["ClientEvents"]; for (var _il0 in _il1a){if (eval("typeof "+_il1a[_il0]+" =='function'")){ this._io16[_il0]=eval(_il1a[_il0]); }}if (!_iO(_io1a[this._iy])){try { this._ii6("OnInit", {} ); }catch (_ii3){}}try { this._ii6("OnLoad", {} ); }catch (_ii3){}if (_iO(_io1a[this._iy])){_ii1a=_io1a[this._iy]["PostLoadEvent"]; for (_il0 in _ii1a){try { this._ii6(_il0,_ii1a[_il0]); }catch (_ii3){}}}_io1a[this._iy]= { "PostLoadEvent":{}} ; } ,_iI6:function (_iy,_iI1a,_io1b){var _iO16=_iY(this._iy+"_cmd"); var _iO1b=new Object(); if (_iO16.value!=""){_iO1b=eval("__="+_iO16.value); }_iO1b[_iy]= { "Command":_iI1a,"Args":_io1b } ; _iO16.value=_io0(_iO1b); } ,_iob:function (){var _il1b=_iY(this._iy+"_viewstate"); return eval("__="+_il1b.value); } ,_iik:function (_iIa){var _il1b=_iY(this._iy+"_viewstate"); _il1b.value=_io0(_iIa); } ,getMasterTable:function (){return (new GridTableView(this._iy+"_mt")); } ,refresh:function (){ this._iI6(this._iy,"Refresh", {} ); } ,attachData:function (_il0,_iit){if (this._ii15){var _ii1b=eval(this._iy+"_updatepanel"); _ii1b.attachData(_il0,_iit); }} ,commit:function (){if (!this._ii6("OnBeforeGridCommit", {} ))return; if (this._ii15){var _ii1b=eval(this._iy+"_updatepanel"); _ii1b.update((this._iI15!="")?this._iI15:null); }else {var _iI1b=_iY(this._iy); while (_iI1b.nodeName!="FORM"){if (_iI1b.nodeName=="BODY")return; _iI1b=_iu(_iI1b); }_iI1b.submit(); }var _io1c=_iw("div","kgrStatus",_iY(this._iy)); for (var i=0; i<_io1c.length; i++){_iM(_io1c[i],"kgrLoading"); } this._io7("OnGridCommit", {} ); } ,_ii6:function (_il0,_iO1c){if (_is())return true; return (_iO(this._io16[_il0]))?this._io16[_il0](this,_iO1c): true; } ,_io7:function (_il0,_iO1c){_io1a[this._iy]["PostLoadEvent"][_il0]=_iO1c; }};function _il6(_io6){var _ilh=_iu(_io6); while (_ilh.nodeName!="DIV" || _ii0("KGR",_iQ(_ilh))<0){_ilh=_iu(_ilh); if (_ilh.nodeName=="BODY")return null; }return eval(_ilh.id); }function _iia(_io6){var _ila=_iu(_io6); while (_ii0("kgrTableView",_iQ(_ila))<0){_ila=_iu(_ila); }return (new GridTableView(_ila.id)); }function _il1c(_io6){var _ii1c=_iu(_io6); while (_ii0("kgrRow",_iQ(_ii1c))<0 && _ii0("kgrEditForm",_iQ(_ii1c))<0){_ii1c=_iu(_ii1c); }var _iy=_ii1c.id; if (_ii0("kgrRow",_iQ(_ii1c))<0){_iy=_iy.replace("_editform",""); }return (new GridRow(_iy)); }function get_row(_io6){return _il1c(_io6); }function get_tableview(_io6){return _iia(_io6); }function get_grid(_io6){return _il6(_io6); }function grid_gopage(_io6,_ii14){_iia(_io6).goPage(_ii14); _il6(_io6).commit(); }function grid_pagesize_select_onchange(_io6){var _iI14=_io6.options[_io6.selectedIndex].value; _iia(_io6).changePageSize(_iI14); _il6(_io6).commit(); }function grid_delete(_io6){var _iO6=_il6(_io6); var _iIa=_iO6._iob(); var _iI1c=_iIa[_iO6._iy]["ClientSettings"]["ClientMessages"]["DeleteConfirm"]; if (_iI1c!=""){if (confirm(_iI1c)){_il1c(_io6).del(); _il6(_io6).commit(); }}else {_il1c(_io6).del(); _il6(_io6).commit(); }}function grid_toggle_select(_io6){if (_ii0("kgrSelectAllRows",_iQ(_io6))>-1){var _ila=_iia(_io6); if (_io6.checked){_ila.selectAllRows(); }else {_ila.deselectAllRows(); }}else if (_ii0("kgrSelectSingleRow",_iQ(_io6))>-1){var _ioi=_il1c(_io6); if (_io6.checked){_ioi.select(); }else {_ioi.deselect(); }}}function grid_edit(_io6){_il1c(_io6).startEdit(); _il6(_io6).commit(); }function grid_confirm_edit(_io6){_il1c(_io6).confirmEdit(); _il6(_io6).commit(); }function grid_cancel_edit(_io6){_il1c(_io6).cancelEdit(); _il6(_io6).commit(); }function grid_confirm_insert(_io6){_iia(_io6).confirmInsert(); _il6(_io6).commit(); }function grid_cancel_insert(_io6){_iia(_io6).cancelInsert(); _il6(_io6).commit(); }function grid_insert(_io6){_iia(_io6).startInsert(); _il6(_io6).commit(); }function grid_refresh(_io6){var _iO6=_il6(_io6); _iO6.refresh(); _iO6.commit(); }function grid_expand(_io6){_il1c(_io6).expand(); _il6(_io6).commit(); }function grid_collapse(_io6){_il1c(_io6).collapse(); _il6(_io6).commit(); }function grid_sort(_iy,_iOt){ (new GridColumn(_iy)).sort(_iOt); _il6(_iY(_iy)).commit(); }function grid_group_toogle(_io6){var _iom=_iu(_io6,3); var _io1d=_iw("span","kgrExpand",_iom); if (_io1d.length>0){ (new GridGroup(_iom.id)).collapse(); }else { (new GridGroup(_iom.id)).expand(); }_il6(_io6).commit(); }function grid_groupitem_sort(_iO1d,_il1d){var _ii1d=_iY(_iO1d); var _iO6=_il6(_ii1d); _iO6._iI6(_iO1d,"Sort", { "Sort":_il1d } ); _iO6.commit(); }function grid_filter_trigger(_iOi,_io6){var _iO6=_il6(_io6); var _iI9=new GridColumn(_iOi); if (_ii0("_filter_select",_io6.id)>0){var _ilt=_io6.options[_io6.selectedIndex].value; _iI9.filter(_ilt,null, true); _iO6.commit(); }else {var _iI1d=_iY(_iOi+"_filter_select"); var _ilt=_iI1d.options[_iI1d.selectedIndex].value; if (_ilt!="No_Filter"){if (_io6.nodeName=="INPUT" && _io6.type=="text"){var _iIa=_iO6._iob(); var _io1e=unescape(_iIa[_iOi]["Filter"]["Value"]); if (_io6.value!=_io1e){_iI9.filter(_ilt,null, true); _iO6.commit(); }}else {_iI9.filter(_ilt,null, true); _iO6.commit(); }}}}function _il19(_if){var _iO1e=_if.keyCode; if (_iO1e==13){var _iO6=_il6(this ); var _iOi=this.id.replace("_filter_input",""); _io1a[_iO6._iy]["Focus"]=this.id; grid_filter_trigger(_iOi,this ); return _iD(_if); }}function _iI19(_if){if (_if.keyCode==13){return _iD(_if); }}var _iov=null; var _iIu= false; var _ioy=0; var _ilv= false; var _iiv=null; var _ii8=null; var _ilb=null; function _iI16(_if){var _iy=this.id.replace("_hd",""); (new GridColumn(_iy))._iow(_if); }function _io17(_if){var _iy=this.id.replace("_hd",""); (new GridColumn(_iy))._iiu(_if); }function _il17(_if){var _iy=this.id.replace("_hd",""); (new GridColumn(_iy))._iOw(_if); }function _ii17(_if){var _iy=this.id.replace("_hd",""); (new GridColumn(_iy))._ilw(_if); }function _iO17(_if){var _iy=this.id.replace("_hd",""); (new GridColumn(_iy))._iiw(_if); return false; }function _iOy(_if){ (new GridColumn(_iov))._il10(_if); }function _iOv(_if){ (new GridColumn(_iov))._io10(_if); }function _iiy(_if){ (new GridColumn(_iiv))._iIz(_if); }function _ily(_if){ (new GridColumn(_iiv))._iOz(_if); }function _iI17(_if){ (new GridRow(this.id))._iIm(_if); }function _io18(_if){ (new GridRow(this.id))._ion(_if); }function _iO18(_if){ (new GridRow(this.id))._iOn(_if); }function _il18(_if){ (new GridRow(this.id))._iIn(_if); }function _iI11(_if){_ila=_iia(this ); _ila._il15(_if); }function _itch(_il1e){ (new GridTableView(_il1e))._il12(); }var _io1a=new Array(); if (typeof(__KGRInits)!="undefined" && _iO(__KGRInits)){for (var i=0; i<__KGRInits.length; i++){__KGRInits[i](); }} <?php _iO5(); _ilo(); } if (!function_exists("money\137\146orm\141t")) { function money_format($_ilp,$_iOp) { $_ilq='/%((?:[\\^!\\-]|\\+|\\(|\\=.)*)([0-9]+)?'.'(?:#([0-9]+))?(?:\\.([0-9]+))?([in%])/'; if (setlocale(LC_MONETARY,0) == 'C') { setlocale(LC_MONETARY,''); } $_iOq=localeconv(); preg_match_all($_ilq,$_ilp,$_ilr,_ils); foreach ($_ilr as $_iOs) { $value=floatval($_iOp); $_ilt=array('fillchar' => preg_match('/\\=(.)/',$_iOs[1],$_iOt) ? $_iOt[1]: ' ','nogroup' => preg_match('/\\^/',$_iOs[1])>0,'usesignal' => preg_match('/\\+|\\(/',$_iOs[1],$_iOt) ? $_iOt[0]: '+','nosimbol' => preg_match('/\\!/',$_iOs[1])>0,'isleft' => preg_match('/\\-/',$_iOs[1])>0); $_ilu=trim($_iOs[2]) ? (int) $_iOs[2]: 0; $_iOu=trim($_iOs[3]) ? (int) $_iOs[3]: 0; $_ilv=trim($_iOs[4]) ? (int) $_iOs[4]: $_iOq['int_frac_digits']; $_iOv=$_iOs[5]; $_ilw=TRUE; if ($value<0) { $_ilw=FALSE; $value *= -1; } $_iOw=$_ilw ? 'p': 'n'; $_ilx=$_iOx=$_ily=$_iOy=$_ilz=''; $_ilz=$_ilw ? $_iOq['positive_sign']: $_iOq['negative_sign']; switch (TRUE) { case $_iOq[ "{$_iOw}\137sign_\160\157sn" ] == 1 && $_ilt['usesignal'] == '+': $_ilx=$_ilz; break; case $_iOq[ "{$_iOw}_s\151\147n_p\157\163n" ] == 2 && $_ilt['usesignal'] == '+': $_iOx=$_ilz; break; case $_iOq[ "{$_iOw}_si\147\156_po\163\156" ] == 3 && $_ilt['usesignal'] == '+': $_ily=$_ilz; break; case $_iOq[ "{$_iOw}\137sign\137\160osn" ] == 4 && $_ilt['usesignal'] == '+': $_iOy=$_ilz; break; case $_ilt['usesignal'] == '(': case $_iOq[ "{$_iOw}\137sig\156\137pos\156" ] == 0: $_ilx='('; $_iOx=')'; break; } if (!$_ilt['nosimbol']) { $_iOz=$_ily.($_iOv == 'i' ? $_iOq['int_curr_symbol']: $_iOq['currency_symbol']).$_iOy; } else { $_iOz=''; } $_il10=$_iOq[ "{$_iOw}\137se\160\137by_\163\160ace" ] ? ' ': ''; $value=number_format($value,$_ilv,$_iOq['mon_decimal_point'],$_ilt['nogroup'] ? '': $_iOq['mon_thousands_sep']); $value=@explode($_iOq['mon_decimal_point'],$value); $_iO10=strlen($_ilx)+strlen($_iOz)+strlen($value[0]); if ($_iOu>0 && $_iOu>$_iO10) { $value[0]=str_repeat($_ilt['fillchar'],$_iOu-$_iO10).$value[0]; } $value=implode($_iOq['mon_decimal_point'],$value); if ($_iOq[ "{$_iOw}\137cs_\160\162ece\144\145s" ]) { $value=$_ilx.$_iOz.$_il10.$value.$_iOx; } else { $value=$_ilx.$value.$_il10.$_iOz.$_iOx; } if ($_ilu>0) { $value=str_pad($value,$_ilu,$_ilt['fillchar'],$_ilt['isleft'] ? STR_PAD_RIGHT: STR_PAD_LEFT); } $_ilp=str_replace($_iOs[0],$value,$_ilp); } return $_ilp; } } if (!class_exists("\113ool\107\162id",FALSE)) { function _il11($_iO11) { return _iO0("\053","\040",urlencode($_iO11)); } function _il12($_iO11) { return urldecode(_iO0(" ","\053",$_iO11)); } function _iO12($_iO11) { return stripslashes($_iO11); } function _il13($_iO11) { return addslashes($_iO11); } function _iO13($_il14,$_iO14) { $_il15=explode("\054",$_iO14); $_iO15=array(); if ($_il15 != NULL) { for ($_iO9=0; $_iO9<sizeof($_il15); $_iO9 ++) { $_il15[$_iO9]=trim($_il15[$_iO9]); $_iO15[$_il15[$_iO9]]=$_il14[$_il15[$_iO9]]; } } return $_iO15; } function _il16($_il14) { $_il3=""; foreach ($_il14 as $_iO16) { $_il3.=$_iO16; } return md5($_il3); } class datasourcefilter { var $Field; var $Expression; var $Value; function __construct($_il17,$_iO17,$_il18) { $this->Field =$_il17; $this->Expression =$_iO17; $this->Value =_il13($_il18); } } class datasourcesort { var $Field; var $Order; function __construct($_il17,$_iO18="\101SC") { $this->Field =$_il17; $this->Order =$_iO18; } } class datasourcegroup { var $Field; function __construct($_il17) { $this->Field =$_il17; } } class datasource { var $Sorts=array(); var $Filters=array(); var $Groups=array(); function count() { } function getfields() { } function getdata($_il19=0,$_iO19=046113177) { } function getaggregates($_il6) { } function insert($_il1a) { return FALSE; } function update($_il1a) { return FALSE; } function delete($_il1a) { return FALSE; } function addsort($_iO1a) { array_push($this->Sorts ,$_iO1a); } function addfilter($_il1b) { array_push($this->Filters ,$_il1b); } function addgroup($_iO1b) { array_push($this->Groups ,$_iO1b); } function clear() { $this->Sorts =array(); $this->Filters =array(); $this->Groups =array(); } } class mysqldatasource extends datasource { var $SelectCommand; var $UpdateCommand; var $InsertCommand; var $DeleteCommand; var $_il1c; function __construct($_iO1c) { $this->_il1c =$_iO1c; } function count() { $_il1d="\123\105LE\103\124 CO\125\116T(*\051 FRO\115\040(".$this->SelectCommand."\051 AS\040\137TM\120\040\173\167\150ere\175"; $_iO1d=""; $_il1e=$this->Filters; for ($_iO9=0; $_iO9<sizeof($_il1e); $_iO9 ++) { $_il18=$_il1e[$_iO9]->Value; $_il18="\047".$_il18."'"; $_iO1d.=" an\144\040".$_il1e[$_iO9]->Field."\040".$_il1e[$_iO9]->Expression." ".$_il18; } if ($_iO1d != "") { $_iO1d="\127\110ER\105\040".substr($_iO1d,5); } $_il1d=_iO0("\173wh\145\162e}",$_iO1d,$_il1d); $_iO1e=mysql_query($_il1d,$this->_il1c); return mysql_result($_iO1e,0,0); } function getfields() { $_il1f=array(); $_iO1e=mysql_query($this->SelectCommand ,$this->_il1c); while ($_iO1f=mysql_fetch_field($_iO1e)) { $_il17=array("Na\155\145" => $_iO1f->name ,"\124\171pe" => $_iO1f->type ,"Not_\116\165ll" => $_iO1f->not_null); array_push($_il1f,$_il17); } return $_il1f; } function getdata($_il1g=0,$_iO1g=046113177) { $_il1h="SE\114\105CT \052 FROM\040(\173S\145\154ec\164\103om\155\141nd\175\051 \101\123 _\124\115P \173\167h\145\162e}\040\173o\162\144e\162\142y\175\040\173\147rou\160\142y\175\040\173\154imi\164\175"; $_iO1d=""; $_il1e=$this->Filters; for ($_iO9=0; $_iO9<sizeof($_il1e); $_iO9 ++) { $_il18="\047".$_il1e[$_iO9]->Value."'"; $_iO1d.="\040an\144\040".$_il1e[$_iO9]->Field."\040".$_il1e[$_iO9]->Expression."\040".$_il18; } if ($_iO1d != "") { $_iO1d="\127HER\105\040".substr($_iO1d,5); } $_iO1h=""; $_il1i=$this->Sorts; for ($_iO9=0; $_iO9<sizeof($_il1i); $_iO9 ++) { $_iO1h.=", ".$_il1i[$_iO9]->Field." ".$_il1i[$_iO9]->Order; } if ($_iO1h != "") { $_iO1h="\117\122DE\122\040BY\040".substr($_iO1h,2); } $_iO1i=""; $_il1j=$this->Groups; for ($_iO9=0; $_iO9<sizeof($_il1j); $_iO9 ++) { $_iO1i.="\054 ".$_il1j[$_iO9]->Field; } if ($_iO1i != "") { $_iO1i="GROU\120\040BY ".substr($_iO1i,2); } $_iO1j="\114\111MIT\040".$_il1g." , ".$_iO1g; $_il1k=_iO0("\173Sele\143\164Com\155\141nd}",$this->SelectCommand ,$_il1h); $_il1k=_iO0("\173\167here\175",$_iO1d,$_il1k); $_il1k=_iO0("\173\157\162der\142\171}",$_iO1h,$_il1k); $_il1k=_iO0("\173grou\160\142y}",$_iO1i,$_il1k); $_il1k=_iO0("\173li\155\151t}",$_iO1j,$_il1k); $_iO1e=mysql_query($_il1k,$this->_il1c); $_iO1k=array(); while ($_il1l=mysql_fetch_assoc($_iO1e)) { array_push($_iO1k,$_il1l); } return $_iO1k; } function getaggregates($_il6) { $_il1h="\123ELE\103\124 \173\164\145xt\175\040F\122\117M (\173\123el\145ctCo\155\155a\156\144})\040\101S \137TMP\040\173wh\145re} \173ord\145\162b\171\175 \173\147ro\165\160by\175"; $_il3=""; $_iO1l=array(); foreach ($_il6 as $_il1m) { if (strpos("|\174\155in|\155\141x|\146\151rst\174\154as\164\174co\165\156t|\163\165m\174\141vg\174","\174".strtolower($_il1m["\101\147gre\147\141te"])."\174")>0) { $_il3.=", ".$_il1m["\101\147gre\147\141te"]."(".$_il1m["\104\141ta\106\151eld"].")\040\141s ".$_il1m["Key"]; } } if ($_il3 != "") { $_il3=substr($_il3,2); $_iO1d=""; $_il1e=$this->Filters; for ($_iO9=0; $_iO9<sizeof($_il1e); $_iO9 ++) { $_il18="\047".$_il1e[$_iO9]->Value."'"; $_iO1d.="\040and\040".$_il1e[$_iO9]->Field."\040".$_il1e[$_iO9]->Expression." ".$_il18; } if ($_iO1d != "") { $_iO1d="W\110\105RE ".substr($_iO1d,5); } $_iO1h=""; $_il1i=$this->Sorts; for ($_iO9=0; $_iO9<sizeof($_il1i); $_iO9 ++) { $_iO1h.="\054 ".$_il1i[$_iO9]->Field." ".$_il1i[$_iO9]->Order; } if ($_iO1h != "") { $_iO1h="O\122\104ER \102\131 ".substr($_iO1h,2); } $_iO1i=""; $_il1j=$this->Groups; for ($_iO9=0; $_iO9<sizeof($_il1j); $_iO9 ++) { $_iO1i.="\054 ".$_il1j[$_iO9]->Field; } if ($_iO1i != "") { $_iO1i="GR\117\125P B\131\040".substr($_iO1i,2); } $_il1k=_iO0("\173\123ele\143\164Com\155\141nd\175",$this->SelectCommand ,$_il1h); $_il1k=_iO0("\173\164\145xt\175",$_il3,$_il1k); $_il1k=_iO0("\173wher\145\175",$_iO1d,$_il1k); $_il1k=_iO0("\173\157rde\162\142y}",$_iO1h,$_il1k); $_il1k=_iO0("\173\147rou\160\142y}",$_iO1i,$_il1k); $_iO1e=mysql_query($_il1k,$this->_il1c); $_iO1l=mysql_fetch_assoc($_iO1e); } return $_iO1l; } function insert($_il1a) { $_iO1m=explode("\073",$this->InsertCommand); foreach ($_il1a as $_ilk => $_il18) { for ($_iO9=0; $_iO9<sizeof($_iO1m); $_iO9 ++) { $_iO1m[$_iO9]=_iO0("\100".$_ilk,_il13($_il18),$_iO1m[$_iO9]); } } foreach ($_iO1m as $_il1n) { if (mysql_query($_il1n,$this->_il1c) == FALSE) { return FALSE; } } return TRUE; } function update($_il1a) { $_iO1n=explode("\073",$this->UpdateCommand); foreach ($_il1a as $_ilk => $_il18) { for ($_iO9=0; $_iO9<sizeof($_iO1n); $_iO9 ++) { $_iO1n[$_iO9]=_iO0("\100".$_ilk,_il13($_il18),$_iO1n[$_iO9]); } } foreach ($_iO1n as $_il1o) { if (mysql_query($_il1o,$this->_il1c) == FALSE) { return FALSE; } } return TRUE; } function delete($_il1a) { $_iO1o=explode(";",$this->DeleteCommand); foreach ($_il1a as $_ilk => $_il18) { for ($_iO9=0; $_iO9<sizeof($_iO1o); $_iO9 ++) { $_iO1o[$_iO9]=_iO0("\100".$_ilk,_il13($_il18),$_iO1o[$_iO9]); } } foreach ($_iO1o as $_il1p) { if (mysql_query($_il1p,$this->_il1c) == FALSE) { return FALSE; } } return TRUE; } } class arraydatasource extends datasource { var $_iO1p; function __construct($_il1q) { $this->_iO1p =$_il1q; } function count() { return sizeof($this->_iO1p); } function getfields() { $_il1f=array(); $_iO1q=$this->_iO1p[0]; foreach ($_iO1q as $_il1r => $_iO1r) { array_push($_il1f,$_il1r); } return $_il1f; } function getdata($_il19=0,$_iO19=046113177) { $_il1s=array(); if ($_il19>$this->count()) return $_il1s; if ($_il19+$_iO19>$this->count()) { $_iO19=$this->count()-$_il19; } for ($_iO9=0; $_iO9<$_iO19; $_iO9 ++) { array_push($_il1s,$this->_iO1p[$_il19+$_iO9]); } return $_il1s; } } interface _iO1s { function _il1t(); function _iO1t(); } class _il1u { private $_iO1u,$_il1v; function __construct($_iO1v) { $this->_iO1u =_il1w('sha256',$_iO1v,TRUE); $_iO1w=mcrypt_get_iv_size(_il1x,_iO1x); $this->_il1v =mcrypt_create_iv($_iO1w,_il1y); } function _iO1y($_il1z) { return base64_encode(mcrypt_encrypt(_il1x,$this->_iO1u ,$_il1z,_iO1x,$this->_il1v)); } function _iO1z($_il1z) { return trim(mcrypt_decrypt(_il1x,$this->_iO1u ,base64_decode($_il1z),_iO1x,$this->_il1v)); } } class _il20 { var $_iO20; var $_iO1p; var $_il21=FALSE; var $_iO21=FALSE; function _il22($_iO22) { $this->_iO20 =$_iO22; $this->_iO21 =$_iO22->KeepViewStateInSession; $_il23=( isset ($_POST[$this->_iO20->_iO23."_\166\151ews\164\141te"])) ? $_POST[$this->_iO20->_iO23."_\166\151ews\164\141te"]: ""; if ($this->_iO21 && $_il23 == "") { $_il23=( isset ($_SESSION[$this->_iO20->_iO23."_\166\151ews\164\141te"])) ? $_SESSION[$this->_iO20->_iO23."\137view\163\164ate"]: ""; $this->_iO20->_il24->_iO24 =TRUE; } if ($_il23 != "" && $this->_il21) { $_il25=new _il1u($_SERVER["SER\126\105R_N\101\115E"]); $_il23=_iO0("\050)","\053",$_il23); $_il23=$_il25->_iO1z($_il23); } $_il23=_iO0("\134","",$_il23); $this->_iO1p =json_decode($_il23,TRUE); } function _iO25() { $_il26=json_encode($this->_iO1p); if ($this->_il21) { $_il25=new _il1u($_SERVER["S\105\122VER\137\116AME"]); $_il26=$_il25->_iO1y($_il26); $_il26=_iO0("\053","()",$_il26); } if ($this->_iO21) { $_SESSION[$this->_iO20->_iO23."\137views\164\141te"]=$_il26; } $_iO26="<inpu\164\040id\075\047\173\151d}' \156\141me\075\047\173\151d}'\040typ\145\075'\150\151dd\145\156' \166alu\145\075'\173\166al\165e}'\040aut\157\143om\160\154e\164\145='\157ff'\040/>"; $_il27=_iO0("\173id}",$this->_iO20->_iO23."\137\166iew\163\164ate",$_iO26); $_il27=_iO0("\173\166alue}",$_il26,$_il27); return $_il27; } } class _iO27 { var $_il28; var $_iO28; function __construct() { $this->_il28 =array("\111nser\164" => "A\144\144 New\040Recor\144","Del\145\164e" => "De\154\145te","\103onf\151\162m" => "\103onfi\162\155","Ed\151\164" => "\105dit","C\141\156cel" => "C\141\156cel","\122efre\163\150" => "\122efr\145\163h","\104\157ne" => "Don\145","\114oad\151\156g" => "Lo\141\144ing\056\056.","\107o" => "\107o","N\145\170t" => "Nex\164","\120re\166" => "P\162\145v","\116\157_Fi\154\164er" => "\133No Fi\154\164er]","Equal" => "Eq\165\141l","N\157\164_Eq\165\141l" => "N\157\164 Eq\165\141l","\107rea\164\145r_T\150\141n" => "\107\162eat\145\162 Th\141\156","\114ess\137\124han" => "\114\145ss T\150\141n","Great\145\162_Th\141\156_Or\137\105qu\141\154" => "\107re\141\164er \124\150an \117\162 E\161\165al","\114\145ss_\124\150an_\117\162_Eq\165\141l" => "\114ess\040\124han\040Or Eq\165\141l","\103on\164\141in" => "Cont\141\151n","Not_C\157\156tai\156" => "N\157\164 Co\156\164ain","Sta\162\164_Wi\164\150" => "\123\164art \127\151th","End_\127\151th" => "End W\151\164h"); $this->_iO28 =array("\104elet\145\103onf\151\162m" => "\101re \171\157u su\162\145 to\040dele\164\145 t\150\151s \162\157w?","\120ageI\156\146oTe\155\160lat\145" => "Di\163\160layi\156\147 pa\147\145 \173\120ageI\156\144ex\175\040i\156\040\173\124ota\154\120ag\145\163}\054\040i\164\145ms\040\173F\151rst\111\156de\170\111n\120\141ge\175 to\040\173L\141\163tI\156dex\111\156P\141\147e}\040of \173Tot\141lRo\167\163}\056","\115\141nua\154\120age\162\124emp\154\141te" => "Chang\145\040pag\145\072 \173\124ext\102\157x} \050of \173\124ota\154Page\175\040p\141\147es\051 \173\107\157Pa\147\145Bu\164ton\175","\120ag\145\123ize\124\145xt" => "\120age S\151\172e:","\116extP\141\147eTo\157\154Tip" => "\116ext\040\120age","\120re\166\120ageT\157\157lT\151\160" => "\120revi\157\165s P\141\147e","\123ort\110\145ade\162\124ool\124\151p" => "\103lick\040\150ere\040\164o \163\157rt","\123ortAs\143\124ool\124\151p" => "\123\157rt \101\163c","\123ortDe\163\143Too\154\124ip" => "\123ort\040\104es\143","S\157\162tNo\156\145Too\154\124ip" => "\116\157 so\162\164","\111\156se\162\164For\155\137Co\156\146irm\102\165tt\157nToo\154Tip" => "\103on\146\151rm \111\156ser\164","\111nse\162\164For\155\137Can\143\145lB\165\164ton\124\157ol\124\151p" => "\103ancel\040\111ns\145\162t","\105\144it\106\157rm_C\157\156fi\162\155But\164\157nT\157\157lT\151p" => "C\157\156firm\040Chang\145\163","\105dit\106\157rm_\103\141nce\154\102ut\164\157nT\157\157lT\151\160" => "Ca\156\143el \103\150ang\145\163","\122eq\165\151red\106\151eld\126\141lid\141\164or\137\105rr\157\162Me\163sage" => "\106ie\154\144 is\040\162equ\151\162ed\041","\122egul\141\162Exp\162\145ss\151\157nVa\154\151da\164\157r_\105\162r\157\162Me\163\163ag\145" => "\116ot \166\141lid\041","R\141\156geVa\154\151dat\157\162_E\162\162orM\145\163sa\147\145" => "Val\165\145 mu\163\164 be\040\151n \162\141ng\145\040[\173\115inV\141lue}\054\173M\141\170Va\154\165e}\135","Gr\157\165pPan\145\154Gu\151\144eTe\170\164" => "\104rag a\040\143ol\165\155n h\145\141der\040and \144\162op\040\151t\040\150er\145\040t\157\040gr\157\165p\040\142y \164hat \143olu\155\156","Gro\165\160Ite\155\124ool\124\151p" => "\104\162ag \157\165t o\146\040th\145\040ba\162\040to\040ungr\157\165p"); } function load($_il29) { $_iO29=new domdocument(); $_iO29->load($_il29); $_il2a=$_iO29->getelementsbytagname("c\157\155mand\163"); if ($_il2a->length >0) { foreach ($_il2a->item(0)->attributes as $_iO2a) { $this->_il28[$_iO2a->name ]=$_iO2a->value; } } $_il2a=$_iO29->getelementsbytagname("\155essa\147\145s"); if ($_il2a->length >0) { foreach ($_il2a->item(0)->attributes as $_iO2a) { $this->_iO28[$_iO2a->name ]=$_iO2a->value; } } } } class _il2b { var $_iO23; var $_iO20; var $_il28; function __construct($_iO22) { $this->_iO23 =$_iO22->_iO23."_cmd"; $this->_iO2b(); } function _iO2b() { if ( isset ($_POST[$this->_iO23 ])) { $_il23=$_POST[$this->_iO23 ]; $_il23=_iO0("\134","",$_il23); $this->_il28 =json_decode($_il23,TRUE); } } function _iO25() { $_il2c="<in\160\165t i\144\075'\173\151d}'\040name\075\047\173\151d}'\040\164y\160\145='\150\151dd\145n' v\141lue\075\047'\040\057>"; $_ilm=_iO0("\173\151d}",$this->_iO23 ,$_il2c); return $_ilm; } } class gridrow implements _iO1s { var $_iO23; var $_iO2c; var $_il2d; var $_iO2d=array(); var $_il2e; var $DataItem; var $Selected=FALSE; var $Expand=FALSE; var $EditMode=FALSE; var $TableView; var $CssClass=""; var $_iO2e=FALSE; function _il22($_il2f) { $this->_il2d =$_il2f; $this->TableView =$_il2f; $this->_iO2c =$_il2f->_iO2c; } function getunqiueid() { return $this->_iO23; } function _il1t() { if ( isset ($this->_iO2c->_iO1p[$this->_iO23 ])) { $_iO2f=$this->_iO2c->_iO1p[$this->_iO23 ]; $this->Selected =$_iO2f["Sele\143\164ed"]; $this->Expand =$_iO2f["Ex\160\141nd"]; $this->EditMode =$_iO2f["E\144\151tMo\144\145"]; $_il2g=$_iO2f["DataI\164\145m"]; $this->DataItem =array(); foreach ($_il2g as $_iO2g => $_il2h) { $this->DataItem[$_iO2g]=_il12($_il2h); } } } function _iO1t() { $_il2g=array(); foreach ($this->DataItem as $_iO2g => $_il2h) { $_il2g[$_iO2g]=_il11($_il2h); } $this->_iO2c->_iO1p[$this->_iO23 ]=array("S\145\154ect\145\144" => $this->Selected ,"\105xpa\156\144" => $this->Expand ,"\105\144itM\157\144e" => $this->EditMode ,"Data\111\164em" => $_il2g); foreach ($this->_iO2d as $_iO2h) { $_iO2h->_iO1t(); } } function _il2i($_il2f) { $_il2f->_iO23 =$this->_iO23."_\144\164".sizeof($this->_iO2d); array_push($this->_iO2d ,$_il2f); } function getinstancedetailtables() { return $this->_iO2d; } function gettableview() { return $this->_il2d; } function _iO2i() { $this->_il1t(); if ($this->EditMode) { $this->_il2e =$this->_il2d->EditSettings->_il2j(); $this->_il2e->_il22($this->_il2d); $this->_il2e->_iO2j =$this; } if ($this->Expand) { foreach ($this->_il2d->_il2k as $_iO2h) { $_iO2k=$_iO2h->_il2j(); $this->_il2i($_iO2k); $_iO2k->_il22($this->_il2d->_iO20 ,$this); $_iO2k->_iO2i(); } } } function _il2l($_ilm) { if ( isset ($_ilm->_il28[$this->_iO23 ])) { $_iO2l=$_ilm->_il28[$this->_iO23 ]; switch ($_iO2l["Co\155\155and"]) { case "\123ele\143\164": $this->Selected =TRUE; break; case "U\156\163elec\164": $this->Selected =FALSE; break; case "Expa\156\144": if ($this->_il2d->_iO20->EventHandler->onbeforedetailtablesexpand($this,array()) == TRUE) { $this->Expand =TRUE; $this->_il2d->_iO20->EventHandler->ondetailtablesexpand($this,array()); } break; case "Col\154apse": if ($this->_il2d->_iO20->EventHandler->onbeforedetailtablescollapse($this,array()) == TRUE) { $this->Expand =FALSE; $this->_iO2d =array(); $this->_il2d->_iO20->EventHandler->ondetailtablescollapse($this,array()); } break; case "S\164artEd\151\164": if ($this->_il2d->AllowEditing) { if ($this->_il2d->_iO20->EventHandler->onbeforerowstartedit($this,array()) == TRUE) { $this->EditMode =TRUE; $this->_il2e =$this->_il2d->EditSettings->_il2j(); $this->_il2e->_il22($this->_il2d); $this->_il2e->_iO2j =$this; $this->_il2d->_iO20->EventHandler->onrowstartedit($this,array()); } } break; case "\103onfi\162\155Ed\151\164": if ($this->EditMode) { $this->_il2e->_il2m(); } break; case "Can\143\145lEd\151\164": if ($this->_il2d->_iO20->EventHandler->onbeforerowcanceledit($this,array()) == TRUE) { $this->EditMode =FALSE; $this->_il2d->_iO20->EventHandler->onrowcanceledit($this,array()); } break; case "Del\145\164e": if ($this->_il2d->AllowDeleting) { if ($this->_il2d->_iO20->EventHandler->onbeforerowdelete($this,array()) == TRUE) { $_iO2m=$this->_il2d->DataSource->delete($this->DataItem); $this->_il2d->_iO24 =TRUE; $this->_il2d->_iO20->EventHandler->onrowdelete($this,array("\123ucce\163\163fu\154" => $_iO2m)); } } break; } } $this->_il2d->_iO20->EventHandler->onrowprerender($this,array()); if ($this->Expand && sizeof($this->_iO2d) == 0) { foreach ($this->_il2d->_il2k as $_iO2h) { $_iO2k=$_iO2h->_il2j(); $this->_il2i($_iO2k); $_iO2k->_il22($this->_il2d->_iO20 ,$this); } } foreach ($this->_iO2d as $_iO2h) { $_iO2h->_il2l($_ilm); } } function _iO25() { $_il2n="\074tr id\075\047\173\162\157wi\144\175' \143\154as\163\075'k\147\162\122ow\040\173a\154\164} \173\163el\145cted\175 \173\143\163s\143\154a\163\163}'\076\173t\144\163}<\057tr>"; $_iO2n="\074tr\076\074td\040class\075'kgr\103\145ll\047\076&#\06160;<\057td>\074\164d \143olsp\141\156=\047\173c\157\154sp\141\156}'\040cla\163s='\153\147rD\145tai\154\124ab\154esP\141\156e\154\047>\173\164a\142\154es\175</t\144\076<\057tr>"; $_il2o="<div\040\143las\163\075'k\147\162De\163\143'>\173\164ext\175\074/\144\151v>"; $_iO2o=""; if ($this->EditMode) { $_iO2o=$this->_il2e->_iO25(); } else { $_il2p=""; for ($_iO9=0; $_iO9<sizeof($this->_il2d->_iO2p); $_iO9 ++) { $_il2q=$this->_il2d->_iO2p[$_iO9]; $_iO2q=$_il2q->_iO25($this); $_il2p.=$_iO2q; } $_iO2o=_iO0("\173tds}",$_il2p,$_il2n); } $_iO2o=_iO0("\173ro\167\151d}",$this->_iO23 ,$_iO2o); $_iO2o=_iO0("\173sel\145\143ted\175",$this->Selected ? "\153grRow\123\145lec\164\145d": "",$_iO2o); $_iO2o=_iO0("\173a\154\164}",$this->_iO2e ? "\153\147rA\154\164Ro\167": "",$_iO2o); $_iO2o=_iO0("\173\143ss\143\154ass\175",$this->CssClass ,$_iO2o); if (sizeof($this->_iO2d)>0) { $_il2r=""; foreach ($this->_iO2d as $_iO2h) { $_iO2r=""; if ($_iO2h->_il2s !== NULL) { $_iO2r=_iO0("\173\164ext}",$_iO2h->_il2s ,$_il2o); foreach ($this->DataItem as $_il1r => $_iO1r) { $_iO2r=_iO0("\173".$_il1r."\175",$_iO1r,$_iO2r); } } $_iO2s=$_iO2r.$_iO2h->_iO25(); $_il2r.=$_iO2s; } $_il2t=_iO0("\173\143\157lsp\141\156}",sizeof($this->_il2d->_iO2p)-1,$_iO2n); $_il2t=_iO0("\173t\141\142les\175",$_il2r,$_il2t); $_iO2o.=$_il2t; } return $_iO2o; } } class _iO2t { var $Wrap; var $Align; var $Valign; function _il22($_il2q) { if ($this->Wrap === NULL) $this->Wrap =$_il2q->Wrap; if ($this->Align === NULL) $this->Align =$_il2q->Align; if ($this->Valign === NULL) $this->Valign =$_il2q->Valign; } function _il2u() { return "whit\145\055sp\141\143e:".(($this->Wrap) ? "\156ormal": "\156ow\162\141p").";"; } function _iO2u() { return ($this->Align) ? "t\145\170t-al\151\147n:".$this->Align.";": ""; } function _il2v() { return ($this->Valign) ? "\166ali\147\156='".$this->Valign."' ": ""; } } class _iO2v { var $ErrorMessage; function _il2w($_il2q,$_il18) { return NULL; } } class requiredfieldvalidator extends _iO2v { function _il2w($_il2q,$_il18) { $_iO2w=$this->ErrorMessage; if ($_iO2w === NULL) $_iO2w=$_il2q->_il2d->_iO20->Localization->_iO28["Requ\151\162ed\106\151eld\126\141li\144\141to\162\137Er\162\157rM\145\163s\141\147e"]; if ($_il18 === NULL || $_il18 == "") { return $_iO2w; } return NULL; } } class regularexpressionvalidator extends _iO2v { var $ValidationExpression=""; function _il2w($_il2q,$_il18) { $_iO2w=$this->ErrorMessage; if ($_iO2w === NULL) $_iO2w=$_il2q->_il2d->_iO20->Localization->_iO28["Reg\165\154ar\105\170pre\163\163io\156\126al\151\144at\157\162_E\162ror\115\145ss\141\147e"]; if (!preg_match($this->ValidationExpression ,$_il18)) { return $_iO2w; } return NULL; } } class rangevalidator extends _iO2v { var $MinValue; var $MaxValue; function _il2w($_il2q,$_il18) { $_iO2w=$this->ErrorMessage; if ($_iO2w === NULL) $_iO2w=$_il2q->_il2d->_iO20->Localization->_iO28["\122ang\145\126ali\144\141tor\137\105rr\157\162Me\163\163ag\145"]; if ($_il18>$this->MaxValue || $_il18<$this->MinValue) { $_iO2w=_iO0("\173M\151\156Val\165\145}",$this->MinValue ,$_iO2w); $_iO2w=_iO0("\173MaxV\141\154ue}",$this->MaxValue ,$_iO2w); return $_iO2w; } return NULL; } } class customvalidator extends _iO2v { var $ValidateFunction; function _il2w($_il2q,$_il18) { $_il2x=$this->ValidateFunction; if ($_il2x !== NULL) { return $_il2x($_il18); } return NULL; } } class gridcolumn implements _iO1s { var $_iO23; var $_iO2c; var $_il2d; var $_iO2x; var $ReadOnly=FALSE; var $TableView; var $AllowSorting; var $AllowResizing; var $AllowFiltering; var $AllowGrouping; var $AllowExporting=TRUE; var $Width; var $Visible=TRUE; var $Filter; var $FilterOptions; var $HeaderText; var $FooterText; var $DataField; var $Sort=0; var $HeaderStyle; var $ItemStyle; var $FooterStyle; var $Wrap; var $Align; var $Valign; var $CssClass=""; var $Aggregate; var $_il2y; function __construct() { $this->HeaderStyle =new _iO2t(); $this->FooterStyle =new _iO2t(); $this->ItemStyle =new _iO2t(); $this->_iO2x =array(); } function getunqiueid() { return $this->_iO23; } function _il22($_il2f) { $this->_il2d =$_il2f; $this->TableView =$_il2f; $this->_iO2c =$_il2f->_iO2c; if ($this->AllowSorting === NULL) $this->AllowSorting =$this->_il2d->AllowSorting; if ($this->AllowResizing === NULL) $this->AllowResizing =$this->_il2d->AllowResizing; if ($this->AllowFiltering === NULL) $this->AllowFiltering =$this->_il2d->AllowFiltering; if ($this->AllowGrouping === NULL) $this->AllowGrouping =$this->_il2d->AllowGrouping; if ($this->Width === NULL) $this->Width =$this->_il2d->ColumnWidth; if ($this->Wrap === NULL) $this->Wrap =$this->_il2d->ColumnWrap; if ($this->Align === NULL) $this->Align =$this->_il2d->ColumnAlign; if ($this->Valign === NULL) $this->Valign =$this->_il2d->_iO2y; if ($this->FilterOptions === NULL) $this->FilterOptions =$this->_il2d->FilterOptions; $this->HeaderStyle->_il22($this); $this->FooterStyle->_il22($this); $this->ItemStyle->_il22($this); if ($this->Filter === NULL) { $this->Filter =array("V\141\154ue" => "","Ex\160" => "\116o_Fil\164\145r"); } } function addvalidator($_il2z) { array_push($this->_iO2x ,$_il2z); } function _il1t() { if ( isset ($this->_iO2c->_iO1p[$this->_iO23 ])) { $_iO2f=$this->_iO2c->_iO1p[$this->_iO23 ]; $this->Sort =$_iO2f["So\162\164"]; $this->Width =$_iO2f["Wi\144\164h"]; $this->Visible =$_iO2f["\126\151sibl\145"]; $this->_il2y =_il12($_iO2f["Agg\122\145s"]); $_il1b=$_iO2f["\106ilt\145\162"]; $_il1b["\126\141lue"]=_il12($_il1b["Val\165\145"]); $this->Filter =$_il1b; } } function _iO1t() { $_il1b=$this->Filter; $_il1b["\126alue"]=_il11($_il1b["Val\165\145"]); $this->_iO2c->_iO1p[$this->_iO23 ]=array("Nam\145" => $this->DataField ,"\123ort" => $this->Sort ,"\126\151sib\154\145" => $this->Visible ,"Filte\162" => $_il1b,"\127\151dth" => $this->Width ,"Ag\147\122es" => _il11($this->_il2y)); } function _il2l($_ilm) { if ( isset ($_ilm->_il28[$this->_iO23 ])) { $_iO2l=$_ilm->_il28[$this->_iO23 ]; switch ($_iO2l["\103omm\141\156d"]) { case "Sort": if ($this->_il2d->_iO20->EventHandler->onbeforecolumnsort($this,array("\116\145wSo\162\164" => $_iO2l["Ar\147\163"]["\123ort"])) == TRUE) { $this->Sort =$_iO2l["Arg\163"]["Sor\164"]; $this->_il2d->_iO24 =TRUE; $this->_il2d->_iO20->EventHandler->oncolumnsort($this,array()); } break; case "F\151\154ter": if ($this->_il2d->_iO20->EventHandler->onbeforecolumnfilter($this,array("F\151\154te\162\126alu\145" => $_iO2l["\101rgs"]["\106ilt\145\162"]["Val\165\145"],"Fil\164\145rEx\160" => $_iO2l["A\162\147s"]["Fi\154\164er"]["Ex\160"])) == TRUE) { $this->Filter["\105xp"]=$_iO2l["\101\162gs"]["\106ilt\145\162"]["\105\170p"]; if ($_iO2l["Arg\163"]["P\157\163t"]) { $this->Filter["Value"]=$this->_iO2z(); } else { $this->Filter["Va\154\165e"]=_il12($_iO2l["Args"]["Fil\164\145r"]["Value"]); } $this->_il2d->_iO24 =TRUE; $this->_il2d->_iO20->EventHandler->oncolumnfilter($this,array()); } break; } } if ($this->Sort != 0) { $this->_il2d->DataSource->addsort(new datasourcesort($this->DataField ,($this->Sort <0) ? "DES\103": "\101SC")); } if ($this->Filter["Ex\160"] != "No_F\151\154ter") { $_iO17=""; $_il18=$this->Filter["\126\141lue"]; switch ($this->Filter["\105xp"]) { case "\105qual": $_iO17="\075"; break; case "No\164\137Equa\154": $_iO17="\074>"; break; case "G\162\145ate\162\137Th\141\156": $_iO17="\076"; break; case "L\145\163s_T\150\141n": $_iO17="\074"; break; case "Gr\145\141ter\137\124han\137\117r_\105\161ual": $_iO17="\076="; break; case "\114ess_T\150\141n_\117\162_Eq\165\141l": $_iO17="\074="; break; case "C\157\156tai\156": $_iO17="\114\111KE"; $_il18="%".$_il18."%"; break; case "Not_\103\157nta\151\156": $_iO17="NOT \114\111KE"; $_il18="%".$_il18."%"; break; case "\123ta\162\164_Wi\164\150": $_iO17="\114IK\105"; $_il18=$_il18."%"; break; case "End_W\151\164h": $_iO17="\114IKE"; $_il18="%".$_il18; break; } $this->_il2d->DataSource->addfilter(new datasourcefilter($this->DataField ,$_iO17,$_il18)); } } function createinstance($_il30) { if ($_il30 === NULL) { $_il30=new gridcolumn(); } $_il30->ReadOnly =$this->ReadOnly; $_il30->HeaderText =$this->HeaderText; $_il30->FooterText =$this->FooterText; $_il30->DataField =$this->DataField; $_il30->AllowSorting =$this->AllowSorting; $_il30->AllowResizing =$this->AllowResizing; $_il30->AllowFiltering =$this->AllowFiltering; $_il30->AllowGrouping =$this->AllowGrouping; $_il30->AllowExporting =$this->AllowExporting; $_il30->Width =$this->Width; $_il30->Visible =$this->Visible; $_il30->Sort =$this->Sort; $_il30->Filter =$this->Filter; $_il30->FilterOptions =$this->FilterOptions; $_il30->Wrap =$this->Wrap; $_il30->Align =$this->Align; $_il30->Valign =$this->Valign; $_il30->HeaderStyle =$this->HeaderStyle; $_il30->FooterStyle =$this->FooterStyle; $_il30->ItemStyle =$this->ItemStyle; $_il30->CssClass =$this->CssClass; $_il30->_iO2x =$this->_iO2x; $_il30->Aggregate =$this->Aggregate; return $_il30; } function inlineeditrender($_il1l) { return $this->render($_il1l); } function formeditrender($_il1l) { return $this->inlineeditrender($_il1l); } function format($_il18) { return $_il18; } function render($_il1l) { return $this->format($_il1l->DataItem[$this->DataField ]); } function _iO25($_il1l) { $_iO30="<t\144\040id=\047\173id\175\047 c\154\141ss\075\047kg\162\103el\154 \173\166\151si\142\154e\175\040\173\143sscl\141ss}'\040\173v\141lig\156\175>\074\144iv\040cla\163s='\153\147rI\156' s\164\171le\075'\173\167rap\175\173a\154\151g\156\175'>\173cel\154\175<\057di\166\076<\057td>"; $_iO2q=_iO0("\173id}",$_il1l->_iO23."_".$this->_iO23 ,$_iO30); $_il31=strtolower($_SERVER["HTT\120\137USE\122\137AG\105\116T"]); $_iO31=(strpos($_il31,"\155si\145\0406") !== FALSE) && (strpos($_il31,"msie\0407") === FALSE) && (strpos($_il31,"\155sie\040\070") === FALSE) && (strpos($_il31,"\157per\141") === FALSE); $_il32=(strpos($_il31,"msie \067") !== FALSE) && (strpos($_il31,"\157pera") === FALSE); $_iO2q=_iO0("\173\166isib\154\145}",($this->Visible || $_iO31 || $_il32) ? "": "\153grHid\144\145n",$_iO2q); $_iO2q=_iO0("\173wrap\175",$this->ItemStyle->_il2u(),$_iO2q); $_iO2q=_iO0("\173align\175",$this->ItemStyle->_iO2u(),$_iO2q); $_iO2q=_iO0("\173v\141\154ign\175",$this->ItemStyle->_il2v(),$_iO2q); $_iO2q=_iO0("\173\143sscl\141\163s}",$this->CssClass ,$_iO2q); $_iO2q=_iO0("\173\143el\154\175",$this->render($_il1l),$_iO2q); return $_iO2q; } function _iO32($_il1l) { $_iO30="\074t\144\040id=\047\173id}\047 cla\163\163='\153\147rC\145\154l \173\166is\151\142l\145\175' \173\166al\151gn}>\074div\040\143l\141\163s\075\047k\147\162In\047 st\171\154e=\047\173w\162\141p\175\173a\154\151gn\175' >\173\143e\154\154}\074\057d\151\166>\074/t\144\076"; $_iO2q=_iO0("\173\151d}",$_il1l->_iO23."\137".$this->_iO23 ,$_iO30); $_iO2q=_iO0("\173cel\154\175",$this->inlineeditrender($_il1l),$_iO2q); $_il31=strtolower($_SERVER["HTTP\137\125SER_\101\107EN\124"]); $_iO31=(strpos($_il31,"msie\040\066") !== FALSE) && (strpos($_il31,"msi\145\0407") === FALSE) && (strpos($_il31,"\155si\145\0408") === FALSE) && (strpos($_il31,"o\160\145ra") === FALSE); $_il32=(strpos($_il31,"\155sie \067") !== FALSE) && (strpos($_il31,"oper\141") === FALSE); $_iO2q=_iO0("\173vi\163\151bl\145\175",($this->Visible || $_iO31 || $_il32) ? "": "k\147\162Hid\144\145n",$_iO2q); $_iO2q=_iO0("\173wrap\175",$this->ItemStyle->_il2u(),$_iO2q); $_iO2q=_iO0("\173\141lign}",$this->ItemStyle->_iO2u(),$_iO2q); $_iO2q=_iO0("\173val\151\147n}",$this->ItemStyle->_il2v(),$_iO2q); return $_iO2q; } function _il33($_il1l) { $_il2n="\074t\162\040sty\154\145='\167\150ite\055spac\145\072no\167\162ap\047><t\144\040va\154\151gn\075'to\160\047 s\164yle=\047wid\164\150:\062px;\047\076<\154\141be\154\040c\154\141s\163\075'\153\147rC\141pti\157\156'\040for\075'\173\151\144}\047>\173\164\145x\164}:<\057la\142\145l\076\074/\164d><\164d v\141lig\156='t\157p'\076<di\166 cl\141ss=\047kg\162\111n\160ut\047\076\173\151n\160\165t\175</\144\151v\076</\164\144>\074/t\162>"; $_iO2o=_iO0("\173t\145\170t}",$this->HeaderText ,$_il2n); $_iO2o=_iO0("\173\151d}",$_il1l->_iO23."_".$this->_iO23."_i\156\160ut",$_iO2o); $_iO2o=_iO0("\173\151nput}",$this->formeditrender($_il1l),$_iO2o); return $_iO2o; } function geteditvalue($_il1l) { return _iO12($_POST[$_il1l->_iO23."\137".$this->_iO23."\137inp\165\164"]); } function _iO33() { $_il34="\074col \151\144='\173\151d}' \156\141me\075'\173i\144\175' \163\164y\154\145='\173\167id\164\150}'\040cla\163\163='\173\162e\163\151z\141\142le\175\040\173\166isi\142le}\040\173g\162\157up\141ble\175\047/\076"; $_il2q=_iO0("\173\151d}",$this->_iO23 ,$_il34); $_il2q=_iO0("\173\162\145si\172\141ble\175",($this->AllowResizing) ? "k\147\162Res\151\172abl\145": "",$_il2q); $_il2q=_iO0("\173group\141\142le}",($this->AllowGrouping) ? "\153grGro\165\160abl\145": "",$_il2q); $_il2q=_iO0("\173\167idt\150\175",($this->Width != NULL) ? "\167idt\150\072".$this->Width."\073": "",$_il2q); $_il2q=_iO0("\173\166isi\142\154e}",($this->Visible) ? "": "\153grHi\144\144en",$_il2q); return $_il2q; } function renderheader() { $_iO34="\074th \151\144='\173\151d}' \143\154as\163\075'\153\147rH\145\141de\162\040\173\166isi\142\154e}\047 \173\166\141l\151\147n}\076<di\166 cl\141\163s=\047kgr\111\156'\040\163t\171\154e=\047\173\167\162ap\175\173a\154ign\175\047>\173tex\164\175&\043160\073\173\163\151g\156\175<\057\144i\166></\164h>"; $_il35="\074\141 h\162\145f='\152\141vas\143\162ip\164\072vo\151\144 0\047 cl\141\163s=\047\153gr\123\157r\164\110ea\144\145rT\145\170t\047\040o\156\143l\151\143k=\047gri\144\137so\162\164(\042\173i\144\175\042\054\173\163\157r\164\175)\047\040t\151\164l\145\075'\173\164i\164\154e\175\047>\173tex\164}</\141>"; $_iO35="<\151\156put\040\164yp\145\075'b\165\164to\156\047 c\154\141ss\075'kg\162\123or\164\173di\162\175'\040\157n\143\154ic\153\075'\147\162i\144\137so\162\164(\042\173i\144\175\042\054\173\163\157r\164\175)\047\040t\151\164l\145\075'\173tit\154\145}\047 />"; $_il36=_iO0("\173\151d}",$this->_iO23."\137hd",$_iO34); if ($this->AllowSorting) { $_iO1a=0; $_iO36="\116\157ne"; switch ($this->Sort) { case 0: $_iO1a=1; $_iO36="\116\157ne"; break; case 1: $_iO1a=-1; $_iO36="As\143"; break; case -1: $_iO1a=0; $_iO36="Desc"; break; } $_il37=_iO0("\173\151d}",$this->_iO23 ,$_il35); $_il37=_iO0("\173\163\157rt\175",$_iO1a,$_il37); $_il37=_iO0("\173\164\145xt}",$this->HeaderText ,$_il37); $_il37=_iO0("\173tit\154\145}",$this->_il2d->_iO20->Localization->_iO28["So\162\164Hea\144\145rTo\157\154Ti\160"],$_il37); $_iO37=_iO0("\173\151d}",$this->_iO23 ,$_iO35); $_iO37=_iO0("\173s\157\162t}",$_iO1a,$_iO37); $_iO37=_iO0("\173dir}",$_iO36,$_iO37); $_iO37=_iO0("\173\164itle}",$this->_il2d->_iO20->Localization->_iO28["\123\157rt".$_iO36."To\157\154Tip"],$_iO37); $_il36=_iO0("\173\164ext\175",$_il37,$_il36); $_il36=_iO0("\173\163ign}",$_iO37,$_il36); } else { $_il36=_iO0("\173\164ext}",$this->HeaderText ,$_il36); $_il36=_iO0("\173\163\151gn}","",$_il36); } $_il31=strtolower($_SERVER["H\124\124P_U\123\105R_A\107\105NT"]); $_iO31=(strpos($_il31,"msi\145\0406") !== FALSE) && (strpos($_il31,"\155sie 7") === FALSE) && (strpos($_il31,"\155sie \070") === FALSE) && (strpos($_il31,"op\145\162a") === FALSE); $_il32=(strpos($_il31,"\155sie \067") !== FALSE) && (strpos($_il31,"\157pera") === FALSE); $_il36=_iO0("\173vi\163\151ble\175",($this->Visible || $_iO31 || $_il32) ? "": "kgrH\151\144den",$_il36); $_il36=_iO0("\173\167rap\175",$this->HeaderStyle->_il2u(),$_il36); $_il36=_iO0("\173\141\154ign\175",$this->HeaderStyle->_iO2u(),$_il36); $_il36=_iO0("\173\166\141lign\175",$this->HeaderStyle->_il2v(),$_il36); return $_il36; } function renderfooter() { $_il38="\074td \151\144='\173\151d}' \143lass\075\047kg\162\106oo\164\145r\040\173vi\163\151bl\145\175'\040\173va\154ign}\076<di\166\040c\154\141s\163\075'k\147\162I\156\047 \163\164yl\145='\173\167rap\175\173a\154ign\175\047>\074spa\156 cl\141ss=\047\153g\162\106o\157ter\124ext\047>\173\164ext\175\0660;\074/sp\141n><\057di\166\076<\057td\076"; $_iO38=_iO0("\173id}",$this->_iO23."_ft",$_il38); $_il3=$this->FooterText; if ($this->Aggregate !== NULL) { $_il39=new gridrow(); $_il39->DataItem[$this->DataField ]=$this->_il2y; $_il3.=$this->render($_il39); } $_iO38=_iO0("\173t\145\170t}",$_il3,$_iO38); $_il31=strtolower($_SERVER["\110\124TP\137\125SER\137\101GEN\124"]); $_iO31=(strpos($_il31,"msi\145\0406") !== FALSE) && (strpos($_il31,"\155sie 7") === FALSE) && (strpos($_il31,"\155\163ie \070") === FALSE) && (strpos($_il31,"\157pera") === FALSE); $_il32=(strpos($_il31,"\155si\145\0407") !== FALSE) && (strpos($_il31,"oper\141") === FALSE); $_iO38=_iO0("\173\166isibl\145\175",($this->Visible || $_iO31 || $_il32) ? "": "\153gr\110\151dde\156",$_iO38); $_iO38=_iO0("\173wrap\175",$this->FooterStyle->_il2u(),$_iO38); $_iO38=_iO0("\173al\151\147n}",$this->FooterStyle->_iO2u(),$_iO38); $_iO38=_iO0("\173va\154\151gn}",$this->FooterStyle->_il2v(),$_iO38); return $_iO38; } function renderfilter() { $_iO39="\074div\040\143la\163\163='k\147\162\105di\164\111n'\076\074i\156\160ut\040cla\163\163='\153\147rF\151EnT\162\047 t\171pe=\047\164e\170t' \151\144='\173id}\047\040n\141\155e\075\047\173\151d}\047\040v\141lue\075'\173\164\145x\164}' \157nbl\165\162=\047gri\144_f\151\154t\145\162_\164\162i\147\147e\162\050\042\173c\157\154i\144\175\042\054t\150\151s\051' \163\164y\154\145=\047wi\144\164h\07210\060%;\047\040/\076</\144iv\076"; $_il3a=_iO0("\173i\144\175",$this->_iO23."\137filt\145\162_i\156\160ut",$_iO39); $_il3a=_iO0("\173\143ol\151\144}",$this->_iO23 ,$_il3a); $_il3a=_iO0("\173text\175",htmlentities($this->Filter["\126alu\145"],ENT_QUOTES,$this->_il2d->_iO20->CharSet),$_il3a); return $_il3a; } function _iO2z() { return _iO12($_POST[$this->_iO23."\137fil\164\145r_i\156\160ut"]); } function _iO3a() { $_il3b="\074t\144\040id=\047\173id\175\047 c\154\141ss=\047kgrF\151\154t\145\162Ce\154\154 \173\166isi\142le}'\076<di\166\040cl\141ss=\047\153g\162\111n'\076\173c\157\156t\145\156t}\074/di\166\076<\057td>"; $_iO3b="\066\060;"; if ($this->AllowFiltering) { $_il3c="\074\144iv\076\173inp\165\164}<\057\144iv\076\074d\151\166>\173\163ele\143t}</\144\151v>"; $_iO3c="\074sel\145\143t i\144\075'\173\151d}' \157\156ch\141\156ge\075'gr\151\144_f\151\154te\162\137t\162\151gg\145r(\042\173col\151\144}\042,th\151\163)'\040sty\154\145=\047\167i\144\164h:\06100%\047>\173\157pti\157\156s\175\074/\163\145l\145\143t\076"; $_il3d="<\157\160tio\156\040va\154\165e='\173\166al\165\145}' \173\163el\145cted\175 >\173\164ext}\074/op\164\151on\076"; $_iO3d=$this->FilterOptions; $_il3e=""; for ($_iO9=0; $_iO9<sizeof($_iO3d); $_iO9 ++) { $_iO3e=_iO0("\173value\175",$_iO3d[$_iO9],$_il3d); $_iO3e=_iO0("\173\164\145xt}",$this->_il2d->_iO20->Localization->_il28[$_iO3d[$_iO9]],$_iO3e); $_iO3e=_iO0("\173\163\145lect\145\144}",($this->Filter["\105xp"] == $_iO3d[$_iO9]) ? "\163\145lec\164\145d": "",$_iO3e); $_il3e.=$_iO3e; } $_il3f=_iO0("\173\151d}",$this->_iO23."_fi\154\164er_\163\145lec\164",$_iO3c); $_il3f=_iO0("\173col\151\144}",$this->_iO23 ,$_il3f); $_il3f=_iO0("\173\157ptio\156\163}",$_il3e,$_il3f); $_iO3b=_iO0("\173s\145\154ect\175",$_il3f,$_il3c); $_iO3b=_iO0("\173inp\165\164}",$this->renderfilter(),$_iO3b); } $_il31=strtolower($_SERVER["HTTP\137\125SER\137\101GEN\124"]); $_iO31=(strpos($_il31,"ms\151\145 6") !== FALSE) && (strpos($_il31,"ms\151\145 7") === FALSE) && (strpos($_il31,"\155sie 8") === FALSE) && (strpos($_il31,"\157pera") === FALSE); $_il32=(strpos($_il31,"\155sie \067") !== FALSE) && (strpos($_il31,"\157pera") === FALSE); $_il1b=_iO0("\173id}",$this->_iO23."\137flt",$_il3b); $_il1b=_iO0("\173\166\151si\142\154e}",($this->Visible || $_iO31 || $_il32) ? "": "\153grH\151\144den",$_il1b); $_il1b=_iO0("\173\143\157nte\156\164}",$_iO3b,$_il1b); return $_il1b; } } class _iO3f extends gridcolumn { var $AllowHtmlRender=FALSE; function render($_il1l) { $_il3g=$this->format($_il1l->DataItem[$this->DataField ]); if (!$this->AllowHtmlRender) { $_il3g=_iO0("<","\046#60;",$_il3g); $_il3g=_iO0(">","\046\04362\073",$_il3g); } return $_il3g; } function createinstance($_il30=NULL) { if ($_il30 === NULL) { $_il30=new _iO3f(); } parent::createinstance($_il30); $_il30->AllowHtmlRender =$this->AllowHtmlRender; return $_il30; } } class gridboundcolumn extends _iO3f { function inlineeditrender($_il1l) { if (!$this->ReadOnly) { $_iO3g="\074d\151\166 cl\141\163s=\047\153gr\105\144it\111\156 k\147\162EC\141\160'\076\074in\160ut i\144='\173\151d}'\040\143la\163s='\153\147r\105\156No\120\157'\040nam\145\075'\173\151d}\047 ty\160\145=\047\164e\170\164' \166alu\145='\173\166al\165\145}'\040st\171\154e\075'wi\144th:\06100%\047 />\074/d\151\166>"; $_il3h=_iO0("\173id}",$_il1l->_iO23."_".$this->_iO23."\137inpu\164",$_iO3g); $_il3h=_iO0("\173va\154\165e}",htmlentities($this->format($_il1l->DataItem[$this->DataField ]),ENT_QUOTES,$this->_il2d->_iO20->CharSet),$_il3h); return $_il3h; } else { return $this->render($_il1l); } } function formeditrender($_il1l) { $_iO3g="<in\160\165t \151\144='\173\151d}'\040clas\163\075'k\147\162En\116\157P\157\047 n\141\155e\075\047\173\151d}'\040type\075'te\170t' \166\141lu\145\075'\173\166a\154\165e}\047 st\171\154e\075\047w\151dth\07290%\047\040/\076"; $_il3h=_iO0("\173id}",$_il1l->_iO23."_".$this->_iO23."\137\151npu\164",$_iO3g); $_il3h=_iO0("\173val\165\145}",htmlentities($this->format($_il1l->DataItem[$this->DataField ]),ENT_QUOTES,$this->_il2d->_iO20->CharSet),$_il3h); return $_il3h; } function createinstance($_il30=NULL) { if ($_il30 === NULL) { $_il30=new gridboundcolumn(); } parent::createinstance($_il30); return $_il30; } } class gridcalculatedcolumn extends gridboundcolumn { var $Expression; function _il22($_il2f) { parent::_il22($_il2f); $this->ReadOnly =TRUE; $this->Aggregate =NULL; } function render($_il1l) { $_iO17=$this->Expression; foreach ($_il1l->DataItem as $_il1r => $_iO1r) { $_iO17=_iO0("\173".$_il1r."}",$_iO1r,$_iO17); } return eval ("\162\145tur\156\040".$_iO17."\073"); } function createinstance($_il30=NULL) { if ($_il30 === NULL) { $_il30=new gridcalculatedcolumn(); } parent::createinstance($_il30); $_il30->Expression =$this->Expression; return $_il30; } } class gridnumbercolumn extends gridboundcolumn { var $DecimalNumber=0; var $DecimalPoint="\056"; var $ThousandSeperate="\054"; function format($_il18) { $_iO3h= (double) $_il18; return number_format($_iO3h,$this->DecimalNumber ,$this->DecimalPoint ,$this->ThousandSeperate); } function createinstance($_il30=NULL) { if ($_il30 === NULL) { $_il30=new gridnumbercolumn(); } parent::createinstance($_il30); $_il30->DecimalNumber =$this->DecimalNumber; $_il30->DecimalPoint =$this->DecimalPoint; $_il30->ThousandSeperate =$this->ThousandSeperate; return $_il30; } } class gridcurrencycolumn extends gridboundcolumn { var $Locale="\145n_U\123"; var $FormatString="\045i"; function format($_il18) { setlocale(LC_MONETARY,$this->Locale); return money_format($this->FormatString ,$_il18); } function createinstance($_il30=NULL) { if ($_il30 === NULL) { $_il30=new gridcurrencycolumn(); } parent::createinstance($_il30); $_il30->Locale =$this->Locale; $_il30->FormatString =$this->FormatString; return $_il30; } } class gridtextareacolumn extends _iO3f { var $BoxHeight; function inlineeditrender($_il1l) { if (!$this->ReadOnly) { $_iO3g="<di\166\040cl\141\163s='\153\147rE\144\151tIn\040kgrE\103\141p'\076<te\170\164ar\145\141 i\144\075'\173\151d}\047\040c\154\141ss\075'k\147\162En\116\157Po\047 na\155e='\173\151d}\047 st\171\154e\075\047w\151\144t\150\0721\060\060%\073\173h\145igh\164\175'\076\173\166\141l\165\145}<\057te\170\164a\162\145a\076</d\151v>"; $_il3h=_iO0("\173\151d}",$_il1l->_iO23."_".$this->_iO23."_\151\156put",$_iO3g); $_il3h=_iO0("\173v\141\154ue}",htmlentities($_il1l->DataItem[$this->DataField ],ENT_QUOTES,$this->_il2d->_iO20->CharSet),$_il3h); $_il3h=_iO0("\173hei\147\150t}",($this->BoxHeight) ? "heig\150\164:".$this->BoxHeight."\073": "",$_il3h); return $_il3h; } else { return $this->render($_il1l); } } function formeditrender($_il1l) { $_iO3g="<text\141\162ea \151\144='\173\151d}'\040clas\163\075'k\147\162En\116oPo'\040name\075'\173\151\144}'\040sty\154\145='\167\151d\164\150:\071\060%\073\173he\151ght\175\047>\173\166al\165e}<\057\164e\170\164a\162\145a>"; $_il3h=_iO0("\173\151d}",$_il1l->_iO23."\137".$this->_iO23."_i\156\160ut",$_iO3g); $_il3h=_iO0("\173valu\145\175",htmlentities($_il1l->DataItem[$this->DataField ],ENT_QUOTES,$this->_il2d->_iO20->CharSet),$_il3h); $_il3h=_iO0("\173\150eight\175",($this->Height) ? "\150eig\150\164:".$this->Height.";": "",$_il3h); return $_il3h; } function createinstance($_il30=NULL) { if ($_il30 === NULL) { $_il30=new gridtextareacolumn(); } parent::createinstance($_il30); $_il30->BoxHeight =$this->BoxHeight; return $_il30; } } class griddropdowncolumn extends gridcolumn { var $_il3i=array(); function render($_il1l) { $_il18=$_il1l->DataItem[$this->DataField ]; $_il3=$_il1l->DataItem[$this->DataField ]; for ($_iO9=0; $_iO9<sizeof($this->_il3i); $_iO9 ++) { if ($_il18 == $this->_il3i[$_iO9][1]) { $_il3=$this->_il3i[$_iO9][0]; break; } } return $_il3; } function additem($_il3,$_il18=NULL) { if ($_il18 === NULL) $_il18=$_il3; array_push($this->_il3i ,array($_il3,$_il18)); } function _iO3i($_il1l,$_iO3c) { $_il3d="\074opti\157\156 va\154\165e='\173\166al\165\145}'\040\173se\154ect\145\144}>\173\164ex\164\175<\057\157pt\151on>"; $_il3e=""; foreach ($this->_il3i as $_iO16) { $_iO3e=_iO0("\173text\175",$_iO16[0],$_il3d); $_iO3e=_iO0("\173\166\141lue}",htmlentities($_iO16[1],ENT_QUOTES,$this->_il2d->_iO20->CharSet),$_iO3e); $_iO3e=_iO0("\173\163elect\145\144}",($_iO16[1] == $_il1l->DataItem[$this->DataField ]) ? "sele\143\164ed": "",$_iO3e); $_il3e.=$_iO3e; } $_il3f=_iO0("\173\151\144}",$_il1l->_iO23."\137".$this->_iO23."\137input",$_iO3c); $_il3f=_iO0("\173\157pti\157\156s}",$_il3e,$_il3f); return $_il3f; } function inlineeditrender($_il1l) { if (!$this->ReadOnly) { $_iO3c="\074\163pa\156\040cla\163\163='\153\147rE\103\141p'\076\074s\145\154ec\164\040i\144\075'\173\151d}\047 na\155\145='\173\151d\175\047 \163\164y\154\145='\167idt\150\0721\060\060%\047\076\173\157pt\151ons\175\074/\163\145l\145\143t\076\074/\163pan\076"; return $this->_iO3i($_il1l,$_iO3c); } else { return $this->render($_il1l); } } function formeditrender($_il1l) { $_iO3c="\074sele\143\164 i\144\075'\173\151d}' \156\141me\075\047\173\151d}'\040sty\154\145='\167\151dt\150\0729\060%'>\173\157pt\151\157n\163\175<\057\163el\145ct>"; return $this->_iO3i($_il1l,$_iO3c); } function renderfilter() { $_iO3c="<\163\160an \143\154ass\075\047k\147\162ECa\160\047><\163\145le\143t id\075'\173\151\144}'\040nam\145\075'\173\151d}\047\040s\164\171l\145\075'w\151dth\072\0610\060%' \157\156ch\141nge\075\047g\162id_\146\151l\164\145r_\164rig\147er(\042\173c\157lid\175\042,\164hi\163\051'\076\173o\160tio\156s}<\057sel\145ct>\074/s\160\141n\076"; $_il3d="<opt\151\157n v\141\154ue\075\047\173\166alue\175\047 \173\163el\145\143te\144\175>\173\164ex\164\175</\157ptio\156>"; $_il3e=""; foreach ($this->_il3i as $_iO16) { $_iO3e=_iO0("\173\164ext\175",$_iO16[0],$_il3d); $_iO3e=_iO0("\173valu\145\175",$_iO16[1],$_iO3e); $_iO3e=_iO0("\173\163\145lec\164\145d}",($_iO16[1] == $this->Filter["\126\141lue"]) ? "sel\145\143ted": "",$_iO3e); $_il3e.=$_iO3e; } $_il3f=_iO0("\173\151d}",$this->_iO23."_f\151\154ter\137\151npu\164",$_iO3c); $_il3f=_iO0("\173co\154\151d}",$this->_iO23 ,$_il3f); $_il3f=_iO0("\173\157pti\157\156s}",$_il3e,$_il3f); return $_il3f; } function createinstance($_il30=NULL) { if ($_il30 === NULL) { $_il30=new griddropdowncolumn(); } parent::createinstance($_il30); $_il30->_il3i =$this->_il3i; return $_il30; } } class gridrowselectcolumn extends gridcolumn { var $Align="\143e\156\164er"; function _il22($_il2f) { parent::_il22($_il2f); $this->AllowSorting =FALSE; $this->AllowResizing =FALSE; $this->AllowFiltering =FALSE; $this->AllowGrouping =FALSE; $this->ReadOnly =TRUE; $this->Aggregate =NULL; } function render($_il1l) { $_il3j="\074\163pan c\154\141ss\075\047kg\162\105Ca\160\047><\151\156pu\164 typ\145='ch\145\143k\142\157x'\040cla\163\163='\153\147rS\145lec\164\123in\147leR\157\167' \173che\143\153ed\175 on\143\154i\143\153='\147rid\137\164o\147\147l\145\137se\154ect\050thi\163)'\040/><\057spa\156>"; $_iO3j=_iO0("\173che\143\153ed}",$_il1l->Selected ? "che\143\153ed": "",$_il3j); return $_iO3j; } function _iO33() { $_il34="<\143\157l id\075'\173i\144\175' \156\141me=\047\173id\175\047 \163\164yl\145\075'\173\167id\164\150}\047\040c\154\141ss\075'kg\162\103o\154\165mn\123\145le\143t \173\162esi\172abl\145\175 \173\166is\151\142l\145\175'/\076"; $_il2q=_iO0("\173id}",$this->_iO23 ,$_il34); $_il2q=_iO0("\173resi\172\141ble\175",($this->AllowResizing) ? "k\147\162Res\151\172abl\145": "",$_il2q); $_il2q=_iO0("\173wid\164\150}",($this->Width != NULL) ? "wid\164\150:".$this->Width."\073": "",$_il2q); $_il2q=_iO0("\173\166isib\154\145}",($this->Visible) ? "": "kgrHi\144\144en",$_il2q); return $_il2q; } function renderheader() { $_il3j="<\163\160an \143\154ass\075\047k\147\162ECa\160\047><\151\156pu\164 ty\160\145='\143\150ec\153\142ox\047 cl\141\163s=\047kgr\123\145l\145\143tA\154\154R\157\167s'\040\173c\150\145c\153\145d}\040onc\154ick\075'gr\151\144_\164\157gg\154e_s\145lec\164\050t\150is\051\047 \057></\163pan\076"; $_iO1k=$this->_il2d->_il3k; $_iO3k=TRUE; for ($_iO9=0; $_iO9<sizeof($_iO1k); $_iO9 ++) { if (!$_iO1k[$_iO9]->Selected) { $_iO3k=FALSE; break; } } $this->HeaderText =_iO0("\173che\143\153ed}",$_iO3k ? "c\150\145cke\144": "",$_il3j); return parent::renderheader(); } function createinstance($_il30=NULL) { if ($_il30 === NULL) { $_il30=new gridrowselectcolumn(); } parent::createinstance($_il30); return $_il30; } } class gridbooleancolumn extends gridcolumn { var $TrueText="True"; var $FalseText="Fal\163\145"; var $UseCheckBox=FALSE; function render($_il1l) { $_il3h=""; if ($this->UseCheckBox) { $_iO3g="\074input\040\164yp\145\075'ch\145\143kb\157\170' \173\143he\143\153ed\175\040d\151\163ab\154\145d \057>"; $_il3h=_iO0("\173che\143\153ed}",($_il1l->DataItem[$this->DataField ]) ? "\143\150ec\153\145d": "",$_iO3g); } else { $_il3h=($_il1l->DataItem[$this->DataField ]) ? $this->TrueText : $this->FalseText; } return $_il3h; } function inlineeditrender($_il1l,$_il3l=FALSE) { if (!$this->ReadOnly) { $_il3h=""; if ($this->UseCheckBox) { $_iO3g="<s\160\141n c\154\141ss\075\047k\147\162EC\141\160'><\151\156p\165\164 \151\144='\173\151d\175\047 \156\141me\075'\173\151\144}\047\040t\171\160e\075\047c\150\145c\153\142ox\047 \173\143\150e\143\153ed}\040/><\057spa\156\076"; $_il3h=_iO0("\173\151\144}",$_il1l->_iO23."_".$this->_iO23."_\151\156put",$_iO3g); $_il3h=_iO0("\173che\143\153ed\175",($_il1l->DataItem[$this->DataField ]) ? "chec\153\145d": "",$_il3h); } else { $_iO3c="\074span\040\143las\163\075'k\147\162EC\141\160'>\074\163el\145\143t\040\151d=\047\173i\144\175' \156ame\075\047\173\151d}'\040sty\154\145=\047\167i\144\164h:\173\167i\144\164h}\047>\173\157pti\157\156s\175\074/\163\145l\145\143t\076</s\160\141n\076"; $_il3d="<op\164\151on \166\141lue\075\047\173\166alue\175\047 \173\163el\145\143te\144\175>\173\164ext\175</o\160\164io\156\076"; $_iO3l=_iO0("\173\166alue}","\061",$_il3d); $_iO3l=_iO0("\173sele\143\164ed}",($_il1l->DataItem[$this->DataField ]) ? "\163el\145\143ted": "",$_iO3l); $_iO3l=_iO0("\173tex\164\175",$this->TrueText ,$_iO3l); $_il3m=_iO0("\173\166\141lu\145\175","\060",$_il3d); $_il3m=_iO0("\173\163\145lect\145\144}",(!$_il1l->DataItem[$this->DataField ]) ? "\163ele\143\164ed": "",$_il3m); $_il3m=_iO0("\173t\145\170t}",$this->FalseText ,$_il3m); $_il3h=_iO0("\173id}",$_il1l->_iO23."\137".$this->_iO23."\137\151npu\164",$_iO3c); $_il3h=_iO0("\173op\164\151ons\175",$_iO3l.$_il3m,$_il3h); $_il3h=_iO0("\173\167\151dth\175",($_il3l) ? "\0710%": "100\045",$_il3h); } return $_il3h; } else { return $this->render($_il1l); } } function formeditrender($_il1l) { return $this->inlineeditrender($_il1l,TRUE); } function geteditvalue($_il1l) { if ($this->UseCheckBox) { return isset ($_POST[$_il1l->_iO23."\137".$this->_iO23."_inpu\164"]) ? 1: 0; } else { return parent::geteditvalue($_il1l); } } function renderfilter() { $_il3h=""; if ($this->UseCheckBox) { $_iO3g="\074span\040\143la\163\163='k\147\162EC\141\160'>\074\151np\165t \151\144='\173\151d}\047 nam\145='\173\151d}'\040\164y\160\145=\047\143h\145\143kb\157\170'\040\173c\150\145ck\145d} \157\156c\150\141n\147\145='\147rid\137\146i\154\164e\162\137t\162\151g\147\145r\050\042\173\143o\154\151d\175\042,\164his\051' /\076</\163pan\076"; $_il3h=_iO0("\173\151d}",$this->_iO23."_filt\145\162_in\160\165t",$_iO3g); $_il3h=_iO0("\173\143ol\151\144}",$this->_iO23 ,$_il3h); $_il3h=_iO0("\173\143\150eck\145\144}",($this->Filter["\126alue"]) ? "\143hecke\144": "",$_il3h); } else { $_iO3c="<sp\141\156 cl\141\163s='\153\147rE\103\141p'>\074sele\143\164 \151\144='\173\151d}\047 na\155\145='\173\151d}\047 st\171\154e=\047wid\164h:1\060\060%\047\040o\156\143h\141\156ge\075'gr\151d_f\151\154t\145\162_t\162igg\145r(\042\173co\154id}\042,th\151s)'\076\173\157\160t\151\157n\163\175<\057se\154\145c\164\076<\057sp\141\156>"; $_il3d="\074op\164\151on \166\141lue\075\047\173\166alue\175\047 \173\163el\145\143te\144\175>\173\164ext\175</o\160\164io\156\076"; $_iO3l=_iO0("\173valu\145\175","\061",$_il3d); $_iO3l=_iO0("\173se\154\145cte\144\175",($this->Filter["\126\141lu\145"]) ? "\163ele\143\164ed": "",$_iO3l); $_iO3l=_iO0("\173text}",$this->TrueText ,$_iO3l); $_il3m=_iO0("\173\166\141lue\175","0",$_il3d); $_il3m=_iO0("\173sele\143\164ed}",(!$this->Filter["V\141\154ue"]) ? "\163ele\143\164ed": "",$_il3m); $_il3m=_iO0("\173tex\164\175",$this->FalseText ,$_il3m); $_il3h=_iO0("\173i\144\175",$this->_iO23."_fil\164\145r_i\156\160ut",$_iO3c); $_il3h=_iO0("\173col\151\144}",$this->_iO23 ,$_il3h); $_il3h=_iO0("\173opti\157\156s}",$_iO3l.$_il3m,$_il3h); } return $_il3h; } function _iO2z() { if ($this->UseCheckBox) { return isset ($_POST[$this->_iO23."_fi\154\164er_\151\156put"]) ? 1: 0; } else { return parent::_iO2z(); } } function createinstance($_il30=NULL) { if ($_il30 === NULL) { $_il30=new gridbooleancolumn(); } parent::createinstance($_il30); $_il30->TrueText =$this->TrueText; $_il30->FalseText =$this->FalseText; $_il30->UseCheckBox =$this->UseCheckBox; return $_il30; } } class gridimagecolumn extends gridcolumn { var $ImageFolder=""; var $CssClass=""; function render($_il1l) { $_iO3g="<i\155\147 sr\143\075'\173\163rc}'\040\143la\163\163='\173\143la\163\163}'\040alt=\047' /\076"; $_il3h=_iO0("\173s\162\143}",(($this->ImageFolder != "") ? ($this->ImageFolder."\057"): "").$_il1l->DataItem[$this->DataField ],$_iO3g); $_il3h=_iO0("\173cla\163\163}",$this->CssClass ,$_il3h); return $_il3h; } function inlineeditrender($_il1l) { return $this->render($_il1l); } function createinstance($_il30=NULL) { if ($_il30 === NULL) { $_il30=new gridimagecolumn(); } parent::createinstance($_il30); $_il30->ImageFolder =$this->ImageFolder; $_il30->CssClass =$this->CssClass; return $_il30; } } class gridcustomcolumn extends gridcolumn { var $ItemTemplate; var $EditItemTemplate; function _il22($_il2f) { parent::_il22($_il2f); $this->ReadOnly =TRUE; } function render($_il1l) { $_il3h=$this->ItemTemplate; foreach ($_il1l->DataItem as $_il1r => $_iO1r) { $_il3h=_iO0("\173".$_il1r."}",$_iO1r,$_il3h); } return $_il3h; } function inlineeditrender($_il1l) { $_il3h=$this->EditItemTemplate; foreach ($_il1l->DataItem as $_il1r => $_iO1r) { $_il3h=_iO0("\173".$_il1r."}",$_iO1r,$_il3h); } return $_il3h; } function createinstance($_il30=NULL) { if ($_il30 === NULL) { $_il30=new gridcustomcolumn(); } parent::createinstance($_il30); $_il30->ItemTemplate =$this->ItemTemplate; $_il30->EditItemTemplate =$this->EditItemTemplate; return $_il30; } } class gridcommandcolumn extends gridcolumn { var $CommandText="C\157\155man\144"; var $OnClick=""; var $CssClass=""; function _il22($_il2f) { parent::_il22($_il2f); $this->AllowSorting =FALSE; $this->AllowFiltering =FALSE; $this->AllowGrouping =FALSE; $this->AllowExporting =FALSE; $this->ReadOnly =TRUE; $this->Aggregate =NULL; } function render($_il1l) { $_iO3g="\074span \143\154ass\075\047kg\162\105Ca\160\047><\151\156pu\164\040t\171\160e=\047butt\157\156'\040\143la\163s='\173\143la\163\163}\047\040v\141\154ue\075'\173\164ext\175\047 \157\156cl\151ck=\047\173o\156\143l\151\143k\175\047 \057\076<\057spa\156\076"; $_il3h=_iO0("\173\143la\163\163}",$this->CssClass ,$_iO3g); $_il3=$this->CommandText; $_iO3m=$this->OnClick; foreach ($_il1l->DataItem as $_il1r => $_iO1r) { $_il3=_iO0("\173".$_il1r."}",$_iO1r,$_il3); $_iO3m=_iO0("\173".$_il1r."}",$_iO1r,$_iO3m); } $_il3h=_iO0("\173\164\145xt}",$_il3,$_il3h); $_il3h=_iO0("\173\157ncli\143\153}",$_iO3m,$_il3h); return $_il3h; } function inlineeditrender($_il1l) { return $this->render($_il1l); } function createinstance($_il30=NULL) { if ($_il30 === NULL) { $_il30=new gridcommandcolumn(); } parent::createinstance($_il30); $_il30->CommandText =$this->CommandText; $_il30->OnClick =$this->OnClick; $_il30->CssClass =$this->CssClass; return $_il30; } } class grideditdeletecolumn extends gridcolumn { var $ButtonType="\114ink"; var $EditButtonText; var $DeleteButtonText; var $ConfirmButtonText; var $CancelButtonText; var $EditButtonImageUrl=""; var $DeleteButtonImageUrl=""; var $ConfirmButtonImageUrl=""; var $CancelButtonImageUrl=""; var $EditButtonCssClass=""; var $ConfirmButtonCssClass=""; var $CancelButtonCssClass=""; var $DeleteButtonCssClass=""; var $ShowEditButton=TRUE; var $ShowDeleteButton=TRUE; function _il22($_il2f) { parent::_il22($_il2f); $this->AllowSorting =FALSE; $this->AllowResizing =FALSE; $this->AllowFiltering =FALSE; $this->AllowGrouping =FALSE; $this->AllowExporting =FALSE; $this->ReadOnly =TRUE; $this->Aggregate =NULL; if ($this->EditButtonText === NULL) $this->EditButtonText =$_il2f->_iO20->Localization->_il28["Edit"]; if ($this->DeleteButtonText === NULL) $this->DeleteButtonText =$_il2f->_iO20->Localization->_il28["D\145\154ete"]; if ($this->ConfirmButtonText === NULL) $this->ConfirmButtonText =$_il2f->_iO20->Localization->_il28["\103onfir\155"]; if ($this->CancelButtonText === NULL) $this->CancelButtonText =$_il2f->_iO20->Localization->_il28["\103an\143\145l"]; } function render($_il1l) { $_il34="\074spa\156\040cl\141\163s='\153\147rE\103\141p'>\173\145di\164\175 \173\144el\145\164e}\074/sp\141\156>"; $_il3n=""; switch (strtolower($this->ButtonType)) { case "link": $_il3n="\074a \164\171pe=\047\142ut\164\157n' \143\154as\163\075'\173\143la\163\163}'\040oncl\151\143k\075\047\173\157ncl\151\143k\175\047 \150\162ef\075'ja\166\141s\143\162ip\164:vo\151\144 \060\047>\173\164e\170\164}\074\057a\076"; break; case "imag\145": $_il3n="<i\156\160ut t\171\160e=\047\151ma\147\145' s\162\143='\173\163rc\175\047 \157\156cl\151\143k=\047\173o\156\143li\143\153}\047\040c\154\141ss\075'\173\143\154a\163\163}'\040/>"; break; case "bu\164\164on": default : $_il3n="<\151\156put\040\143la\163\163='\173\143las\163\175' t\171\160e\075\047b\165\164to\156\047 v\141\154u\145\075'\173\164ex\164\175' \157ncl\151\143k=\047\173o\156\143l\151\143k}\047 />"; break; } $_iO3n=_iO0("\173t\145\170t}",$this->EditButtonText ,$_il3n); $_iO3n=_iO0("\173\143lass\175",$this->EditButtonCssClass ,$_iO3n); $_iO3n=_iO0("\173\163rc\175",$this->EditButtonImageUrl ,$_iO3n); $_iO3n=_iO0("\173\157\156cl\151\143k}","\147ri\144\137edi\164\050th\151\163)",$_iO3n); $_il3o=_iO0("\173t\145\170t}",$this->DeleteButtonText ,$_il3n); $_il3o=_iO0("\173clas\163\175",$this->DeleteButtonCssClass ,$_il3o); $_il3o=_iO0("\173\163\162c}",$this->DeleteButtonImageUrl ,$_il3o); $_il3o=_iO0("\173oncl\151\143k}","\147rid_\144\145let\145\050th\151\163)",$_il3o); $_il2q=_iO0("\173edi\164\175",($this->ShowEditButton) ? $_iO3n: "",$_il34); $_il2q=_iO0("\173\144ele\164\145}",($this->ShowDeleteButton) ? $_il3o: "",$_il2q); return $_il2q; } function inlineeditrender($_il1l) { if ($this->ShowEditButton) { $_il34="<\163\160an\040\143las\163\075'k\147\162EC\141\160'>\173\143onf\151rm}\040\173ca\156\143el\175\074/\163\160an\076"; $_il3n=""; switch (strtolower($this->ButtonType)) { case "link": $_il3n="<a \164\171pe=\047butto\156\047 c\154\141ss\075\047\173\143las\163\175' \157\156cl\151\143k\075\047\173\157ncl\151\143k}\047 hr\145\146=\047\152a\166\141sc\162\151p\164\072v\157\151d \060'>\173\164ex\164\175</\141>"; break; case "imag\145": $_il3n="\074in\160\165t t\171\160e='\151\155ag\145\047 s\162\143='\173\163rc\175\047 \157\156cl\151\143k=\047\173o\156\143li\143k}' \143las\163\075'\173\143la\163\163}\047\040/\076"; break; case "\142utton": default : $_il3n="<\151\156put \143\154as\163\075'\173\143lass\175\047 t\171\160e=\047but\164\157n'\040\166al\165e='\173\164ex\164\175' \157ncli\143k='\173\157nc\154\151ck}\047 />"; break; } $_iO3o=_iO0("\173\164\145xt\175",$this->ConfirmButtonText ,$_il3n); $_iO3o=_iO0("\173cla\163\163}",$this->ConfirmButtonCssClass ,$_iO3o); $_iO3o=_iO0("\173\163\162c}",$this->ConfirmButtonImageUrl ,$_iO3o); $_iO3o=_iO0("\173oncl\151\143k}","\147ri\144\137con\146\151rm_\145\144it(\164\150is\051",$_iO3o); $_il3p=_iO0("\173\164ext\175",$this->CancelButtonText ,$_il3n); $_il3p=_iO0("\173cla\163\163}",$this->CancelButtonCssClass ,$_il3p); $_il3p=_iO0("\173s\162\143}",$this->CancelButtonImageUrl ,$_il3p); $_il3p=_iO0("\173\157ncli\143\153}","\147rid_\143\141nce\154\137edi\164\050t\150\151s)",$_il3p); $_il2q=_iO0("\173\143onf\151\162m}",$_iO3o,$_il34); $_il2q=_iO0("\173can\143\145l}",$_il3p,$_il2q); return $_il2q; } else { return $this->render($_il1l); } } function createinstance($_il30=NULL) { if ($_il30 === NULL) { $_il30=new grideditdeletecolumn(); } parent::createinstance($_il30); $_il30->ButtonType =$this->ButtonType; $_il30->ReadOnly =$this->ReadOnly; $_il30->EditButtonText =$this->EditButtonText; $_il30->DeleteButtonText =$this->DeleteButtonText; $_il30->ConfirmButtonText =$this->ConfirmButtonText; $_il30->CancelButtonText =$this->CancelButtonText; $_il30->EditButtonImageUrl =$this->EditButtonImageUrl; $_il30->DeleteButtonImageUrl =$this->DeleteButtonImageUrl; $_il30->ConfirmButtonImageUrl =$this->ConfirmButtonImageUrl; $_il30->CancelButtonImageUrl =$this->CancelButtonImageUrl; $_il30->EditButtonCssClass =$this->EditButtonCssClass; $_il30->DeleteButtonCssClass =$this->DeleteButtonCssClass; $_il30->ConfirmButtonCssClass =$this->ConfirmButtonCssClass; $_il30->CancelButtonCssClass =$this->CancelButtonCssClass; $_il30->ShowEditButton =$this->ShowEditButton; $_il30->ShowDeleteButton =$this->ShowDeleteButton; return $_il30; } } class gridexpanddetailcolumn extends gridcolumn { function _il22($_il2f) { parent::_il22($_il2f); $this->AllowSorting =FALSE; $this->AllowResizing =FALSE; $this->AllowFiltering =FALSE; $this->AllowGrouping =FALSE; $this->AllowExporting =FALSE; $this->ReadOnly =TRUE; $this->Aggregate =NULL; } function render($_il1l) { $_il34="<\163pan c\154\141ss\075\047kg\162\173st\141\164us\175\040kg\162ECap\047 on\143\154ic\153\075'g\162id_\173\143om\155\141nd\175(th\151\163)\047\076 \074\057s\160\141n>"; $_il2q=_iO0("\173sta\164\165s}",($_il1l->Expand) ? "\105xpan\144": "\103\157lla\160\163e",$_il34); $_il2q=_iO0("\173com\155\141nd\175",($_il1l->Expand) ? "c\157\154lap\163\145": "exp\141\156d",$_il2q); return $_il2q; } function _iO33() { $_il34="<col\040\151d='\173\151d}\047\040n\141\155e='\173\151d}\047 sty\154e='\173\167id\164\150}'\040cla\163\163='\153\147r\103\157lu\155nEx\160\141nd\040\173r\145siz\141\142l\145\175 \173\166is\151\142l\145\175'/\076"; $_il2q=_iO0("\173\151\144}",$this->_iO23 ,$_il34); $_il2q=_iO0("\173\162esi\172\141ble\175",($this->AllowResizing) ? "kg\162\122esi\172\141ble": "",$_il2q); $_il2q=_iO0("\173\167\151dth\175",($this->Width != NULL) ? "wid\164\150:".$this->Width."\073": "",$_il2q); $_il2q=_iO0("\173vi\163\151ble\175",($this->Visible) ? "": "\153grHi\144\144en",$_il2q); return $_il2q; } function createinstance($_il30=NULL) { if ($_il30 === NULL) { $_il30=new gridexpanddetailcolumn(); } parent::createinstance($_il30); return $_il30; } } class _iO3p extends gridcolumn { function _il22($_il2f) { parent::_il22($_il2f); $this->AllowSorting =FALSE; $this->AllowResizing =FALSE; $this->AllowFiltering =FALSE; $this->AllowGrouping =FALSE; $this->ReadOnly =TRUE; $this->Aggregate =NULL; $this->AllowExporting =FALSE; } function render($_il1l) { return "\046#160;"; } function _iO33() { $_il34="<\143\157l i\144\075'\173\151d}'\040\156am\145\075'\173\151d}'\040styl\145\075'\173\167id\164\150}'\040cla\163\163='\153\147r\103\157l\165\155nG\162\157u\160\047/>"; $_il2q=_iO0("\173\151d}",$this->_iO23 ,$_il34); $_il2q=_iO0("\173w\151\144th}",($this->Width != NULL) ? "\167idth\072".$this->Width.";": "",$_il2q); return $_il2q; } function createinstance($_il30=NULL) { if ($_il30 === NULL) { $_il30=new _iO3p(); } parent::createinstance($_il30); return $_il30; } } class griddatetimecolumn extends gridcolumn { var $Picker; var $FormatString; function _il22($_il2f) { parent::_il22($_il2f); if ($this->FormatString === NULL) { $this->FormatString ="\155/d/Y \147\072i \101"; if ($this->Picker !== NULL) { switch (strtolower(get_class($this->Picker))) { case "koo\154\144ate\164\151mep\151\143ke\162": $this->FormatString =$this->Picker->DateFormat."\040".$this->Picker->TimeFormat; break; case "koo\154\144ate\160\151ck\145\162": $this->FormatString =$this->Picker->DateFormat; break; case "\153oo\154\164ime\160\151cke\162": $this->FormatString =$this->Picker->TimeFormat; break; } } } } function inlineeditrender($_il1l) { if (!$this->ReadOnly) { $_il3q=$_il1l->DataItem[$this->DataField ]; $_iO3q=strtotime($_il3q); if ($this->Picker !== NULL) { $_il3r="\155\057d/\131\040g:\151\040A"; switch (strtolower(get_class($this->Picker))) { case "koo\154\144ate\164\151mep\151\143ke\162": $_il3r=$this->Picker->DateFormat." ".$this->Picker->TimeFormat; break; case "koo\154\144ate\160\151cke\162": $_il3r=$this->Picker->DateFormat; break; case "\153oolt\151\155ep\151\143ker": $_il3r=$this->Picker->TimeFormat; break; } $this->Picker->id =$_il1l->_iO23."_".$this->_iO23."_i\156\160ut"; $this->Picker->Width ="10\060\045"; $this->Picker->ClientEvents =array(); $this->Picker->init(); $this->Picker->Value =($_il3q != "") ? date($_il3r,$_iO3q): ""; $_iO3g="<div\040\143las\163\075'k\147\162EC\141\160'>\173\160ick\145\162}\173\152s_\145\144it\137\157v\145\162fl\157\167}<\057div\076"; $_iO3r="<sc\162\151pt \164\171pe\075\047te\170\164/j\141\166asc\162\151p\164\047>d\157\143u\155\145nt\056\147e\164\105le\155\145nt\102yId\050'\173\151\144}'\051.cl\141\163s\116\141me\053=' \153\147r\105\156No\120o';\166\141r\040_ag\145\156t\075\156a\166\151g\141\164o\162\056u\163erA\147\145n\164\056t\157Low\145rCa\163e()\073if\050!((\137age\156t.i\156dex\117f(\047msi\145 6\047\051!\075-1\040||\040\137a\147en\164\056i\156de\170\117f\050'm\163\151e\0407'\051!=\0551)\046&_a\147en\164.i\156\144e\170Of\050'm\163ie \070'\051==\0551 \046&_\141ge\156t.\151nd\145xO\146\050'\157pe\162a'\051==\0551\051)\173\144o\143\165m\145nt\056g\145\164E\154em\145n\164\102y\111d\050'\173\151d\175_b\157un\144')\056p\141\162\145\156t\116o\144e.\160ar\145nt\116o\144e.\163ty\154e\056ov\145rf\154o\167='\166is\151b\154e'\073}\074/s\143r\151pt\076"; $_il3s=_iO0("\173\151d}",$this->Picker->id ,$_iO3r); $_il3h=_iO0("\173\160icke\162\175",$this->Picker->render(),$_iO3g); $_il3h=_iO0("\173\152s_\145\144it_\157\166er\146\154ow\175",$_il3s,$_il3h); return $_il3h; } else { $_iO3g="\074di\166\040cl\141\163s='\153\147rE\144\151tIn\040kgrE\103\141p'\076<in\160\165t \151\144='\173\151d}\047 cl\141\163s=\047kgr\105\156N\157\120o'\040nam\145\075'\173\151d}\047 ty\160\145='\164ext\047 va\154\165e=\047\173\166\141lu\145}' \163tyl\145\075'\167idt\150:10\060%' \057></\144iv>"; $_il3h=_iO0("\173id\175",$_il1l->_iO23."\137".$this->_iO23."_\151\156put",$_iO3g); $_il3h=_iO0("\173va\154\165e}",($_il3q != "") ? htmlentities(date($this->FormatString ,$_iO3q),ENT_QUOTES,$this->_il2d->_iO20->CharSet): "",$_il3h); return $_il3h; } } else { return $this->render($_il1l); } } function formeditrender($_il1l) { $_il3q=$_il1l->DataItem[$this->DataField ]; $_iO3q=strtotime($_il3q); if ($this->Picker !== NULL) { $_il3r="m\057\144/Y\040\147:i \101"; switch (strtolower(get_class($this->Picker))) { case "\153\157old\141\164eti\155\145pic\153\145r": $_il3r=$this->Picker->DateFormat."\040".$this->Picker->TimeFormat; break; case "\153\157ol\144\141tep\151\143ker": $_il3r=$this->Picker->DateFormat; break; case "\153\157olt\151\155epi\143\153er": $_il3r=$this->Picker->TimeFormat; break; } $this->Picker->id =$_il1l->_iO23."_".$this->_iO23."\137in\160\165t"; $this->Picker->Width ="90%"; $this->Picker->ClientEvents =array(); $this->Picker->init(); $this->Picker->Value =($_il3q != "") ? date($_il3r,$_iO3q): ""; $_iO3g="<d\151\166 cl\141\163s='\153\147rE\103\141p'>\173\160ic\153\145r}\173js_e\144\151t_\157\166e\162flo\167\175</\144\151v>"; $_iO3r="\074scri\160\164 ty\160\145='t\145\170t/\152\141va\163\143ri\160\164'>\144ocum\145\156t.\147\145t\105\154em\145\156tB\171Id(\047\173i\144\175')\056cla\163\163N\141\155e+\075' k\147\162En\116oPo\047;</\163\143r\151\160t>"; $_il3s=_iO0("\173\151d}",$this->Picker->id ,$_iO3r); $_il3h=_iO0("\173\160ic\153\145r}",$this->Picker->render(),$_iO3g); $_il3h=_iO0("\173js_\145\144it\137\157ver\146\154ow\175",$_il3s,$_il3h); return $_il3h; } else { $_iO3g="<d\151\166 cl\141\163s='\153\147rE\144\151tIn\040kgrE\103\141p'\076<in\160\165t \151\144='\173\151d}\047 cl\141\163s=\047kgr\105\156No\120o' \156\141me\075'\173\151\144}'\040typ\145\075'\164\145x\164\047 \166\141lu\145='\173\166al\165\145}\047\040s\164yle\075'w\151\144t\150\0729\060%' \057></\144iv\076"; $_il3h=_iO0("\173\151d}",$_il1l->_iO23."\137".$this->_iO23."\137inp\165\164",$_iO3g); $_il3h=_iO0("\173va\154\165e}",($_il3q != "") ? htmlentities(date($this->FormatString ,$_iO3q),ENT_QUOTES,$this->_il2d->_iO20->CharSet): "",$_il3h); return $_il3h; } } function renderfilter() { $_il3q=$this->Filter["\126alu\145"]; $_iO3q=strtotime($_il3q); if ($this->Picker !== NULL) { $_il3r="\155/d/\131\040g:\151\040A"; switch (strtolower(get_class($this->Picker))) { case "\153\157old\141\164eti\155\145pi\143\153er": $_il3r=$this->Picker->DateFormat." ".$this->Picker->TimeFormat; break; case "\153oold\141\164epi\143\153er": $_il3r=$this->Picker->DateFormat; break; case "kool\164\151mep\151\143ker": $_il3r=$this->Picker->TimeFormat; break; } $this->Picker->id =$this->_iO23."_fil\164\145r_in\160\165t"; $this->Picker->Width ="100%"; $this->Picker->ClientEvents["\117nS\145\154ect"]=$this->Picker->id."_onse\154\145ct"; $this->Picker->init(); $this->Picker->Value =($_il3q != "") ? date($_il3r,$_iO3q): ""; $_iO3g="<\144\151v c\154\141ss\075\047kg\162\105Ca\160\047>\173\160ick\145\162}\173\152s_\151\156it\175\074/\144\151v>"; $_iO3s="\074scrip\164\040ty\160\145='t\145\170t/\152\141vas\143\162ip\164\047>\146\165nc\164ion \173\151d}\137ons\145\154ec\164\050)\173\147r\151\144_f\151\154t\145\162_t\162igg\145\162(\042\173co\154id}\042,do\143\165m\145\156t.\147etE\154eme\156\164B\171\111d(\047\173\151d}'\051)};\166ar \137inp\165t =\040doc\165men\164.ge\164Ele\155en\164\102y\111\144(\047\173i\144}'\051\073_\151np\165\164.\143la\163\163N\141\155e\053='\153grF\151En\124r';\040va\162 _\141\147e\156t=\156\141v\151ga\164or\056us\145\162A\147en\164.t\157Lo\167er\103\141s\145()\073if\050!(\050_a\147en\164.i\156de\170Of\050'm\163ie\0406'\051!=\0551 \174|\040_a\147en\164.i\156de\170Of\050'm\163ie\0407\047)!\075-1\051&\046_a\147en\164.i\156d\145xO\146('\155si\145 8\047)\075=-\061 \046&_\141g\145nt\056i\156de\170Of\050'\157pe\162a\047)=\075-\061))\173d\157cu\155e\156t.\147e\164El\145m\145nt\102y\111d(\047\173\151d\175_b\157u\156d\047).\160a\162e\156tN\157d\145.p\141r\145n\164No\144e\056p\141re\156t\116o\144e.\163t\171l\145.o\166e\162f\154o\167='\166i\163i\142\154e\047;\175</\163c\162i\160t\076"; $_il3t=_iO0("\173i\144\175",$this->Picker->id ,$_iO3s); $_il3t=_iO0("\173\143olid\175",$this->_iO23 ,$_il3t); $_il3h=_iO0("\173pi\143\153er}",$this->Picker->render(),$_iO3g); $_il3h=_iO0("\173\152s_i\156\151t}",$_il3t,$_il3h); return $_il3h; } else { $_iO39="\074div \143\154ass\075\047kg\162\105di\164\111n'\076\074i\156\160ut\040clas\163\075'\153\147rF\151\105n\124\162' \164\171pe\075'te\170t' \151\144='\173\151d\175\047 \156\141me\075'\173\151d}'\040val\165\145='\173tex\164\175'\040onb\154\165r\075'gr\151\144_\146ilt\145r_t\162\151g\147\145r\050\042\173\143ol\151d}\042\054t\150is)\047 s\164\171l\145='w\151dth\07210\060%;'\040/>\074/d\151\166>"; $_il3a=_iO0("\173\151d}",$this->_iO23."_fi\154\164er_\151\156pu\164",$_iO39); $_il3a=_iO0("\173col\151\144}",$this->_iO23 ,$_il3a); $_il3a=_iO0("\173\164\145xt}",($_il3q != "") ? htmlentities(date($this->FormatString ,$_iO3q),ENT_QUOTES,$this->_il2d->_iO20->CharSet): "",$_il3a); return $_il3a; } } function render($_il1l) { $_iO3q=strtotime($_il1l->DataItem[$this->DataField ]); return date($this->FormatString ,$_iO3q); } function geteditvalue($_il1l) { $_iO3t=_iO12($_POST[$_il1l->_iO23."_".$this->_iO23."_inp\165\164"]); $_iO3q=strtotime($_iO3t); return date("Y-\155\055d \110\072i:s",$_iO3q); } function _iO2z() { $_iO3t=_iO12($_POST[$this->_iO23."\137fil\164\145r_i\156\160ut"]); $_iO3q=strtotime($_iO3t); return date("Y-m-\144\040H:i\072\163",$_iO3q); } function createinstance($_il30=NULL) { if ($_il30 === NULL) { $_il30=new griddatetimecolumn(); } parent::createinstance($_il30); $_il30->Picker =$this->Picker; $_il30->FormatString =$this->FormatString; return $_il30; } } class _il3u implements _iO1s { var $_iO23; var $_il2d; var $_iO2c; var $TableView; var $PageIndex=0; var $_iO3u; var $_il3v; var $PageSize; var $ShowPageInfo=TRUE; var $PageInfoTemplate; var $ShowPageSize=TRUE; var $PageSizeText; var $PageSizeOptions="5,10\054\0620,\064\060"; function _il22($_il2f) { $this->_il2d =$_il2f; $this->TableView =$_il2f; $this->_iO2c =$_il2f->_iO2c; if ($this->PageSize === NULL) $this->PageSize =$this->_il2d->PageSize; if ($this->PageInfoTemplate === NULL) $this->PageInfoTemplate =$_il2f->_iO20->Localization->_iO28["P\141geInf\157\124emp\154\141te"]; if ($this->PageSizeText === NULL) $this->PageSizeText =$_il2f->_iO20->Localization->_iO28["\120age\123\151zeT\145\170t"]; } function _il1t() { if ( isset ($this->_iO2c->_iO1p[$this->_iO23 ])) { $_iO2f=$this->_iO2c->_iO1p[$this->_iO23 ]; $this->PageIndex =$_iO2f["\120age\111\156dex"]; $this->_iO3u =$_iO2f["\137To\164\141lPa\147\145s"]; $this->_il3v =$_iO2f["\137Total\122\157ws"]; $this->PageSize =$_iO2f["Page\123\151ze"]; } } function _iO1t() { $this->_iO2c->_iO1p[$this->_iO23 ]=array("\120ageI\156\144ex" => $this->PageIndex ,"_\124\157tal\120\141ges" => $this->_iO3u ,"Pa\147\145Siz\145" => $this->PageSize ,"_\124\157tal\122\157ws" => $this->_il3v); } function _il2l($_ilm) { if ( isset ($_ilm->_il28[$this->_iO23 ])) { $_iO2l=$_ilm->_il28[$this->_iO23 ]; switch ($_iO2l["\103\157mma\156\144"]) { case "G\157\120age": if ($this->_il2d->_iO20->EventHandler->onbeforepageindexchange($this,array("\116ewPa\147\145Ind\145\170" => $_iO2l["\101\162gs"]["\120ageI\156\144ex"])) == TRUE) { $this->PageIndex =$_iO2l["A\162\147s"]["Page\111\156dex"]; $this->_il2d->_iO24 =TRUE; $this->_il2d->_iO20->EventHandler->onpageindexchange($this,array()); } break; case "\103han\147\145Pag\145\123ize": if ($this->_il2d->_iO20->EventHandler->onbeforepagesizechange($this,array("N\145\167Pag\145\123ize" => $_iO2l["Arg\163"]["PageS\151\172e"])) == TRUE) { $this->PageSize =$_iO2l["Args"]["\120ag\145\123ize"]; $this->_il2d->_iO24 =TRUE; $this->_il2d->_iO20->EventHandler->onpagesizechange($this,array()); } break; } } $this->_iO3u =ceil($this->_il3v /$this->PageSize); if ($this->PageIndex >=$this->_iO3u) $this->PageIndex =$this->_iO3u -1; if ($this->PageIndex <0) $this->PageIndex =0; } function _iO25() { return ""; } function _iO3v() { $_il3w="<di\166\040cl\141\163s='\153\147rI\156\146o'\076\173te\170\164}<\057div>"; $_il3=_iO0("\173\120\141geIn\144\145x}",($this->_iO3u >0) ? ($this->PageIndex +1): 0,$this->PageInfoTemplate); $_il3=_iO0("\173Tota\154\120age\163\175",$this->_iO3u ,$_il3); $_iO3w=($this->_iO3u >0) ? ($this->PageIndex *$this->PageSize +1): 0; $_il3x=($this->PageIndex +1)*$this->PageSize; if ($_il3x>$this->_il3v) $_il3x=$this->_il3v; $_il3=_iO0("\173Fir\163\164Ind\145\170In\120\141ge\175",$_iO3w,$_il3); $_il3=_iO0("\173La\163\164Ind\145\170InP\141\147e}",$_il3x,$_il3); $_il3=_iO0("\173T\157\164alR\157\167s}",$this->_il3v ,$_il3); $_iO3x=_iO0("\173\164ext}",$_il3,$_il3w); return $_iO3x; } function _il3y() { $_iO3y="\074div \143\154ass\075\047kg\162\120ag\145\123iz\145\047>\173\164ext\175\173s\145\154ec\164\175</\144\151v\076"; $_iO3c="<se\154\145ct \157\156cha\156\147e=\047\147ri\144\137pa\147\145si\172e_se\154ect_\157\156ch\141nge\050\164hi\163)'>\173\157pt\151ons\175\074/\163\145le\143t>"; $_il3d="<o\160\164ion \166\141lu\145\075'\173\166alue\175\047 \173\163el\145\143te\144\175>\173\166alu\145}</\157\160ti\157\156>"; $_il3e=""; $_il3z=explode(',',$this->PageSizeOptions); for ($_iO9=0; $_iO9<sizeof($_il3z); $_iO9 ++) { $_iO3e=_iO0("\173\166alue\175",$_il3z[$_iO9],$_il3d); $_iO3e=_iO0("\173sel\145\143ted\175",($this->PageSize == (int) $_il3z[$_iO9]) ? "sele\143\164ed": "",$_iO3e); $_il3e.=$_iO3e; } $_il3f=_iO0("\173o\160\164ion\163\175",$_il3e,$_iO3c); $_iO3z=_iO0("\173t\145\170t}",$this->PageSizeText ,$_iO3y); $_iO3z=_iO0("\173\163elect\175",$_il3f,$_iO3z); return $_iO3z; } function _il2j( &$_il30) { $_il30->PageIndex =$this->PageIndex; $_il30->ShowPageInfo =$this->ShowPageInfo; $_il30->PageInfoTemplate =$this->PageInfoTemplate; $_il30->ShowPageSize =$this->ShowPageSize; $_il30->PageSizeText =$this->PageSizeText; $_il30->PageSizeOptions =$this->PageSizeOptions; } } class gridprevnextpager extends _il3u { var $PrevPageText; var $PrevPageToolTip; var $NextPageText; var $NextPageToolTip; function _il22($_il2f) { parent::_il22($_il2f); if ($this->PrevPageText === NULL) $this->PrevPageText =$_il2f->_iO20->Localization->_il28["Prev"]; if ($this->PrevPageToolTip === NULL) $this->PrevPageToolTip =$_il2f->_iO20->Localization->_iO28["\120re\166\120age\124\157olT\151\160"]; if ($this->NextPageText === NULL) $this->NextPageText =$_il2f->_iO20->Localization->_il28["\116ext"]; if ($this->NextPageToolTip === NULL) $this->NextPageToolTip =$_il2f->_iO20->Localization->_iO28["\116extP\141\147eT\157\157lTi\160"]; } function _iO25() { $_il40="<\144\151v cl\141\163s='\153\147rP\141\147er \153\147rN\145\170t\120\162ev\116\145xt\120\141g\145\162'>\173\160ag\145\163i\172\145}\173\156av\175\173in\146o}<\144\151v \163tyl\145\075'\143\154ea\162:bo\164\150'\076</d\151\166>\074\057d\151\166>"; $_iO40="\074d\151\166 cl\141\163s='\153\147rN\141\166'>\173\160rev\175\040\173\156ext\175\074/d\151v>"; $_il3n="\074input\040\164yp\145\075'b\165\164ton\047\040o\156\143li\143\153='\173\157nc\154\151ck\175' ti\164le=\047\173ti\164\154e\175\047/\076"; $_il41="\074a \150\162ef=\047javas\143\162ip\164\072vo\151\144 0\047\040o\156\143li\143\153='\173\157n\143\154ic\153\175' \164\151t\154\145='\173tit\154\145}'\076\173t\145\170t}\074/a>"; $_iO41="<\163\160an \143\154ass\075\040'\173\143las\163\175'>\173\142ut\164\157n}\074/spa\156\076"; $_il42=_iO0("\173\157ncli\143\153}",($this->PageIndex >0) ? "gri\144\137gop\141\147e(t\150\151s,".($this->PageIndex -1)."\051": "",$_il3n); $_il42=_iO0("\173\164it\154\145}",$this->PrevPageToolTip ,$_il42); $_iO42=$this->PrevPageText; if ($this->PageIndex >0 && $this->PrevPageText !== NULL) { $_iO42=_iO0("\173\157ncli\143\153}","\147rid\137\147opa\147\145(th\151\163,".($this->PageIndex -1).")",$_il41); $_iO42=_iO0("\173te\170\164}",$this->PrevPageText ,$_iO42); $_iO42=_iO0("\173\164\151tl\145\175",$this->PrevPageToolTip ,$_iO42); } $_il43=_iO0("\173but\164\157n}",$_il42.$_iO42,$_iO41); $_il43=_iO0("\173\143lass\175","kgrP\162\145v",$_il43); $_iO43=_iO0("\173onc\154\151ck\175",($this->PageIndex <$this->_iO3u -1) ? "\147rid\137\147opa\147\145(th\151\163,".($this->PageIndex +1)."\051": "",$_il3n); $_iO43=_iO0("\173tit\154\145}",$this->NextPageToolTip ,$_iO43); $_il44=$this->NextPageText; if (($this->PageIndex <$this->_iO3u -1) && $this->NextPageText !== NULL) { $_il44=_iO0("\173onc\154\151ck\175","grid_\147\157pag\145\050th\151\163,".($this->PageIndex +1)."\051",$_il41); $_il44=_iO0("\173text\175",$this->NextPageText ,$_il44); $_il44=_iO0("\173titl\145\175",$this->NextPageToolTip ,$_il44); } $_iO44=_iO0("\173but\164\157n}",$_il44.$_iO43,$_iO41); $_iO44=_iO0("\173\143lass}","kgrN\145\170t",$_iO44); $_il45=_iO0("\173\160rev\175",$_il43,$_iO40); $_il45=_iO0("\173\156ext}",$_iO44,$_il45); $_iO3z=($this->ShowPageSize) ? $this->_il3y(): ""; $_iO3x=($this->ShowPageInfo) ? $this->_iO3v(): ""; $_iO45=_iO0("\173nav}",$_il45,$_il40); $_iO45=_iO0("\173in\146\157}",$_iO3x,$_iO45); $_iO45=_iO0("\173page\163\151ze}",$_iO3z,$_iO45); return $_iO45; } function _il2j() { $_il30=new gridprevnextpager(); parent::_il2j($_il30); $_il30->NextPageText =$this->NextPageText; $_il30->NextPageToolTip =$this->NextPageToolTip; $_il30->PrevPageText =$this->PrevPageText; $_il30->PrevPageToolTip =$this->PrevPageToolTip; return $_il30; } } class gridnumericpager extends _il3u { var $Range=012; function _iO25() { $_il40="<di\166\040cl\141\163s='\153\147rP\141\147er\040\153gr\116\165me\162icP\141\147er\047\076\173\160age\163ize\175\173na\166\175\173\151nf\157\175<d\151\166 \163\164yl\145='c\154\145a\162\072b\157\164h'\076</d\151v><\057div\076"; $_iO40="\074div c\154\141ss=\047\153gr\116\141v'\076\173nu\155\142er\163\175</\144\151v>"; $_il46="<\141\040cla\163\163='k\147\162Nu\155\040\173\163\145le\143\164ed\175\047 \173\150re\146\175 \173\157nc\154\151ck\175\076<s\160an>\173\156u\155\142er\175\074/\163\160an\076</a\076 "; $_iO46=floor($this->PageIndex /$this->Range)*$this->Range; $_il47=""; if ($_iO46>0) { $_iO3h=_iO0("\173href\175","href\075'java\163\143rip\164\072v\157\151d 0\047",$_il46); $_iO3h=_iO0("\173oncl\151\143k}","\157ncl\151\143k='g\162\151d_g\157\160ag\145\050th\151\163,".($_iO46-1)."\051'",$_iO3h); $_iO3h=_iO0("\173\156umb\145\162}","\056\056.",$_iO3h); $_il47.=$_iO3h; } for ($_iO9=$_iO46; $_iO9<$_iO46+$this->Range && $_iO9<$this->_iO3u; $_iO9 ++) { $_iO3h=_iO0("\173\156\165mbe\162\175",($_iO9+1),$_il46); if ($_iO9 == $this->PageIndex) { $_iO3h=_iO0("\173se\154\145cte\144\175","kgrNu\155\123ele\143\164ed",$_iO3h); $_iO3h=_iO0("\173\150\162ef}","",$_iO3h); $_iO3h=_iO0("\173onc\154\151ck}","",$_iO3h); } else { $_iO3h=_iO0("\173\163elec\164\145d}","",$_iO3h); $_iO3h=_iO0("\173\150\162ef\175","\150\162ef='\152\141va\163\143rip\164\072vo\151\144 0\047",$_iO3h); $_iO3h=_iO0("\173oncl\151\143k}","\157ncl\151\143k='\147\162id_\147\157pa\147\145(t\150\151s,".$_iO9."\051'",$_iO3h); } $_il47.=$_iO3h; } if ($_iO46+$this->Range <$this->_iO3u) { $_iO3h=_iO0("\173href}","\150ref\075\047ja\166\141scr\151\160t:\166\157id \060'",$_il46); $_iO3h=_iO0("\173\157ncli\143\153}","\157ncli\143\153='g\162\151d_g\157\160ag\145\050th\151\163,".($_iO46+$this->Range).")'",$_iO3h); $_iO3h=_iO0("\173\156\165mbe\162\175","\056..",$_iO3h); $_il47.=$_iO3h; } $_il45=_iO0("\173\156\165mber\163\175",$_il47,$_iO40); $_iO3z=($this->ShowPageSize) ? $this->_il3y(): ""; $_iO3x=($this->ShowPageInfo) ? $this->_iO3v(): ""; $_iO45=_iO0("\173nav\175",$_il45,$_il40); $_iO45=_iO0("\173\151nfo\175",$_iO3x,$_iO45); $_iO45=_iO0("\173page\163\151ze}",$_iO3z,$_iO45); return $_iO45; } function _il2j() { $_il30=new gridnumericpager(); parent::_il2j($_il30); $_il30->Range =$this->Range; return $_il30; } } class gridprevnextandnumericpager extends _il3u { var $Range=012; var $NextPageText; var $PrevPageText; var $NextPageToolTip; var $PrevPageToolTip; function _il22($_il2f) { parent::_il22($_il2f); if ($this->PrevPageText === NULL) $this->PrevPageText =$_il2f->_iO20->Localization->_il28["Prev"]; if ($this->PrevPageToolTip === NULL) $this->PrevPageToolTip =$_il2f->_iO20->Localization->_iO28["P\162evPag\145\124ool\124\151p"]; if ($this->NextPageText === NULL) $this->NextPageText =$_il2f->_iO20->Localization->_il28["\116ext"]; if ($this->NextPageToolTip === NULL) $this->NextPageToolTip =$_il2f->_iO20->Localization->_iO28["Next\120\141geT\157\157lT\151\160"]; } function _iO25() { $_il40="\074d\151\166 cl\141\163s='\153\147rP\141\147er \153\147rN\145\170t\120\162ev\101\156dN\165\155er\151cPa\147\145r'\076\173p\141\147es\151ze}\173\156av\175\173i\156\146o}\074div\040sty\154\145='\143lea\162\072b\157\164h\047\076<\057div\076</d\151v>"; $_iO40="\074div \143\154ass\075\047k\147\162Na\166\047>\173\160rev\175\040\173\156umb\145rs} \173\156e\170\164}<\057div\076"; $_il46="<a \143\154ass=\047kgrNu\155\040\173\163elec\164\145d}\047\040\173\150ref\175\040\173\157ncl\151\143k}\076<spa\156\076\173\156um\142\145r}\074/sp\141\156><\057a> "; $_il3n="\074input\040\164yp\145\075'b\165\164to\156\047 o\156\143li\143\153='\173\157nc\154\151c\153\175' \164\151t\154\145='\173\164it\154e}'\057>"; $_il41="\074a h\162\145f='\152\141vas\143\162ip\164\072vo\151\144 0\047\040o\156\143li\143\153='\173\157nc\154ick\175\047 t\151\164l\145\075'\173\164it\154e}'>\173tex\164\175</\141>"; $_iO41="\074sp\141\156 cl\141\163s=\040\047\173\143\154as\163\175'>\173\142u\164\164on\175\074/s\160\141n\076"; $_iO46=floor($this->PageIndex /$this->Range)*$this->Range; $_il47=""; if ($_iO46>0) { $_iO3h=_iO0("\173\150ref}","href=\047\152av\141\163cri\160\164:v\157\151d \060\047",$_il46); $_iO3h=_iO0("\173\157nc\154\151ck}","\157nc\154\151ck=\047\147rid\137\147op\141\147e(t\150\151s,".($_iO46-1).")'",$_iO3h); $_iO3h=_iO0("\173numb\145\162}","\056..",$_iO3h); $_il47.=$_iO3h; } for ($_iO9=$_iO46; $_iO9<$_iO46+$this->Range && $_iO9<$this->_iO3u; $_iO9 ++) { $_iO3h=_iO0("\173\156umb\145\162}",($_iO9+1),$_il46); if ($_iO9 == $this->PageIndex) { $_iO3h=_iO0("\173s\145\154ect\145\144}","kgr\116\165mSe\154\145cte\144",$_iO3h); $_iO3h=_iO0("\173\150\162ef\175","",$_iO3h); $_iO3h=_iO0("\173\157\156cl\151\143k}","",$_iO3h); } else { $_iO3h=_iO0("\173se\154\145cte\144\175","",$_iO3h); $_iO3h=_iO0("\173href}","href\075\047ja\166\141scr\151\160t:\166\157id \060'",$_iO3h); $_iO3h=_iO0("\173o\156\143lic\153\175","\157\156cli\143\153='g\162\151d_g\157\160ag\145\050th\151\163,".$_iO9.")'",$_iO3h); } $_il47.=$_iO3h; } if ($_iO46+$this->Range <$this->_iO3u) { $_iO3h=_iO0("\173\150ref\175","\150\162ef=\047\152av\141\163cri\160\164:v\157\151d 0\047",$_il46); $_iO3h=_iO0("\173\157\156cli\143\153}","\157nc\154\151ck=\047\147ri\144\137go\160\141ge(\164\150is\054".($_iO46+$this->Range).")'",$_iO3h); $_iO3h=_iO0("\173\156umber\175",".\056.",$_iO3h); $_il47.=$_iO3h; } $_il42=_iO0("\173oncl\151\143k}",($this->PageIndex >0) ? "\147rid\137\147opa\147\145(t\150\151s,".($this->PageIndex -1)."\051": "",$_il3n); $_il42=_iO0("\173\164itle\175",$this->PrevPageToolTip ,$_il42); $_iO42=$this->PrevPageText; if ($this->PageIndex >0 && $this->PrevPageText !== NULL) { $_iO42=_iO0("\173onc\154\151ck}","\147ri\144\137gop\141\147e(t\150\151s,".($this->PageIndex -1).")",$_il41); $_iO42=_iO0("\173te\170\164}",$this->PrevPageText ,$_iO42); $_iO42=_iO0("\173titl\145\175",$this->PrevPageToolTip ,$_iO42); } $_il43=_iO0("\173\142utton\175",$_il42.$_iO42,$_iO41); $_il43=_iO0("\173\143las\163\175","\153\147rP\162\145v",$_il43); $_iO43=_iO0("\173\157\156clic\153\175",($this->PageIndex <$this->_iO3u -1) ? "\147\162id_g\157\160ag\145\050th\151\163,".($this->PageIndex +1)."\051": "",$_il3n); $_iO43=_iO0("\173\164\151tle\175",$this->NextPageToolTip ,$_iO43); $_il44=$this->NextPageText; if (($this->PageIndex <$this->_iO3u -1) && $this->NextPageText !== NULL) { $_il44=_iO0("\173onc\154\151ck}","grid_\147\157pag\145\050th\151\163,".($this->PageIndex +1)."\051",$_il41); $_il44=_iO0("\173\164ext\175",$this->NextPageText ,$_il44); $_il44=_iO0("\173tit\154\145}",$this->NextPageToolTip ,$_il44); } $_iO44=_iO0("\173but\164\157n}",$_il44.$_iO43,$_iO41); $_iO44=_iO0("\173cla\163\163}","\153grN\145\170t",$_iO44); $_il45=_iO0("\173n\165\155ber\163\175",$_il47,$_iO40); $_il45=_iO0("\173prev}",$_il43,$_il45); $_il45=_iO0("\173\156ext}",$_iO44,$_il45); $_iO3z=($this->ShowPageSize) ? $this->_il3y(): ""; $_iO3x=($this->ShowPageInfo) ? $this->_iO3v(): ""; $_iO45=_iO0("\173\156\141v}",$_il45,$_il40); $_iO45=_iO0("\173\151nfo}",$_iO3x,$_iO45); $_iO45=_iO0("\173\160agesi\172\145}",$_iO3z,$_iO45); return $_iO45; } function _il2j() { $_il30=new gridprevnextandnumericpager(); parent::_il2j($_il30); $_il30->Range =$this->Range; $_il30->NextPageText =$this->NextPageText; $_il30->PrevPageText =$this->PrevPageText; $_il30->NextPageToolTip =$this->NextPageToolTip; $_il30->PrevPageToolTip =$this->PrevPageToolTip; return $_il30; } } class gridmanualpager extends _il3u { var $ManualPagerTemplate; var $ButtonType="\102ut\164\157n"; var $GoPageButtonText; var $TextBoxWidth="2\065\160x"; function _il22($_il2f) { parent::_il22($_il2f); if ($this->ManualPagerTemplate === NULL) $this->ManualPagerTemplate =$_il2f->_iO20->Localization->_iO28["M\141\156ual\120\141ge\162\124em\160\154ate"]; if ($this->GoPageButtonText === NULL) $this->GoPageButtonText =$_il2f->_iO20->Localization->_il28["Go"]; } function _il2l($_ilm) { parent::_il2l($_ilm); if ( isset ($_ilm->_il28[$this->_iO23 ])) { $_iO2l=$_ilm->_il28[$this->_iO23 ]; $this->PageIndex =( (int) $_POST[$this->_iO23."_\151\156put"])-1; if ($this->PageIndex >=$this->_iO3u) $this->PageIndex =$this->_iO3u -1; if ($this->PageIndex <0) $this->PageIndex =0; $this->_il2d->_iO24 =TRUE; } } function _iO25() { $_il40="<d\151\166 c\154\141ss=\047\153gr\120\141ge\162\040kg\162\115an\165\141l\120\141ge\162\047>\173\160ag\145\163iz\145\175\173\156av\175\173in\146\157}\074\144i\166\040s\164\171le\075'cl\145\141r\072\142o\164\150'\076\074/\144\151v\076</d\151\166>"; $_iO40="\074d\151\166 cl\141\163s='\153\147rN\141\166'>\173\155ain\175\074/\144\151v>"; $_iO47="\074inpu\164\040id\075\047\173\151\144}'\040\156am\145\075'\173\151d}\047\040t\171\160e=\047text\142ox' \163tyle\075'wi\144\164h:\173wid\164\150};\047 va\154\165e=\047\173t\145xt}\047\057>"; $_il48=$this->ManualPagerTemplate; $_iO48=""; switch (strtolower($this->ButtonType)) { case "\154ink": $_iO48="<a \143\154ass\075'kgrG\157\102ut\164\157n'\040\150re\146\075'j\141vasc\162ipt:\166\157id\0400' \157\156cl\151\143k=\047gri\144\137g\157\160ag\145(thi\163,0)\047\076\173\164ex\164\175</\141>"; break; case "ima\147\145": $_iO48="<inp\165\164 cl\141\163s=\047\153gr\107\157Bu\164\164on \153grGo\111mag\145\047 t\171\160e=\047but\164\157n'\040onc\154\151ck\075'gr\151d_g\157\160ag\145\050t\150\151s\054\060)\047 />"; break; case "\142\165tto\156": default : $_iO48="<inpu\164\040cl\141\163s='\153\147rG\157\102ut\164\157n'\040\164y\160\145='\142\165tt\157\156'\040\157nc\154ick=\047gri\144\137g\157\160a\147\145(t\150\151s\054\060)\047\040v\141\154u\145\075'\173\164e\170\164}'\040/>"; break; } $_il49=_iO0("\173i\144\175",$this->_iO23."_in\160\165t",$_iO47); $_il49=_iO0("\173widt\150\175",$this->TextBoxWidth ,$_il49); $_il49=_iO0("\173\164\145xt}",$this->PageIndex +1,$_il49); $_iO49=_iO0("\173\164\145xt}",$this->GoPageButtonText ,$_iO48); $_ilg=_iO0("\173Text\102\157x}",$_il49,$_il48); $_ilg=_iO0("\173\107oPage\102\165tt\157\156}",$_iO49,$_ilg); $_ilg=_iO0("\173\124\157tal\120\141ge\175",$this->_iO3u ,$_ilg); $_il45=_iO0("\173\155ai\156\175",$_ilg,$_iO40); $_iO3z=($this->ShowPageSize) ? $this->_il3y(): ""; $_iO3x=($this->ShowPageInfo) ? $this->_iO3v(): ""; $_iO45=_iO0("\173\156av}",$_il45,$_il40); $_iO45=_iO0("\173\151nfo\175",$_iO3x,$_iO45); $_iO45=_iO0("\173page\163\151ze}",$_iO3z,$_iO45); return $_iO45; } function _il2j() { $_il30=new gridmanualpager(); parent::_il2j($_il30); $_il30->ManualPagerTemplate =$this->ManualPagerTemplate; $_il30->ButtonType =$this->ButtonType; $_il30->GoPageButtonText =$this->GoPageButtonText; $_il30->TextBoxWidth =$this->TextBoxWidth; return $_il30; } } class gridcustompager extends _il3u { function render($_il4a) { return "\103ust\157\155Pag\145\162"; } function _iO25() { $_il40="\074div \143\154ass\075\047k\147\162Pag\145\162 k\147\162Cu\163\164o\155\120ag\145\162'>\173\160ag\145\163i\172\145}\173\156av}\173inf\157\175<d\151v s\164\171le\075'cl\145\141r\072\142o\164\150'>\074/di\166></\144\151v\076"; $_iO40="\074div \143\154ass\075\047kg\162\116av\047\076\173\155ain}\074/div\076"; $_iO45=$_il40; $_il4a=array("PageI\156\144ex" => $this->PageIndex ,"\124otalP\141\147es" => $this->_iO3u); $_il45=_iO0("\173\155ain}",$this->render($_il4a),$_iO40); $_iO45=_iO0("\173\156av}",$_il45,$_iO45); $_iO3x=($this->ShowPageInfo) ? $this->_iO3v(): ""; $_iO45=_iO0("\173i\156\146o}",$_iO3x,$_iO45); $_iO3z=($this->ShowPageSize) ? $this->_il3y(): ""; $_iO3x=($this->ShowPageInfo) ? $this->_iO3v(): ""; $_iO45=_iO0("\173\151nfo}",$_iO3x,$_iO45); $_iO45=_iO0("\173\160\141ges\151\172e}",$_iO3z,$_iO45); return $_iO45; } function _il2j($_il30) { if ($_il30 === NULL) { $_il30= eval ("ne\167\040".get_class($this)."()"); } parent::_il2j($_il30); return $_il30; } } interface gridtemplate { function render($_iO2j); function getdata($_iO2j); } class _iO4a { var $Mode="Inli\156\145"; var $HeaderCaption; var $ColumnNumber=1; var $CancelButtonText; var $ConfirmButtonText; var $CancelButtonToolTip; var $ConfirmButtonToolTip; var $Template; function _il2j( &$_il30) { $_il30->Mode =$this->Mode; $_il30->Template =$this->Template; $_il30->HeaderCaption =$this->HeaderCaption; $_il30->ColumnNumber =$this->ColumnNumber; $_il30->CancelButtonText =$this->CancelButtonText; $_il30->ConfirmButtonText =$this->ConfirmButtonText; $_il30->CancelButtonToolTip =$this->CancelButtonToolTip; $_il30->ConfirmButtonToolTip =$this->ConfirmButtonToolTip; } } class _il4b extends _iO4a { var $_iO23; } class _iO4b extends _iO4a { function _il2j() { $_il30=new _il4c(); parent::_il2j($_il30); return $_il30; } } class _il4c extends _il4b { var $_iO2j; var $_iO4c; function _il22($_il2f) { if ($this->CancelButtonText === NULL) $this->CancelButtonText =$_il2f->_iO20->Localization->_il28["\103\141nce\154"]; if ($this->ConfirmButtonText === NULL) $this->ConfirmButtonText =$_il2f->_iO20->Localization->_il28["\103onfir\155"]; if ($this->CancelButtonToolTip === NULL) $this->CancelButtonToolTip =$_il2f->_iO20->Localization->_iO28["\105di\164\106orm\137\103anc\145lBut\164\157nT\157\157lT\151\160"]; if ($this->ConfirmButtonToolTip === NULL) $this->ConfirmButtonToolTip =$_il2f->_iO20->Localization->_iO28["E\144\151tFor\155\137Co\156\146ir\155\102utt\157\156To\157\154Ti\160"]; } function _il2m() { $_il2g=$this->_iO2j->DataItem; $_il4d=FALSE; if (strtolower($this->Mode) == "\164\145mpl\141\164e") { $_iO4d=$this->Template->getdata($this->_iO2j); foreach ($_iO4d as $_il1r => $_iO1r) { $_il2g[$_il1r]=$_iO1r; } } else { foreach ($this->_iO2j->_il2d->_iO2p as $_il2q) { if (!$_il2q->ReadOnly) { $_il2g[$_il2q->DataField ]=$_il2q->geteditvalue($this->_iO2j); foreach ($_il2q->_iO2x as $_il2z) { if ($_il2z->_il2w($_il2q,$_il2g[$_il2q->DataField ]) !== NULL) { $_il4d=TRUE; } } } } } $this->_iO4c =$_il2g; if (!$_il4d) { if ($this->_iO2j->_il2d->_iO20->EventHandler->onbeforerowconfirmedit($this->_iO2j ,array("\116ewDa\164\141Ite\155" => $_il2g)) == TRUE) { $_il4e=$this->_iO2j->_il2d->DataSource->update($_il2g); $this->_iO2j->_il2d->_iO24 =TRUE; $this->_iO2j->EditMode =FALSE; $this->_iO2j->_il2d->_iO20->EventHandler->onrowconfirmedit($this->_iO2j ,array("\116\145wDa\164\141Ite\155" => $_il2g,"Succ\145\163sfu\154" => $_il4e)); } } } function _iO25() { $_iO2o=""; $_iO4e=new gridrow(); $_iO4e->_iO23 =$this->_iO2j->_iO23; $_iO4e->_il22($this->_iO2j->_il2d); $_iO4e->DataItem =($this->_iO4c !== NULL) ? $this->_iO4c : $this->_iO2j->DataItem; switch (strtolower($this->Mode)) { case "\164empl\141\164e": $_il2n="\074t\162\040id=\047\173row\151\144}'\040clas\163\075'k\147\162R\157\167 \173\141lt}\040\173s\145\154ec\164\145d}\040kgr\122\157w\105\144i\164\047>\173\164ds\175\074/\164\162>"; $_il4f="\074tr><t\144\040co\154\163pan\075'\173c\157\154sp\141\156}'\076<div\040id=\047\173ro\167\151d}\137edit\146orm'\040cla\163\163='\153grE\144\151tF\157\162m\047\076\173\143ont\145nt}\074\057d\151\166>\074\057t\144\076<\057tr>"; $_il2p=""; for ($_iO9=0; $_iO9<sizeof($this->_iO2j->_il2d->_iO2p); $_iO9 ++) { $_il2q=$this->_iO2j->_il2d->_iO2p[$_iO9]; $_iO2q=$_il2q->_iO25($this->_iO2j); $_il2p.=$_iO2q; } $_iO2o=_iO0("\173tds}",$_il2p,$_il2n); $_iO4f=_iO0("\173cont\145\156t}",($this->Template === NULL) ? "<b\076Notic\145\074/b>\072\040N\157\040te\155\160la\164\145 f\157\165nd\041": $this->Template->render($this->_iO2j),$_il4f); $_iO4f=_iO0("\173\143olspa\156\175",sizeof($this->_iO2j->_il2d->_iO2p),$_iO4f); $_iO2o.=$_iO4f; break; case "form": $_il2n="\074tr id\075\047\173\162owid\175\047 c\154\141ss\075\047k\147\162Ro\167 \173\141\154t}\040\173s\145\154ec\164ed} \153\147r\122\157w\105\144it\047>\173\164ds}\074\057t\162\076"; $_il4f="\074tr><\164\144 c\157\154spa\156\075'\173\143ols\160\141n}\047><d\151\166 i\144\075'\173\162ow\151\144}_\145ditf\157rm'\040\143l\141\163s=\047kgr\105\144i\164\106or\155'>\173\150ead\145r}\173\166al\151\144a\164\157rs\175\173b\151gta\142le}\173\146o\157\164e\162}</\144iv>\074/t\144\076<\057tr>"; $_il4g="\074di\166\040cl\141\163s='\153\147rF\157\162mHe\141\144er\047\076\173\164ext\175\074/\144\151v>"; $_iO4g="<div \143\154ass\075'kgrF\157\162mF\157\157ter\047>\173\142\165tt\157\156s}\074\057d\151\166>"; $_il4h="<ul \143\154ass\075\047kg\162\126al\151\144ato\162\047>\173\151te\155\163}<\057\165l>"; $_iO4h="<l\151\076<la\142\145l \146\157r=\047\173id\175\047>\173\150ead\145\162}:\040\173e\162\162or\175</l\141\142el\076\074/\154\151>"; $_il4i="\074table\040\163ty\154\145='t\141\142le\055\154ay\157\165t:\146ixed\073wid\164\150:1\060\060%\073'><\164\162>\173\142igt\141ble\137\164d\163\175</\164\162>\074\057t\141\142l\145\076"; $_iO4i="\074td s\164\171le\075\047ve\162\164ic\141\154-a\154\151gn\072\040t\157\160;w\151\144t\150\072\173\167idt\150\175%'\076\173t\141ble\173\156}}\074/td\076"; $_il4j="<ta\142\154e s\164\171le=\047\150ei\147\150t:\173\150eig\150\164}\160\170;w\151\144th\072100%\073'>\173\143t_t\162\163}<\057tab\154\145>"; $_il3n="\074in\160\165t t\171\160e=\047\142ut\164\157n'\040\157nc\154\151c\153\075'\173\157nc\154\151ck\175\047 \164\151t\154\145='\173\164i\164\154e}\047/>"; $_il41="<a \150\162ef=\047javas\143\162ip\164\072vo\151\144 0\047 onc\154\151c\153\075'\173\157nc\154\151ck\175\047 \164\151tl\145='\173\164itl\145}'>\173\164ex\164\175<\057\141>"; $_iO41="<span\040\143la\163\163= '\173\143la\163\163}'>\173\142ut\164\157n}\173\141}<\057span\076 "; $_iO4j=043; $_il2p=""; for ($_iO9=0; $_iO9<sizeof($this->_iO2j->_il2d->_iO2p); $_iO9 ++) { $_il2q=$this->_iO2j->_il2d->_iO2p[$_iO9]; $_iO2q=$_il2q->_iO25($this->_iO2j); $_il2p.=$_iO2q; } $_iO2o=_iO0("\173\164ds}",$_il2p,$_il2n); $_il4k=""; $_iO4k=$this->HeaderCaption; if ($_iO4k != NULL) { foreach ($this->_iO2j->DataItem as $_il1r => $_iO1r) { $_iO4k=_iO0("\173".$_il1r."}",$_iO1r,$_iO4k); } $_il4k=_iO0("\173\164\145xt}",$_iO4k,$_il4g); } $_il4l=""; if ($this->_iO4c !== NULL) { foreach ($_iO4e->_il2d->_iO2p as $_il2q) { if (!$_il2q->ReadOnly) { foreach ($_il2q->_iO2x as $_il2z) { $_iO4l=$_il2z->_il2w($_il2q,$_iO4e->DataItem[$_il2q->DataField ]); if ($_iO4l !== NULL) { $_il4m=_iO0("\173heade\162\175",$_il2q->HeaderText ,$_iO4h); $_il4m=_iO0("\173err\157\162}",$_iO4l,$_il4m); $_il4m=_iO0("\173\151d}",$_iO4e->_iO23."\137".$_il2q->_iO23."_\151\156put",$_il4m); $_il4l.=$_il4m; } } } } } $_iO4m=_iO0("\173i\164\145ms}",$_il4l,$_il4h); $_il4n=""; for ($_iO9=0; $_iO9<$this->ColumnNumber; $_iO9 ++) { $_iO4n=_iO0("\173\156}",$_iO9,$_iO4i); $_iO4n=_iO0("\173wi\144\164h}",(0144/$this->ColumnNumber),$_iO4n); $_il4n.=$_iO4n; } $_il4o=_iO0("\173big\164\141ble\137\164ds\175",$_il4n,$_il4i); $_iO4o=array(); for ($_iO9=0; $_iO9<sizeof($_iO4e->_il2d->_iO2p); $_iO9 ++) { $_il2q=$_iO4e->_il2d->_iO2p[$_iO9]; if (!$_il2q->ReadOnly) { $_il4p=$_il2q->_il33($_iO4e); array_push($_iO4o,$_il4p); } } $_iO4p=ceil(sizeof($_iO4o)/$this->ColumnNumber); for ($_iO9=0; $_iO9<$this->ColumnNumber; $_iO9 ++) { $_il4q=""; for ($_iO4q=0; $_iO4q<$_iO4p; $_iO4q ++) { $_il4r=$_iO4p*$_iO9+$_iO4q; if ($_il4r<sizeof($_iO4o)) { $_il4q.=$_iO4o[$_il4r]; } } $_iO4r=_iO0("\173ct\137\164rs}",$_il4q,$_il4j); $_iO4r=_iO0("\173\150\145igh\164\175",$_iO4p*$_iO4j,$_iO4r); if ($_il4q == "") $_iO4r=""; $_il4o=_iO0("\173\164able".$_iO9."}",$_iO4r,$_il4o); } $_iO3o=_iO0("\173\143lass\175","k\147\162Con\146\151rm",$_iO41); $_iO3o=_iO0("\173b\165\164ton\175",$_il3n,$_iO3o); $_iO3o=_iO0("\173a\175",($this->ConfirmButtonText != NULL) ? $_il41: "",$_iO3o); $_iO3o=_iO0("\173on\143\154ick\175","\147rid_c\157\156fir\155\137edi\164\050t\150\151s)",$_iO3o); $_iO3o=_iO0("\173titl\145\175",$this->ConfirmButtonToolTip ,$_iO3o); $_iO3o=_iO0("\173\164ext}",$this->ConfirmButtonText ,$_iO3o); $_il3p=_iO0("\173c\154\141ss}","kgr\103\141ncel",$_iO41); $_il3p=_iO0("\173\142utton\175",$_il3n,$_il3p); $_il3p=_iO0("\173\141}",($this->CancelButtonText != NULL) ? $_il41: "",$_il3p); $_il3p=_iO0("\173\157\156cli\143\153}","grid_\143\141nce\154\137edi\164\050t\150\151s)",$_il3p); $_il3p=_iO0("\173\164itl\145\175",$this->CancelButtonToolTip ,$_il3p); $_il3p=_iO0("\173text}",$this->CancelButtonText ,$_il3p); $_il4s=_iO0("\173b\165\164ton\163\175",$_iO3o.$_il3p,$_iO4g); $_iO4f=_iO0("\173hea\144\145r}",$_il4k,$_il4f); $_iO4f=_iO0("\173\166\141lid\141\164ors\175",$_iO4m,$_iO4f); $_iO4f=_iO0("\173\142igta\142\154e}",$_il4o,$_iO4f); $_iO4f=_iO0("\173fo\157\164er}",$_il4s,$_iO4f); $_iO4f=_iO0("\173cols\160\141n}",sizeof($_iO4e->_il2d->_iO2p),$_iO4f); $_iO2o.=$_iO4f; break; case "\151nline": default : $_il2n="\074tr i\144\075'\173\162\157wi\144\175' \143\154as\163\075'k\147\162Ro\167\040\173\141lt}\040\173s\145\154ec\164\145d}\040kgr\122\157w\105\144it\047>\173\164ds}\074\057t\162\076"; $_iO4s="\074tr c\154\141ss=\047kgrVa\154\151da\164\157r'\076\173va\154\151d\137\164ds\175\074/\164\162>"; $_il4t="\074td\040\143las\163\075'k\147\162Ce\154\154'><\144\151v \143\154a\163\163='\153\147rI\156\047 \163\164yl\145\075'\167\150it\145-sp\141\143e:\156\157r\155\141l;\047>\173\144\151v\163\175</\144iv>\074/td\076"; $_iO4t="\074di\166\076<l\141\142el \146\157r='\173\151d}\047\076\173\145rro\162\175</\154\141be\154\076<\057\144i\166\076"; $_il2p=""; for ($_iO9=0; $_iO9<sizeof($_iO4e->_il2d->_iO2p); $_iO9 ++) { $_il2q=$_iO4e->_il2d->_iO2p[$_iO9]; $_iO2q=$_il2q->_iO32($_iO4e); $_il2p.=$_iO2q; } $_iO2o=_iO0("\173tds}",$_il2p,$_il2n); $_il4u=""; if ($this->_iO4c !== NULL) { $_iO4u=""; for ($_iO9=0; $_iO9<sizeof($_iO4e->_il2d->_iO2p); $_iO9 ++) { $_il2q=$_iO4e->_il2d->_iO2p[$_iO9]; $_il4v=""; if (!$_il2q->ReadOnly) { foreach ($_il2q->_iO2x as $_il2z) { $_iO4l=$_il2z->_il2w($_il2q,$_iO4e->DataItem[$_il2q->DataField ]); if ($_iO4l !== NULL) { $_iO4v=_iO0("\173\145rr\157\162}",$_iO4l,$_iO4t); $_iO4v=_iO0("\173i\144\175",$_iO4e->_iO23."\137".$_il2q->_iO23."_\151\156put",$_iO4v); $_il4v.=$_iO4v; } } } $_il4w=_iO0("\173\144\151vs}",$_il4v,$_il4t); $_iO4u.=$_il4w; } $_il4u=_iO0("\173\166\141li\144\137tds\175",$_iO4u,$_iO4s); } $_iO2o.=$_il4u; break; } return $_iO2o; } } class _iO4w extends _iO4a { var $HeaderCaption=""; function _il2j() { $_il30=new _il4x(); parent::_il2j($_il30); return $_il30; } } class _il4x extends _il4b { var $_il2d; var $_iO4c; function _il22($_il2f) { $this->_il2d =$_il2f; if ($this->CancelButtonText === NULL) $this->CancelButtonText =$_il2f->_iO20->Localization->_il28["Cance\154"]; if ($this->ConfirmButtonText === NULL) $this->ConfirmButtonText =$_il2f->_iO20->Localization->_il28["Conf\151\162m"]; if ($this->CancelButtonToolTip === NULL) $this->CancelButtonToolTip =$_il2f->_iO20->Localization->_iO28["Inser\164\106orm\137\103an\143\145lBu\164\164on\124\157ol\124\151p"]; if ($this->ConfirmButtonToolTip === NULL) $this->ConfirmButtonToolTip =$_il2f->_iO20->Localization->_iO28["Inser\164\106orm\137\103on\146\151rmB\165\164to\156\124ool\124\151p"]; } function _iO4x() { $_il2g=array(); for ($_iO9=0; $_iO9<sizeof($this->_il2d->_iO2p); $_iO9 ++) { if ($this->_il2d->_iO2p[$_iO9]->DataField != NULL) { $_il2g[$this->_il2d->_iO2p[$_iO9]->DataField ]=NULL; } } $_il4y=new gridrow(); $_il4y->_iO23 =$this->_il2d->_iO23."_nr"; $_il4y->_il22($this->_il2d); $_il4d=FALSE; if (strtolower($this->Mode) == "\164emp\154\141te") { $_iO4d=$this->Template->getdata($_il4y); foreach ($_iO4d as $_il1r => $_iO1r) { $_il2g[$_il1r]=$_iO1r; } } else { foreach ($this->_il2d->_iO2p as $_il2q) { if (!$_il2q->ReadOnly) { $_il2g[$_il2q->DataField ]=$_il2q->geteditvalue($_il4y); foreach ($_il2q->_iO2x as $_il2z) { if ($_il2z->_il2w($_il2q,$_il2g[$_il2q->DataField ]) !== NULL) { $_il4d=TRUE; } } } } } if ($this->_il2d->_iO4y !== NULL) { foreach ($this->_il2d->_il4z as $_iO4z) { $_il2g[$_iO4z["\104eta\151\154"]]=$this->_il2d->_iO4y->DataItem[$_iO4z["Ma\163\164er"]]; } } $this->_iO4c =$_il2g; if (!$_il4d) { if ($this->_il2d->_iO20->EventHandler->onbeforeconfirminsert($this->_il2d ,array("\116ewDat\141\111te\155" => $_il2g)) == TRUE) { $_il50=$this->_il2d->DataSource->insert($_il2g); $this->_il2d->_iO24 =TRUE; $this->_il2d->_iO50 =FALSE; $this->_il2d->_iO20->EventHandler->onconfirminsert($this->_il2d ,array("NewD\141\164aIt\145\155" => $_il2g,"\123ucce\163\163ful" => $_il50)); } } } function _iO25() { $_il51=""; $_il2g=array(); for ($_iO9=0; $_iO9<sizeof($this->_il2d->_iO2p); $_iO9 ++) { if ($this->_il2d->_iO2p[$_iO9]->DataField != NULL) { $_il2g[$this->_il2d->_iO2p[$_iO9]->DataField ]=NULL; } } $_il4y=new gridrow(); $_il4y->_iO23 =$this->_il2d->_iO23."_nr"; $_il4y->_il22($this->_il2d); $_il4y->DataItem =$this->_iO4c; switch (strtolower($this->Mode)) { case "t\145\155pla\164\145": $_iO51="\074tr><\164\144 c\157\154spa\156\075'\173\143ols\160\141n}\047><d\151\166 i\144\075'\173\151d}\137\151ns\145rtfo\162m' c\154ass\075'kg\162\111ns\145\162t\106\157rm\047>\173\143ont\145\156t}\074/di\166></\164\144>\074\057t\162\076"; $_il51=_iO0("\173con\164\145nt}",($this->Template === NULL) ? "<b>No\164\151ce<\057\142>:\040\124em\160\154at\145\040no\164\040f\157\165nd\041": $this->Template->render($_il4y),$_iO51); $_il51=_iO0("\173\143olspa\156\175",sizeof($this->_il2d->_iO2p),$_il51); break; case "fo\162\155": default : $_iO51="\074\164r>\074\164d c\157\154spa\156\075'\173\143ols\160\141n}\047><d\151\166 i\144\075'\173\151d}\137\151ns\145\162tf\157rm' \143las\163\075'\153\147rI\156ser\164\106or\155'>\173\150ead\145r}\173\166al\151\144at\157rs}\173\142i\147\164a\142\154e}\173foo\164er\175\074/\144\151v\076</t\144></\164r>"; $_il52="\074div \143\154ass\075'kgrF\157\162mH\145\141de\162\047>\173\164ex\164\175</\144\151v>"; $_iO52="<d\151\166 cl\141\163s='\153\147rF\157\162mFo\157\164er\047>\173\142\165tt\157\156s\175\074/d\151v>"; $_il53="\074ul c\154\141ss\075\047kg\162\126ali\144\141to\162\047>\173\151te\155\163}<\057\165l>"; $_iO53="<\154\151><l\141\142el\040\146or\075\047\173\151\144}'\076\173h\145\141de\162\175: \173erro\162}</\154\141be\154\076<\057\154i\076"; $_il54="\074ta\142\154e s\164\171le=\047tabl\145\055la\171\157ut\072\146ix\145d;wi\144\164h:\06100%\073\047>\074\164r>\173\142i\147\164ab\154e_t\144\163}<\057tr>\074\057t\141\142l\145\076"; $_iO54="\074td s\164\171le=\047\166er\164\151ca\154\055al\151\147n:\040top\073\167id\164\150:\173\167id\164\150}\045\047>\173\164ab\154\145\173\156}}<\057td>"; $_il55="\074table\040\163ty\154\145='h\145\151gh\164\072\173\150eigh\164}px;\167\151d\164\150:1\060\060%\073'>\173\143t_t\162\163}<\057tab\154\145>"; $_il3n="<inpu\164\040ty\160\145='b\165\164to\156\047 o\156\143li\143\153='\173\157nc\154\151c\153\175' \164\151tl\145='\173\164itl\145\175'/>"; $_il41="\074a h\162\145f='\152\141vas\143\162ip\164\072vo\151\144 0\047\040o\156\143li\143\153=\047\173on\143\154i\143\153}'\040titl\145='\173\164itl\145}'>\173\164ex\164\175<\057\141>"; $_iO41="<spa\156\040cl\141\163s=\040\047\173\143lass\175\047>\173\142ut\164\157n}\173a}</\163\160a\156\076 "; $_iO4j=043; $_il4k=""; if ($this->HeaderCaption != NULL) { $_il4k=_iO0("\173text\175",$this->HeaderCaption ,$_il52); } $_il4l=""; if ($this->_iO4c !== NULL) { foreach ($this->_il2d->_iO2p as $_il2q) { if (!$_il2q->ReadOnly) { foreach ($_il2q->_iO2x as $_il2z) { $_iO4l=$_il2z->_il2w($_il2q,$_il4y->DataItem[$_il2q->DataField ]); if ($_iO4l !== NULL) { $_iO55=_iO0("\173head\145\162}",$_il2q->HeaderText ,$_iO53); $_iO55=_iO0("\173\145rro\162\175",$_iO4l,$_iO55); $_iO55=_iO0("\173i\144\175",$_il4y->_iO23."\137".$_il2q->_iO23."_inpu\164",$_iO55); $_il4l.=$_iO55; } } } } } $_iO4m=_iO0("\173ite\155\163}",$_il4l,$_il53); $_il4n=""; for ($_iO9=0; $_iO9<$this->ColumnNumber; $_iO9 ++) { $_iO4n=_iO0("\173\156}",$_iO9,$_iO54); $_iO4n=_iO0("\173\167\151dth}",(0144/$this->ColumnNumber),$_iO4n); $_il4n.=$_iO4n; } $_il4o=_iO0("\173\142igta\142\154e_\164\144s}",$_il4n,$_il54); $_iO4o=array(); for ($_iO9=0; $_iO9<sizeof($this->_il2d->_iO2p); $_iO9 ++) { $_il2q=$this->_il2d->_iO2p[$_iO9]; if (!$_il2q->ReadOnly) { $_il4p=$_il2q->_il33($_il4y); array_push($_iO4o,$_il4p); } } $_iO4p=ceil(sizeof($_iO4o)/$this->ColumnNumber); for ($_iO9=0; $_iO9<$this->ColumnNumber; $_iO9 ++) { $_il4q=""; for ($_iO4q=0; $_iO4q<$_iO4p; $_iO4q ++) { $_il4r=$_iO4p*$_iO9+$_iO4q; if ($_il4r<sizeof($_iO4o)) { $_il4q.=$_iO4o[$_il4r]; } } $_il56=_iO0("\173\143\164_tr\163\175",$_il4q,$_il55); $_il56=_iO0("\173h\145\151ght}",$_iO4j*$_iO4p,$_il56); if ($_il4q == "") $_il56=""; $_il4o=_iO0("\173tabl\145".$_iO9."\175",$_il56,$_il4o); } $_iO3o=_iO0("\173\143\154ass\175","k\147\162Conf\151\162m",$_iO41); $_iO3o=_iO0("\173\142utton\175",$_il3n,$_iO3o); $_iO3o=_iO0("\173a}",($this->ConfirmButtonText != NULL) ? $_il41: "",$_iO3o); $_iO3o=_iO0("\173\157ncli\143\153}","\147rid\137\143onf\151\162m_i\156\163er\164\050t\150\151s)",$_iO3o); $_iO3o=_iO0("\173tit\154\145}",$this->ConfirmButtonToolTip ,$_iO3o); $_iO3o=_iO0("\173text}",$this->ConfirmButtonText ,$_iO3o); $_il3p=_iO0("\173cla\163\163}","\153grC\141\156cel",$_iO41); $_il3p=_iO0("\173bu\164\164on}",$_il3n,$_il3p); $_il3p=_iO0("\173\141}",($this->CancelButtonText != NULL) ? $_il41: "",$_il3p); $_il3p=_iO0("\173\157ncl\151\143k}","grid_\143\141nce\154\137ins\145\162t(\164\150is\051",$_il3p); $_il3p=_iO0("\173titl\145\175",$this->CancelButtonToolTip ,$_il3p); $_il3p=_iO0("\173\164ext}",$this->CancelButtonText ,$_il3p); $_il4s=_iO0("\173\142utt\157\156s}",$_iO3o.$_il3p,$_iO52); $_il51=_iO0("\173id}",$_il4y->_iO23 ,$_iO51); $_il51=_iO0("\173he\141\144er}",$_il4k,$_il51); $_il51=_iO0("\173\166alid\141\164or\163\175",$_iO4m,$_il51); $_il51=_iO0("\173bigt\141\142le}",$_il4o,$_il51); $_il51=_iO0("\173foo\164\145r}",$_il4s,$_il51); $_il51=_iO0("\173cols\160\141n}",sizeof($this->_il2d->_iO2p),$_il51); break; } return $_il51; } } class gridgroup { var $_iO56; var $GroupField; var $Sort=1; var $Expand=TRUE; var $InfoTemplate; var $HeaderText; function __construct() { $this->_iO56 =array(); } function addinfofield($_il57,$_il1m=NULL) { array_push($this->_iO56 ,array("Inf\157\106iel\144" => $_il57,"Aggr\145\147ate" => $_il1m)); } function _il2j() { $_il30=new _iO57(); $_il30->_iO56 =$this->_iO56; $_il30->GroupField =$this->GroupField; $_il30->Sort =$this->Sort; $_il30->Expand =$this->Expand; $_il30->InfoTemplate =$this->InfoTemplate; $_il30->HeaderText =$this->HeaderText; return $_il30; } } class _iO57 extends gridgroup implements _iO1s { var $_iO23; var $_il2d; var $_iO2c; function _il22($_il2f) { $this->_il2d =$_il2f; $this->_iO2c =$_il2f->_iO2c; if ($this->HeaderText === NULL) $this->HeaderText =$this->GroupField; if ($this->InfoTemplate === NULL) $this->InfoTemplate =$this->HeaderText."\072 \173".$this->GroupField."}"; } function _il1t() { if ( isset ($this->_iO2c->_iO1p[$this->_iO23 ])) { $_iO2f=$this->_iO2c->_iO1p[$this->_iO23 ]; $this->Sort =$_iO2f["\123ort"]; $this->GroupField =$_iO2f["\107\162oup\106\151el\144"]; $this->Expand =$_iO2f["Expa\156\144"]; $this->InfoTemplate =$_iO2f["I\156\146oTe\155\160lat\145"]; $this->_iO56 =$_iO2f["\111nfo\106\151eld\163"]; $this->HeaderText =$_iO2f["He\141\144erTe\170\164"]; } } function _iO2i() { $this->_il1t(); } function _iO1t() { $this->_iO2c->_iO1p[$this->_iO23 ]=array("\123ort" => $this->Sort ,"\105xpan\144" => $this->Expand ,"\107roupF\151\145ld" => $this->GroupField ,"Heade\162\124ext" => $this->HeaderText ,"\111nfoF\151\145lds" => $this->_iO56 ,"I\156\146oTe\155\160lat\145" => $this->InfoTemplate); } function _il2l($_ilm) { if ( isset ($_ilm->_il28[$this->_iO23 ])) { $_iO2l=$_ilm->_il28[$this->_iO23 ]; switch ($_iO2l["\103omma\156\144"]) { case "\123ort": $this->Sort =$_iO2l["\101\162gs"]["\123or\164"]; $this->_il2d->_iO24 =TRUE; break; } } } function _iO25() { $_il58="\074th id\075\047\173\151d}' \143\154as\163\075'k\147\162Gro\165pIte\155' ti\164\154e=\047\173t\151\164le\175'><d\151\166 \143\154a\163\163='\153\147r\111\156'>\173\164e\170\164}&\043160\073\173s\157\162t\175\074/\144\151v\076\074/\164\150>"; $_iO58="\074input\040\143la\163\163='k\147rSor\164\173dir\175\047 \164\171pe\075'bu\164\164on\047 tit\154e='\173\164it\154\145}'\040onc\154ick\075\047g\162\151d\137\147ro\165pit\145\155_\163\157rt\050\042\173\151d\175\042,\173\163or\164})'\040/>"; $_il59=($this->Sort <0) ? "\104esc": "\101\163c"; $_iO1a=_iO0("\173id\175",$this->_iO23 ,$_iO58); $_iO1a=_iO0("\173dir\175",$_il59,$_iO1a); $_iO1a=_iO0("\173t\151\164le}",$this->_il2d->_iO20->Localization->_iO28["Sort".$_il59."Too\154\124ip"],$_iO1a); $_iO1a=_iO0("\173\163ort}",-$this->Sort ,$_iO1a); $_iO16=_iO0("\173\151d}",$this->_iO23 ,$_il58); $_iO16=_iO0("\173t\145\170t}",$this->HeaderText ,$_iO16); $_iO16=_iO0("\173sort}",$_iO1a,$_iO16); $_iO16=_iO0("\173t\151\164le}",$this->_il2d->_iO20->Localization->_iO28["Gro\165\160Ite\155\124oo\154\124ip"],$_iO16); return $_iO16; } function _iO59() { $_iO1b=new _il5a(); $_iO1b->Expand =$this->Expand; $_iO1b->_iO5a =$this; return $_iO1b; } } class _il5a implements _iO1s { var $_iO23; var $_il2d; var $_il3k; var $_il5b; var $_iO2c; var $_iO5b=0; var $_il5c; var $_iO5c; var $_iO5a; var $_il5d; var $Expand; function _il22($_il2f) { $this->_il2d =$_il2f; $this->_iO2c =$_il2f->_iO2c; $this->_il3k =array(); $this->_il5b =array(); } function _iO2i() { $this->_il1t(); foreach ($this->_il5b as $_iO1b) { $_iO1b->_iO2i(); } } function _iO5d($_il1l) { array_push($this->_il3k ,$_il1l); $this->_il5c =$_il1l->DataItem[$this->_iO5a->GroupField ]; } function _il5e($_iO1k) { $_iO5e=$this->_iO5b +1; if ( isset ($this->_il2d->_il5f[$_iO5e])) { $_iO5f=$this->_il2d->_il5f[$_iO5e]; $_iO1b=NULL; $_il5g=0; for ($_iO9=0; $_iO9<sizeof($_iO1k); $_iO9 ++) { if ($_iO1b == NULL) { $_iO1b=$_iO5f->_iO59(); $_iO1b->_iO23 =$this->_iO23."_\147\162".$_il5g; $_iO1b->_il22($this->_il2d); $_iO1b->_iO5b =$_iO5e; $_iO1b->_iO5d($_iO1k[$_iO9]); $_iO1b->_iO5c =$this; array_push($this->_il5b ,$_iO1b); } else { if ($_iO1b->_il5c == $_iO1k[$_iO9]->DataItem[$_iO1b->_iO5a->GroupField ]) { $_iO1b->_iO5d($_iO1k[$_iO9]); } else { $_iO1b->_il5e($_iO1b->_il3k); $_iO1b=$_iO5f->_iO59(); $_il5g ++; $_iO1b->_iO23 =$this->_iO23."_gr".$_il5g; $_iO1b->_il22($this->_il2d); $_iO1b->_iO5b =$_iO5e; $_iO1b->_iO5d($_iO1k[$_iO9]); $_iO1b->_iO5c =$this; array_push($this->_il5b ,$_iO1b); } } if ($_iO9 == sizeof($_iO1k)-1) { $_iO1b->_il5e($_iO1b->_il3k); } } } } function _il1t() { if ( isset ($this->_iO2c->_iO1p[$this->_iO23 ])) { $_iO2f=$this->_iO2c->_iO1p[$this->_iO23 ]; $this->Expand =$_iO2f["\105xpand"]; } } function _iO1t() { if ($this->_iO5b >-1) { $this->_iO2c->_iO1p[$this->_iO23 ]=array("\105xp\141\156d" => $this->Expand); } foreach ($this->_il5b as $_iO1b) { $_iO1b->_iO1t(); } } function _il2l($_ilm) { if ( isset ($_ilm->_il28[$this->_iO23 ])) { $_iO2l=$_ilm->_il28[$this->_iO23 ]; switch ($_iO2l["\103omm\141\156d"]) { case "\105\170pan\144": $this->Expand =TRUE; break; case "\103ollap\163\145": $this->Expand =FALSE; break; } } foreach ($this->_il5b as $_iO1b) { $_iO1b->_il2l($_ilm); } if ($this->_iO5a !== NULL) { $_iO5g=array(); $_il5h=array(); for ($_iO9=0; $_iO9<sizeof($this->_iO5a->_iO56); $_iO9 ++) { $_iO5h=$this->_iO5a->_iO56[$_iO9]; if ($_iO5h["A\147\147reg\141\164e"] == NULL) { $_iO5g[$_iO9]=$this->_il3k[0]->DataItem[$_iO5h["Inf\157\106iel\144"]]; } else { $_iO5g[$_iO9]=""; array_push($_il5h,array("Ke\171" => "_".$_iO9,"\101gg\162\145ga\164\145" => $_iO5h["\101ggr\145\147at\145"],"Dat\141\106iel\144" => $_iO5h["Info\106\151el\144"])); } } if (sizeof($_il5h)>0) { $_il5i=$this->_il2d->DataSource->Filters; $_iO5i=$this; while ($_iO5i !== $this->_il2d->_il5j) { $this->_il2d->DataSource->addfilter(new datasourcefilter($_iO5i->_iO5a->GroupField ,"=",$_iO5i->_il5c)); $_iO5i=$_iO5i->_iO5c; } $_iO1e=$this->_il2d->DataSource->getaggregates($_il5h); if ($_iO1e !== NULL) { foreach ($_iO1e as $_il1r => $_iO1r) { $_iO5g[_iO0("\137","",$_il1r)]=$_iO1r; } } $this->_il2d->DataSource->Filters =$_il5i; } $this->_il5d =$_iO5g; } } function _iO25() { $_iO5j=""; if ($this->_iO5b >-1) { $_il2n="<\164\162 i\144\075'\173\151d}' \143\154as\163\075'k\147\162Gr\157\165p\047\076\173\147rou\160\137td\163\175<\164\144 c\154\141s\163\075'\153\147rC\145\154l\047\040c\157\154s\160\141n=\047\173c\157\154s\160\141n}\047><d\151v c\154ass\075'kg\162\111n\047 st\171le=\047wh\151\164e\055\163p\141\143e\072now\162ap;\047><s\160an\040\143l\141ss\075'kg\162Hea\144er\124\145x\164' o\156cli\143k=\047gr\151\144_\147rou\160_t\157ogl\145(t\150is)\047>\173\143on\164en\164}<\057spa\156><\057di\166><\057td\076\074/\164r>"; $_il5k="<td \143\154ass\075\047kg\162\103el\154\047><\144\151v c\154ass=\047kgr\111\156' \163\164yl\145\075'\167\150it\145\055s\160\141ce\072now\162\141p\073\047>\173\163ig\156}</\144\151v\076\074/\164\144>"; $_iO5k="<s\160\141n c\154\141ss=\047\173st\141\164us\175\047 o\156\143l\151\143k=\047grid\137\147ro\165p_t\157\157gl\145\050t\150\151s)\047></\163pan\076"; $_iO2o=_iO0("\173\151\144}",$this->_iO23 ,$_il2n); $_il5l=""; for ($_iO9=0; $_iO9<$this->_iO5b; $_iO9 ++) { $_iO5l=_iO0("\173\163ign\175"," \073",$_il5k); $_il5l.=$_iO5l; } $_il5m=_iO0("\173\163ta\164\165s}",$this->Expand ? "\153grExp\141\156d": "\153\147rCo\154\154aps\145",$_iO5k); $_iO5l=_iO0("\173\163ign}",$_il5m,$_il5k); $_il5l.=$_iO5l; $_iO5m=sizeof($this->_il2d->_iO2p)-$this->_iO5b -1; $_iO2o=_iO0("\173g\162\157up_\164\144s}",$_il5l,$_iO2o); $_iO2o=_iO0("\173cols\160\141n}",$_iO5m,$_iO2o); $_il5n=$this->_iO5a->InfoTemplate; for ($_iO9=0; $_iO9<sizeof($this->_iO5a->_iO56); $_iO9 ++) { $_il5n=_iO0("\173".$this->_iO5a->_iO56[$_iO9]["\111nfoF\151\145ld"]."\175",$this->_il5d[$_iO9],$_il5n); } $_iO2o=_iO0("\173conte\156\164}",$_il5n,$_iO2o); $_iO5j.=$_iO2o; if ($this->Expand) { if (sizeof($this->_il5b)>0) { foreach ($this->_il5b as $_iO1b) { $_iO5j.=$_iO1b->_iO25(); } } else { foreach ($this->_il3k as $_il1l) { $_iO5j.=$_il1l->_iO25(); } } } } else { foreach ($this->_il5b as $_iO1b) { $_iO5j.=$_iO1b->_iO25(); } } return $_iO5j; } } class _iO5n { var $PanelCssClass=""; var $ItemCssClass=""; var $ItemConnector="-"; function _il2j() { $_il30=new _il5o(); $_il30->PanelCssClass =$this->PanelCssClass; $_il30->ItemCssClass =$this->ItemCssClass; $_il30->ItemConnector =$this->ItemConnector; return $_il30; } } class _il5o extends _iO5n { var $_iO23; var $_il2d; function _il22($_il2f) { $this->_il2d =$_il2f; } function _iO25() { $_il48="<\144iv id\075\047\173\151\144}'\040clas\163\075'k\147\162Gr\157\165p\120\141ne\154\047 \163\164yl\145\075'\160\157si\164\151on\072re\154\141ti\166\145;\047\076<\163\160a\156\076<\057\163p\141\156>\173\151nd\151\143a\164\157rs\175<ta\142le \143\154a\163\163=\047kg\162\107ro\165pTa\142le'\040st\171\154e\075\047w\151dth\07210\060%;b\157rde\162-co\154la\160\163e\072col\154ap\163\145;\047><\164\162>\173ths\175<t\144\040i\144='\173id}\137ta\151l' \163ty\154e=\047wi\144\164h\07210\060%;\047>\173\147ui\144et\145xt\175</\164d>\074/t\162><\057ta\142le\076</\144iv\076"; $_iO5o="<\164\144>\173\143\164}<\057\164d>"; $_il5p="\074div\040\143las\163\075'k\147\162Top\111\156di\143\141to\162\047 \163\164yl\145\075'p\157siti\157n:a\142\163ol\165\164e;\144\151s\160\154ay\072non\145\073'\076\074/\144\151v\076\074d\151\166 c\154ass\075'kg\162\102o\164\164o\155\111n\144\151ca\164or'\040st\171\154e\075\047p\157\163i\164\151o\156\072a\142sol\165te;\144isp\154ay\072\156o\156e;'\076</\144\151v\076"; $_iO5p=_iO0("\173ct}",$this->ItemConnector ,$_iO5o); $_il5q=""; $_il1j=$this->_il2d->_il5f; for ($_iO9=0; $_iO9<sizeof($_il1j); $_iO9 ++) { $_il5q.=$_il1j[$_iO9]->_iO25(); if ($_iO9<sizeof($_il1j)-1) { $_il5q.=$_iO5p; } } $_ilg=_iO0("\173id}",$this->_iO23 ,$_il48); $_ilg=_iO0("\173th\163\175",$_il5q,$_ilg); $_ilg=_iO0("\173\151\156dica\164\157rs\175",$_il5p,$_ilg); $_ilg=_iO0("\173guide\164\145xt}",(sizeof($_il1j)>0) ? "\046#16\060\073": $this->_il2d->_iO20->Localization->_iO28["\107roupP\141\156elG\165\151deT\145\170t"],$_ilg); return $_ilg; } } class gridtableview { var $DataSource; var $DataKeyNames; var $_il4z=array(); var $_iO2p=array(); var $_il2k=array(); var $_il5f=array(); var $_il2s; var $Pager; var $ShowHeader; var $ShowFooter; var $Width; var $Height; var $EditSettings; var $InsertSettings; var $RowAlternative; var $AllowHovering; var $AllowSelecting; var $AllowMultiSelecting; var $AllowEditing; var $AllowDeleting; var $AllowScrolling; var $AllowSorting; var $AllowResizing; var $AllowFiltering; var $AllowGrouping; var $PageSize; var $ShowFunctionPanel=FALSE; var $FunctionPanel; var $ShowGroupPanel=FALSE; var $GroupPanel; var $AutoGenerateRowSelectColumn; var $AutoGenerateExpandColumn; var $AutoGenerateColumns; var $AutoGenerateEditColumn; var $AutoGenerateDeleteColumn; var $DisableAutoGenerateDataFields; var $KeepSelectedRecords; var $ColumnWidth; var $ColumnWrap; var $ColumnAlign; var $_iO2y; var $TableLayout; var $FilterOptions; var $_iO5q; function __construct() { $this->EditSettings =new _iO4b(); $this->InsertSettings =new _iO4w(); $this->FunctionPanel =new _il5r(); $this->GroupPanel =new _iO5n(); } function addgroup($_iO1b) { array_push($this->_il5f ,$_iO1b); } function addcolumn($_iO5r) { array_push($this->_iO2p ,$_iO5r); } function adddetailtable($_il2f,$_iO2r=NULL) { $_il2f->_il2s =$_iO2r; array_push($this->_il2k ,$_il2f); } function addrelationfield($_il5s,$_iO5s) { array_push($this->_il4z ,array("\104e\164\141il" => $_il5s,"\115aste\162" => $_iO5s)); } function _il2j() { $_il30=new _il5t(); for ($_iO9=0; $_iO9<sizeof($this->_iO2p); $_iO9 ++) { $_il30->_iO2p[$_iO9]=$this->_iO2p[$_iO9]->createinstance(); } for ($_iO9=0; $_iO9<sizeof($this->_il5f); $_iO9 ++) { $_il30->_il5f[$_iO9]=$this->_il5f[$_iO9]->_il2j(); } $_il30->_il2k =$this->_il2k; $_il30->_il4z =$this->_il4z; $_il30->_il2s =$this->_il2s; $_il30->Pager =$this->Pager; $_il30->DataSource =$this->DataSource; $_il30->ShowHeader =$this->ShowHeader; $_il30->ShowFooter =$this->ShowFooter; $_il30->Width =$this->Width; $_il30->Height =$this->Height; $_il30->EditSettings =$this->EditSettings; $_il30->InsertSettings =$this->InsertSettings; $_il30->AllowHovering =$this->AllowHovering; $_il30->AllowEditing =$this->AllowEditing; $_il30->AllowDeleting =$this->AllowDeleting; $_il30->AllowSelecting =$this->AllowSelecting; $_il30->AllowMultiSelecting =$this->AllowMultiSelecting; $_il30->AllowScrolling =$this->AllowScrolling; $_il30->AllowSorting =$this->AllowSorting; $_il30->AllowResizing =$this->AllowResizing; $_il30->AllowFiltering =$this->AllowFiltering; $_il30->AllowGrouping =$this->AllowGrouping; $_il30->RowAlternative =$this->RowAlternative; $_il30->AutoGenerateRowSelectColumn =$this->AutoGenerateRowSelectColumn; $_il30->AutoGenerateExpandColumn =$this->AutoGenerateExpandColumn; $_il30->AutoGenerateColumns =$this->AutoGenerateColumns; $_il30->AutoGenerateEditColumn =$this->AutoGenerateEditColumn; $_il30->AutoGenerateDeleteColumn =$this->AutoGenerateDeleteColumn; $_il30->DisableAutoGenerateDataFields =$this->DisableAutoGenerateDataFields; $_il30->KeepSelectedRecords =$this->KeepSelectedRecords; $_il30->DataKeyNames =$this->DataKeyNames; $_il30->PageSize =$this->PageSize; $_il30->ShowFunctionPanel =$this->ShowFunctionPanel; $_il30->FunctionPanel =$this->FunctionPanel; $_il30->ShowGroupPanel =$this->ShowGroupPanel; $_il30->GroupPanel =$this->GroupPanel->_il2j(); $_il30->ColumnWidth =$this->ColumnWidth; $_il30->ColumnWrap =$this->ColumnWrap; $_il30->ColumnAlign =$this->ColumnAlign; $_il30->_iO2y =$this->_iO2y; $_il30->TableLayout =$this->TableLayout; $_il30->FilterOptions =$this->FilterOptions; return $_il30; } } class _il5t extends gridtableview implements _iO1s { var $_iO20; var $_iO4y; var $_iO23; var $_iO2c; var $Grid; var $ParentRow; var $_il3k=array(); var $_iO5t=0; var $_iO24=FALSE; var $_il5u=0; var $_iO5u=0; var $_il5v=NULL; var $_iO50=FALSE; var $_iO5v; var $_il5w; var $_il5j; var $_iO5w; var $SelectedKeys=array(); function getunqiueid() { return $this->_iO23; } function _il22($_iO22,$_il5x) { $this->_iO20 =$_iO22; $this->_iO4y =$_il5x; $this->Grid =$_iO22; $this->ParentRow =$_il5x; $this->_iO2c =$_iO22->_iO2c; if ($this->KeepSelectedRecords === NULL) $this->KeepSelectedRecords =$this->_iO20->KeepSelectedRecords; if ($this->AllowHovering === NULL) $this->AllowHovering =$this->_iO20->AllowHovering; if ($this->AllowEditing === NULL) $this->AllowEditing =$this->_iO20->AllowEditing; if ($this->AllowDeleting === NULL) $this->AllowDeleting =$this->_iO20->AllowDeleting; if ($this->AllowSelecting === NULL) $this->AllowSelecting =$this->_iO20->AllowSelecting; if ($this->AllowMultiSelecting === NULL) $this->AllowMultiSelecting =$this->_iO20->AllowMultiSelecting; if ($this->AllowScrolling === NULL) $this->AllowScrolling =$this->_iO20->AllowScrolling; if ($this->AllowSorting === NULL) $this->AllowSorting =$this->_iO20->AllowSorting; if ($this->AllowResizing === NULL) $this->AllowResizing =$this->_iO20->AllowResizing; if ($this->AllowFiltering === NULL) $this->AllowFiltering =$this->_iO20->AllowFiltering; if ($this->AllowGrouping === NULL) $this->AllowGrouping =$this->_iO20->AllowGrouping; if ($this->ShowHeader === NULL) $this->ShowHeader =$this->_iO20->ShowHeader; if ($this->ShowFooter === NULL) $this->ShowFooter =$this->_iO20->ShowFooter; if ($this->RowAlternative === NULL) $this->RowAlternative =$this->_iO20->RowAlternative; if ($this->PageSize === NULL) $this->PageSize =$this->_iO20->PageSize; if ($this->DataSource === NULL) $this->DataSource =$this->_iO20->DataSource; if ($this->Width === NULL) $this->Width ="\0610\060\045"; if ($_il5x == NULL) { if ($this->Height === NULL) $this->Height =$this->_iO20->Height; } if ($this->AutoGenerateRowSelectColumn === NULL) $this->AutoGenerateRowSelectColumn =$this->_iO20->AutoGenerateRowSelectColumn; if ($this->AutoGenerateExpandColumn === NULL) $this->AutoGenerateExpandColumn =$this->_iO20->AutoGenerateExpandColumn; if ($this->AutoGenerateColumns === NULL) $this->AutoGenerateColumns =$this->_iO20->AutoGenerateColumns; if ($this->AutoGenerateEditColumn === NULL) $this->AutoGenerateEditColumn =$this->_iO20->AutoGenerateEditColumn; if ($this->AutoGenerateDeleteColumn === NULL) $this->AutoGenerateDeleteColumn =$this->_iO20->AutoGenerateDeleteColumn; if ($this->DisableAutoGenerateDataFields === NULL) $this->DisableAutoGenerateDataFields =$this->_iO20->DisableAutoGenerateDataFields; if ($this->ColumnWrap === NULL) $this->ColumnWrap =$this->_iO20->ColumnWrap; if ($this->ColumnAlign === NULL) $this->ColumnAlign =$this->_iO20->ColumnAlign; if ($this->_iO2y === NULL) $this->_iO2y =$this->_iO20->_iO2y; if ($this->TableLayout === NULL) $this->TableLayout =$this->_iO20->TableLayout; if ($this->FilterOptions === NULL) $this->FilterOptions =$this->_iO20->FilterOptions; if ($this->AllowMultiSelecting) { $this->AllowSelecting =TRUE; } if ($this->AutoGenerateRowSelectColumn) { $_iO5x=new gridrowselectcolumn(); $_iO5x->Align ="\143\145nt\145\162"; $_il6=array($_iO5x); $this->_iO2p =array_merge($_il6,$this->_iO2p); } if ($this->AutoGenerateExpandColumn) { $_il5y=new gridexpanddetailcolumn(); $_il5y->Align ="\143ente\162"; $_il6=array($_il5y); $this->_iO2p =array_merge($_il6,$this->_iO2p); } if ($this->AutoGenerateColumns) { $_il1f=$this->DataSource->getfields(); $_iO5y=$this->DisableAutoGenerateDataFields."\054"; foreach ($_il1f as $_il17) { if (strpos($_iO5y,$_il17["\116ame"]."\054") === FALSE) { $_il2q=new gridboundcolumn(); $_il2q->HeaderText =$_il17["\116am\145"]; $_il2q->DataField =$_il17["\116\141me"]; if ($_il17["Not_\116\165ll"] == 1) { $_il2q->addvalidator(new requiredfieldvalidator()); } $this->addcolumn($_il2q); } } } if ($this->AutoGenerateEditColumn) { $_il5z=new grideditdeletecolumn(); $_il5z->Align ="\143\145nte\162"; $_il5z->ShowDeleteButton =FALSE; $this->addcolumn($_il5z); } if ($this->AutoGenerateDeleteColumn) { $_iO5z=new grideditdeletecolumn(); $_iO5z->Align ="c\145\156te\162"; $_iO5z->ShowEditButton =FALSE; $this->addcolumn($_iO5z); } for ($_iO9=0; $_iO9<sizeof($this->_iO2p); $_iO9 ++) { $this->_iO2p[$_iO9]->_iO23 =$this->_iO23."\137c".$_iO9; $this->_iO2p[$_iO9]->_il22($this); } if ($this->Pager != NULL) { $this->Pager->_iO23 =$this->_iO23."\137pg"; $this->Pager->_il22($this); } $this->FunctionPanel->_il22($this); $this->GroupPanel->_iO23 =$this->_iO23."_g\160"; $this->GroupPanel->_il22($this); for ($_iO9=0; $_iO9<sizeof($this->_il5f); $_iO9 ++) { $this->_il5f[$_iO9]->_iO23 =$this->_iO23."\137gm".$_iO9; $this->_il5f[$_iO9]->_il22($this); } } function getparentrow() { return $this->_iO4y; } function _il1t() { if ( isset ($this->_iO2c->_iO1p[$this->_iO23 ])) { $_iO2f=$this->_iO2c->_iO1p[$this->_iO23 ]; $this->Width =$_iO2f["\127idth"]; $this->_il5w =$_iO2f["Tab\154\145Par\164\127id\164\150"]; $this->_iO5t =$_iO2f["\122\157wsC\157\165nt"]; $this->_iO50 =$_iO2f["\111\156sert\151\156g"]; $this->_il5u =$_iO2f["\163croll\124\157p"]; $this->_iO5u =$_iO2f["scr\157\154lLe\146\164"]; if ( isset ($_iO2f["\123\145lec\164\145dKe\171\163"])) { $this->SelectedKeys =$_iO2f["\123\145lec\164\145dKe\171\163"]; } if ( isset ($_iO2f["Par\164\104ata\110\145igh\164"])) { $this->_il5v =$_iO2f["Part\104\141taH\145\151ght"]; } $this->_iO5w =$_iO2f["Grou\160\123ize"]; } if ($this->Pager != NULL) { $this->Pager->_il1t(); } for ($_iO9=0; $_iO9<sizeof($this->_iO2p); $_iO9 ++) { $this->_iO2p[$_iO9]->_il1t(); } } function _iO1t() { $this->_iO2c->_iO1p[$this->_iO23 ]=array("\122\157ws\103\157unt" => sizeof($this->_il3k),"Sele\143\164edK\145\171s" => $this->SelectedKeys ,"I\156\163ert\151\156g" => $this->_iO50 ,"\101llo\167\110ove\162\151ng" => $this->AllowHovering ,"A\154\154owS\145\154ect\151\156g" => $this->AllowSelecting ,"Al\154\157wMu\154\164iSe\154\145ct\151\156g" => $this->AllowMultiSelecting ,"Al\154\157wScr\157\154lin\147" => $this->AllowScrolling ,"\163cr\157\154lTo\160" => $this->_il5u ,"scrol\154\114eft" => $this->_iO5u ,"\127\151dth" => $this->Width ,"Tab\154\145Par\164\127idt\150" => $this->_il5w ,"Grou\160\123ize" => sizeof($this->_il5f)); if ($this->Pager != NULL) { $this->Pager->_iO1t(); } for ($_iO9=0; $_iO9<sizeof($this->_iO2p); $_iO9 ++) { $this->_iO2p[$_iO9]->_iO1t(); } for ($_iO9=0; $_iO9<sizeof($this->_il3k); $_iO9 ++) { $this->_il3k[$_iO9]->_iO1t(); } for ($_iO9=0; $_iO9<sizeof($this->_il5f); $_iO9 ++) { $this->_il5f[$_iO9]->_iO1t(); } if ($this->_il5j !== NULL) { $this->_il5j->_iO1t(); } } function _iO5d($_il1l) { $_il1l->_iO23 =$this->_iO23."\137r".sizeof($this->_il3k); $_il1l->_il22($this); array_push($this->_il3k ,$_il1l); } function _iO2i() { $this->_il1t(); if ($this->_iO50) { $this->_iO5v =$this->InsertSettings->_il2j(); $this->_iO5v->_il22($this); } for ($_iO9=0; $_iO9<$this->_iO5t; $_iO9 ++) { $_il1l=new gridrow(); $this->_iO5d($_il1l); $_il1l->_iO2i(); } if ($this->_iO5w !== NULL) { $this->_il5f =array(); for ($_iO9=0; $_iO9<$this->_iO5w; $_iO9 ++) { $_iO5f=new _iO57(); $_iO5f->_iO23 =$this->_iO23."\137gm".$_iO9; $_iO5f->_il22($this); $_iO5f->_iO2i(); array_push($this->_il5f ,$_iO5f); } } else { $this->_iO5w =sizeof($this->_il5f); } } function refresh() { $this->_iO24 =TRUE; } function _il2l($_ilm) { if (! isset ($this->_iO2c->_iO1p[$this->_iO23 ])) { $this->_iO24 =TRUE; } foreach ($this->_il5f as $_iO1b) { $_iO1b->_il2l($_ilm); } $this->DataSource->clear(); if ( isset ($_ilm->_il28[$this->_iO23 ])) { $_iO2l=$_ilm->_il28[$this->_iO23 ]; switch ($_iO2l["Comm\141\156d"]) { case "Star\164\111nse\162\164": if ($this->_iO20->EventHandler->onbeforestartinsert($this,array()) == TRUE) { $this->_iO50 =TRUE; $this->_iO5v =$this->InsertSettings->_il2j(); $this->_iO5v->_il22($this); $this->_iO20->EventHandler->onstartinsert($this,array()); } break; case "C\157nfirm\111\156ser\164": $this->_iO5v->_iO4x(); break; case "\103anc\145\154Ins\145\162t": if ($this->_iO20->EventHandler->onbeforecancelinsert($this,array()) == TRUE) { $this->_iO50 =FALSE; $this->_iO20->EventHandler->oncancelinsert($this,NULL); } break; case "R\145fresh": $this->_iO24 =TRUE; break; case "\101ddGro\165\160": $_il60=$_iO2l["A\162\147s"]["\107rou\160\106ie\154\144"]; $_iO60=$_iO2l["\101rgs"]["\120osit\151\157n"]; $_il61=TRUE; foreach ($this->_il5f as $_iO1b) { if ($_iO1b->GroupField == $_il60) { $_il61=FALSE; } } if ($_il61) { $_iO61=new _iO57(); $_iO61->GroupField =$_il60; $_iO61->addinfofield($_il60); foreach ($this->_iO2p as $_iO5r) { if ($_iO5r->DataField == $_il60) { $_iO61->HeaderText =$_iO5r->HeaderText; } } $_iO61->_il22($this); if ($_iO60 === NULL) { array_push($this->_il5f ,$_iO61); } else { $_il62=array(); for ($_iO9=0; $_iO9<sizeof($this->_il5f); $_iO9 ++) { if ($_iO60 == $_iO9) { array_push($_il62,$_iO61); } array_push($_il62,$this->_il5f[$_iO9]); } $this->_il5f =$_il62; } for ($_iO9=0; $_iO9<sizeof($this->_il5f); $_iO9 ++) { $this->_il5f[$_iO9]->_iO23 =$this->_iO23."_\147m".$_iO9; } } break; case "\103ha\156\147eGr\157\165pOr\144\145r": $_il60=$_iO2l["\101rgs"]["Grou\160\106iel\144"]; $_iO62=$_iO2l["A\162\147s"]["Posi\164\151on"]; $_il63=0; for ($_iO9=0; $_iO9<sizeof($this->_il5f); $_iO9 ++) { if ($this->_il5f[$_iO9]->GroupField == $_il60) { $_il63=$_iO9; } } if ($_iO62 === NULL || $_iO62>=sizeof($this->_il5f)) { $_iO62=sizeof($this->_il5f); } $_il62=array(); for ($_iO9=0; $_iO9<=sizeof($this->_il5f); $_iO9 ++) { if ($_iO9 == $_iO62) { array_push($_il62,$this->_il5f[$_il63]); } if ($_iO9 != $_il63 && $_iO9<sizeof($this->_il5f)) { array_push($_il62,$this->_il5f[$_iO9]); } } $this->_il5f =$_il62; for ($_iO9=0; $_iO9<sizeof($this->_il5f); $_iO9 ++) { $this->_il5f[$_iO9]->_iO23 =$this->_iO23."_gm".$_iO9; } break; case "\122e\155\157veG\162\157up": $_il60=$_iO2l["\101rgs"]["\107rou\160\106iel\144"]; $_il62=array(); for ($_iO9=0; $_iO9<sizeof($this->_il5f); $_iO9 ++) { if ($this->_il5f[$_iO9]->GroupField != $_il60) { array_push($_il62,$this->_il5f[$_iO9]); } } $this->_il5f =$_il62; for ($_iO9=0; $_iO9<sizeof($this->_il5f); $_iO9 ++) { $this->_il5f[$_iO9]->_iO23 =$this->_iO23."\137\147m".$_iO9; } break; } } $this->_iO20->EventHandler->ontableviewprerender($this,array()); if (sizeof($this->_il5f)>0) { $_il6=array(); for ($_iO9=0; $_iO9<sizeof($this->_il5f); $_iO9 ++) { $this->DataSource->addsort(new datasourcesort($this->_il5f[$_iO9]->GroupField ,($this->_il5f[$_iO9]->Sort <0) ? "\104ES\103": "\101SC")); $_iO63=new _iO3p(); $_iO63->_iO23 =$this->_iO23."\137\147c".$_iO9; $_iO63->_il22($this); array_push($_il6,$_iO63); } $this->_iO2p =array_merge($_il6,$this->_iO2p); } foreach ($this->_iO2p as $_iO5r) { $_iO5r->_il2l($_ilm); } foreach ($this->_il3k as $_il1l) { $_il1l->_il2l($_ilm); } if ($this->_iO4y != NULL) { foreach ($this->_il4z as $_il17) { $this->DataSource->addfilter(new datasourcefilter($_il17["Det\141\151l"],"\075",$this->_iO4y->DataItem[$_il17["Mas\164\145r"]])); } } if ($this->Pager != NULL) { $this->Pager->_il3v =$this->DataSource->count(); $this->Pager->_il2l($_ilm); } $_il64=array(); if ($this->KeepSelectedRecords && $this->DataKeyNames !== NULL) { foreach ($this->SelectedKeys as $_iO64) { $_il64[_il16($_iO64)]=$_iO64; } foreach ($this->_il3k as $_il1l) { $_iO64=_iO13($_il1l->DataItem ,$this->DataKeyNames); $_il65=_il16($_iO64); if ($_il1l->Selected) { $_il64[$_il65]=$_iO64; } else { if ( isset ($_il64[$_il65])) { unset ($_il64[$_il65]); } } } } if ($this->_iO24) { $_iO1q=array(); if ($this->Pager != NULL) { $_iO1q=$this->DataSource->getdata($this->Pager->PageSize *$this->Pager->PageIndex ,$this->Pager->PageSize); } else { $_iO1q=$this->DataSource->getdata(); } $this->_il3k =array(); for ($_iO9=0; $_iO9<sizeof($_iO1q); $_iO9 ++) { $_il1l=new gridrow(); $_il1l->DataItem =$_iO1q[$_iO9]; $this->_iO5d($_il1l); } $_il5h=array(); foreach ($this->_iO2p as $_iO5r) { if ($_iO5r->Aggregate !== NULL) { array_push($_il5h,array("\113ey" => $_iO5r->_iO23 ,"A\147\147re\147\141te" => $_iO5r->Aggregate ,"Da\164\141Fie\154\144" => $_iO5r->DataField)); } } $_iO1e=NULL; if (sizeof($_il5h)>0) { $_iO1e=$this->DataSource->getaggregates($_il5h); } if ($_iO1e !== NULL) { foreach ($this->_iO2p as $_iO5r) { if ( isset ($_iO1e[$_iO5r->_iO23 ])) { $_iO5r->_il2y =$_iO1e[$_iO5r->_iO23 ]; } } } } $this->SelectedKeys =array(); if ($this->KeepSelectedRecords && $this->DataKeyNames !== NULL) { if ($this->_iO24) { foreach ($this->_il3k as $_il1l) { $_iO64=_iO13($_il1l->DataItem ,$this->DataKeyNames); $_il65=_il16($_iO64); if ( isset ($_il64[$_il65])) { $_il1l->Selected =TRUE; } } } foreach ($_il64 as $_iO64) { array_push($this->SelectedKeys ,$_iO64); } } else { foreach ($this->_il3k as $_il1l) { if ($_il1l->Selected) { $_iO64=_iO13($_il1l->DataItem ,$this->DataKeyNames); array_push($this->SelectedKeys ,$_iO64); } } } if (sizeof($this->_il5f)>0) { $this->_il5j =new _il5a(); $this->_il5j->_iO23 =$this->_iO23."\137rg"; $this->_il5j->_il22($this); $this->_il5j->_iO5b =-1; $this->_il5j->_il5e($this->_il3k); $this->_il5j->_iO2i(); $this->_il5j->_il2l($_ilm); } } function getinstancerows() { return $this->_il3k; } function getinstancecolumns() { return $this->_iO2p; } function exporttocsv() { $_iO65=$this->_iO20->ExportSettings; header("Pr\141\147ma:\040\160ub\154\151c"); header("E\170\160ire\163\072 0"); header("Ca\143\150e-C\157\156tro\154\072 m\165\163t-\162\145va\154\151da\164\145,\040\160os\164\055c\150\145ck\0750, p\162\145-\143\150e\143\153=0"); header("Cac\150\145-Co\156\164ro\154\072 \160\165bl\151\143"); header("Con\164\145nt-\104\145scr\151\160tio\156\072 F\151\154e \124\162a\156\163fe\162"); header("C\157\156ten\164\055Ty\160\145: a\160\160li\143\141ti\157\156/f\157\162c\145\055do\167nloa\144"); header("Co\156\164ent\055\104is\160\157sit\151\157n:\040\141tt\141\143hm\145\156t;\040fil\145\156am\145\075\042".$_iO65->FileName."\056csv\042"); header("Cont\145\156t-Tr\141\156sf\145\162-E\156\143odi\156\147: \142\151na\162y"); $_il66=TRUE; foreach ($this->_iO2p as $_iO5r) { if ($_iO5r->AllowExporting) { if (!$_il66) echo "\054"; echo "\042".$_iO5r->HeaderText."\042"; $_il66=FALSE; } } echo "\015\n"; if ($_iO65->IgnorePaging) { $_iO66=$this->DataSource->getdata(); foreach ($_iO66 as $_il2g) { $_il1l=new gridrow(); $_il1l->DataItem =$_il2g; $_il66=TRUE; foreach ($this->_iO2p as $_iO5r) { if ($_iO5r->AllowExporting) { if (!$_il66) echo "\054"; echo "\042".$_iO5r->render($_il1l)."\042"; $_il66=FALSE; } } echo "\015\n"; } } else { foreach ($this->_il3k as $_il1l) { $_il66=TRUE; foreach ($this->_iO2p as $_iO5r) { if ($_iO5r->AllowExporting) { if (!$_il66) echo ","; echo "\042".$_iO5r->render($_il1l)."\042"; $_il66=FALSE; } } echo "\015\n"; } } exit (); } function exporttoexcel() { require "\154\151bra\162\171/E\170\143el/\127\162it\145\162.ph\160"; $_iO65=$this->_iO20->ExportSettings; $_il67=new spreadsheet_excel_writer(); $_il67->send($_iO65->FileName.".\170\154s"); $_iO67= &$_il67->addworksheet($_iO65->FileName); $_il68= &$_il67->addformat(); $_il68->setbold(); $_il68->setalign("left"); $_iO68= &$_il67->addformat(); $_iO68->setalign("left"); $_il69=0; $_iO69=0; $_il6a=array(); foreach ($this->_iO2p as $_iO5r) { if ($_iO5r->AllowExporting) { $_iO67->write($_iO69,$_il69,$_iO5r->HeaderText ,$_il68); $_il6a[$_il69]=strlen($_iO5r->HeaderText); $_il69 ++; } } $_iO69 ++; $_il69=0; if ($_iO65->IgnorePaging) { $_iO66=$this->DataSource->getdata(); foreach ($_iO66 as $_il2g) { $_il1l=new gridrow(); $_il1l->DataItem =$_il2g; foreach ($this->_iO2p as $_iO5r) { if ($_iO5r->AllowExporting) { $_il3=$_iO5r->render($_il1l); $_iO67->write($_iO69,$_il69,$_il3,$_iO68); if ($_il6a[$_il69]<strlen( "$_il3")) { $_il6a[$_il69]=strlen( "$_il3"); } $_il69 ++; } } $_iO69 ++; $_il69=0; } } else { foreach ($this->_il3k as $_il1l) { foreach ($this->_iO2p as $_iO5r) { if ($_iO5r->AllowExporting) { $_il3=$_iO5r->render($_il1l); $_iO67->write($_iO69,$_il69,$_il3,$_iO68); if ($_il6a[$_il69]<strlen( "$_il3")) { $_il6a[$_il69]=strlen( "$_il3"); } $_il69 ++; } } $_iO69 ++; $_il69=0; } } for ($_iO9=0; $_iO9<sizeof($_il6a); $_iO9 ++) { $_iO67->setcolumn($_iO9,$_iO9,(($_il6a[$_iO9]<055) ? $_il6a[$_iO9]: 055)+5); } $_il67->close(); exit (); } function exporttoword() { $_iO65=$this->_iO20->ExportSettings; header("Pr\141\147ma:\040publi\143"); header("\105xp\151\162es: \060"); header("\103ach\145\055Co\156\164rol\072\040m\165\163t-r\145\166al\151\144a\164\145, \160\157st\055chec\153=0, \160re-c\150eck=\060"); header("Cach\145\055Co\156\164rol\072\040p\165\142li\143"); header("\103\157nte\156\164-De\163\143ri\160\164ion\072 Fil\145\040Tr\141nsfe\162"); header("Conte\156\164-Ty\160\145: \141\160pli\143\141ti\157\156/m\163\167or\144"); header("\103ont\145\156t-\104\151spo\163\151tio\156\072 \141\164tac\150\155e\156\164; \146\151le\156\141m\145\075\042".$_iO65->FileName."\056\144oc\042"); header("Co\156\164ent\055\124ra\156\163fe\162\055En\143\157din\147\072 \142\151na\162y"); echo "<t\141\142le \142\157rde\162\075'1\047>"; echo "\074tr>"; foreach ($this->_iO2p as $_iO5r) { if ($_iO5r->AllowExporting) { echo "\074th a\154\151gn=\047\154ef\164\047 s\164\171le\075\047b\141\143k\147\162ou\156\144-c\157\154o\162\072#\105\105EE\105\105;'\076".$_iO5r->HeaderText."</\164\150>"; } } echo "\074/tr>"; if ($_iO65->IgnorePaging) { $_iO66=$this->DataSource->getdata(); foreach ($_iO66 as $_il2g) { $_il1l=new gridrow(); $_il1l->DataItem =$_il2g; echo "\074t\162\076"; foreach ($this->_iO2p as $_iO5r) { if ($_iO5r->AllowExporting) { echo "\074\164d>".$_iO5r->render($_il1l)."\074/t\144\076"; } } echo "<\057\164r>"; } } else { foreach ($this->_il3k as $_il1l) { echo "\074\164r>"; foreach ($this->_iO2p as $_iO5r) { if ($_iO5r->AllowExporting) { echo "<td>".$_iO5r->render($_il1l)."\074/t\144\076"; } } echo "</t\162\076"; } } echo "\074/t\141\142le>"; exit (); } function exporttopdf() { require "\154ibr\141\162y/t\143\160df/\143\157nf\151\147/l\141\156g/\145\156g\056\160hp"; require "\154\151bra\162\171/tc\160\144f/\164\143pdf\056php"; $_iO65=$this->_iO20->ExportSettings; $_iO6a=new tcpdf(PDF_PAGE_ORIENTATION,PDF_UNIT,PDF_PAGE_FORMAT,TRUE,'UTF-8',FALSE); $_iO6a->setfont('helvetica','',012); $_iO6a->addpage(); $_il6b=""; $_il6b.='<table border="1">'; $_il6b.="\074tr\076"; foreach ($this->_iO2p as $_iO5r) { if ($_iO5r->AllowExporting) { $_il6b.='<th align="left" style="background-color: #EEEEEE;"><b>'.$_iO5r->HeaderText.'</b></th>'; } } $_il6b.="<\057\164r>"; if ($_iO65->IgnorePaging) { $_iO66=$this->DataSource->getdata(); foreach ($_iO66 as $_il2g) { $_il1l=new gridrow(); $_il1l->DataItem =$_il2g; $_il6b.="<tr>"; foreach ($this->_iO2p as $_iO5r) { if ($_iO5r->AllowExporting) { $_il6b.="<td\076".$_iO5r->render($_il1l)."</t\144\076"; } } $_il6b.="\074/tr>"; } } else { foreach ($this->_il3k as $_il1l) { $_il6b.="\074tr>"; foreach ($this->_iO2p as $_iO5r) { if ($_iO5r->AllowExporting) { $_il6b.="\074\164d>".$_iO5r->render($_il1l)."</\164\144>"; } } $_il6b.="\074\057tr>"; } } $_il6b.="\074/tab\154\145>"; $_iO6a->writehtml($_il6b,TRUE,0,TRUE,0); $_iO6a->output($_iO65->FileName.".pd\146","\104"); exit (); } function _iO25() { $_iO6b="\074div \151\144='\173\151d}' \143\154as\163\075'k\147\162Ta\142\154e\126\151ew\047\040s\164\171le\075'\173\167\151dt\150\175\173\150ei\147\150t}\047>\173\147\162ou\160pan\145\154}\173\164ab\154\145s\175\173fu\156cti\157\156p\141\156e\154\175\173\160age\162}\173\163ta\164\165s\175\074/\144iv>"; $_il6c="\074tab\154\145 c\154\141ss=\047\153gr\124\141bl\145\047 c\145\154l\163\160ac\151\156g=\0470' \163\164yl\145='\173\163tyl\145\175'\076\173c\157\154gr\157up}\173\164he\141d}\173\164foo\164}\173\164bod\171\175<\057\164a\142\154e\076"; $_iO6c="<div\040\143la\163\163='\173\143las\163\175' s\164\171le\075'\173\144\151vs\164\171le\175\047>\074\164a\142\154e \151\144='\173\151d\175\137\173\160art\175\047 \163\164yl\145='\173\163tyl\145}' \143\154a\163\163='\153grT\141ble\047>\173\143\157l\147\162o\165\160}\173\164p\141\162t\175\074/\164abl\145></\144iv>"; $_il6d="\074co\154\147ro\165\160>\173\143\157ls\175\074/c\157\154gr\157\165p>"; $_iO6d="<\164\150ead>\074tr>\173\164hs}<\057\164r>\173\151nse\162tfor\155\175\173\146ilte\162\175<\057\164he\141d>"; $_il6e="\074tr>\173\164ds\175\074/tr\076"; $_iO6e="<\164\146oot\076\173tf\157\157t_t\162\163}<\057\164fo\157\164>"; $_il6f="<\164\162>\173\143\157l_\146\157ote\162\137td\163\175</\164\162>"; $_iO6f="\074tbo\144\171>\173\164body\137\164rs}\074/tbo\144\171>"; $_il6g=""; $_il5q=""; $_iO6g=""; $_il6h=sizeof($this->_iO2p); for ($_iO9=0; $_iO9<$_il6h; $_iO9 ++) { $_iO6h=$this->_iO2p[$_iO9]; $_il6g.=$_iO6h->_iO33(); if ($this->ShowHeader) { $_il5q.=$_iO6h->renderheader(); } if ($this->ShowFooter) { $_iO6g.=$_iO6h->renderfooter(); } } $_il6i=_iO0("\173cols}",$_il6g,$_il6d); $_iO6i=_iO0("\173\164\150s}",$_il5q,$_iO6d); $_iO6i=_iO0("\173\151nsert\146\157rm\175",($this->_iO50) ? $this->_iO5v->_iO25(): "",$_iO6i); $_il6j=FALSE; for ($_iO9=0; $_iO9<sizeof($this->_iO2p); $_iO9 ++) { if ($this->_iO2p[$_iO9]->AllowFiltering) { $_il6j=TRUE; } } if ($_il6j) { $_iO6j=""; for ($_iO9=0; $_iO9<sizeof($this->_iO2p); $_iO9 ++) { $_iO6j.=$this->_iO2p[$_iO9]->_iO3a(); } $_il6k=_iO0("\173tds}",$_iO6j,$_il6e); $_iO6i=_iO0("\173\146ilter}",$_il6k,$_iO6i); } else { $_iO6i=_iO0("\173\146\151lter\175","",$_iO6i); } $_iO6k=""; if ($this->ShowFunctionPanel) { $_iO6k=$this->FunctionPanel->_iO25(); } $_il6l=""; if ($this->ShowGroupPanel) { $_il6l=$this->GroupPanel->_iO25(); } $_iO45=""; if ($this->Pager != NULL) { $_iO45=$this->Pager->_iO25(); } $_iO6l=""; if ($this->_iO23 == $this->_iO20->_iO23."_\155\164" && $this->_iO20->ShowStatus) { $_iO6l=$this->_iO20->Status->_iO25(); } $_il6m=""; if ($this->ShowFooter) { $_iO6m=_iO0("\173co\154\137foo\164\145r_\164\144s}",$_iO6g,$_il6f); $_il6m.=$_iO6m; } $_il6n=_iO0("\173\164foot\137\164rs\175",$_il6m,$_iO6e); $_iO6n=""; for ($_iO9=0; $_iO9<sizeof($this->_il3k); $_iO9 ++) { if ($this->RowAlternative) { $this->_il3k[$_iO9]->_iO2e =($_iO9%2 != 0); } } if (sizeof($this->_il5f)>0) { $_iO6n=$this->_il5j->_iO25(); } else { for ($_iO9=0; $_iO9<sizeof($this->_il3k); $_iO9 ++) { $_iO6n.=$this->_il3k[$_iO9]->_iO25(); } } $_il6o=_iO0("\173\164\142ody\137\164rs\175",$_iO6n,$_iO6f); $_iO6o=_iO0("\173id\175",$this->_iO23 ,$_iO6b); if ($this->AllowScrolling == TRUE) { $_il6p="\164\141ble\055\154ay\157\165t:f\151\170ed\073\040em\160\164y-\143ell\163\072 s\150\157w;\040ove\162\146lo\167\072h\151\144de\156; w\151\144th\072\173w\151dth\175\073"; $_il6p=_iO0("\173width\175",($this->_il5w != NULL) ? $this->_il5w : "\06100%",$_il6p); $_iO6p=_iO0("\173\151d}",$this->_iO23 ,$_iO6c); $_iO6p=_iO0("\173p\141\162t}","h\145\141der",$_iO6p); $_iO6p=_iO0("\173clas\163\175","kgrPa\162\164Hea\144\145r",$_iO6p); $_iO6p=_iO0("\173co\154\147rou\160\175",$_il6i,$_iO6p); $_iO6p=_iO0("\173\164par\164\175",$_iO6i,$_iO6p); $_iO6p=_iO0("\173\163tyl\145\175",$_il6p,$_iO6p); $_iO6p=_iO0("\173d\151\166sty\154\145}","",$_iO6p); $_il6q=_iO0("\173id}",$this->_iO23 ,$_iO6c); $_il6q=_iO0("\173\160\141rt}","\144at\141",$_il6q); $_il6q=_iO0("\173\143lass}","\153grP\141\162tDat\141",$_il6q); $_il6q=_iO0("\173\143olgr\157\165p}",$_il6i,$_il6q); $_il6q=_iO0("\173tp\141\162t}",$_il6o,$_il6q); $_il6q=_iO0("\173\163tyle\175",$_il6p,$_il6q); $_iO6q=""; $_iO6q.=($this->_il5v) ? "\150eig\150\164:".$this->_il5v."\160\170;": ""; $_il6q=_iO0("\173\144\151vst\171\154e}",$_iO6q,$_il6q); $_il6r=_iO0("\173\151\144}",$this->_iO23 ,$_iO6c); $_il6r=_iO0("\173\160art\175","foo\164\145r",$_il6r); $_il6r=_iO0("\173\143lass}","kgrP\141\162tFoo\164\145r",$_il6r); $_il6r=_iO0("\173\143\157lgro\165\160}",$_il6i,$_il6r); $_il6r=_iO0("\173\164par\164\175",$_il6n,$_il6r); $_il6r=_iO0("\173styl\145\175",$_il6p,$_il6r); $_il6r=_iO0("\173\144ivsty\154\145}","",$_il6r); $_il6q=_iO0("\173c\157\154gro\165\160}",$_il6i,$_il6q); $_il6q=_iO0("\173tp\141\162t}",$_il6o,$_il6q); $_iO6o=_iO0("\173\164\141bles\175",$_iO6p.$_il6q.$_il6r,$_iO6o); } else { $_iO2s=$_il6c; $_iO2s=_iO0("\173\143\157lg\162\157up}",$_il6i,$_iO2s); $_iO2s=_iO0("\173\163tyl\145\175","\164\141ble\055\154ay\157\165t: \173layo\165\164};e\155\160ty\055cel\154s: s\150\157w;\173widt\150\175",$_iO2s); $_iO2s=_iO0("\173\154ayout\175",$this->TableLayout ,$_iO2s); if ($this->Width !== NULL && strpos($this->Width ,"\045") !== FALSE) { $_iO2s=_iO0("\173\167\151dth\175","\167\151dth\072\06100\045",$_iO2s); } $_iO2s=_iO0("\173thead\175",($this->ShowHeader) ? $_iO6i: "",$_iO2s); $_iO2s=_iO0("\173\164\146oo\164\175",$_il6n,$_iO2s); $_iO2s=_iO0("\173tbody\175",$_il6o,$_iO2s); $_iO6o=_iO0("\173\164able\163\175",$_iO2s,$_iO6o); } $_iO6o=_iO0("\173\167idth\175",($this->Width != "") ? "w\151\144th:".$this->Width.";": "",$_iO6o); $_iO6o=_iO0("\173he\151\147ht}",($this->Height != "") ? "\150\145igh\164\072".$this->Height."\073": "",$_iO6o); $_iO6o=_iO0("\173group\160\141nel\175",$_il6l,$_iO6o); $_iO6o=_iO0("\173\146unct\151\157npa\156\145l}",$_iO6k,$_iO6o); $_iO6o=_iO0("\173pa\147\145r}",$_iO45,$_iO6o); $_iO6o=_iO0("\173s\164\141tus\175",$_iO6l,$_iO6o); return $_iO6o; } } class _iO6r { var $LoadingText; var $DoneText; function _il22($_iO22) { if ($this->LoadingText === NULL) $this->LoadingText =$_iO22->Localization->_il28["Lo\141\144ing"]; if ($this->DoneText === NULL) $this->DoneText =$_iO22->Localization->_il28["\104one"]; } function _iO25() { $_il6s="<d\151\166 cl\141\163s=\047\153gr\123\164atu\163\047>\074\163pa\156 cl\141\163s=\047\153g\162\104on\145\124ex\164\047>\173\144o\156et\145\170t}\074/sp\141\156>\074\163p\141\156 c\154ass\075\047k\147rLo\141\144i\156\147Te\170t'>\173l\157adi\156\147t\145\170t\175</s\160an>\074/di\166>"; $_iO6l=_iO0("\173done\164\145xt}",$this->DoneText ,$_il6s); $_iO6l=_iO0("\173lo\141\144ing\164\145xt}",$this->LoadingText ,$_iO6l); return $_iO6l; } } class _iO6s { var $IgnorePaging=FALSE; var $FileName="Koo\154\107rid\105\170po\162\164"; } class _il6t { var $Resizing; var $Selecting; var $Scrolling; var $ClientMessages; var $ClientEvents; var $_iO20; function __construct() { $this->Resizing =array("\122esiz\145\107rid\117nC\157\154um\156\122es\151\172e" => FALSE); $this->Selecting =array(); $this->Scrolling =array("Save\123\143rol\154\151ngP\157\163it\151\157n" => TRUE); $this->ClientMessages =array("Dele\164\145Con\146\151rm" => NULL); $this->ClientEvents =array(); } function _il22($_iO22) { $this->_iO20 =$_iO22; if ($this->ClientMessages["\104\145let\145\103onf\151\162m"] === NULL) $this->ClientMessages["\104\145let\145\103onf\151\162m"]=$_iO22->Localization->_iO28["Del\145\164eCo\156\146ir\155"]; } function _iO1t() { $_il27=$this->_iO20->_iO2c; $_iO6t=$this->_iO20->_iO23; $_il27->_iO1p[$_iO6t]["Clien\164\123et\164\151ngs"]=array(); $_il27->_iO1p[$_iO6t]["\103lie\156\164Set\164\151ngs"]["Re\163\151zing"]=$this->Resizing; $_il27->_iO1p[$_iO6t]["\103lie\156\164Set\164\151ngs"]["Sel\145\143tin\147"]=$this->Selecting; $_il27->_iO1p[$_iO6t]["Cl\151\145ntS\145\164tin\147\163"]["Scro\154\154ing"]=$this->Scrolling; $_il27->_iO1p[$_iO6t]["\103lien\164\123ett\151\156gs"]["Cli\145\156tMes\163\141ges"]=$this->ClientMessages; $_il27->_iO1p[$_iO6t]["C\154\151ent\123\145tti\156\147s"]["Clie\156\164Eve\156\164s"]=$this->ClientEvents; } } class _il5r { var $ShowRefreshButton=TRUE; var $ShowInsertButton=TRUE; var $RefreshButtonText; var $InsertButtonText; var $_il2d; var $PanelTemplate="\173Inser\164\175 \173\122efre\163\150}"; function _il22($_il2f) { $this->_il2d =$_il2f; if ($this->RefreshButtonText === NULL) $this->RefreshButtonText =$_il2f->_iO20->Localization->_il28["\122efre\163\150"]; if ($this->InsertButtonText === NULL) $this->InsertButtonText =$_il2f->_iO20->Localization->_il28["Inse\162\164"]; } function _iO25() { $_il6u="<\144\151v c\154\141ss=\047kgrF\165\156ct\151\157nPa\156\145l'\076\173\143\157nt\145\156t}\074/div\076"; $_il3n="<inp\165\164 ty\160\145='b\165\164to\156\047 o\156\143li\143\153=\047\173on\143\154ic\153}' \164\151tl\145\075'\173\164it\154e}'\057>"; $_il41="\074a hr\145\146='\152\141vas\143\162ipt\072void\040\060'\040\157nc\154\151ck\075'\173\157\156cl\151\143k\175\047 t\151tle=\047\173t\151tle\175\047>\173\164ex\164}</\141\076"; $_iO41="\074spa\156\040cl\141\163s= \047\173cl\141\163s}\047\076\173\142utt\157\156}\173\141}</\163\160an\076 "; $_iO6u=_iO0("\173cl\141\163s}","kgrR\145\146res\150",$_iO41); $_iO6u=_iO0("\173butto\156\175",$_il3n,$_iO6u); $_iO6u=_iO0("\173\141}",($this->RefreshButtonText != NULL) ? $_il41: "",$_iO6u); $_iO6u=_iO0("\173oncl\151\143k}","grid\137\162efre\163\150(t\150\151s)",$_iO6u); $_iO6u=_iO0("\173tit\154\145}","",$_iO6u); $_iO6u=_iO0("\173\164ext}",$this->RefreshButtonText ,$_iO6u); $_il6v=_iO0("\173\143lass}","\153grIn\163\145rt",$_iO41); $_il6v=_iO0("\173\142utton\175",$_il3n,$_il6v); $_il6v=_iO0("\173a}",($this->InsertButtonText != NULL) ? $_il41: "",$_il6v); $_il6v=_iO0("\173\157ncli\143\153}","gri\144\137ins\145\162t(t\150\151s)",$_il6v); $_il6v=_iO0("\173t\151\164le}","",$_il6v); $_il6v=_iO0("\173te\170\164}",$this->InsertButtonText ,$_il6v); $_iO6v=_iO0("\173\143\157nte\156\164}",$this->PanelTemplate ,$_il6u); $_iO6v=_iO0("\173Ref\162\145sh}",($this->ShowRefreshButton) ? $_iO6u: "",$_iO6v); $_iO6v=_iO0("\173Inser\164\175",($this->ShowInsertButton) ? $_il6v: "",$_iO6v); return $_iO6v; } } class _il6w implements _iO1s { var $_iO23; var $_iO2c; var $MasterTable; var $_il24; var $AjaxEnabled=FALSE; var $AjaxHandlePage; var $_iO6w; var $Status; var $AllowHovering=FALSE; var $AllowSelecting=FALSE; var $AllowMultiSelecting=FALSE; var $AllowEditing=FALSE; var $AllowDeleting=FALSE; var $AllowScrolling=FALSE; var $AllowSorting=FALSE; var $AllowResizing=FALSE; var $AllowFiltering=FALSE; var $AllowGrouping=FALSE; var $ShowHeader=TRUE; var $ShowFooter=FALSE; var $RowAlternative=FALSE; var $AutoGenerateRowSelectColumn=FALSE; var $AutoGenerateExpandColumn=FALSE; var $AutoGenerateColumns=FALSE; var $AutoGenerateEditColumn=FALSE; var $AutoGenerateDeleteColumn=FALSE; var $DisableAutoGenerateDataFields=""; var $KeepSelectedRecords=FALSE; var $ShowStatus=TRUE; var $ColumnWrap=FALSE; var $ColumnAlign; var $_iO2y; var $TableLayout="\141u\164\157"; var $Width; var $Height; var $FilterOptions; var $PageSize=012; var $DataSource; var $ClientSettings; var $Localization; var $CharSet="UT\106\0558"; var $KeepViewStateInSession=FALSE; var $EventHandler; var $ExportSettings; function __construct($_il6x) { $this->_iO23 =$_il6x; $this->_iO2c =new _il20(); $this->Localization =new _iO27(); $this->MasterTable =new gridtableview(); $this->_iO6w =new _il2b($this); $this->Status =new _iO6r(); $this->ClientSettings =new _il6t(); $this->FilterOptions =array("N\157\137Fi\154\164er","\105qual","\116ot_E\161\165al","\107rea\164\145r_Th\141\156","\114ess\137\124han","Grea\164\145r_Th\141\156_O\162\137Eq\165\141l","\114\145ss_\124\150an_\117\162_Eq\165\141l","Co\156\164ain","\116ot_C\157\156tai\156","\123tart_\127\151th","End_W\151\164h"); $this->ExportSettings =new _iO6s(); } function _il22() { if ($this->EventHandler === NULL) $this->EventHandler =new grideventhandler(); $this->_iO2c->_il22($this); $this->_il24->_iO23 =$this->_iO23."_mt"; $this->_il24->_il22($this,NULL); $this->ClientSettings->_il22($this); $this->Status->_il22($this); } function _il1t() { if ( isset ($this->_iO2c->_iO1p[$this->_iO23 ])) { $_iO2f=$this->_iO2c->_iO1p[$this->_iO23 ]; } } function _iO1t() { $this->_iO2c->_iO1p =array(); $this->_iO2c->_iO1p[$this->_iO23 ]=array(); $this->_il24->_iO1t(); $this->ClientSettings->_iO1t(); } function process() { $this->_il24 =$this->MasterTable->_il2j(); $this->_il22(); $this->_il1t(); $this->_il24->_iO2i(); if ( isset ($this->_iO6w->_il28[$this->_iO23 ])) { $_iO2l=$this->_iO6w->_il28[$this->_iO23 ]; switch ($_iO2l["Co\155\155and"]) { case "Re\146\162esh": $this->_il24->_iO24 =TRUE; break; } } $this->EventHandler->ongridprerender($this,array()); $this->_il24->_il2l($this->_iO6w); } function refresh() { if ($this->_il24 !== NULL) { $this->_il24->_iO24 =TRUE; } } function getinstancemastertable() { return $this->_il24; } function _iO6x() { $this->_iO1t(); $_il48="\173\155\141ster\164able\175\173vi\145\167sta\164\145}\173\143om\155\141nd\175"; $_ilg=_iO0("\173m\141\163ter\164\141ble\175",$this->_il24->_iO25(),$_il48); $_ilg=_iO0("\173views\164\141te}",$this->_iO2c->_iO25(),$_ilg); $_ilg=_iO0("\173com\155\141nd}",$this->_iO6w->_iO25(),$_ilg); return $_ilg; } function registerclientevent($_il6y,$_iO6y) { $this->ClientSettings->ClientEvents[$_il6y]=$_iO6y; } } class grideventhandler { function onbeforedetailtablesexpand($_il6z,$_il4a) { return TRUE; } function ondetailtablesexpand($_il6z,$_il4a) { } function onbeforedetailtablescollapse($_il6z,$_il4a) { return TRUE; } function ondetailtablescollapse($_il6z,$_il4a) { } function onbeforerowstartedit($_il6z,$_il4a) { return TRUE; } function onrowstartedit($_il6z,$_il4a) { } function onbeforerowcanceledit($_il6z,$_il4a) { return TRUE; } function onrowcanceledit($_il6z,$_il4a) { } function onbeforerowdelete($_il6z,$_il4a) { return TRUE; } function onrowdelete($_il6z,$_il4a) { } function onbeforecolumnsort($_il6z,$_il4a) { return TRUE; } function oncolumnsort($_il6z,$_il4a) { } function onbeforecolumngroup($_il6z,$_il4a) { return TRUE; } function oncolumngroup($_il6z,$_il4a) { } function onbeforecolumnfilter($_il6z,$_il4a) { return TRUE; } function oncolumnfilter($_il6z,$_il4a) { } function onbeforepageindexchange($_il6z,$_il4a) { return TRUE; } function onpageindexchange($_il6z,$_il4a) { } function onbeforepagesizechange($_il6z,$_il4a) { return TRUE; } function onpagesizechange($_il6z,$_il4a) { } function onbeforerowconfirmedit($_il6z,$_il4a) { return TRUE; } function onrowconfirmedit($_il6z,$_il4a) { } function onbeforeconfirminsert($_il6z,$_il4a) { return TRUE; } function onconfirminsert($_il6z,$_il4a) { } function onbeforestartinsert($_il6z,$_il4a) { return TRUE; } function onstartinsert($_il6z,$_il4a) { } function onbeforecancelinsert($_il6z,$_il4a) { return TRUE; } function oncancelinsert($_il6z,$_il4a) { } function onrowprerender($_il6z,$_il4a) { } function ontableviewprerender($_il6z,$_il4a) { } function ongridprerender($_il6z,$_il4a) { } } class koolgrid extends _il6w { var $_il0="\062.3.\060\0560"; var $styleFolder; var $_il6p; var $scriptFolder; var $id; var $AjaxLoadingImage; function __construct($_il6x) { $this->id =$_il6x; parent:: __construct($_il6x); } function render() { $_iO6z=""; $_iO6z.=$this->registercss(); $_iO6z.=$this->rendergrid(); $_il70= isset ($_POST["__ko\157lajax"]) || isset ($_GET["\137_ko\157\154aj\141\170"]); $_iO6z.=($_il70) ? "": $this->registerscript(); $_iO6z.="\074scri\160\164 t\171\160e='\164\145xt\057\152av\141\163cr\151\160t\047\076"; $_iO6z.=$this->startupscript(); $_iO6z.="\074/scri\160\164>"; if ($this->AjaxEnabled && class_exists("\125\160dat\145\120an\145\154")) { $_iO70=new updatepanel($this->id."\137upd\141\164epa\156\145l"); $_iO70->content =$_iO6z; $_iO70->cssclass =$this->_il6p."\113\107R_\125\160dat\145\120ane\154"; if ($this->AjaxLoadingImage) { $_iO70->setloading($this->AjaxLoadingImage); } $_iO6z=$_iO70->render(); } return $_iO6z; } function rendergrid() { $this->_il71(); $_iO71="\n\074!--Ko\157\154Gr\151\144 ve\162\163ion\040\173v\145\162sio\156} -\040\167ww\056kool\160\150p\056\156et\040-->\n"; $_il72=_iO0("\173\166ersi\157\156}",$this->_il0 ,$_iO71); $_ilg=_iO0("\173id}",$this->id ,_iOd()); if (_iOf($_ilg)) { $_ilg=_iO0("\173s\164\171le}",$this->_il6p ,$_ilg); } $_ilg=_iO0("\173trad\145\155ark\175",$_il72,$_ilg); $_ilg=_iO0("\173\167idt\150\175",($this->Width !== NULL) ? "\167\151dth\072".$this->Width : "",$_ilg); $_ilg=_iO0("\173co\156\164ent\175",parent::_iO6x(),$_ilg); $_ilg=_iO0("\173versi\157\156}",$this->_il0 ,$_ilg); return $_ilg; } function _il71() { $this->styleFolder =_iO0("\134","\057",$this->styleFolder); $_iO72=trim($this->styleFolder ,"/"); $_il73=strrpos($_iO72,"/"); $this->_il6p =substr($_iO72,($_il73 ? $_il73: -1)+1); } function registercss() { $this->_il71(); $_iO73="\074s\143\162ipt\040\164yp\145\075't\145\170t/\152\141va\163\143ri\160\164'>\151\146 \050\144oc\165men\164\056ge\164Ele\155\145n\164\102y\111\144('\137\137\173\163ty\154\145}K\107\122'\051==n\165\154l\051\173v\141\162 _\150ead\040= \144\157cu\155ent\056get\105le\155\145n\164\163B\171\124a\147Nam\145('h\145ad'\051[0\135\073v\141r _\154in\153\040=\040do\143\165m\145nt.\143re\141\164e\105le\155\145n\164('l\151nk\047);\040_l\151\156k\056id\040= \047__\173\163t\171le\175\113G\122';\137li\156k.r\145l=\047st\171le\163h\145et\047; \137li\156k.\150re\146\075\047\173s\164yl\145pa\164h}\057\173\163ty\154e}\057\173\163ty\154e}\056c\163s'\073_h\145ad\056a\160pe\156dC\150il\144(_\154in\153)\073}<\057sc\162i\160t>"; $_iO6z=_iO0("\173style\175",$this->_il6p ,$_iO73); $_iO6z=_iO0("\173styl\145\160ath\175",$this->_il74(),$_iO6z); return $_iO6z; } function registerscript() { $_iO73="\074scri\160\164 ty\160\145='t\145\170t/\152\141vas\143\162ip\164'>if\050typ\145\157f \137\154ib\113\107R\075\075'\165\156de\146\151n\145\144')\173\144o\143\165me\156t.w\162\151te\050une\163\143a\160\145(\042\0453\103\163c\162\151pt\040ty\160\145='\164ext\057ja\166\141s\143\162ip\164' s\162c=\047\173s\162\143}\047%3E\040%3\103\057s\143rip\164%3E\042))\073_l\151\142K\107\122=\061;}\074/sc\162ip\164\076"; $_iO6z=_iO0("\173s\162\143}",$this->_iO74()."?".md5("j\163"),$_iO73); return $_iO6z; } function startupscript() { $_iO73="var\040\173id}\073 func\164\151on\040\173id\175\137in\151\164()\173\040\173\151d}=\156\145w \113oolG\162id(\047\173id\175',\173\101jax\105nab\154\145d}\054'\173\101jax\110\141n\144\154eP\141ge}\047);}"; $_iO73.="\151f \050\164ype\157\146(K\157\157lGr\151\144)=\075\047f\165\156ct\151\157n'\051\173\173\151d}_\151\156it\050);}"; $_iO73.="\145lse\173\151\146(t\171\160eof\050__KG\122\111nit\163\051=\075\047u\156\144ef\151\156ed\047)\173\137\137KG\122Init\163=ne\167\040A\162\162ay\050);}\040\137_\113\107RI\156its\056\160u\163\150(\173\151d}\137\151n\151\164);\173reg\151ste\162\137s\143\162i\160\164}\175"; $_il75="\151f(t\171\160eof\050\137li\142\113GR\051\075='\165\156de\146\151ne\144\047)\173\166ar\040\137h\145\141d \075 do\143\165me\156\164.\147\145tE\154\145m\145\156ts\102\171T\141\147Na\155e('\150\145a\144\047)\133\060]\073\166a\162\040_\163\143r\151\160t \075 d\157\143u\155\145n\164\056c\162\145a\164eEl\145men\164\050'\163cri\160t'\051\073 \137sc\162\151p\164\056t\171pe\075'te\170t/\152\141v\141scr\151pt\047\073 \137sc\162ip\164\056s\162c=\047\173s\162c}\047; \137\150e\141d.\141ppe\156dC\150il\144(_s\143ri\160t)\073_l\151bK\107R=\061;}"; $_iO75=_iO0("\173\163rc}",$this->_iO74()."\077".md5("j\163"),$_il75); $_iO6z=_iO0("\173\151\144}",$this->id ,$_iO73); $_iO6z=_iO0("\173\101jaxE\156\141ble\144\175",$this->AjaxEnabled ? "\061": "0",$_iO6z); $_iO6z=_iO0("\173\101jaxH\141\156dl\145\120age\175",$this->AjaxHandlePage ,$_iO6z); $_iO6z=_iO0("\173\162egis\164\145r_s\143\162ip\164\175",$_iO75,$_iO6z); return $_iO6z; } function _iO74() { if ($this->scriptFolder == "") { $_il5=_iO3(); $_il76=substr(_iO0("\134","/",__FILE__),strlen($_il5)); return $_il76; } else { $_il76=_iO0("\134","/",__FILE__); $_il76=$this->scriptFolder.substr($_il76,strrpos($_il76,"/")); return $_il76; } } function _il74() { $_iO76=$this->_iO74(); $_il77=_iO0(strrchr($_iO76,"\057"),"",$_iO76)."\057styl\145\163"; return $_il77; } } } ?>
function load($_il23) { $_iO23 = new domdocument(); $_iO23->load($_il23); $_il24 = $_iO23->getelementsbytagname("commands"); if ($_il24->length > 0) { foreach ($_il24->item(0)->attributes as $_iO24) { $this->_il22[$_iO24->name] = $_iO24->value; } } $_il24 = $_iO23->getelementsbytagname("messages"); if ($_il24->length > 0) { foreach ($_il24->item(0)->attributes as $_iO24) { $this->_iO22[$_iO24->name] = $_iO24->value; } } }
function loadxml($_bOz) { if (gettype($_bOz) == "string") { $_bO1 = new domdocument(); $_bO1->loadxml($_bOz); $_bOz = $_bO1->documentElement; } $id = $_bOz->getattribute("id"); if ($id != "") { $this->id = $id; } $this->width = $_bOz->getattribute("width"); $this->height = $_bOz->getattribute("height"); $this->overflow = $_bOz->getattribute("overflow"); $this->styleFolder = $_bOz->getattribute("styleFolder"); $this->imageFolder = $_bOz->getattribute("imageFolder"); $this->selectedIds = $_bOz->getattribute("selectedIds"); $this->selectDisableIds = $_bOz->getattribute("selectDisableIds"); $this->dragDisableIds = $_bOz->getattribute("dragDisableIds"); $this->dropDisableIds = $_bOz->getattribute("dropDisableIds"); $this->editDisableIds = $_bOz->getattribute("editDisableIds"); $_bl10 = $_bO10->getattribute("scriptFolder"); if ($_bl10 != "") { $this->scriptFolder = $_bl10; } $_bl11 = $_bOz->getattribute("selectEnable"); $this->selectEnable = $_bl11 == "" ? FALSE : ($_bl11 == "true" ? TRUE : FALSE); $_bl11 = $_bOz->getattribute("multipleSelectEnable"); $this->multipleSelectEnable = $_bl11 == "" ? FALSE : ($_bl11 == "true" ? TRUE : FALSE); $_bl11 = $_bOz->getattribute("DragAndDropEnable"); $this->DragAndDropEnable = $_bl11 == "" ? FALSE : ($_bl11 == "true" ? TRUE : FALSE); $_bl11 = $_bOz->getattribute("EditNodeEnable"); $this->EditNodeEnable = $_bl11 == "" ? FALSE : ($_bl11 == "true" ? TRUE : FALSE); $_bl11 = $_bOz->getattribute("isSubTree"); $this->isSubTree = $_bl11 == "" ? FALSE : ($_bl11 == "true" ? TRUE : FALSE); $_bl11 = $_bOz->getattribute("showOnExpand"); $this->showOnExpand = $_bl11 == "" ? FALSE : ($_bl11 == "true" ? TRUE : FALSE); $_bl11 = $_bOz->getattribute("keepState"); if ($_bl11 != "") { $this->keepState = $_bl11; } $_bl11 = $_bOz->getattribute("keepStateHours"); if ($_bl11 != "") { $this->keepStateHours = intval($_bl11); } $_bl11 = $_bOz->getattribute("singleExpand"); $this->singleExpand = $_bl11 == "" ? FALSE : ($_bl11 == "true" ? TRUE : FALSE); foreach ($_bOz->childNodes as $_bO11) { switch (strtolower($_bO11->nodeName)) { case "rootnode": $this->_bly->text = $_bO11->getattribute("text"); $this->_bly->image = $_bO11->getattribute("image"); $this->_bly->subTreeUrl = $_bO11->getattribute("subTreeUrl"); $_bl11 = $_bO11->getattribute("expand"); $this->_bly->expand = $_bl11 == "" ? FALSE : ($_bl11 == "true" ? TRUE : FALSE); $_bl11 = $_bO11->getattribute("visible"); $this->_bly->visible = $_bl11 == "" ? TRUE : ($_bl11 == "true" ? TRUE : FALSE); $_bl11 = $_bO11->getattribute("showPlusMinus"); $this->_bly->showPlusMinus = $_bl11 == "" ? TRUE : ($_bl11 == "true" ? TRUE : FALSE); $this->_bl12($this->_bly, $_bO11); break; case "templates": break; } } }
public function transform($xslt_file) { $xslt = new domdocument(); $xml = new domdocument(); if (file_exists($xslt_file) == false) { return false; } else { if ($xslt->load($xslt_file) == false) { return false; } } if ($xml->loadxml($this->document) == false) { return false; } $processor = new xsltprocessor(); $processor->importstylesheet($xslt); foreach ($this->xslt_parameters as $key => $value) { $processor->setparameter("", $key, $value); } return $processor->transformtoxml($xml); }
<?php $opts = array('http' => array('method' => "GET", 'header' => "Accept-language: en\r\n" . "Cookie: foo=bar\r\n"), 'file' => array()); $context = stream_context_create($opts); libxml_set_streams_context($context); $d = domdocument::load('http://localhost/stream-example.xml'); print $d->saveXML();
/** * convert array to xml * * @param string $p_arr * @param string $rootName * @return DomDocument * @author Andy Bennett */ public static function convert_array_to_xml($p_arr, $rootName = 'rows') { $doc = new domdocument("1.0", "utf-8"); if (is_array($p_arr) && count($p_arr) != 0) { $arr = array(); if (count($p_arr) > 1) { if ($rootName != "") { $root = $doc->createElement($rootName); } else { $root = $doc->createElement("root"); $rootName = "root"; } $arr = $p_arr; } else { $key = key($p_arr); $val = $p_arr[$key]; if (!is_int($key)) { $root = $doc->createElement($key); $rootName = $key; } else { if ($rootName != "") { $root = $doc->createElement($rootName); } else { $root = $doc->createElement("root"); $rootName = "root"; } } $arr = $p_arr[$key]; } $root = $doc->appendchild($root); self::array_to_xml($doc, $root, $arr, $rootName); return $doc; } }