diff options
-rw-r--r-- | web/public/css/flexigrid/flexigrid-minified.css | 2 | ||||
-rw-r--r-- | web/public/css/flexigrid/flexigrid.css | 16 | ||||
-rw-r--r-- | web/public/js/flexigrid-minified.js | 2 | ||||
-rw-r--r-- | web/public/js/flexigrid.js | 6 |
4 files changed, 22 insertions, 4 deletions
diff --git a/web/public/css/flexigrid/flexigrid-minified.css b/web/public/css/flexigrid/flexigrid-minified.css index e528a73..8628b7a 100644 --- a/web/public/css/flexigrid/flexigrid-minified.css +++ b/web/public/css/flexigrid/flexigrid-minified.css @@ -1 +1 @@ -@charset "UTF-8";.flexigrid{font-size:80%;position:relative;border:0 solid #ddddd4;overflow:hidden;color:#000;margin-bottom:10px;}.flexigrid.hideBody{height:26px!important;border-bottom:1px solid #ddddd4;}.ie6fullwidthbug{border-right:0 solid #ddddd4;padding-right:2px;}.flexigrid div.nDiv{background:#eee url(images/line.gif) repeat-y -1px top;border:1px solid #ddddd4;border-top:0;overflow:auto;left:0;position:absolute;z-index:999;float:left;}.flexigrid div.nDiv table{margin:2px;}.flexigrid div.hDivBox{float:left;padding-right:40px;}.flexigrid div.hDivBox table{background:#b8b8b0;}.flexigrid div.bDiv table{margin-bottom:10px;}.flexigrid div.bDiv table.autoht{border-bottom:0;margin-bottom:0;}.flexigrid div.nDiv td{padding:2px 3px;border:1px solid #ddddd4;cursor:default;}.flexigrid div.nDiv tr:hover td,.flexigrid div.nDiv tr.ndcolover td{border:1px solid #ddddd4;}.flexigrid div.nDiv td.ndcol1{border-right:1px solid #ddddd4;}.flexigrid div.nDiv td.ndcol2{border-left:1px solid #ddddd4;padding-right:10px;}.flexigrid div.nDiv tr:hover td.ndcol1,.flexigrid div.nDiv tr.ndcolover td.ndcol1{border-right:1px solid #d2e3ec;}.flexigrid div.nDiv tr:hover td.ndcol2,.flexigrid div.nDiv tr.ndcolover td.ndcol2{border-left:1px solid #eef8ff;}.flexigrid div.nBtn{position:absolute;height:24px;width:14px;z-index:900;border:0 solid #ccc;border-left:1px solid #ccc;top:0;left:0;margin-top:1px;cursor:pointer;display:none;}.flexigrid div.nBtn div{height:24px;width:12px;border-left:1px solid #fff;float:left;}.flexigrid div.mDiv{border:1px solid #ccc;border-bottom:0;border-top:0;font-weight:bold;display:block;overflow:hidden;white-space:nowrap;position:relative;}.flexigrid div.mDiv div{padding:6px;white-space:nowrap;}.flexigrid div.mDiv div.ptogtitle{position:absolute;top:4px;right:3px;padding:0;height:16px;width:16px;overflow:hidden;border:1px solid #ccc;cursor:pointer;}.flexigrid div.mDiv div.ptogtitle:hover{background-position:left -2px;border-color:#bbb;}.flexigrid div.mDiv div.ptogtitle span{display:block;border-left:1px solid #eee;border-top:1px solid #fff;border-bottom:1px solid #ddd;width:14px;height:14px;}.flexigrid div.tDiv{background:#fafafa;position:relative;border:1px solid #ccc;border-bottom:0;overflow:hidden;}.flexigrid div.tDiv2{float:left;clear:both;padding:1px;}.flexigrid div.sDiv{position:relative;float:right;margin-right:4px;}.flexigrid div.sDiv2{float:left;padding:1px 0 0 5px;}.flexigrid div.sDiv2 input,.flexigrid div.sDiv2 select{background:url(images/magnifier.png) no-repeat right #fff;}.flexigrid div.sDiv2 select{margin:0;padding:0;}.flexigrid span.customStyleSelectBox{padding:0 4px;}.flexigrid div.btnseparator{float:left;height:22px;border-left:1px solid #b8b8b0;margin:1px;}.flexigrid div.fbutton{float:left;display:block;cursor:pointer;padding:1px;}.flexigrid div.fbutton div{float:left;padding:1px 3px;}.flexigrid div.fbutton span{float:left;display:block;padding:3px;}.flexigrid div.fbutton:hover,.flexigrid div.fbutton.fbOver{padding:0;border:1px solid #ccc;}.flexigrid div.fbutton:hover div,.flexigrid div.fbutton.fbOver div{padding:0 2px;border-left:1px solid #fff;border-top:1px solid #fff;border-right:1px solid #eee;border-bottom:1px solid #eee;}.flexigrid div.hDiv{position:relative;font-weight:bold;overflow:hidden;}.flexigrid div.hDiv table{border-right:1px solid #ddddd4;}.flexigrid div.cDrag{float:left;position:absolute;z-index:2;overflow:visible;}.flexigrid div.cDrag div{float:left;background:none;display:block;position:absolute;height:24px;width:3px;cursor:col-resize;}.flexigrid div.cDrag div:hover,.flexigrid div.cDrag div.dragging{background-color:#808080;}.flexigrid div.iDiv{border:1px solid #316ac5;position:absolute;overflow:visible;background:none;}.flexigrid div.iDiv input.tb{border:0;padding:0;width:100%;height:100%;padding:0;background:none;}.flexigrid div.bDiv{border-right:1px solid #ddddd4;background:#ddddd4;overflow:auto;position:relative;}.flexigrid div.bDiv table{border-bottom:1px solid #ddddd4;}.flexigrid div.hGrip{position:absolute;top:0;right:0;height:5px;width:5px;background:url(images/line.gif) repeat-x center;margin-right:1px;cursor:col-resize;}.flexigrid div.hGrip:hover,.flexigrid div.hGrip.hgOver{border-right:1px solid #999;margin-right:0;}.flexigrid div.vGrip{height:5px;overflow:hidden;position:relative;background:#ddddd4;border:1px solid #ccc;border-top:0;text-align:center;cursor:row-resize;}.flexigrid div.vGrip span{display:block;margin:1px auto;width:20px;height:1px;overflow:hidden;border-top:1px solid #aaa;border-bottom:1px solid #aaa;background:none;}.flexigrid div.hDiv th,.flexigrid div.bDiv td{text-align:left;border-right:1px solid #ddddd4;overflow:hidden;vertical-align:top!important;}.flexigrid div.hDiv th div,.flexigrid div.bDiv td div,div.colCopy div{padding:2px 6px;border-right:0 solid #ddddd4;}.flexigrid div.hDiv th,div.colCopy{height:27px;cursor:default;white-space:nowrap;overflow:hidden;}.flexigrid div.hDiv th img{position:relative;top:3px;}div.colCopy{border:1px solid #ccc;border-bottom:0;overflow:hidden;}.flexigrid div.hDiv th.sorted{background:#a0a098;border-bottom:0 solid #ccc;}.flexigrid div.hDiv th.thOver{background-color:#a0a098!important;}.flexigrid div.hDiv th.thMove{background:#fff;color:#fff;}.flexigrid div.hDiv th.sorted.thMove div{border-bottom:1px solid #fff;padding-bottom:4px;}.flexigrid div.hDiv th.thMove div{background:#fff!important;}.flexigrid div.hDiv th div.sdesc{background:url(images/ddn.png) no-repeat center top;}.flexigrid div.hDiv th div.sasc{background:url(images/uup.png) no-repeat center top;}.flexigrid div.bDiv td{border-bottom:0;vertical-align:top;white-space:nowrap;}.flexigrid span.cdropleft{display:block;background:url(images/prev.gif) no-repeat -4px center;width:24px;height:24px;position:relative;top:-24px;margin-bottom:-24px;z-index:3;}.flexigrid div.hDiv span.cdropright{display:block;background:url(images/next.gif) no-repeat 12px center;width:24px;height:24px;float:right;position:relative;top:-24px;margin-bottom:-24px;}.flexigrid div.bDiv td{background:#e8e8e4;}.flexigrid div.bDiv td div{border-top:0 solid #ddddd4;height:22px;overflow:hidden;}.flexigrid tr td.sorted{border-right:1px solid #ddd;border-bottom:0;}.flexigrid tr.erow td{background:#d0d0c8;border-bottom:0;}.flexigrid tr.erow td.sorted{border-bottom:0;}.flexigrid div.bDiv tr:hover td,.flexigrid div.bDiv tr:hover td.sorted,.flexigrid div.bDiv tr.trOver td.sorted,.flexigrid div.bDiv tr.trOver td{background:#fff;border-bottom:0;}.flexigrid.novstripe .bDiv table{border-bottom:1px solid #ccc;border-right:1px solid #ccc;}.flexigrid.novstripe div.bDiv td{border-right-color:#fff;}.flexigrid.novstripe div.bDiv tr.erow td{border-right-color:#f7f7f7;border-left-color:#f7f7f7;}.flexigrid.novstripe div.bDiv tr.trOver td,.flexigrid.novstripe div.bDiv tr:hover td{border-left-color:#d9ebf5;border-right-color:#d9ebf5;}.flexigrid div.pDiv{background:#ddddd4;border-top:0;overflow:hidden;white-space:nowrap;position:relative;}.flexigrid div.pDiv div.pDiv2{padding:2px 0 1px 0;float:left;margin-bottom:1px;background-color:#b8b8b0;width:800px;border-top-left-radius:4px;border-top-right-radius:4px;}div.pGroup{float:left;background:none;height:24px;margin:0 5px;}.flexigrid div.pDiv .pPageStat{width:220px;display:block;}.flexigrid div.pDiv .pPageStat,.flexigrid div.pDiv .pcontrol{position:relative;top:1px;overflow:visible;}.flexigrid div.pDiv input{vertical-align:text-top;position:relative;top:-2px;border:0 none;border-radius:4px;margin:0;padding:2px;}.flexigrid div.pDiv div.pButton{float:left;width:22px;height:22px;border:0;cursor:pointer;overflow:hidden;}.flexigrid div.pDiv div.pButton:hover,.flexigrid div.pDiv div.pButton.pBtnOver{width:20px;height:20px;border:1px solid #f0f0f0;border-radius:4px;cursor:pointer;}.flexigrid div.pDiv div.pButton span{width:20px;height:20px;display:block;float:left;}.flexigrid div.pDiv div.pButton:hover span,.flexigrid div.pDiv div.pButton.pBtnOver span{width:19px;height:19px;}.flexigrid .pSearch{background:url(images/magnifier.png) no-repeat center;}.flexigrid .pFirst{background:url(images/first.gif) no-repeat center;}.flexigrid .pPrev{background:url(images/prev.gif) no-repeat center;}.flexigrid .pNext{background:url(images/next.gif) no-repeat center;}.flexigrid .pLast{background:url(images/last.gif) no-repeat center;}.flexigrid .pReload{background:url(images/load.png) no-repeat center;}.flexigrid .pReload.loading{background:url(images/load.gif) no-repeat center;}.flexigrid.ie div.hDiv th div,.flexigrid.ie div.bDiv td div,div.colCopy.ie div{overflow:hidden;}
\ No newline at end of file +@charset "UTF-8";.flexigrid{font-size:80%;position:relative;border:0 solid #ddddd4;overflow:hidden;color:#000;margin-bottom:10px;}.flexigrid.hideBody{height:26px!important;border-bottom:1px solid #ddddd4;}.ie6fullwidthbug{border-right:0 solid #ddddd4;padding-right:2px;}.flexigrid div.nDiv{background:#eee url(images/line.gif) repeat-y -1px top;border:1px solid #ddddd4;border-top:0;overflow:auto;left:0;position:absolute;z-index:999;float:left;}.flexigrid div.nDiv table{margin:2px;}.flexigrid div.hDivBox{float:left;padding-right:40px;}.flexigrid div.hDivBox table{background:#b8b8b0;}.flexigrid div.bDiv table{margin-bottom:10px;}.flexigrid div.bDiv table.autoht{border-bottom:0;margin-bottom:0;}.flexigrid div.nDiv td{padding:2px 3px;border:1px solid #ddddd4;cursor:default;}.flexigrid div.nDiv tr:hover td,.flexigrid div.nDiv tr.ndcolover td{border:1px solid #ddddd4;}.flexigrid div.nDiv td.ndcol1{border-right:1px solid #ddddd4;}.flexigrid div.nDiv td.ndcol2{border-left:1px solid #ddddd4;padding-right:10px;}.flexigrid div.nDiv tr:hover td.ndcol1,.flexigrid div.nDiv tr.ndcolover td.ndcol1{border-right:1px solid #d2e3ec;}.flexigrid div.nDiv tr:hover td.ndcol2,.flexigrid div.nDiv tr.ndcolover td.ndcol2{border-left:1px solid #eef8ff;}.flexigrid div.nBtn{position:absolute;height:24px;width:14px;z-index:900;border:0 solid #ccc;border-left:1px solid #ccc;top:0;left:0;margin-top:1px;cursor:pointer;display:none;}.flexigrid div.nBtn div{height:24px;width:12px;border-left:1px solid #fff;float:left;}.flexigrid div.mDiv{border:1px solid #ccc;border-bottom:0;border-top:0;font-weight:bold;display:block;overflow:hidden;white-space:nowrap;position:relative;}.flexigrid div.mDiv div{padding:6px;white-space:nowrap;}.flexigrid div.mDiv div.ptogtitle{position:absolute;top:4px;right:3px;padding:0;height:16px;width:16px;overflow:hidden;border:1px solid #ccc;cursor:pointer;}.flexigrid div.mDiv div.ptogtitle:hover{background-position:left -2px;border-color:#bbb;}.flexigrid div.mDiv div.ptogtitle span{display:block;border-left:1px solid #eee;border-top:1px solid #fff;border-bottom:1px solid #ddd;width:14px;height:14px;}.flexigrid div.tDiv{background:#fafafa;position:relative;border:1px solid #ccc;border-bottom:0;overflow:hidden;}.flexigrid div.tDiv2{float:left;clear:both;padding:1px;}.flexigrid div.sDiv{position:relative;float:right;margin-right:4px;}.flexigrid div.sDiv2{float:left;padding:1px 0 0 5px;}.flexigrid div.sDiv2 input,.flexigrid div.sDiv2 select{background:url(images/magnifier.png) no-repeat right #fff;}.flexigrid div.sDiv2 select{margin:0;padding:0;}.flexigrid span.customStyleSelectBox{padding:0 4px;}.flexigrid div.btnseparator{float:left;height:22px;border-left:1px solid #b8b8b0;margin:1px;}.flexigrid div.fbutton{float:left;display:block;cursor:pointer;padding:1px;}.flexigrid div.fbutton div{float:left;padding:1px 3px;}.flexigrid div.fbutton span{float:left;display:block;padding:3px;}.flexigrid div.fbutton:hover,.flexigrid div.fbutton.fbOver{padding:0;border:1px solid #ccc;}.flexigrid div.fbutton:hover div,.flexigrid div.fbutton.fbOver div{padding:0 2px;border-left:1px solid #fff;border-top:1px solid #fff;border-right:1px solid #eee;border-bottom:1px solid #eee;}.flexigrid div.hDiv{position:relative;font-weight:bold;overflow:hidden;}.flexigrid div.hDiv table{border-right:1px solid #ddddd4;}.flexigrid div.cDrag{float:left;position:absolute;z-index:2;overflow:visible;}.flexigrid div.cDrag div{float:left;background:none;display:block;position:absolute;height:24px;width:3px;cursor:col-resize;}.flexigrid div.cDrag div:hover,.flexigrid div.cDrag div.dragging{background-color:#808080;}.flexigrid div.iDiv{border:1px solid #316ac5;position:absolute;overflow:visible;background:none;}.flexigrid div.iDiv input.tb{border:0;padding:0;width:100%;height:100%;padding:0;background:none;}.flexigrid div.bDiv{border-right:1px solid #ddddd4;background:#ddddd4;overflow:auto;position:relative;}.flexigrid div.bDiv table{border-bottom:1px solid #ddddd4;}.flexigrid div.hGrip{position:absolute;top:0;right:0;height:5px;width:5px;background:url(images/line.gif) repeat-x center;margin-right:1px;cursor:col-resize;}.flexigrid div.hGrip:hover,.flexigrid div.hGrip.hgOver{border-right:1px solid #999;margin-right:0;}.flexigrid div.vGrip{height:5px;overflow:hidden;position:relative;background:#ddddd4;border:1px solid #ccc;border-top:0;text-align:center;cursor:row-resize;}.flexigrid div.vGrip span{display:block;margin:1px auto;width:20px;height:1px;overflow:hidden;border-top:1px solid #aaa;border-bottom:1px solid #aaa;background:none;}.flexigrid div.hDiv th,.flexigrid div.bDiv td{text-align:left;border-right:1px solid #ddddd4;overflow:hidden;vertical-align:top!important;}.flexigrid div.hDiv th div,.flexigrid div.bDiv td div,div.colCopy div{padding:2px 6px;border-right:0 solid #ddddd4;}.flexigrid div.hDiv th,div.colCopy{height:27px;cursor:default;white-space:nowrap;overflow:hidden;}.flexigrid div.hDiv th img{position:relative;top:3px;}div.colCopy{border:1px solid #ccc;border-bottom:0;overflow:hidden;}.flexigrid div.hDiv th.sorted{background:#a0a098;border-bottom:0 solid #ccc;}.flexigrid div.hDiv th.thOver{background-color:#a0a098!important;}.flexigrid div.hDiv th.thMove{background:#fff;color:#fff;}.flexigrid div.hDiv th.sorted.thMove div{border-bottom:1px solid #fff;padding-bottom:4px;}.flexigrid div.hDiv th.thMove div{background:#fff!important;}.flexigrid div.hDiv th div.sdesc{background:url(images/ddn.png) no-repeat center top;}.flexigrid div.hDiv th div.sasc{background:url(images/uup.png) no-repeat center top;}.flexigrid div.bDiv td{border-bottom:0;vertical-align:top;white-space:nowrap;}.flexigrid span.cdropleft{display:block;background:url(images/prev.gif) no-repeat -4px center;width:24px;height:24px;position:relative;top:-24px;margin-bottom:-24px;z-index:3;}.flexigrid div.hDiv span.cdropright{display:block;background:url(images/next.gif) no-repeat 12px center;width:24px;height:24px;float:right;position:relative;top:-24px;margin-bottom:-24px;}.flexigrid div.bDiv td{background:#e8e8e4;}.flexigrid div.bDiv td div{border-top:0 solid #ddddd4;height:22px;overflow:hidden;}.flexigrid tr td.sorted{border-right:1px solid #ddd;border-bottom:0;}.flexigrid tr.erow td{background:#d0d0c8;border-bottom:0;}.flexigrid tr.erow td.sorted{border-bottom:0;}.flexigrid div.bDiv tr:hover td,.flexigrid div.bDiv tr:hover td.sorted,.flexigrid div.bDiv tr.trOver td.sorted,.flexigrid div.bDiv tr.trOver td{background:#fff;border-bottom:0;}.flexigrid.novstripe .bDiv table{border-bottom:1px solid #ccc;border-right:1px solid #ccc;}.flexigrid.novstripe div.bDiv td{border-right-color:#fff;}.flexigrid.novstripe div.bDiv tr.erow td{border-right-color:#f7f7f7;border-left-color:#f7f7f7;}.flexigrid.novstripe div.bDiv tr.trOver td,.flexigrid.novstripe div.bDiv tr:hover td{border-left-color:#d9ebf5;border-right-color:#d9ebf5;}.flexigrid div.pDiv{background:#ddddd4;border-top:0;overflow:hidden;white-space:nowrap;position:relative;}.flexigrid div.pDiv div.pDiv2{padding:2px 0 1px 0;float:left;margin-bottom:1px;background-color:#b8b8b0;width:800px;border-top-left-radius:4px;border-top-right-radius:4px;}div.pGroup{float:left;background:none;height:24px;margin:0 5px;}.flexigrid div.pDiv .pPageStat{width:220px;display:block;}.flexigrid div.pDiv .pPageStat,.flexigrid div.pDiv .pcontrol{position:relative;top:1px;overflow:visible;}.flexigrid div.pDiv input{vertical-align:text-top;position:relative;top:-2px;border:0 none;border-radius:4px;margin:0;padding:2px;}.flexigrid div.pDiv div.pButton{float:left;width:22px;height:22px;border:0;cursor:pointer;overflow:hidden;}.flexigrid div.pDiv div.pButton.pJSON{width:42px;text-align:center;vertical-align:middle;padding:1px 0;}.flexigrid div.pDiv div.pButton.pJSON:hover{width:40px;padding:0;}.flexigrid div.pDiv div.pJSON a{text-decoration:none!important;}.flexigrid div.pDiv div.pButton:hover,.flexigrid div.pDiv div.pButton.pBtnOver{width:20px;height:20px;border:1px solid #f0f0f0;border-radius:4px;cursor:pointer;}.flexigrid div.pDiv div.pButton span{width:20px;height:20px;display:block;float:left;}.flexigrid div.pDiv div.pButton:hover span,.flexigrid div.pDiv div.pButton.pBtnOver span{width:19px;height:19px;}.flexigrid .pSearch{background:url(images/magnifier.png) no-repeat center;}.flexigrid .pFirst{background:url(images/first.gif) no-repeat center;}.flexigrid .pPrev{background:url(images/prev.gif) no-repeat center;}.flexigrid .pNext{background:url(images/next.gif) no-repeat center;}.flexigrid .pLast{background:url(images/last.gif) no-repeat center;}.flexigrid .pReload{background:url(images/load.png) no-repeat center;}.flexigrid .pReload.loading{background:url(images/load.gif) no-repeat center;}.flexigrid.ie div.hDiv th div,.flexigrid.ie div.bDiv td div,div.colCopy.ie div{overflow:hidden;}
\ No newline at end of file diff --git a/web/public/css/flexigrid/flexigrid.css b/web/public/css/flexigrid/flexigrid.css index d503bdc..603d1a1 100644 --- a/web/public/css/flexigrid/flexigrid.css +++ b/web/public/css/flexigrid/flexigrid.css @@ -549,6 +549,22 @@ div.pGroup { overflow: hidden; } +.flexigrid div.pDiv div.pButton.pJSON { + width: 42px; + text-align: center; + vertical-align: middle; + padding: 1px 0; +} + +.flexigrid div.pDiv div.pButton.pJSON:hover { + width: 40px; + padding: 0; +} + +.flexigrid div.pDiv div.pJSON a { + text-decoration: none !important; +} + .flexigrid div.pDiv div.pButton:hover, .flexigrid div.pDiv div.pButton.pBtnOver { width: 20px; height: 20px; diff --git a/web/public/js/flexigrid-minified.js b/web/public/js/flexigrid-minified.js index f06b903..7ec595c 100644 --- a/web/public/js/flexigrid-minified.js +++ b/web/public/js/flexigrid-minified.js @@ -1 +1 @@ -(function(a){a.addFlex=function(r,v){if(r.grid){return false}v=a.extend({height:200,width:"auto",striped:true,novstripe:false,minwidth:30,minheight:80,resizable:true,url:false,method:"POST",dataType:"xml",errormsg:"Connection Error",usepager:false,nowrap:true,page:1,total:1,useRp:true,rp:15,rpOptions:[10,15,20,25,40],title:false,pagestat:"Displaying {from} to {to} of {total} items",pagetext:"Page",outof:"of",findtext:"Find",procmsg:"Processing, please wait ...",query:"",qtype:"",nomsg:"No items",minColToggle:1,showToggleBtn:true,hideOnSubmit:true,autoload:true,blockOpacity:0.5,onDragCol:false,onToggleCol:false,onChangeSort:false,onSuccess:false,onError:false,onSubmit:false},v);a(r).show().attr({cellPadding:0,cellSpacing:0,border:0}).removeAttr("width");var z={hset:{},rePosDrag:function(){var i=0-this.hDiv.scrollLeft;if(this.hDiv.scrollLeft>0){i-=Math.floor(v.cgwidth/2)}a(z.cDrag).css({top:z.hDiv.offsetTop+1});var g=this.cdpad;a("div",z.cDrag).hide();a("thead tr:first th:visible",this.hDiv).each(function(){var s=a("thead tr:first th:visible",z.hDiv).index(this),p=parseInt(a("div",this).width());if(i==0){i-=Math.floor(v.cgwidth/2)}p=p+i+g;a("div:eq("+s+")",z.cDrag).css({left:p+"px"}).show();i=p})},getRp:function(){return v.rp},newRp:function(g){v.newp=1;v.rp=g;z.populate()},fixHeight:function(p){p=false;if(!p){p=a(z.bDiv).height()}var F=a(this.hDiv).height();a("div",this.cDrag).each(function(){a(this).height(p+F)});var t=parseInt(a(z.nDiv).height());if(t>p){a(z.nDiv).height(p).width(200)}else{a(z.nDiv).height("auto").width("auto")}a(z.block).css({height:p,marginBottom:(p*-1)});var i=z.bDiv.offsetTop+p;if(v.height!="auto"&&v.resizable){i=z.vDiv.offsetTop}a(z.rDiv).css({height:i});var g=jQuery(z.pDiv).width();var s=jQuery(z.hDiv).find("tr").width()-1;jQuery(z.pDiv).find(".pDiv2").width(Math.min(g,s))},dragStart:function(t,s,p){if(t=="colresize"){a(z.nDiv).hide();a(z.nBtn).hide();var F=a("div",this.cDrag).index(p),g=a("th:visible div:eq("+F+")",this.hDiv).width();a(p).addClass("dragging").siblings().hide();a(p).prev().addClass("dragging").show();this.colresize={startX:s.pageX,ol:parseInt(p.style.left),ow:g,n:F};a("body").css("cursor","col-resize")}else{if(t=="vresize"){var i=false;a("body").css("cursor","row-resize");if(p){i=true;a("body").css("cursor","col-resize")}this.vresize={h:v.height,sy:s.pageY,w:v.width,sx:s.pageX,hgo:i}}else{if(t=="colMove"){a(z.nDiv).hide();a(z.nBtn).hide();this.hset=a(this.hDiv).offset();this.hset.right=this.hset.left+a("table",this.hDiv).width();this.hset.bottom=this.hset.top+a("table",this.hDiv).height();this.dcol=p;this.dcoln=a("th",this.hDiv).index(p);this.colCopy=document.createElement("div");this.colCopy.className="colCopy";this.colCopy.innerHTML=p.innerHTML;if(a.browser.msie){this.colCopy.className="colCopy ie"}a(this.colCopy).css({position:"absolute","float":"left",display:"none",textAlign:p.align});a("body").append(this.colCopy);a(this.cDrag).hide()}}}a("body").noSelect()},dragMove:function(t){if(this.colresize){var i=this.colresize.n,J=t.pageX-this.colresize.startX,F=this.colresize.ol+J,s=this.colresize.ow+J;if(s>v.minwidth){a("div:eq("+i+")",this.cDrag).css("left",F);this.colresize.nw=s}}else{if(this.vresize){var K=this.vresize,H=t.pageY,J=H-K.sy;if(!v.defwidth){v.defwidth=v.width}if(v.width!="auto"&&!v.nohresize&&K.hgo){var I=t.pageX,p=I-K.sx,g=K.w+p;if(g>v.defwidth){this.gDiv.style.width=g+"px";v.width=g}}var G=K.h+J;if((G>v.minheight||v.height<v.minheight)&&!K.hgo){this.bDiv.style.height=G+"px";v.height=G;this.fixHeight(G)}K=null}else{if(this.colCopy){a(this.dcol).addClass("thMove").removeClass("thOver");if(t.pageX>this.hset.right||t.pageX<this.hset.left||t.pageY>this.hset.bottom||t.pageY<this.hset.top){a("body").css("cursor","move")}else{a("body").css("cursor","pointer")}a(this.colCopy).css({top:t.pageY+10,left:t.pageX+20,display:"block"})}}}},dragEnd:function(){if(this.colresize){var i=this.colresize.n,g=this.colresize.nw;a("th:visible div:eq("+i+")",this.hDiv).css("width",g);a("tr",this.bDiv).each(function(){a("td:visible div:eq("+i+")",this).css("width",g)});this.hDiv.scrollLeft=this.bDiv.scrollLeft;a("div:eq("+i+")",this.cDrag).siblings().show();a(".dragging",this.cDrag).removeClass("dragging");this.rePosDrag();this.fixHeight();this.colresize=false;this.populate()}else{if(this.vresize){this.vresize=false}else{if(this.colCopy){a(this.colCopy).remove();if(this.dcolt!=null){if(this.dcoln>this.dcolt){a("th:eq("+this.dcolt+")",this.hDiv).before(this.dcol)}else{a("th:eq("+this.dcolt+")",this.hDiv).after(this.dcol)}this.switchCol(this.dcoln,this.dcolt);a(this.cdropleft).remove();a(this.cdropright).remove();this.rePosDrag();if(v.onDragCol){v.onDragCol(this.dcoln,this.dcolt)}}this.dcol=null;this.hset=null;this.dcoln=null;this.dcolt=null;this.colCopy=null;a(".thMove",this.hDiv).removeClass("thMove");a(this.cDrag).show()}}}a("body").css("cursor","default");a("body").noSelect(false)},toggleCol:function(t,p){var i=a("th[axis='col"+t+"']",this.hDiv)[0],s=a("thead th",z.hDiv).index(i),g=a("input[value="+t+"]",z.nDiv)[0];if(p==null){p=i.hide}if(a("input:checked",z.nDiv).length<v.minColToggle&&!p){return false}if(p){i.hide=false;a(i).show();g.checked=true}else{i.hide=true;a(i).hide();g.checked=false}a("tbody tr",r).each(function(){if(p){a("td:eq("+s+")",this).show()}else{a("td:eq("+s+")",this).hide()}});this.rePosDrag();if(v.onToggleCol){v.onToggleCol(t,p)}return p},switchCol:function(i,g){a("tbody tr",r).each(function(){if(i>g){a("td:eq("+g+")",this).before(a("td:eq("+i+")",this))}else{a("td:eq("+g+")",this).after(a("td:eq("+i+")",this))}});if(i>g){a("tr:eq("+g+")",this.nDiv).before(a("tr:eq("+i+")",this.nDiv))}else{a("tr:eq("+g+")",this.nDiv).after(a("tr:eq("+i+")",this.nDiv))}if(a.browser.msie&&a.browser.version<7){a("tr:eq("+g+") input",this.nDiv)[0].checked=true}this.hDiv.scrollLeft=this.bDiv.scrollLeft},scroll:function(){this.hDiv.scrollLeft=this.bDiv.scrollLeft;this.rePosDrag()},addData:function(s){if(v.preProcess){s=v.preProcess(s)}if(this.pDiv){this.domElements.pReload.removeClass("loading")}this.loading=false;if(!s){if(this.pDiv){this.domElements.pPageStat.html(v.errormsg)}return false}if(v.dataType=="xml"){v.total=+a("rows total",s).text()}else{v.total=s.total}if(v.total==0){a("tr, a, td, div",r).unbind();a(r).empty();v.pages=1;v.page=1;this.buildpager();if(this.pDiv){this.domElements.pPageStat.html(v.nomsg)}return false}v.pages=Math.ceil(v.total/v.rp);if(v.dataType=="xml"){v.page=+a("rows page",s).text()}else{v.page=s.page}this.buildpager();var g=document.createElement("tbody");if(v.dataType=="json"){a.each(s.rows,function(F,H){var G=document.createElement("tr");if(F%2&&v.striped){G.className="erow"}if(H.id){G.id="row"+H.id}a("thead tr:first th",z.hDiv).each(function(){var J=document.createElement("td"),i=a(this).attr("axis").substr(3);J.align=this.align;J.innerHTML=H.cell[i];a(G).append(J);J=null});if(a("thead",this.gDiv).length<1){for(var t=0;t<cell.length;t++){var I=document.createElement("td");I.innerHTML=H.cell[t];a(G).append(I);I=null}}a(g).append(G);G=null})}else{if(v.dataType=="xml"){var p=1;a("rows row",s).each(function(){p++;var t=document.createElement("tr");if(p%2&&v.striped){t.className="erow"}var F=a(this).attr("id");if(F){t.id="row"+F}F=null;var i=this;a("thead tr:first th",z.hDiv).each(function(){var H=document.createElement("td"),G=a(this).attr("axis").substr(3);H.align=this.align;H.innerHTML=a("cell:eq("+G+")",i).text();a(t).append(H);H=null});if(a("thead",this.gDiv).length<1){a("cell",this).each(function(){var G=document.createElement("td");G.innerHTML=a(this).text();a(t).append(G);G=null})}a(g).append(t);t=null;i=null})}}a("tr",r).unbind();a(r).empty();a(r).append(g);this.addCellProp();this.addRowProp();this.rePosDrag();g=null;s=null;p=null;if(v.onSuccess){v.onSuccess(z)}if(v.hideOnSubmit){a(z.block).remove()}this.hDiv.scrollLeft=this.bDiv.scrollLeft;if(a.browser.opera){a(r).css("visibility","visible")}},changeSort:function(g){if(this.loading){return true}a(z.nDiv).hide();a(z.nBtn).hide();if(v.sortname==a(g).attr("abbr")){if(v.sortorder=="asc"){v.sortorder="desc"}else{v.sortorder="asc"}}a(g).addClass("sorted").siblings().removeClass("sorted");a(".sdesc",this.hDiv).removeClass("sdesc");a(".sasc",this.hDiv).removeClass("sasc");a("div",g).addClass("s"+v.sortorder);v.sortname=a(g).attr("abbr");if(v.onChangeSort){v.onChangeSort(v.sortname,v.sortorder)}else{this.populate()}},buildpager:function(){if(this.pDiv){this.domElements.pcontrol_input.val(v.page);this.domElements.pcontrol_span.html(v.pages)}var i=(v.page-1)*v.rp+1,g=i+v.rp-1;if(v.total<g){g=v.total}var p=v.pagestat;p=p.replace(/{from}/,i);p=p.replace(/{to}/,g);p=p.replace(/{total}/,v.total);if(this.pDiv){this.domElements.pPageStat.html(p)}},populate:function(){if(this.loading){return true}if(v.onSubmit){var g=v.onSubmit();if(!g){return false}}this.loading=true;if(!v.url){return false}if(this.pDiv){this.domElements.pPageStat.html(v.procmsg);this.domElements.pReload.addClass("loading")}a(z.block).css({top:z.bDiv.offsetTop,width:jQuery(z.pDiv).find(".pDiv2").width()});if(v.hideOnSubmit){a(this.gDiv).prepend(z.block)}if(a.browser.opera){a(r).css("visibility","hidden")}if(!v.newp){v.newp=1}if(v.page>v.pages){v.page=v.pages}var p=[{name:"sortname",value:v.sortname},{name:"sortorder",value:v.sortorder}];if(v.usepager){p.push({name:"page",value:v.newp});p.push({name:"rp",value:v.rp})}if(v.query!=""){p.push({name:"query",value:v.query})}if(v.qtype!=""){p.push({name:"qtype",value:v.qtype})}if(v.params){for(var i=0;i<v.params.length;i++){p[p.length]=v.params[i]}}a.ajax({type:v.method,url:v.url,data:p,dataType:v.dataType,success:function(s){z.addData(s)},error:function(s,G,F){try{if(v.onError){v.onError(s,G,F)}}catch(t){}}})},doSearch:function(){v.query=a("input[name=q]",z.sDiv).val();v.qtype=a("select[name=qtype]",z.sDiv).val();v.newp=1;this.populate()},changePage:function(i){if(this.loading){return true}switch(i){case"first":v.newp=1;break;case"prev":if(v.page>1){v.newp=parseInt(v.page)-1}break;case"next":if(v.page<v.pages){v.newp=parseInt(v.page)+1}break;case"last":v.newp=v.pages;break;case"input":if(this.pDiv){var g=parseInt(this.domElements.pcontrol_input.val());if(isNaN(g)){g=1}if(g<1){g=1}else{if(g>v.pages){g=v.pages}}this.domElements.pcontrol_input.val(g);v.newp=g;break}}if(v.newp==v.page){return false}if(v.onChangePage){v.onChangePage(v.newp)}else{this.populate()}},addCellProp:function(){a("tbody tr td",z.bDiv).each(function(){var p=document.createElement("div"),t=a("td",a(this).parent()).index(this),s=a("th:eq("+t+")",z.hDiv).get(0);if(s!=null){if(v.sortname==a(s).attr("abbr")&&v.sortname){this.className="sorted"}a(p).css({textAlign:s.align,width:a("div:first",s)[0].style.width});if(s.hide){a(this).css("display","none")}}if(v.nowrap==false){a(p).css("white-space","normal")}if(this.innerHTML==""){this.innerHTML=" "}p.innerHTML=this.innerHTML;var i=a(this).parent()[0],g=false;if(i.id){g=i.id.substr(3)}if(s!=null){if(s.process){s.process(p,g)}}a(this).empty().append(p).removeAttr("width")})},getCellDim:function(p){var G=parseInt(a(p).height()),g=parseInt(a(p).parent().height()),t=parseInt(p.style.width),I=parseInt(a(p).parent().width()),F=p.offsetParent.offsetTop,i=p.offsetParent.offsetLeft,H=parseInt(a(p).css("paddingLeft")),s=parseInt(a(p).css("paddingTop"));return{ht:G,wt:t,top:F,left:i,pdl:H,pdt:s,pht:g,pwt:I}},addRowProp:function(){a("tbody tr",z.bDiv).each(function(){a(this).click(function(i){var g=(i.target||i.srcElement);if(g.href||g.type){return true}a(this).toggleClass("trSelected");if(v.singleSelect){a(this).siblings().removeClass("trSelected")}}).mousedown(function(g){if(g.shiftKey){a(this).toggleClass("trSelected");z.multisel=true;this.focus();a(z.gDiv).noSelect()}}).mouseup(function(){if(z.multisel){z.multisel=false;a(z.gDiv).noSelect(false)}}).hover(function(g){if(z.multisel){a(this).toggleClass("trSelected")}},function(){});if(a.browser.msie&&a.browser.version<7){a(this).hover(function(){a(this).addClass("trOver")},function(){a(this).removeClass("trOver")})}})},pager:0};if(v.colModel){var A=document.createElement("thead");var c=document.createElement("tr");for(var x=0;x<v.colModel.length;x++){var n=v.colModel[x],k=document.createElement("th");k.innerHTML=n.display;if(n.name&&n.sortable){a(k).attr("abbr",n.name)}a(k).attr("axis","col"+x);if(n.align){k.align=n.align}if(n.width){a(k).attr("width",n.width)}if(n.hide){k.hide=true}if(n.process){k.process=n.process}a(c).append(k)}a(A).append(c);a(r).prepend(A)}z.gDiv=document.createElement("div");z.mDiv=document.createElement("div");z.hDiv=document.createElement("div");z.bDiv=document.createElement("div");z.vDiv=document.createElement("div");z.rDiv=document.createElement("div");z.cDrag=document.createElement("div");z.block=document.createElement("div");z.nDiv=document.createElement("div");z.nBtn=document.createElement("div");z.iDiv=document.createElement("div");z.tDiv=document.createElement("div");z.sDiv=document.createElement("div");if(v.usepager){z.pDiv=document.createElement("div")}z.hTable=document.createElement("table");z.gDiv.className="flexigrid";if(v.width!="auto"){z.gDiv.style.width=v.width+"px"}if(a.browser.msie){a(z.gDiv).addClass("ie")}if(v.novstripe){a(z.gDiv).addClass("novstripe")}a(r).before(z.gDiv);a(z.gDiv).append(r);if(v.buttons){z.tDiv.className="tDiv";var D=document.createElement("div");D.className="tDiv2";for(x=0;x<v.buttons.length;x++){var m=v.buttons[x];if(!m.separator){var y=document.createElement("div");y.className="fbutton";y.innerHTML="<div><span>"+m.name+"</span></div>";if(m.bclass){a("span",y).addClass(m.bclass).css({paddingLeft:20})}y.onpress=m.onpress;y.name=m.name;if(m.onpress){a(y).click(function(){this.onpress(this.name,z.gDiv)})}a(D).append(y);if(a.browser.msie&&a.browser.version<7){a(y).hover(function(){a(this).addClass("fbOver")},function(){a(this).removeClass("fbOver")})}}else{a(D).append("<div class='btnseparator'></div>")}}a(z.tDiv).append(D);a(z.tDiv).append("<div style='clear:both'></div>");a(z.gDiv).prepend(z.tDiv)}z.hDiv.className="hDiv";a(r).before(z.hDiv);z.hTable.cellPadding=0;z.hTable.cellSpacing=0;a(z.hDiv).append('<div class="hDivBox"></div>');a("div",z.hDiv).append(z.hTable);var A=a("thead:first",r).get(0);if(A){a(z.hTable).append(A)}A=null;if(!v.colmodel){var o=0}a("thead tr:first th",z.hDiv).each(function(){var g=document.createElement("div");if(a(this).attr("abbr")){a(this).click(function(p){if(!a(this).hasClass("thOver")){return false}var i=(p.target||p.srcElement);if(i.href||i.type){return true}z.changeSort(this)});if(a(this).attr("abbr")==v.sortname){this.className="sorted";g.className="s"+v.sortorder}}if(this.hide){a(this).hide()}if(!v.colmodel){a(this).attr("axis","col"+o++)}a(g).css({textAlign:this.align,width:this.width+"px"});g.innerHTML=this.innerHTML;a(this).empty().append(g).removeAttr("width").mousedown(function(i){z.dragStart("colMove",i,this)}).hover(function(){if(!z.colresize&&!a(this).hasClass("thMove")&&!z.colCopy){a(this).addClass("thOver")}if(a(this).attr("abbr")!=v.sortname&&!z.colCopy&&!z.colresize&&a(this).attr("abbr")){a("div",this).addClass("s"+v.sortorder)}else{if(a(this).attr("abbr")==v.sortname&&!z.colCopy&&!z.colresize&&a(this).attr("abbr")){var G="";if(v.sortorder=="asc"){G="desc"}else{G="asc"}a("div",this).removeClass("s"+v.sortorder).addClass("s"+G)}}if(z.colCopy){var H=a("th",z.hDiv).index(this);if(H==z.dcoln){return false}if(H<z.dcoln){a(this).append(z.cdropleft)}else{a(this).append(z.cdropright)}z.dcolt=H}else{if(!z.colresize){var s=a("th:visible",z.hDiv).index(this),F=parseInt(a("div:eq("+s+")",z.cDrag).css("left")),p=jQuery(z.nBtn).outerWidth(),i=F-p+Math.floor(v.cgwidth/2);a(z.nDiv).hide();a(z.nBtn).hide();a(z.nBtn).css({left:i,top:z.hDiv.offsetTop}).show();var t=parseInt(a(z.nDiv).width());a(z.nDiv).css({top:z.bDiv.offsetTop});if((i+t)>a(z.gDiv).width()){a(z.nDiv).css("left",F-t+1)}else{a(z.nDiv).css("left",i)}if(a(this).hasClass("sorted")){a(z.nBtn).addClass("srtd")}else{a(z.nBtn).removeClass("srtd")}}}},function(){a(this).removeClass("thOver");if(a(this).attr("abbr")!=v.sortname){a("div",this).removeClass("s"+v.sortorder)}else{if(a(this).attr("abbr")==v.sortname){var i="";if(v.sortorder=="asc"){i="desc"}else{i="asc"}a("div",this).addClass("s"+v.sortorder).removeClass("s"+i)}}if(z.colCopy){a(z.cdropleft).remove();a(z.cdropright).remove();z.dcolt=null}})});z.bDiv.className="bDiv";a(r).before(z.bDiv);a(z.bDiv).css({height:(v.height=="auto")?"auto":v.height+"px"}).scroll(function(g){z.scroll()}).append(r);if(v.height=="auto"){a("table",z.bDiv).addClass("autoht")}z.addCellProp();z.addRowProp();var j=a("thead tr:first th:first",z.hDiv).get(0);if(j!=null){z.cDrag.className="cDrag";z.cdpad=0;z.cdpad+=(isNaN(parseInt(a("div",j).css("borderLeftWidth")))?0:parseInt(a("div",j).css("borderLeftWidth")));z.cdpad+=(isNaN(parseInt(a("div",j).css("borderRightWidth")))?0:parseInt(a("div",j).css("borderRightWidth")));z.cdpad+=(isNaN(parseInt(a("div",j).css("paddingLeft")))?0:parseInt(a("div",j).css("paddingLeft")));z.cdpad+=(isNaN(parseInt(a("div",j).css("paddingRight")))?0:parseInt(a("div",j).css("paddingRight")));z.cdpad+=(isNaN(parseInt(a(j).css("borderLeftWidth")))?0:parseInt(a(j).css("borderLeftWidth")));z.cdpad+=(isNaN(parseInt(a(j).css("borderRightWidth")))?0:parseInt(a(j).css("borderRightWidth")));z.cdpad+=(isNaN(parseInt(a(j).css("paddingLeft")))?0:parseInt(a(j).css("paddingLeft")));z.cdpad+=(isNaN(parseInt(a(j).css("paddingRight")))?0:parseInt(a(j).css("paddingRight")));a(z.bDiv).before(z.cDrag);var e=a(z.bDiv).height(),d=a(z.hDiv).height();a(z.cDrag).css({top:-d+"px"});a("thead tr:first th",z.hDiv).each(function(){var g=document.createElement("div");a(z.cDrag).append(g);if(!v.cgwidth){v.cgwidth=a(g).width()}a(g).css({height:e+d}).mousedown(function(i){z.dragStart("colresize",i,this)});if(a.browser.msie&&a.browser.version<7){z.fixHeight(a(z.gDiv).height());a(g).hover(function(){z.fixHeight();a(this).addClass("dragging")},function(){if(!z.colresize){a(this).removeClass("dragging")}})}})}if(v.striped){a("tbody tr:odd",z.bDiv).addClass("erow")}if(v.resizable&&v.height!="auto"){z.vDiv.className="vGrip";a(z.vDiv).mousedown(function(g){z.dragStart("vresize",g)}).html("<span></span>");a(z.bDiv).after(z.vDiv)}if(v.resizable&&v.width!="auto"&&!v.nohresize){z.rDiv.className="hGrip";a(z.rDiv).mousedown(function(g){z.dragStart("vresize",g,true)}).html("<span></span>").css("height",a(z.gDiv).height());if(a.browser.msie&&a.browser.version<7){a(z.rDiv).hover(function(){a(this).addClass("hgOver")},function(){a(this).removeClass("hgOver")})}a(z.gDiv).append(z.rDiv)}if(v.usepager){z.pDiv.className="pDiv";z.pDiv.innerHTML='<div class="pDiv2"></div>';a(z.bDiv).parent().prepend(z.pDiv);var q=' <div class="pGroup"> <div class="pFirst pButton"><span></span></div><div class="pPrev pButton"><span></span></div> </div> <div class="btnseparator"></div> <div class="pGroup"><span class="pcontrol">'+v.pagetext+' <input type="text" size="4" value="1" /> '+v.outof+' <span> 1 </span></span></div> <div class="btnseparator"></div> <div class="pGroup"> <div class="pNext pButton"><span></span></div><div class="pLast pButton"><span></span></div> </div> <div class="btnseparator"></div> <div class="pGroup"> <div class="pReload pButton"><span></span></div> </div> <div class="btnseparator"></div> <div class="pGroup"><span class="pPageStat"></span></div>';a("div",z.pDiv).html(q);z.domElements={pReload:a(".pReload",z.pDiv),pPageStat:a(".pPageStat",z.pDiv),pcontrol_input:a(".pcontrol input",z.pDiv),pcontrol_span:a(".pcontrol span",z.pDiv)};z.domElements.pReload.click(function(){z.populate()});a(".pFirst",z.pDiv).click(function(){z.changePage("first")});a(".pPrev",z.pDiv).click(function(){z.changePage("prev")});a(".pNext",z.pDiv).click(function(){z.changePage("next")});a(".pLast",z.pDiv).click(function(){z.changePage("last")});z.domElements.pcontrol_input.keydown(function(g){if(g.keyCode==13){z.changePage("input")}});if(a.browser.msie&&a.browser.version<7){a(".pButton",z.pDiv).hover(function(){a(this).addClass("pBtnOver")},function(){a(this).removeClass("pBtnOver")})}if(v.useRp){var f="";for(var C=0;C<v.rpOptions.length;C++){var w="";if(v.rp==v.rpOptions[C]){w='selected="selected"'}f+="<option value='"+v.rpOptions[C]+"' "+w+" >"+v.rpOptions[C]+" </option>"}a(".pDiv2",z.pDiv).prepend("<div class='pGroup'><select name='rp'>"+f+"</select></div> <div class='btnseparator'></div>");a("select",z.pDiv).change(function(){if(v.onRpChange){v.onRpChange(+this.value)}else{v.newp=1;v.rp=+this.value;z.populate()}})}if(v.searchitems){z.sDiv.className="sDiv";sitems=v.searchitems;var h="";for(var u=0;u<sitems.length;u++){if(v.qtype==""&&sitems[u].isdefault==true){v.qtype=sitems[u].name;w='selected="selected"'}else{w=""}h+="<option value='"+sitems[u].name+"' "+w+" >"+sitems[u].display+" </option>"}if(v.qtype==""){v.qtype=sitems[0].name}a(z.sDiv).append("<div class='btnseparator'></div> <div class='sDiv2'> <input title='"+texts.misc.search_for+": "+sitems[0].display+"' type='text' size='20' name='q' class='qsbox' />");a("input[name=q],select[name=qtype]",z.sDiv).keydown(function(g){if(g.keyCode==13){z.doSearch()}});a("input[value=Clear]",z.sDiv).click(function(){a("input[name=q]",z.sDiv).val("");v.query="";z.doSearch()});a(z.pDiv).children().first().append(z.sDiv)}}a(z.pDiv,z.sDiv).append("<div style='clear:both'></div>");if(v.title){z.mDiv.className="mDiv";z.mDiv.innerHTML='<div class="ftitle">'+v.title+"</div>";a(z.gDiv).prepend(z.mDiv);if(v.showTableToggleBtn){a(z.mDiv).append('<div class="ptogtitle" title="Minimize/Maximize Table"><span></span></div>');a("div.ptogtitle",z.mDiv).click(function(){a(z.gDiv).toggleClass("hideBody");a(this).toggleClass("vsble")})}}z.cdropleft=document.createElement("span");z.cdropleft.className="cdropleft";z.cdropright=document.createElement("span");z.cdropright.className="cdropright";z.block.className="gBlock";var B=a(z.bDiv).height(),E=z.bDiv.offsetTop;a(z.block).css({width:jQuery(z.pDiv).find(".pDiv2").width(),height:B,background:"white",position:"relative",marginBottom:(B*-1),zIndex:1,top:E,left:"0px"});a(z.block).fadeTo(0,v.blockOpacity);if(a("th",z.hDiv).length){z.nDiv.className="nDiv";z.nDiv.innerHTML="<table cellpadding='0' cellspacing='0'><tbody></tbody></table>";a(z.nDiv).css({marginBottom:(B*-1),display:"none",top:E}).noSelect();var l=0;a("th div",z.hDiv).each(function(){var i=a("th[axis='col"+l+"']",z.hDiv)[0],g='checked="checked"';if(i.style.display=="none"){g=""}a("tbody",z.nDiv).append('<tr><td class="ndcol1"><input type="checkbox" '+g+' class="togCol" value="'+l+'" /></td><td class="ndcol2">'+this.innerHTML+"</td></tr>");l++});if(a.browser.msie&&a.browser.version<7){a("tr",z.nDiv).hover(function(){a(this).addClass("ndcolover")},function(){a(this).removeClass("ndcolover")})}a("td.ndcol2",z.nDiv).click(function(){if(a("input:checked",z.nDiv).length<=v.minColToggle&&a(this).prev().find("input")[0].checked){return false}return z.toggleCol(a(this).prev().find("input").val())});a("input.togCol",z.nDiv).click(function(){if(a("input:checked",z.nDiv).length<v.minColToggle&&this.checked==false){return false}a(this).parent().next().trigger("click")});a(z.gDiv).prepend(z.nDiv);a(z.nBtn).addClass("nBtn").html("<div></div>").attr("title","Hide/Show Columns").click(function(){a(z.nDiv).toggle();return true});if(v.showToggleBtn){a(z.gDiv).prepend(z.nBtn)}}a(z.iDiv).addClass("iDiv").css({display:"none"});a(z.bDiv).append(z.iDiv);a(z.bDiv).hover(function(){a(z.nDiv).hide();a(z.nBtn).hide()},function(){if(z.multisel){z.multisel=false}});a(z.gDiv).hover(function(){},function(){a(z.nDiv).hide();a(z.nBtn).hide()});a(document).mousemove(function(g){z.dragMove(g)}).mouseup(function(g){z.dragEnd()}).hover(function(){},function(){z.dragEnd()});if(a.browser.msie&&a.browser.version<7){a(".hDiv,.bDiv,.mDiv,.pDiv,.vGrip,.tDiv, .sDiv",z.gDiv).css({width:"100%"});a(z.gDiv).addClass("ie6");if(v.width!="auto"){a(z.gDiv).addClass("ie6fullwidthbug")}}z.rePosDrag();z.fixHeight();r.p=v;r.grid=z;if(v.url&&v.autoload){z.populate()}return r};var b=false;a(document).ready(function(){b=true});a.fn.flexigrid=function(c){return this.each(function(){if(!b){a(this).hide();var d=this;a(document).ready(function(){a.addFlex(d,c)})}else{a.addFlex(this,c)}})};a.fn.flexReload=function(c){return this.each(function(){if(this.grid&&this.p.url){this.grid.populate()}})};a.fn.flexOptions=function(c){return this.each(function(){if(this.grid){a.extend(this.p,c)}})};a.fn.flexToggleCol=function(d,c){return this.each(function(){if(this.grid){this.grid.toggleCol(d,c)}})};a.fn.flexAddData=function(c){return this.each(function(){if(this.grid){this.grid.addData(c)}})};a.fn.noSelect=function(c){if(c==null){prevent=true}else{prevent=c}if(prevent){return this.each(function(){if(a.browser.msie||a.browser.safari){a(this).bind("selectstart",function(){return false})}else{if(a.browser.mozilla){a(this).css("MozUserSelect","none");a("body").trigger("focus")}else{if(a.browser.opera){a(this).bind("mousedown",function(){return false})}else{a(this).attr("unselectable","on")}}}})}else{return this.each(function(){if(a.browser.msie||a.browser.safari){a(this).unbind("selectstart")}else{if(a.browser.mozilla){a(this).css("MozUserSelect","inherit")}else{if(a.browser.opera){a(this).unbind("mousedown")}else{a(this).removeAttr("unselectable","on")}}}})}}})(jQuery);
\ No newline at end of file +(function(a){a.addFlex=function(r,v){if(r.grid){return false}v=a.extend({height:200,width:"auto",striped:true,novstripe:false,minwidth:30,minheight:80,resizable:true,url:false,method:"POST",dataType:"xml",errormsg:"Connection Error",usepager:false,nowrap:true,page:1,total:1,useRp:true,rp:15,rpOptions:[10,15,20,25,40],title:false,pagestat:"Displaying {from} to {to} of {total} items",pagetext:"Page",outof:"of",findtext:"Find",procmsg:"Processing, please wait ...",query:"",qtype:"",nomsg:"No items",minColToggle:1,showToggleBtn:true,hideOnSubmit:true,autoload:true,blockOpacity:0.5,onDragCol:false,onToggleCol:false,onChangeSort:false,onSuccess:false,onError:false,onSubmit:false},v);a(r).show().attr({cellPadding:0,cellSpacing:0,border:0}).removeAttr("width");var z={hset:{},rePosDrag:function(){var i=0-this.hDiv.scrollLeft;if(this.hDiv.scrollLeft>0){i-=Math.floor(v.cgwidth/2)}a(z.cDrag).css({top:z.hDiv.offsetTop+1});var g=this.cdpad;a("div",z.cDrag).hide();a("thead tr:first th:visible",this.hDiv).each(function(){var s=a("thead tr:first th:visible",z.hDiv).index(this),p=parseInt(a("div",this).width());if(i==0){i-=Math.floor(v.cgwidth/2)}p=p+i+g;a("div:eq("+s+")",z.cDrag).css({left:p+"px"}).show();i=p})},getRp:function(){return v.rp},newRp:function(g){v.newp=1;v.rp=g;z.populate()},fixHeight:function(p){p=false;if(!p){p=a(z.bDiv).height()}var F=a(this.hDiv).height();a("div",this.cDrag).each(function(){a(this).height(p+F)});var t=parseInt(a(z.nDiv).height());if(t>p){a(z.nDiv).height(p).width(200)}else{a(z.nDiv).height("auto").width("auto")}a(z.block).css({height:p,marginBottom:(p*-1)});var i=z.bDiv.offsetTop+p;if(v.height!="auto"&&v.resizable){i=z.vDiv.offsetTop}a(z.rDiv).css({height:i});var g=jQuery(z.pDiv).width();var s=jQuery(z.hDiv).find("tr").width()-1;jQuery(z.pDiv).find(".pDiv2").width(Math.min(g,s))},dragStart:function(t,s,p){if(t=="colresize"){a(z.nDiv).hide();a(z.nBtn).hide();var F=a("div",this.cDrag).index(p),g=a("th:visible div:eq("+F+")",this.hDiv).width();a(p).addClass("dragging").siblings().hide();a(p).prev().addClass("dragging").show();this.colresize={startX:s.pageX,ol:parseInt(p.style.left),ow:g,n:F};a("body").css("cursor","col-resize")}else{if(t=="vresize"){var i=false;a("body").css("cursor","row-resize");if(p){i=true;a("body").css("cursor","col-resize")}this.vresize={h:v.height,sy:s.pageY,w:v.width,sx:s.pageX,hgo:i}}else{if(t=="colMove"){a(z.nDiv).hide();a(z.nBtn).hide();this.hset=a(this.hDiv).offset();this.hset.right=this.hset.left+a("table",this.hDiv).width();this.hset.bottom=this.hset.top+a("table",this.hDiv).height();this.dcol=p;this.dcoln=a("th",this.hDiv).index(p);this.colCopy=document.createElement("div");this.colCopy.className="colCopy";this.colCopy.innerHTML=p.innerHTML;if(a.browser.msie){this.colCopy.className="colCopy ie"}a(this.colCopy).css({position:"absolute","float":"left",display:"none",textAlign:p.align});a("body").append(this.colCopy);a(this.cDrag).hide()}}}a("body").noSelect()},dragMove:function(t){if(this.colresize){var i=this.colresize.n,J=t.pageX-this.colresize.startX,F=this.colresize.ol+J,s=this.colresize.ow+J;if(s>v.minwidth){a("div:eq("+i+")",this.cDrag).css("left",F);this.colresize.nw=s}}else{if(this.vresize){var K=this.vresize,H=t.pageY,J=H-K.sy;if(!v.defwidth){v.defwidth=v.width}if(v.width!="auto"&&!v.nohresize&&K.hgo){var I=t.pageX,p=I-K.sx,g=K.w+p;if(g>v.defwidth){this.gDiv.style.width=g+"px";v.width=g}}var G=K.h+J;if((G>v.minheight||v.height<v.minheight)&&!K.hgo){this.bDiv.style.height=G+"px";v.height=G;this.fixHeight(G)}K=null}else{if(this.colCopy){a(this.dcol).addClass("thMove").removeClass("thOver");if(t.pageX>this.hset.right||t.pageX<this.hset.left||t.pageY>this.hset.bottom||t.pageY<this.hset.top){a("body").css("cursor","move")}else{a("body").css("cursor","pointer")}a(this.colCopy).css({top:t.pageY+10,left:t.pageX+20,display:"block"})}}}},dragEnd:function(){if(this.colresize){var i=this.colresize.n,g=this.colresize.nw;a("th:visible div:eq("+i+")",this.hDiv).css("width",g);a("tr",this.bDiv).each(function(){a("td:visible div:eq("+i+")",this).css("width",g)});this.hDiv.scrollLeft=this.bDiv.scrollLeft;a("div:eq("+i+")",this.cDrag).siblings().show();a(".dragging",this.cDrag).removeClass("dragging");this.rePosDrag();this.fixHeight();this.colresize=false;this.populate()}else{if(this.vresize){this.vresize=false}else{if(this.colCopy){a(this.colCopy).remove();if(this.dcolt!=null){if(this.dcoln>this.dcolt){a("th:eq("+this.dcolt+")",this.hDiv).before(this.dcol)}else{a("th:eq("+this.dcolt+")",this.hDiv).after(this.dcol)}this.switchCol(this.dcoln,this.dcolt);a(this.cdropleft).remove();a(this.cdropright).remove();this.rePosDrag();if(v.onDragCol){v.onDragCol(this.dcoln,this.dcolt)}}this.dcol=null;this.hset=null;this.dcoln=null;this.dcolt=null;this.colCopy=null;a(".thMove",this.hDiv).removeClass("thMove");a(this.cDrag).show()}}}a("body").css("cursor","default");a("body").noSelect(false)},toggleCol:function(t,p){var i=a("th[axis='col"+t+"']",this.hDiv)[0],s=a("thead th",z.hDiv).index(i),g=a("input[value="+t+"]",z.nDiv)[0];if(p==null){p=i.hide}if(a("input:checked",z.nDiv).length<v.minColToggle&&!p){return false}if(p){i.hide=false;a(i).show();g.checked=true}else{i.hide=true;a(i).hide();g.checked=false}a("tbody tr",r).each(function(){if(p){a("td:eq("+s+")",this).show()}else{a("td:eq("+s+")",this).hide()}});this.rePosDrag();if(v.onToggleCol){v.onToggleCol(t,p)}return p},switchCol:function(i,g){a("tbody tr",r).each(function(){if(i>g){a("td:eq("+g+")",this).before(a("td:eq("+i+")",this))}else{a("td:eq("+g+")",this).after(a("td:eq("+i+")",this))}});if(i>g){a("tr:eq("+g+")",this.nDiv).before(a("tr:eq("+i+")",this.nDiv))}else{a("tr:eq("+g+")",this.nDiv).after(a("tr:eq("+i+")",this.nDiv))}if(a.browser.msie&&a.browser.version<7){a("tr:eq("+g+") input",this.nDiv)[0].checked=true}this.hDiv.scrollLeft=this.bDiv.scrollLeft},scroll:function(){this.hDiv.scrollLeft=this.bDiv.scrollLeft;this.rePosDrag()},addData:function(s){if(v.preProcess){s=v.preProcess(s)}if(this.pDiv){this.domElements.pReload.removeClass("loading")}this.loading=false;if(!s){if(this.pDiv){this.domElements.pPageStat.html(v.errormsg)}return false}if(v.dataType=="xml"){v.total=+a("rows total",s).text()}else{v.total=s.total}if(v.total==0){a("tr, a, td, div",r).unbind();a(r).empty();v.pages=1;v.page=1;this.buildpager();if(this.pDiv){this.domElements.pPageStat.html(v.nomsg)}return false}v.pages=Math.ceil(v.total/v.rp);if(v.dataType=="xml"){v.page=+a("rows page",s).text()}else{v.page=s.page}this.buildpager();var g=document.createElement("tbody");if(v.dataType=="json"){a.each(s.rows,function(F,H){var G=document.createElement("tr");if(F%2&&v.striped){G.className="erow"}if(H.id){G.id="row"+H.id}a("thead tr:first th",z.hDiv).each(function(){var J=document.createElement("td"),i=a(this).attr("axis").substr(3);J.align=this.align;J.innerHTML=H.cell[i];a(G).append(J);J=null});if(a("thead",this.gDiv).length<1){for(var t=0;t<cell.length;t++){var I=document.createElement("td");I.innerHTML=H.cell[t];a(G).append(I);I=null}}a(g).append(G);G=null})}else{if(v.dataType=="xml"){var p=1;a("rows row",s).each(function(){p++;var t=document.createElement("tr");if(p%2&&v.striped){t.className="erow"}var F=a(this).attr("id");if(F){t.id="row"+F}F=null;var i=this;a("thead tr:first th",z.hDiv).each(function(){var H=document.createElement("td"),G=a(this).attr("axis").substr(3);H.align=this.align;H.innerHTML=a("cell:eq("+G+")",i).text();a(t).append(H);H=null});if(a("thead",this.gDiv).length<1){a("cell",this).each(function(){var G=document.createElement("td");G.innerHTML=a(this).text();a(t).append(G);G=null})}a(g).append(t);t=null;i=null})}}a("tr",r).unbind();a(r).empty();a(r).append(g);this.addCellProp();this.addRowProp();this.rePosDrag();g=null;s=null;p=null;if(v.onSuccess){v.onSuccess(z)}if(v.hideOnSubmit){a(z.block).remove()}this.hDiv.scrollLeft=this.bDiv.scrollLeft;if(a.browser.opera){a(r).css("visibility","visible")}},changeSort:function(g){if(this.loading){return true}a(z.nDiv).hide();a(z.nBtn).hide();if(v.sortname==a(g).attr("abbr")){if(v.sortorder=="asc"){v.sortorder="desc"}else{v.sortorder="asc"}}a(g).addClass("sorted").siblings().removeClass("sorted");a(".sdesc",this.hDiv).removeClass("sdesc");a(".sasc",this.hDiv).removeClass("sasc");a("div",g).addClass("s"+v.sortorder);v.sortname=a(g).attr("abbr");if(v.onChangeSort){v.onChangeSort(v.sortname,v.sortorder)}else{this.populate()}},buildpager:function(){if(this.pDiv){this.domElements.pcontrol_input.val(v.page);this.domElements.pcontrol_span.html(v.pages)}var i=(v.page-1)*v.rp+1,g=i+v.rp-1;if(v.total<g){g=v.total}var p=v.pagestat;p=p.replace(/{from}/,i);p=p.replace(/{to}/,g);p=p.replace(/{total}/,v.total);if(this.pDiv){this.domElements.pPageStat.html(p)}},populate:function(){if(this.loading){return true}if(v.onSubmit){var g=v.onSubmit();if(!g){return false}}this.loading=true;if(!v.url){return false}if(this.pDiv){this.domElements.pPageStat.html(v.procmsg);this.domElements.pReload.addClass("loading")}a(z.block).css({top:z.bDiv.offsetTop,width:jQuery(z.pDiv).find(".pDiv2").width()});if(v.hideOnSubmit){a(this.gDiv).prepend(z.block)}if(a.browser.opera){a(r).css("visibility","hidden")}if(!v.newp){v.newp=1}if(v.page>v.pages){v.page=v.pages}var p=[{name:"sortname",value:v.sortname},{name:"sortorder",value:v.sortorder}];if(v.usepager){p.push({name:"page",value:v.newp});p.push({name:"rp",value:v.rp})}if(v.query!=""){p.push({name:"query",value:v.query})}if(v.qtype!=""){p.push({name:"qtype",value:v.qtype})}if(v.params){for(var i=0;i<v.params.length;i++){p[p.length]=v.params[i]}}a.ajax({type:v.method,url:v.url,data:p,dataType:v.dataType,success:function(s){z.addData(s)},error:function(s,G,F){try{if(v.onError){v.onError(s,G,F)}}catch(t){}}});a(".pJSON a").attr("href",v.url+(v.url.indexOf("?")==-1?"?":"&")+jQuery.param(p))},doSearch:function(){v.query=a("input[name=q]",z.sDiv).val();v.qtype=a("select[name=qtype]",z.sDiv).val();v.newp=1;this.populate()},changePage:function(i){if(this.loading){return true}switch(i){case"first":v.newp=1;break;case"prev":if(v.page>1){v.newp=parseInt(v.page)-1}break;case"next":if(v.page<v.pages){v.newp=parseInt(v.page)+1}break;case"last":v.newp=v.pages;break;case"input":if(this.pDiv){var g=parseInt(this.domElements.pcontrol_input.val());if(isNaN(g)){g=1}if(g<1){g=1}else{if(g>v.pages){g=v.pages}}this.domElements.pcontrol_input.val(g);v.newp=g;break}}if(v.newp==v.page){return false}if(v.onChangePage){v.onChangePage(v.newp)}else{this.populate()}},addCellProp:function(){a("tbody tr td",z.bDiv).each(function(){var p=document.createElement("div"),t=a("td",a(this).parent()).index(this),s=a("th:eq("+t+")",z.hDiv).get(0);if(s!=null){if(v.sortname==a(s).attr("abbr")&&v.sortname){this.className="sorted"}a(p).css({textAlign:s.align,width:a("div:first",s)[0].style.width});if(s.hide){a(this).css("display","none")}}if(v.nowrap==false){a(p).css("white-space","normal")}if(this.innerHTML==""){this.innerHTML=" "}p.innerHTML=this.innerHTML;var i=a(this).parent()[0],g=false;if(i.id){g=i.id.substr(3)}if(s!=null){if(s.process){s.process(p,g)}}a(this).empty().append(p).removeAttr("width")})},getCellDim:function(p){var G=parseInt(a(p).height()),g=parseInt(a(p).parent().height()),t=parseInt(p.style.width),I=parseInt(a(p).parent().width()),F=p.offsetParent.offsetTop,i=p.offsetParent.offsetLeft,H=parseInt(a(p).css("paddingLeft")),s=parseInt(a(p).css("paddingTop"));return{ht:G,wt:t,top:F,left:i,pdl:H,pdt:s,pht:g,pwt:I}},addRowProp:function(){a("tbody tr",z.bDiv).each(function(){a(this).click(function(i){var g=(i.target||i.srcElement);if(g.href||g.type){return true}a(this).toggleClass("trSelected");if(v.singleSelect){a(this).siblings().removeClass("trSelected")}}).mousedown(function(g){if(g.shiftKey){a(this).toggleClass("trSelected");z.multisel=true;this.focus();a(z.gDiv).noSelect()}}).mouseup(function(){if(z.multisel){z.multisel=false;a(z.gDiv).noSelect(false)}}).hover(function(g){if(z.multisel){a(this).toggleClass("trSelected")}},function(){});if(a.browser.msie&&a.browser.version<7){a(this).hover(function(){a(this).addClass("trOver")},function(){a(this).removeClass("trOver")})}})},pager:0};if(v.colModel){var A=document.createElement("thead");var c=document.createElement("tr");for(var x=0;x<v.colModel.length;x++){var n=v.colModel[x],k=document.createElement("th");k.innerHTML=n.display;if(n.name&&n.sortable){a(k).attr("abbr",n.name)}a(k).attr("axis","col"+x);if(n.align){k.align=n.align}if(n.width){a(k).attr("width",n.width)}if(n.hide){k.hide=true}if(n.process){k.process=n.process}a(c).append(k)}a(A).append(c);a(r).prepend(A)}z.gDiv=document.createElement("div");z.mDiv=document.createElement("div");z.hDiv=document.createElement("div");z.bDiv=document.createElement("div");z.vDiv=document.createElement("div");z.rDiv=document.createElement("div");z.cDrag=document.createElement("div");z.block=document.createElement("div");z.nDiv=document.createElement("div");z.nBtn=document.createElement("div");z.iDiv=document.createElement("div");z.tDiv=document.createElement("div");z.sDiv=document.createElement("div");if(v.usepager){z.pDiv=document.createElement("div")}z.hTable=document.createElement("table");z.gDiv.className="flexigrid";if(v.width!="auto"){z.gDiv.style.width=v.width+"px"}if(a.browser.msie){a(z.gDiv).addClass("ie")}if(v.novstripe){a(z.gDiv).addClass("novstripe")}a(r).before(z.gDiv);a(z.gDiv).append(r);if(v.buttons){z.tDiv.className="tDiv";var D=document.createElement("div");D.className="tDiv2";for(x=0;x<v.buttons.length;x++){var m=v.buttons[x];if(!m.separator){var y=document.createElement("div");y.className="fbutton";y.innerHTML="<div><span>"+m.name+"</span></div>";if(m.bclass){a("span",y).addClass(m.bclass).css({paddingLeft:20})}y.onpress=m.onpress;y.name=m.name;if(m.onpress){a(y).click(function(){this.onpress(this.name,z.gDiv)})}a(D).append(y);if(a.browser.msie&&a.browser.version<7){a(y).hover(function(){a(this).addClass("fbOver")},function(){a(this).removeClass("fbOver")})}}else{a(D).append("<div class='btnseparator'></div>")}}a(z.tDiv).append(D);a(z.tDiv).append("<div style='clear:both'></div>");a(z.gDiv).prepend(z.tDiv)}z.hDiv.className="hDiv";a(r).before(z.hDiv);z.hTable.cellPadding=0;z.hTable.cellSpacing=0;a(z.hDiv).append('<div class="hDivBox"></div>');a("div",z.hDiv).append(z.hTable);var A=a("thead:first",r).get(0);if(A){a(z.hTable).append(A)}A=null;if(!v.colmodel){var o=0}a("thead tr:first th",z.hDiv).each(function(){var g=document.createElement("div");if(a(this).attr("abbr")){a(this).click(function(p){if(!a(this).hasClass("thOver")){return false}var i=(p.target||p.srcElement);if(i.href||i.type){return true}z.changeSort(this)});if(a(this).attr("abbr")==v.sortname){this.className="sorted";g.className="s"+v.sortorder}}if(this.hide){a(this).hide()}if(!v.colmodel){a(this).attr("axis","col"+o++)}a(g).css({textAlign:this.align,width:this.width+"px"});g.innerHTML=this.innerHTML;a(this).empty().append(g).removeAttr("width").mousedown(function(i){z.dragStart("colMove",i,this)}).hover(function(){if(!z.colresize&&!a(this).hasClass("thMove")&&!z.colCopy){a(this).addClass("thOver")}if(a(this).attr("abbr")!=v.sortname&&!z.colCopy&&!z.colresize&&a(this).attr("abbr")){a("div",this).addClass("s"+v.sortorder)}else{if(a(this).attr("abbr")==v.sortname&&!z.colCopy&&!z.colresize&&a(this).attr("abbr")){var G="";if(v.sortorder=="asc"){G="desc"}else{G="asc"}a("div",this).removeClass("s"+v.sortorder).addClass("s"+G)}}if(z.colCopy){var H=a("th",z.hDiv).index(this);if(H==z.dcoln){return false}if(H<z.dcoln){a(this).append(z.cdropleft)}else{a(this).append(z.cdropright)}z.dcolt=H}else{if(!z.colresize){var s=a("th:visible",z.hDiv).index(this),F=parseInt(a("div:eq("+s+")",z.cDrag).css("left")),p=jQuery(z.nBtn).outerWidth(),i=F-p+Math.floor(v.cgwidth/2);a(z.nDiv).hide();a(z.nBtn).hide();a(z.nBtn).css({left:i,top:z.hDiv.offsetTop}).show();var t=parseInt(a(z.nDiv).width());a(z.nDiv).css({top:z.bDiv.offsetTop});if((i+t)>a(z.gDiv).width()){a(z.nDiv).css("left",F-t+1)}else{a(z.nDiv).css("left",i)}if(a(this).hasClass("sorted")){a(z.nBtn).addClass("srtd")}else{a(z.nBtn).removeClass("srtd")}}}},function(){a(this).removeClass("thOver");if(a(this).attr("abbr")!=v.sortname){a("div",this).removeClass("s"+v.sortorder)}else{if(a(this).attr("abbr")==v.sortname){var i="";if(v.sortorder=="asc"){i="desc"}else{i="asc"}a("div",this).addClass("s"+v.sortorder).removeClass("s"+i)}}if(z.colCopy){a(z.cdropleft).remove();a(z.cdropright).remove();z.dcolt=null}})});z.bDiv.className="bDiv";a(r).before(z.bDiv);a(z.bDiv).css({height:(v.height=="auto")?"auto":v.height+"px"}).scroll(function(g){z.scroll()}).append(r);if(v.height=="auto"){a("table",z.bDiv).addClass("autoht")}z.addCellProp();z.addRowProp();var j=a("thead tr:first th:first",z.hDiv).get(0);if(j!=null){z.cDrag.className="cDrag";z.cdpad=0;z.cdpad+=(isNaN(parseInt(a("div",j).css("borderLeftWidth")))?0:parseInt(a("div",j).css("borderLeftWidth")));z.cdpad+=(isNaN(parseInt(a("div",j).css("borderRightWidth")))?0:parseInt(a("div",j).css("borderRightWidth")));z.cdpad+=(isNaN(parseInt(a("div",j).css("paddingLeft")))?0:parseInt(a("div",j).css("paddingLeft")));z.cdpad+=(isNaN(parseInt(a("div",j).css("paddingRight")))?0:parseInt(a("div",j).css("paddingRight")));z.cdpad+=(isNaN(parseInt(a(j).css("borderLeftWidth")))?0:parseInt(a(j).css("borderLeftWidth")));z.cdpad+=(isNaN(parseInt(a(j).css("borderRightWidth")))?0:parseInt(a(j).css("borderRightWidth")));z.cdpad+=(isNaN(parseInt(a(j).css("paddingLeft")))?0:parseInt(a(j).css("paddingLeft")));z.cdpad+=(isNaN(parseInt(a(j).css("paddingRight")))?0:parseInt(a(j).css("paddingRight")));a(z.bDiv).before(z.cDrag);var e=a(z.bDiv).height(),d=a(z.hDiv).height();a(z.cDrag).css({top:-d+"px"});a("thead tr:first th",z.hDiv).each(function(){var g=document.createElement("div");a(z.cDrag).append(g);if(!v.cgwidth){v.cgwidth=a(g).width()}a(g).css({height:e+d}).mousedown(function(i){z.dragStart("colresize",i,this)});if(a.browser.msie&&a.browser.version<7){z.fixHeight(a(z.gDiv).height());a(g).hover(function(){z.fixHeight();a(this).addClass("dragging")},function(){if(!z.colresize){a(this).removeClass("dragging")}})}})}if(v.striped){a("tbody tr:odd",z.bDiv).addClass("erow")}if(v.resizable&&v.height!="auto"){z.vDiv.className="vGrip";a(z.vDiv).mousedown(function(g){z.dragStart("vresize",g)}).html("<span></span>");a(z.bDiv).after(z.vDiv)}if(v.resizable&&v.width!="auto"&&!v.nohresize){z.rDiv.className="hGrip";a(z.rDiv).mousedown(function(g){z.dragStart("vresize",g,true)}).html("<span></span>").css("height",a(z.gDiv).height());if(a.browser.msie&&a.browser.version<7){a(z.rDiv).hover(function(){a(this).addClass("hgOver")},function(){a(this).removeClass("hgOver")})}a(z.gDiv).append(z.rDiv)}if(v.usepager){z.pDiv.className="pDiv";z.pDiv.innerHTML='<div class="pDiv2"></div>';a(z.bDiv).parent().prepend(z.pDiv);var q=' <div class="pGroup"> <div class="pFirst pButton"><span></span></div><div class="pPrev pButton"><span></span></div> </div> <div class="btnseparator"></div> <div class="pGroup"><span class="pcontrol">'+v.pagetext+' <input type="text" size="4" value="1" /> '+v.outof+' <span> 1 </span></span></div> <div class="btnseparator"></div> <div class="pGroup"> <div class="pNext pButton"><span></span></div><div class="pLast pButton"><span></span></div> </div> <div class="btnseparator"></div> <div class="pGroup"> <div class="pReload pButton"><span></span></div> </div> <div class="btnseparator"></div> <div class="pGroup"> <div class="pJSON pButton"><a href="" target="_blank">JSON</a></div> </div> <div class="btnseparator"></div> <div class="pGroup"><span class="pPageStat"></span></div>';a("div",z.pDiv).html(q);z.domElements={pReload:a(".pReload",z.pDiv),pPageStat:a(".pPageStat",z.pDiv),pcontrol_input:a(".pcontrol input",z.pDiv),pcontrol_span:a(".pcontrol span",z.pDiv)};z.domElements.pReload.click(function(){z.populate()});a(".pFirst",z.pDiv).click(function(){z.changePage("first")});a(".pPrev",z.pDiv).click(function(){z.changePage("prev")});a(".pNext",z.pDiv).click(function(){z.changePage("next")});a(".pLast",z.pDiv).click(function(){z.changePage("last")});z.domElements.pcontrol_input.keydown(function(g){if(g.keyCode==13){z.changePage("input")}});if(a.browser.msie&&a.browser.version<7){a(".pButton",z.pDiv).hover(function(){a(this).addClass("pBtnOver")},function(){a(this).removeClass("pBtnOver")})}if(v.useRp){var f="";for(var C=0;C<v.rpOptions.length;C++){var w="";if(v.rp==v.rpOptions[C]){w='selected="selected"'}f+="<option value='"+v.rpOptions[C]+"' "+w+" >"+v.rpOptions[C]+" </option>"}a(".pDiv2",z.pDiv).prepend("<div class='pGroup'><select name='rp'>"+f+"</select></div> <div class='btnseparator'></div>");a("select",z.pDiv).change(function(){if(v.onRpChange){v.onRpChange(+this.value)}else{v.newp=1;v.rp=+this.value;z.populate()}})}if(v.searchitems){z.sDiv.className="sDiv";sitems=v.searchitems;var h="";for(var u=0;u<sitems.length;u++){if(v.qtype==""&&sitems[u].isdefault==true){v.qtype=sitems[u].name;w='selected="selected"'}else{w=""}h+="<option value='"+sitems[u].name+"' "+w+" >"+sitems[u].display+" </option>"}if(v.qtype==""){v.qtype=sitems[0].name}a(z.sDiv).append("<div class='btnseparator'></div> <div class='sDiv2'> <input title='"+texts.misc.search_for+": "+sitems[0].display+"' type='text' size='20' name='q' class='qsbox' />");a("input[name=q],select[name=qtype]",z.sDiv).keydown(function(g){if(g.keyCode==13){z.doSearch()}});a("input[value=Clear]",z.sDiv).click(function(){a("input[name=q]",z.sDiv).val("");v.query="";z.doSearch()});a(z.pDiv).children().first().append(z.sDiv)}}a(z.pDiv,z.sDiv).append("<div style='clear:both'></div>");if(v.title){z.mDiv.className="mDiv";z.mDiv.innerHTML='<div class="ftitle">'+v.title+"</div>";a(z.gDiv).prepend(z.mDiv);if(v.showTableToggleBtn){a(z.mDiv).append('<div class="ptogtitle" title="Minimize/Maximize Table"><span></span></div>');a("div.ptogtitle",z.mDiv).click(function(){a(z.gDiv).toggleClass("hideBody");a(this).toggleClass("vsble")})}}z.cdropleft=document.createElement("span");z.cdropleft.className="cdropleft";z.cdropright=document.createElement("span");z.cdropright.className="cdropright";z.block.className="gBlock";var B=a(z.bDiv).height(),E=z.bDiv.offsetTop;a(z.block).css({width:jQuery(z.pDiv).find(".pDiv2").width(),height:B,background:"white",position:"relative",marginBottom:(B*-1),zIndex:1,top:E,left:"0px"});a(z.block).fadeTo(0,v.blockOpacity);if(a("th",z.hDiv).length){z.nDiv.className="nDiv";z.nDiv.innerHTML="<table cellpadding='0' cellspacing='0'><tbody></tbody></table>";a(z.nDiv).css({marginBottom:(B*-1),display:"none",top:E}).noSelect();var l=0;a("th div",z.hDiv).each(function(){var i=a("th[axis='col"+l+"']",z.hDiv)[0],g='checked="checked"';if(i.style.display=="none"){g=""}a("tbody",z.nDiv).append('<tr><td class="ndcol1"><input type="checkbox" '+g+' class="togCol" value="'+l+'" /></td><td class="ndcol2">'+this.innerHTML+"</td></tr>");l++});if(a.browser.msie&&a.browser.version<7){a("tr",z.nDiv).hover(function(){a(this).addClass("ndcolover")},function(){a(this).removeClass("ndcolover")})}a("td.ndcol2",z.nDiv).click(function(){if(a("input:checked",z.nDiv).length<=v.minColToggle&&a(this).prev().find("input")[0].checked){return false}return z.toggleCol(a(this).prev().find("input").val())});a("input.togCol",z.nDiv).click(function(){if(a("input:checked",z.nDiv).length<v.minColToggle&&this.checked==false){return false}a(this).parent().next().trigger("click")});a(z.gDiv).prepend(z.nDiv);a(z.nBtn).addClass("nBtn").html("<div></div>").attr("title","Hide/Show Columns").click(function(){a(z.nDiv).toggle();return true});if(v.showToggleBtn){a(z.gDiv).prepend(z.nBtn)}}a(z.iDiv).addClass("iDiv").css({display:"none"});a(z.bDiv).append(z.iDiv);a(z.bDiv).hover(function(){a(z.nDiv).hide();a(z.nBtn).hide()},function(){if(z.multisel){z.multisel=false}});a(z.gDiv).hover(function(){},function(){a(z.nDiv).hide();a(z.nBtn).hide()});a(document).mousemove(function(g){z.dragMove(g)}).mouseup(function(g){z.dragEnd()}).hover(function(){},function(){z.dragEnd()});if(a.browser.msie&&a.browser.version<7){a(".hDiv,.bDiv,.mDiv,.pDiv,.vGrip,.tDiv, .sDiv",z.gDiv).css({width:"100%"});a(z.gDiv).addClass("ie6");if(v.width!="auto"){a(z.gDiv).addClass("ie6fullwidthbug")}}z.rePosDrag();z.fixHeight();r.p=v;r.grid=z;if(v.url&&v.autoload){z.populate()}return r};var b=false;a(document).ready(function(){b=true});a.fn.flexigrid=function(c){return this.each(function(){if(!b){a(this).hide();var d=this;a(document).ready(function(){a.addFlex(d,c)})}else{a.addFlex(this,c)}})};a.fn.flexReload=function(c){return this.each(function(){if(this.grid&&this.p.url){this.grid.populate()}})};a.fn.flexOptions=function(c){return this.each(function(){if(this.grid){a.extend(this.p,c)}})};a.fn.flexToggleCol=function(d,c){return this.each(function(){if(this.grid){this.grid.toggleCol(d,c)}})};a.fn.flexAddData=function(c){return this.each(function(){if(this.grid){this.grid.addData(c)}})};a.fn.noSelect=function(c){if(c==null){prevent=true}else{prevent=c}if(prevent){return this.each(function(){if(a.browser.msie||a.browser.safari){a(this).bind("selectstart",function(){return false})}else{if(a.browser.mozilla){a(this).css("MozUserSelect","none");a("body").trigger("focus")}else{if(a.browser.opera){a(this).bind("mousedown",function(){return false})}else{a(this).attr("unselectable","on")}}}})}else{return this.each(function(){if(a.browser.msie||a.browser.safari){a(this).unbind("selectstart")}else{if(a.browser.mozilla){a(this).css("MozUserSelect","inherit")}else{if(a.browser.opera){a(this).unbind("mousedown")}else{a(this).removeAttr("unselectable","on")}}}})}}})(jQuery);
\ No newline at end of file diff --git a/web/public/js/flexigrid.js b/web/public/js/flexigrid.js index 83fbc54..e578c5b 100644 --- a/web/public/js/flexigrid.js +++ b/web/public/js/flexigrid.js @@ -650,6 +650,8 @@ success: function(data){g.addData(data);},
error: function(XMLHttpRequest, textStatus, errorThrown) { try { if (p.onError) p.onError(XMLHttpRequest, textStatus, errorThrown); } catch (e) {} }
});
+
+ $('.pJSON a').attr('href', p.url + ( p.url.indexOf('?') == -1 ? '?' : '&') + jQuery.param(param));
},
doSearch: function () {
p.query = $('input[name=q]',g.sDiv).val();
@@ -1184,7 +1186,7 @@ g.pDiv.className = 'pDiv';
g.pDiv.innerHTML = '<div class="pDiv2"></div>';
$(g.bDiv).parent().prepend(g.pDiv);
- var html = ' <div class="pGroup"> <div class="pFirst pButton"><span></span></div><div class="pPrev pButton"><span></span></div> </div> <div class="btnseparator"></div> <div class="pGroup"><span class="pcontrol">'+p.pagetext+' <input type="text" size="4" value="1" /> '+p.outof+' <span> 1 </span></span></div> <div class="btnseparator"></div> <div class="pGroup"> <div class="pNext pButton"><span></span></div><div class="pLast pButton"><span></span></div> </div> <div class="btnseparator"></div> <div class="pGroup"> <div class="pReload pButton"><span></span></div> </div> <div class="btnseparator"></div> <div class="pGroup"><span class="pPageStat"></span></div>';
+ var html = ' <div class="pGroup"> <div class="pFirst pButton"><span></span></div><div class="pPrev pButton"><span></span></div> </div> <div class="btnseparator"></div> <div class="pGroup"><span class="pcontrol">'+p.pagetext+' <input type="text" size="4" value="1" /> '+p.outof+' <span> 1 </span></span></div> <div class="btnseparator"></div> <div class="pGroup"> <div class="pNext pButton"><span></span></div><div class="pLast pButton"><span></span></div> </div> <div class="btnseparator"></div> <div class="pGroup"> <div class="pReload pButton"><span></span></div> </div> <div class="btnseparator"></div> <div class="pGroup"> <div class="pJSON pButton"><a href="" target="_blank">JSON</a></div> </div> <div class="btnseparator"></div> <div class="pGroup"><span class="pPageStat"></span></div>';
$('div',g.pDiv).html(html);
g.domElements = {
@@ -1193,7 +1195,7 @@ pcontrol_input: $('.pcontrol input', g.pDiv),
pcontrol_span: $('.pcontrol span', g.pDiv)
};
-
+
g.domElements.pReload.click(function(){g.populate()});
$('.pFirst',g.pDiv).click(function(){g.changePage('first')});
$('.pPrev',g.pDiv).click(function(){g.changePage('prev')});
|