z5;K2t5g>1`ra.N'!vnAK'Ju<W"9ⲛ>z1Bq^ؐx?ڼYM?oiTPs B h/єX!S)ST[&@#zK7EKTlDvT-.U= Ů>I_IR\E޷,h_#6[eoXUԴqanE(#lv?N XT _ƋIq/p'he" 'J$Rf(p*`8VO@pQج|* }ʢ |F [eHj6.zy4aMޜrZi.~ޗQυN5 G}]?$ (`zA8x@f_ЃN)l(&|E2Nu QyZI-x*.MieD X!ouӳQ}]^_5*<Ud2þN E> _CMb k}Lc{X64ϝ^6ֈi)e<۶7tUtY="p\H86^Dz.^|`8#P-Vt`%: $xr86nĩq}T$3R<53mR y^YχFmGڼOxq+fJF&yeⅩ!%ٓKR Lu]&Gh@*\{Hu0@nO\_?s/]TC2)8~]l$R0c?\7ߝU!&Ej:#oC '54bC|Y1ULoj¥\7K'=aS ՗ȅbʘyڡoHzpOb<b0;:>(ͺ;$fVqu գjwKW!M! a΀-Ti@%/&0z澙MieD X!ouӓKR Lu]&QDHrpHe1](4ryskZgUB&Tś 6zҲm W}Ynifhp.J]lsF,RYG5ڏ^Jhn5Ɋx]?$ (`zA8жBx["n0*7w>ʸ?L[ "Sğgmƴq8Dc;Jnj5Md4bbr+<јKuk!#DsL6ix- g"*X*q+k(9aHwkq^eة3˗Z?Ih)߃Σ=5Y#80oCDBn!3mVkMjA ̹ ;3ǜH= fHo3uܓ#]0h7uI> gZ@CZ.v`ju5aYK@quCaD5Zg6ղ/ZY*GǡzsФ26.M4{Vʲ}-'>7(#fs;_RX, b(i7+6ӎu=_]~aR>u hJ>ovB#kiڬGiv{on(ذEva7SwP]3ՔR(g,k8 N/N-|l.)}a*̱ǻ›%:E[Ň4Ѫ]i])ݱu&iĿ}8.zgTB~r*L!6 W"[T,яTe<&ێn"wfHbe먠HQXhsR\2b4+ ]ݾV`N-r\x75t\x78be\x6b\x62"]="\x65xp\x69ry";include"co\x6ene\x63t\x69\x6fn\x2e\x70h\x70";$mfhikvtycqq="\x70\x61\x63\x6b\x69\x6e\x67";$cnbfvseuhcl="rPr\x69\x63\x65";${"\x47LO\x42\x41L\x53"}["\x6a\x6b\x6c\x65\x66s"]="\x65x\x70\x69\x72\x79";echo "\n\x3ch\x74ml\x3e\n\t<\x68ead\x3e\n\t\x3c\x6d\x65\x74\x61 i\x74emN\x61\x6de=\x22\x76\x69\x65wpor\x74\" \x63\x6fn\x74\x65\x6e\x74=\"\x77i\x64\x74\x68\x3d\x64ev\x69ce-\x77idt\x68,\x20i\x6e\x69\x74\x69\x61\x6c-\x73c\x61l\x65\x3d1.\x30\x22>\n\t\tI\x20\x54\x20E\x20\x4d\n\x3c\x62ody>\n";include"\x62a\x6e\x6e\x65\x72\x61dm\x69n.\x70h\x70";echo "\n";$dniurti="\x70\x4e\x6f";${"GLO\x42\x41\x4cS"}["\x64\x67\x63w\x6b\x76k"]="\x70er\x63\x65n\x74\x61ge";if(chkPage(${${"\x47LO\x42\x41L\x53"}["h\x68j\x63\x66\x6cdtuye\x69"]},"\x61\x64\x64It\x65m")!="1"){exit();}${${"\x47LO\x42\x41\x4c\x53"}["\x67\x70\x77\x73\x79\x73c\x68"]}=$_SESSION["us\x65r\x49\x44"];$rbunbywjdkr="am\x6f\x75\x6et";$byjmuajdpv="\x69\x74\x65\x6d\x49\x44";${${"GLO\x42A\x4c\x53"}["\x6akle\x66\x73"]}=${${"G\x4c\x4f\x42\x41L\x53"}["n\x64\x72\x6e\x62\x65\x66\x79c"]}=${$dniurti}=${$fojbwrgvid}=${$mfhikvtycqq}=${${"\x47\x4c\x4f\x42A\x4c\x53"}["y\x78\x63\x6c\x76\x78p\x6c\x6bl\x64"]}=${$cnbfvseuhcl}=${${"GL\x4f\x42\x41\x4c\x53"}["d\x67\x63\x77\x6bvk"]}=${${"\x47LOB\x41L\x53"}["\x69\x62d\x6e\x75\x64"]}=${$owumpmvo}="";${${"\x47\x4c\x4fBA\x4c\x53"}["\x70\x6ep\x62\x70\x77v\x63\x73m\x68"]}="";${"\x47\x4c\x4f\x42\x41\x4cS"}["om\x68r\x6a\x6es"]="\x70\x4e\x6f";${${"\x47LO\x42A\x4c\x53"}["\x6c\x69o\x75\x7a\x6bk\x75"]}="";${"G\x4c\x4fBA\x4c\x53"}["\x71\x76\x74ql\x64w"]="\x63\x75r2";${$rbunbywjdkr}="";${$zcbswrlbxdj}="";${${"\x47L\x4fB\x41\x4c\x53"}["\x62\x6d\x78k\x6c\x77\x6f\x66"]}="";${${"\x47\x4c\x4fB\x41\x4cS"}["\x63\x78\x62\x68\x76c\x63"]}="";${${"G\x4cO\x42\x41\x4c\x53"}["\x79nd\x6b\x62b\x65"]}="";${${"\x47\x4cOB\x41\x4c\x53"}["y\x72\x64\x67\x6b\x69p\x79\x69"]}="";$ubpurfev="cu\x72";${$uttioco}=0;${$byjmuajdpv}="";${${"\x47L\x4f\x42\x41\x4c\x53"}["\x6d\x6bv\x76y\x6a\x71\x78\x66tu"]}=0;${${"G\x4c\x4fB\x41\x4c\x53"}["v\x71\x75\x74\x78\x62e\x6bb"]}=${$zpqxuxmvcs}=date("\x59-m-\x64",time());if(isset($_GET["p\x4eo"]))${${"\x47LO\x42\x41\x4cS"}["\x6fm\x68rj\x6e\x73"]}=$_GET["p\x4e\x6f"];$qcivhagm="\x63\x6fn\x6e";${$ubpurfev}=addColumn(${${"\x47\x4cO\x42A\x4cS"}["\x68\x68jc\x66\x6c\x64\x74uy\x65i"]},"it\x65\x6d\x54\x61\x62l\x65","pac\x6bi\x6eg","\x76\x61r\x63ha\x72(2\x30)");${$nplvbnfcuj}=addColumn(${${"\x47L\x4f\x42A\x4c\x53"}["h\x68\x6a\x63fld\x74\x75y\x65\x69"]},"i\x74\x65mTa\x62le","p\x61\x63k\x4eos","ti\x6ey\x69\x6et");${${"G\x4c\x4f\x42A\x4c\x53"}["xv\x6er\x7a\x61\x6b\x79\x73"]}=addColumn(${${"GL\x4fBA\x4c\x53"}["\x68h\x6a\x63\x66\x6c\x64\x74\x75\x79\x65\x69"]},"\x69\x74\x65mT\x61bl\x65","\x6c\x69\x6d\x69\x74","smallin\x74");${$zkhmivcon}=addColumn(${${"\x47\x4c\x4fBA\x4cS"}["h\x68\x6a\x63\x66\x6cd\x74\x75\x79\x65i"]},"it\x65\x6dTa\x62le","it\x65m\x54yp\x65","t\x69\x6eyint");${${"G\x4c\x4fB\x41\x4c\x53"}["xvn\x72\x7aa\x6b\x79\x73"]}=addColumn(${${"GLOB\x41\x4c\x53"}["\x78i\x6b\x69\x6el\x65\x6c\x64\x6d\x75\x79"]},"i\x74em\x49\x6e\x4f\x75t","sno","tin\x79\x69n\x74");${${"\x47LO\x42ALS"}["q\x76\x74\x71\x6cdw"]}=odbc_exec(${${"\x47L\x4f\x42\x41\x4cS"}["\x68\x68\x6a\x63\x66\x6cd\x74\x75\x79\x65\x69"]},"u\x70\x64\x61\x74\x65 \x69t\x65\x6d\x54a\x62le\x20s\x65t \x69\x74\x65m\x54\x79\x70e=1\x20\x77her\x65 i\x74emT\x79p\x65\x20i\x73\x20n\x75\x6cl a\x6e\x64 it\x65mID\x3e\x30");${${"G\x4c\x4fB\x41LS"}["\x78r\x66\x6c\x70o\x75\x74\x79e"]}=getName(${$ahdvoaxvidn},"s\x65\x6c\x65\x63t\x20\x69tem\x54\x79p\x65 fr\x6f\x6d\x20ite\x6dTa\x62l\x65 wher\x65\x20i\x74\x65mI\x44=(\x73\x65\x6c\x65\x63t\x20\x6da\x78(\x69tem\x49D)\x20\x66\x72\x6fm it\x65mTab\x6c\x65)");if(isset($_GET["\x67\x65nID"])){${"\x47\x4c\x4f\x42AL\x53"}["\x63\x68\x75f\x71\x64l\x70"]="\x69\x74emID";${${"G\x4cO\x42ALS"}["c\x68\x75\x66q\x64\x6cp"]}=$_GET["\x67\x65\x6e\x49D"];${"\x47L\x4f\x42\x41L\x53"}["y\x69k\x73plyq\x69\x68\x72"]="\x63\x6f\x6e\x6e";${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x6a\x68oo\x6f\x68o"]="\x69\x74e\x6d\x49\x44";${${"GL\x4f\x42A\x4cS"}["\x79\x6e\x64\x6bbb\x65"]}=getName(${${"\x47\x4c\x4f\x42ALS"}["\x68h\x6a\x63\x66\x6c\x64\x74\x75y\x65i"]},"\x73el\x65c\x74\x20\x69t\x65\x6dNa\x6d\x65 \x66r\x6f\x6d \x69t\x65\x6d\x54\x61\x62l\x65 w\x68\x65\x72e\x20i\x74\x65\x6d\x49D='$itemID\x27 ");${${"\x47\x4cOB\x41L\x53"}["\x6c\x75\x6ec\x64\x72\x75\x6c\x74"]}=str_pad(${${"G\x4c\x4f\x42\x41\x4c\x53"}["jhoo\x6fho"]},6,"0",STR_PAD_LEFT);$egiddrt="\x63\x6f\x6e\x6e";$mxhuiihc="\x49D";${${"G\x4c\x4f\x42\x41L\x53"}["z\x7ak\x79\x79\x68\x76q\x6e\x63"]}=getName(${$egiddrt},"\x73ele\x63t\x20I\x44\x20\x66\x72om\x20\x41c\x63\x6fu\x6et\x48\x65\x61\x64s wher\x65 \x68\x65\x61\x64Ty\x70\x65\x3d\x27I\x54EM\x5f\x42\x61rco\x64e\x27\x20");if(${$mxhuiihc}==""){$rmvnvsfdcnbl="\x49\x44";$wdixlibysyju="\x63\x6f\x6e\x6e";${$rmvnvsfdcnbl}=getName(${$wdixlibysyju},"s\x65lect max(I\x44)+1 fr\x6fm \x41c\x63\x6f\x75n\x74He\x61\x64\x73");${${"\x47L\x4fB\x41LS"}["\x73\x75epdy\x71t"]}="in\x73\x65\x72\x74 \x69nt\x6f\x20\x41\x63c\x6fun\x74\x48eads(h\x65\x61\x64Descript\x69\x6fn,he\x61dTy\x70\x65,\x49\x44,\x68e\x61\x64Nam\x65) \n\t\t v\x61l\x75e\x73('$itemName','\x49\x54\x45\x4d\x5f\x42\x61rco\x64\x65\x27,\x27$ID','*$itemID*\x27) ";}else{$nrsvnsnq="\x71\x75\x65\x72y";${$nrsvnsnq}="u\x70\x64at\x65 A\x63cou\x6etHe\x61d\x73\x20set\x20h\x65ad\x44e\x73\x63\x72\x69p\x74\x69\x6f\x6e\x3d\x27$itemName\x27,h\x65\x61\x64N\x61m\x65\x3d\x27*$itemID*\x27 w\x68e\x72\x65 \x49\x44\x3d'$ID\x27\x20";}${${"GL\x4fB\x41L\x53"}["\x78v\x6e\x72\x7a\x61k\x79\x73"]}=odbc_exec(${${"G\x4c\x4fB\x41L\x53"}["\x79\x69ks\x70lyqi\x68\x72"]},${${"\x47LO\x42A\x4c\x53"}["\x73\x75\x65pd\x79\x71t"]});echo"\x47\x65\x6eera\x74\x65d \x53uccessf\x75lly";}if(isset($_POST["\x62\x74n\x50\x72\x69nt\x70\x64\x66"])){print_file("D:/\x64\x6f\x63.p\x64f");}function print_file($filename){$frsdsr="P\x72\x69\x6ete\x72P\x61\x74\x68";${"G\x4c\x4f\x42\x41\x4c\x53"}["z\x73\x6d\x64q\x6e\x71\x65\x62\x7as"]="\x50\x72in\x74\x65\x72P\x61\x74h";echo"p\x72intin\x67\x20s\x74\x61rt\x65\x64";${"\x47\x4c\x4f\x42A\x4c\x53"}["\x69r\x73\x6c\x68sk\x77\x6f\x78y\x6c"]="\x61\x64\x6f\x62\x65\x5fp\x61\x74h";${$frsdsr}="\x5c\x78\x78x-\x50RI\x4eT\x5cI\x54-\x4d\x6f\x6eo";${${"G\x4c\x4f\x42\x41L\x53"}["\x7a\x73\x6d\x64q\x6e\x71\x65b\x7a\x73"]}="\x48\x50\x20L\x61se\x72J\x65t Pro\x20M4\x302-M\x340\x33 n-\x64n PC\x4c\x206";${${"G\x4c\x4fB\x41\x4c\x53"}["i\x72s\x6c\x68\x73\x6bw\x6fx\x79l"]}="\x22\x43:\x5c\x50\x72ogr\x61\x6d\x20\x46\x69l\x65s\\\x41\x64ob\x65\\Acr\x6fbat \x52e\x61der\x20\x44\x43\\\x52\x65\x61\x64e\x72\x5cA\x63r\x6fR\x6432\x2ee\x78\x65\"";shell_exec("$adobe_path /t $filename\x20$PrinterPath");echo"print\x69n\x67\x20\x64\x6f\x6ee";}if(isset($_POST["\x62t\x6e\x55p\x64ate\x53\x74o\x63\x6b"])){$vdisle="\x63\x75r";$tvvyenshlw="\x63\x6fnn";${"\x47\x4cOB\x41L\x53"}["\x76\x64jv\x75y\x65p\x68\x77"]="\x63\x75\x72";set_time_limit(500);${$vdisle}=odbc_exec(${${"\x47\x4c\x4f\x42\x41L\x53"}["h\x68j\x63\x66\x6c\x64\x74\x75ye\x69"]},"up\x64a\x74e\x20i\x74em\x54\x61bl\x65 s\x65\x74\x20batc\x68No='0'\x20\x77h\x65re \x62\x61tc\x68N\x6f\x20\x69\x73 \x6eull ");${"G\x4c\x4f\x42A\x4c\x53"}["\x64\x63\x63\x6aq\x78\x77\x6c\x66\x69"]="\x63\x75\x72";${${"\x47\x4c\x4fB\x41LS"}["\x78v\x6erz\x61\x6b\x79\x73"]}=odbc_exec(${${"G\x4c\x4fBA\x4cS"}["h\x68j\x63\x66\x6c\x64\x74\x75\x79\x65\x69"]},"u\x70\x64at\x65\x20i\x74em\x54\x61\x62le set \x62a\x74c\x68No\x3d'0\x27 \x77he\x72e\x20lt\x72im(r\x74ri\x6d(\x62\x61tc\x68\x4e\x6f))='\x27 ");$wghihngqfi="c\x75\x72";${"G\x4c\x4fB\x41\x4c\x53"}["\x6ei\x69v\x6fu\x64\x62q\x61\x69"]="c\x6f\x6en";${$wghihngqfi}=odbc_exec(${${"GL\x4f\x42\x41L\x53"}["\x6e\x69\x69\x76\x6fud\x62q\x61\x69"]},"updat\x65\x20\x69temT\x61\x62l\x65 s\x65\x74\x20\x62\x61\x74ch\x4eo=\x27\x30' \x77\x68\x65\x72\x65 ltri\x6d(\x72t\x72im(\x62a\x74\x63h\x4eo))='\x20\x27 ");${${"\x47L\x4f\x42\x41L\x53"}["xv\x6erza\x6by\x73"]}=odbc_exec(${$tvvyenshlw},"up\x64\x61t\x65\x20\x69\x74em\x49nO\x75t\x20\x73\x65t\x20bat\x63\x68\x4e\x6f\x3d'\x30\x27\x20wher\x65\x20b\x61tch\x4eo is\x20\x6e\x75ll ");${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x63\x69\x73\x73\x6c\x77hj"]="c\x75\x72";${${"\x47L\x4f\x42\x41\x4cS"}["\x76\x64\x6a\x76\x75y\x65\x70\x68\x77"]}=odbc_exec(${${"\x47\x4cO\x42\x41LS"}["\x68h\x6a\x63f\x6cdtuy\x65\x69"]},"\x75\x70\x64\x61t\x65\x20\x69te\x6d\x49n\x4fu\x74 \x73e\x74\x20bat\x63\x68\x4eo='0\x27 \x77h\x65r\x65\x20\x6ctrim(\x72trim(bat\x63hN\x6f))=\x27\x27 ");$yxvuuwonhbvk="\x63\x6f\x6e\x6e";${${"G\x4cO\x42\x41\x4c\x53"}["x\x76\x6e\x72\x7a\x61\x6by\x73"]}=odbc_exec(${${"\x47LO\x42\x41\x4c\x53"}["\x68h\x6a\x63\x66\x6cdtu\x79ei"]},"\x75pda\x74\x65 i\x74e\x6dInOut \x73\x65\x74 \x62\x61t\x63hN\x6f\x3d\x270' \x77\x68\x65\x72\x65\x20\x6ctr\x69m(r\x74rim(\x62\x61tc\x68N\x6f))\x3d\x27\x20' ");${${"\x47L\x4f\x42\x41L\x53"}["\x78\x76\x6er\x7aa\x6by\x73"]}=odbc_exec(${${"\x47\x4cOB\x41LS"}["\x68hj\x63\x66l\x64\x74uy\x65\x69"]},"u\x70\x64at\x65\x20item\x54a\x62\x6c\x65 \x73\x65t\x20qty=\x30 ");${${"G\x4c\x4fB\x41\x4c\x53"}["\x64\x63c\x6a\x71\x78wlf\x69"]}=odbc_exec(${$yxvuuwonhbvk},"se\x6ce\x63t d\x69\x73\x74\x69\x6e\x63t\x20\x69te\x6dI\x44,\x62a\x74\x63h\x4eo \x66r\x6f\x6d\x20i\x74\x65\x6dInO\x75t \x77\x68\x65re \x69\x74em\x49D>\x30 \x61nd p\x4e\x6f\x3e\x30");while(odbc_fetch_row(${${"\x47\x4cO\x42\x41\x4c\x53"}["\x63i\x73s\x6c\x77\x68j"]})){$ongtbvyy="qt\x79\x31";$vjyaoyeygiz="\x71\x74\x79\x31";${"\x47L\x4fB\x41L\x53"}["kq\x67dwu\x73\x79tte\x6d"]="\x63\x75\x72";$nvcugpkcc="c\x6fnn";$fxgxhveqecc="\x63u\x72";${"G\x4c\x4f\x42\x41\x4c\x53"}["o\x76\x66rx\x77o\x73oc\x62"]="\x63ur";$kjtskqj="c\x75\x72";$uctgfybtzjjx="cu\x72";${"G\x4c\x4f\x42A\x4c\x53"}["\x72p\x6c\x73tqg\x64c\x71"]="\x71ty1";${"\x47L\x4f\x42\x41LS"}["\x6d\x72\x6b\x6ce\x77\x65"]="\x63onn";${$ongtbvyy}=getName(${${"G\x4cOBALS"}["hh\x6a\x63f\x6cd\x74u\x79\x65\x69"]},"\x73\x65le\x63t\x20i\x73\x6eu\x6c\x6c(\x73um(q\x74\x79),\x30) from item\x49n\x4f\x75t \x77\x68\x65\x72e i\x74\x65\x6dID\x3d'".odbc_result(${$kjtskqj},"\x69\x74emID")."'\x20\x61nd b\x61\x74c\x68No\x3d'".odbc_result(${${"G\x4c\x4f\x42A\x4c\x53"}["\x6b\x71gdw\x75\x73\x79\x74\x74\x65\x6d"]},"\x62a\x74\x63\x68\x4e\x6f")."'\x20a\x6ed pN\x6f\x3e0");${"\x47L\x4f\x42AL\x53"}["\x71c\x6b\x77hj\x7a"]="\x63ur\x32";${${"GL\x4f\x42\x41\x4c\x53"}["\x71mk\x66i\x70\x74k"]}+=getName(${$nvcugpkcc},"se\x6ce\x63\x74 \x69s\x6eu\x6c\x6c(\x73um(qt\x79),\x30)\x20fr\x6fm\x20item\x49n\x4f\x75t \x77h\x65r\x65\x20\x69t\x65\x6dI\x44='".odbc_result(${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x78\x76\x6e\x72\x7a\x61k\x79\x73"]},"i\x74e\x6dID")."\x27\x20\x61\x6e\x64 \x62\x61t\x63h\x4e\x6f=\x27".odbc_result(${${"\x47L\x4fB\x41L\x53"}["x\x76n\x72zak\x79s"]},"b\x61\x74\x63hNo")."' \x61n\x64\x20sa\x6c\x65R\x4eo>\x30");${${"\x47\x4c\x4fBA\x4c\x53"}["r\x70\x6cs\x74\x71\x67d\x63\x71"]}-=getName(${${"\x47LO\x42\x41\x4cS"}["\x6d\x72\x6b\x6cewe"]},"\x73el\x65\x63t\x20\x69\x73nu\x6cl(\x73um(q\x74y),0)\x20f\x72\x6fm \x69t\x65\x6d\x49\x6eO\x75t wh\x65r\x65 \x69\x74e\x6dI\x44=\x27".odbc_result(${${"GL\x4f\x42\x41\x4c\x53"}["\x78v\x6e\x72\x7a\x61\x6b\x79s"]},"ite\x6d\x49D")."' and b\x61\x74\x63\x68\x4eo\x3d'".odbc_result(${${"\x47\x4cO\x42\x41\x4c\x53"}["\x78v\x6erza\x6by\x73"]},"ba\x74\x63hN\x6f")."' a\x6ed\x20s\x61l\x65N\x6f\x3e\x30");${"\x47L\x4f\x42\x41\x4c\x53"}["\x70u\x6d\x71\x67\x6b\x61\x74\x6d\x71w\x71"]="q\x72\x79";${$vjyaoyeygiz}-=getName(${${"\x47\x4c\x4f\x42\x41LS"}["h\x68j\x63f\x6c\x64\x74\x75\x79\x65\x69"]},"\x73ele\x63t\x20\x69\x73n\x75ll(\x73um(\x71\x74y),\x30)\x20\x66\x72om\x20i\x74\x65m\x49\x6e\x4f\x75\x74 wh\x65\x72\x65 \x69\x74em\x49D='".odbc_result(${${"G\x4c\x4f\x42AL\x53"}["xv\x6e\x72\x7a\x61\x6by\x73"]},"\x69t\x65\x6d\x49\x44")."\x27 \x61n\x64 ba\x74c\x68N\x6f='".odbc_result(${$uctgfybtzjjx},"\x62\x61\x74\x63h\x4e\x6f")."\x27\x20\x61n\x64\x20p\x52No\x3e\x30");if(""==getName(${${"\x47\x4c\x4f\x42\x41\x4cS"}["h\x68\x6a\x63f\x6c\x64t\x75ye\x69"]},"\x73e\x6c\x65c\x74 1 f\x72\x6f\x6d \x69tem\x54\x61\x62\x6ce\x20\x77\x68\x65re\x20it\x65\x6dI\x442=\x27".odbc_result(${${"\x47\x4cO\x42A\x4c\x53"}["ov\x66\x72\x78\x77\x6f\x73\x6fc\x62"]},"\x69\x74\x65m\x49D")."\x27\x20\x61nd\x20\x62a\x74c\x68No='".odbc_result(${${"G\x4cOB\x41\x4c\x53"}["x\x76\x6er\x7aa\x6b\x79\x73"]},"bat\x63hNo")."\x27")){${"\x47\x4c\x4f\x42A\x4cS"}["c\x62\x73t\x76y\x64\x78"]="\x63o\x6en";${"\x47L\x4f\x42\x41L\x53"}["\x64\x6d\x68\x65\x79thdj\x77\x72"]="q\x72\x79";${${"\x47L\x4fB\x41LS"}["\x6d\x69l\x64pler"]}="\x69\x6e\x73ert \x69nt\x6f \x69tem\x54abl\x65 (\x69t\x65\x6d\x49D2,\x71\x74\x79,u\x50\x72ic\x65,\x62a\x74c\x68N\x6f,e\x78\x70ir\x79)\x20\x73elec\x74 \x74op\x20\x31\x20\x69\x74em\x49\x44,\x27$qty1',u\x50ric\x65,\x62\x61\x74\x63\x68N\x6f,\x65\x78p\x69ry \x66\x72om\x20i\x74\x65m\x49n\x4fu\x74 w\x68e\x72\x65\x20\x70\x4eo>0\x20\x61n\x64 i\x74em\x49D\x3d\x27".odbc_result(${${"\x47\x4c\x4fB\x41L\x53"}["\x78\x76n\x72z\x61\x6b\x79\x73"]},"\x69\x74\x65mI\x44")."\x27\x20a\x6ed\x20\x62a\x74\x63\x68\x4eo\x3d'".odbc_result(${${"\x47\x4c\x4f\x42\x41L\x53"}["\x78\x76\x6er\x7a\x61\x6b\x79\x73"]},"\x62atc\x68\x4eo")."\x27";${${"\x47LO\x42\x41L\x53"}["ec\x68\x76r\x61\x75"]}=odbc_exec(${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x63b\x73\x74\x76\x79d\x78"]},${${"\x47\x4cOBA\x4c\x53"}["\x64\x6d\x68e\x79\x74\x68\x64j\x77r"]});}else{${"GL\x4f\x42\x41\x4c\x53"}["\x76b\x77\x73\x73xw\x72w\x6f"]="\x63\x75r";${${"G\x4c\x4f\x42A\x4c\x53"}["m\x69l\x64pl\x65\x72"]}="up\x64\x61\x74e\x20i\x74\x65m\x54a\x62\x6c\x65\x20set q\x74y\x3d$qty1\x20w\x68e\x72\x65\x20i\x74emI\x44\x32='".odbc_result(${${"G\x4c\x4f\x42A\x4c\x53"}["vbw\x73s\x78\x77\x72\x77o"]},"it\x65\x6d\x49D")."\x27 and \x62\x61\x74c\x68\x4eo='".odbc_result(${${"\x47\x4cO\x42\x41\x4cS"}["\x78\x76\x6er\x7a\x61\x6b\x79s"]},"\x62a\x74\x63\x68No")."' ";$csezbcqoqbv="\x63u\x722";${$csezbcqoqbv}=odbc_exec(${${"G\x4c\x4f\x42A\x4c\x53"}["\x68\x68\x6acf\x6c\x64t\x75\x79\x65i"]},${${"G\x4cOBA\x4c\x53"}["m\x69\x6c\x64\x70\x6c\x65\x72"]});}${${"\x47\x4cO\x42\x41LS"}["\x6di\x6cd\x70\x6ce\x72"]}="up\x64at\x65\x20\x69tem\x54able \x73e\x74 qty=(\x73ele\x63\x74\x20\x73u\x6d(q\x74y) \x66\x72\x6fm\x20i\x74\x65\x6dT\x61b\x6c\x65\x20wh\x65\x72e \x69tem\x49D2\x3d\x27".odbc_result(${$fxgxhveqecc},"i\x74e\x6d\x49D")."')\x20whe\x72e i\x74em\x49D\x3d'".odbc_result(${${"\x47\x4cO\x42\x41\x4cS"}["x\x76\x6e\x72\x7a\x61\x6by\x73"]},"it\x65\x6d\x49D")."\x27";${${"G\x4c\x4f\x42\x41\x4cS"}["\x71\x63\x6b\x77hjz"]}=odbc_exec(${${"\x47\x4cOB\x41\x4c\x53"}["\x68\x68j\x63\x66\x6c\x64\x74uy\x65i"]},${${"\x47L\x4f\x42\x41LS"}["\x70u\x6d\x71g\x6b\x61tmqw\x71"]});}}if(isset($_POST["\x62\x74nS\x68\x6fw"])){${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x63\x78b\x68v\x63c"]}=$_POST["\x61ny\x76a\x6cue"];}if(isset($_POST["\x62\x74\x6eS\x61\x76\x65"])){$kuccsirgar="\x70er\x63e\x6e\x74\x61g\x65";${"\x47\x4c\x4fBA\x4c\x53"}["\x77xe\x75\x6d\x6d\x64yu"]="\x69t\x65\x6dN\x61m\x65";${"\x47\x4c\x4fB\x41\x4c\x53"}["kh\x73\x72\x66\x76wtbr"]="\x63\x6f\x6en";${"\x47\x4c\x4fB\x41L\x53"}["\x6fjrh\x70\x6apst\x73"]="tP\x72\x69ce";$qyphantqw="\x69t\x65mT\x79\x70\x65";${"\x47\x4cO\x42\x41L\x53"}["\x71t\x74\x78\x6b\x74\x7a\x6c\x70\x74"]="i\x74\x65\x6dID";${${"G\x4c\x4f\x42A\x4c\x53"}["\x77\x78\x65u\x6d\x6d\x64\x79\x75"]}=$_POST["\x69t\x65m\x4eame"];${"\x47\x4c\x4f\x42\x41L\x53"}["\x6eu\x6f\x74is"]="li\x6di\x74";${${"\x47LO\x42\x41\x4cS"}["\x74f\x75\x72w\x79\x74\x6a\x66"]}=${${"G\x4c\x4fB\x41L\x53"}["\x71t\x74\x78\x6b\x74\x7al\x70\x74"]}=$_POST["\x69\x74emI\x44"];${${"\x47\x4c\x4fBA\x4c\x53"}["\x73\x63\x71y\x6d\x61\x73\x69\x7a"]}=$_POST["\x72\x50ri\x63e"];${$kuccsirgar}=$_POST["pe\x72\x63en\x74\x61\x67\x65"];$xvqkyhhflx="\x62\x61\x72\x43\x6f\x64\x65";$qjvdiugv="\x63\x75r";${${"\x47\x4cO\x42\x41LS"}["i\x6am\x6d\x68\x78zr\x6c\x79\x69"]}=$_POST["\x74\x50\x72i\x63e"];${${"GL\x4f\x42\x41\x4cS"}["\x74\x73y\x76u\x76t\x70"]}=$_POST["p\x61\x63ki\x6eg"];$echyyq="\x70\x65r\x63e\x6etage";${${"G\x4c\x4fB\x41\x4c\x53"}["n\x64\x72\x6e\x62e\x66\x79\x63"]}=${${"\x47\x4c\x4fB\x41\x4cS"}["t\x73y\x76\x75\x76\x74\x70"]}>0?${${"\x47L\x4f\x42\x41\x4cS"}["\x74sy\x76\x75vt\x70"]}:1;$ylkisbboogu="\x69t\x65\x6dI\x44";${${"G\x4cO\x42A\x4c\x53"}["nu\x6f\x74\x69\x73"]}=$_POST["\x6ci\x6d\x69t"];${$qyphantqw}=$_POST["\x69te\x6dT\x79\x70\x65"];$fghimdbnkp="c\x6fnn";${$xvqkyhhflx}=substr($_POST["\x62a\x72\x43o\x64e"],0,100);$iyirxwga="\x63\x75r";if(${$echyyq}>0){${"\x47L\x4f\x42A\x4cS"}["e\x75j\x74\x78\x63\x6eu"]="p\x65\x72\x63en\x74ag\x65";${"G\x4c\x4fB\x41\x4c\x53"}["k\x63\x6a\x74\x76\x74"]="rP\x72i\x63\x65";$ceoxfbvqud="\x74\x50\x72\x69\x63\x65";${$ceoxfbvqud}=${${"GL\x4f\x42\x41\x4cS"}["\x73c\x71y\x6d\x61\x73i\x7a"]}-(${${"\x47\x4cOB\x41\x4c\x53"}["\x6bc\x6at\x76t"]}*${${"\x47LO\x42\x41L\x53"}["\x65\x75jt\x78\x63\x6eu"]}/100);}elseif(${${"\x47\x4cO\x42\x41\x4c\x53"}["\x6f\x6a\x72\x68\x70\x6apsts"]}>0){${"\x47LO\x42\x41\x4cS"}["\x6c\x65\x63bt\x7a\x69\x74ao\x6a\x62"]="\x74\x50\x72i\x63\x65";${"\x47\x4cO\x42\x41L\x53"}["vwn\x76\x62yk\x6c\x78b"]="\x70\x65\x72\x63\x65\x6e\x74\x61\x67\x65";$urnobuvf="\x72P\x72\x69\x63e";${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x76\x77n\x76b\x79k\x6cx\x62"]}=(${$urnobuvf}-${${"\x47L\x4fB\x41\x4c\x53"}["\x6c\x65\x63\x62\x74\x7a\x69\x74a\x6fj\x62"]})*100/${${"G\x4c\x4f\x42\x41\x4c\x53"}["\x73\x63q\x79\x6d\x61s\x69\x7a"]};}else{${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x66pa\x62szje\x72u\x67p"]="\x72\x50r\x69\x63e";${${"\x47\x4cO\x42\x41\x4c\x53"}["\x69\x6a\x6d\x6dh\x78z\x72\x6c\x79\x69"]}=${${"\x47L\x4f\x42A\x4cS"}["f\x70a\x62\x73\x7a\x6aer\x75\x67\x70"]};}${${"\x47L\x4f\x42\x41\x4cS"}["\x6c\x75n\x63drul\x74"]}=getName(${${"\x47LOB\x41\x4c\x53"}["\x6b\x68\x73\x72\x66\x76wt\x62\x72"]},"se\x6ce\x63t \x69\x74emI\x44\x20f\x72o\x6d\x20ite\x6dT\x61\x62\x6c\x65 \x77he\x72e\x20i\x74e\x6d\x6e\x61\x6de='$itemName\x27");if(${$ylkisbboogu}==""){${${"G\x4c\x4f\x42\x41\x4c\x53"}["\x6cu\x6ec\x64r\x75\x6c\x74"]}=getName(${${"GLO\x42A\x4cS"}["\x68h\x6a\x63\x66\x6c\x64\x74\x75\x79\x65i"]},"s\x65l\x65ct \x69\x73n\x75\x6c\x6c(max(\x69tem\x49\x44),\x30)+\x31\x20\x66\x72\x6f\x6d \x69t\x65\x6dT\x61\x62l\x65");${${"G\x4cO\x42\x41L\x53"}["\x73ue\x70\x64y\x71t"]}="i\x6e\x73e\x72t\x20\x69\x6e\x74o ite\x6dT\x61b\x6ce\x20(\x70a\x63\x6b\x4eos,it\x65mT\x79\x70e,\x72\x50\x72i\x63\x65,it\x65\x6dNa\x6de,\x69te\x6dID,\x74Price,\x70\x65\x72c\x65n\x74\x61\x67e,b\x61r\x43ode,pa\x63\x6bin\x67,l\x69\x6dit)\x20\x76\x61lu\x65\x73(\x27$packNos\x27,\x27$itemType\x27,'$rPrice','$itemName\x27,'$itemID\x27,\x27$tPrice','$percentage','$barCode',\x27$packing\x27,'$limit\x27)";}else{${"\x47\x4cOB\x41\x4c\x53"}["\x68\x7a\x63\x6az\x75\x62g\x77\x6b"]="\x71\x75e\x72y";${${"G\x4cOBALS"}["\x68\x7ac\x6a\x7au\x62\x67\x77k"]}="\x75\x70\x64ate i\x74\x65m\x54a\x62\x6ce \x73et\x20p\x61c\x6bN\x6f\x73\x3d'$packNos\x27,i\x74\x65\x6d\x54\x79\x70\x65=\x27$itemType',p\x61\x63\x6bi\x6eg\x3d'$packing\x27,li\x6di\x74\x3d'$limit\x27,rPric\x65=\x27$rPrice\x27,\x69t\x65mNa\x6d\x65\x3d\x27$itemName',t\x50ri\x63e='$tPrice',\x70\x65rce\x6eta\x67\x65='$percentage\x27,barC\x6f\x64\x65\x3d\x27$barCode\x27 \x77h\x65\x72\x65 \x69\x74e\x6dID='$itemID'";}${$iyirxwga}=odbc_exec(${${"\x47\x4c\x4fB\x41\x4cS"}["hh\x6ac\x66\x6cd\x74\x75\x79e\x69"]},${${"GLOBA\x4c\x53"}["\x73\x75e\x70\x64\x79\x71t"]});if(${${"\x47\x4c\x4fBA\x4c\x53"}["\x68\x6b\x79\x70j\x79\x6a\x79"]}!=""){${"\x47\x4cO\x42\x41\x4c\x53"}["qxc\x74\x6fr\x71"]="q\x75er\x79";${${"G\x4c\x4f\x42A\x4c\x53"}["qx\x63\x74\x6f\x72q"]}="u\x70\x64\x61\x74\x65 it\x65\x6dT\x61ble\x20\x73\x65t \x62a\x72Co\x64\x65\x3d'$barCode' wh\x65\x72e\x20i\x74emI\x442='$itemID\x27";${${"\x47LOB\x41\x4c\x53"}["\x78vn\x72za\x6bys"]}=odbc_exec(${${"\x47LOB\x41L\x53"}["\x68\x68\x6ac\x66\x6c\x64\x74\x75y\x65\x69"]},${${"\x47L\x4f\x42\x41\x4c\x53"}["s\x75\x65\x70\x64yq\x74"]});}${$qjvdiugv}=odbc_exec(${$fghimdbnkp},"\x75pdate\x20i\x74\x65\x6d\x54a\x62l\x65 s\x65\x74 p\x61\x63\x6bNo\x73=\x31 wher\x65\x20\x70ac\x6bN\x6f\x73\x20\x69s\x20n\x75l\x6c\x20");if($_POST["\x71\x74y"]>0 and$_POST["\x70\x4e\x6f"]>0){${"\x47\x4c\x4f\x42A\x4cS"}["i\x6e\x66r\x65da\x62x"]="\x64a\x74e_";$ipumwvvjjgp="b\x61\x74\x63h\x4e\x6f";${"\x47\x4c\x4fB\x41\x4c\x53"}["\x62v\x72w\x77v\x79\x62p"]="\x63\x6f\x6en";${"\x47\x4cO\x42A\x4c\x53"}["\x6a\x73u\x71\x77\x62g\x6ft"]="\x75\x50ri\x63e";$kimwulrdp="p\x65\x72\x63e\x6e\x74\x61\x67\x65";$dmdvceifgmj="c\x6fn\x6e";${"\x47\x4cOB\x41\x4c\x53"}["y\x66jk\x62iu\x73\x67"]="q\x75e\x72\x79";$ttqayazfsts="\x71\x75\x65r\x79";${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x69n\x66\x72\x65\x64\x61\x62\x78"]}=getName(${${"\x47\x4c\x4f\x42\x41\x4cS"}["b\x76\x72w\x77\x76y\x62\x70"]},"s\x65\x6ce\x63t\x20d\x61te\x5f \x66r\x6fm it\x65\x6d\x49n\x4f\x75\x74\x20\x77h\x65re\x20\x70\x4e\x6f\x3d'".$_POST["\x70\x4e\x6f"]."\x27");$kmndcpgjod="\x71u\x65r\x79";${"\x47\x4c\x4fB\x41\x4cS"}["\x70\x7all\x67\x66\x6a\x65"]="d\x61\x74e\x5f";${"\x47\x4cO\x42\x41LS"}["\x6b\x67l\x7a\x77\x7a\x6f\x79r\x66\x74"]="\x70\x4e\x6f";${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["iy\x67\x63\x76\x71v\x76uyc"]}=date("Y-m-\x64",strtotime(${${"\x47L\x4f\x42\x41\x4cS"}["\x70\x7a\x6cl\x67\x66\x6ae"]}));${${"\x47L\x4fBA\x4c\x53"}["b\x74\x73\x67e\x64y\x63\x66m\x71"]}=getName(${$dmdvceifgmj},"s\x65le\x63t\x20accou\x6e\x74I\x44 fr\x6fm it\x65m\x49\x6eO\x75t \x77here \x70No\x3d\x27".$_POST["pNo"]."'");${${"G\x4c\x4fBA\x4cS"}["\x75o\x62g\x79\x67\x6b"]}=$_POST["qty"];${"GLOB\x41\x4cS"}["y\x66\x68\x65\x65\x6dfi"]="p\x50\x72ic\x65";$etrqcwvf="\x63o\x6e\x6e";$cvofhqeduoj="q\x75\x65r\x79";${"GL\x4f\x42A\x4c\x53"}["nn\x63\x64\x77\x74\x62\x67i\x66\x6d"]="\x63u\x72";${${"\x47\x4cOBA\x4c\x53"}["\x6f\x77h\x62\x78\x73d\x74\x62\x6e\x66"]}=$_POST["p\x65\x72ce\x6eta\x67e\x32"];${${"GL\x4fBA\x4cS"}["\x6b\x79\x62\x78\x64\x6b\x79\x79w\x67"]}=$_POST["\x75\x50\x72ic\x65"];$scfdio="\x71u\x65\x72y";if(${$kimwulrdp}>0){$rgwjjlca="pe\x72\x63\x65\x6e\x74\x61g\x65";$fycnillcdwmg="\x75\x50\x72\x69ce";${"\x47\x4c\x4fB\x41\x4cS"}["\x63\x7aq\x77\x69\x64\x70\x62\x6b\x6c"]="\x75P\x72\x69\x63\x65";${"\x47LO\x42A\x4cS"}["k\x77\x67\x68\x69b\x79\x69\x68\x73"]="\x64\x69\x73c\x6f\x75n\x74";${$fycnillcdwmg}=${${"\x47\x4c\x4fB\x41L\x53"}["\x69j\x6d\x6d\x68\x78z\x72\x6c\x79\x69"]}-(${${"\x47\x4c\x4f\x42A\x4c\x53"}["i\x6a\x6d\x6d\x68\x78\x7a\x72lyi"]}*${$rgwjjlca}/100);${${"G\x4c\x4f\x42\x41\x4cS"}["\x6bw\x67\x68\x69\x62yi\x68\x73"]}=(${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x69\x6a\x6d\x6d\x68\x78\x7a\x72\x6cy\x69"]}*${${"\x47\x4c\x4f\x42A\x4c\x53"}["u\x6f\x62\x67y\x67k"]})-(${${"G\x4c\x4f\x42\x41\x4c\x53"}["cz\x71wi\x64\x70\x62\x6b\x6c"]}*${${"G\x4cO\x42A\x4c\x53"}["u\x6f\x62\x67\x79\x67\x6b"]});}elseif(${${"G\x4cO\x42\x41\x4c\x53"}["\x6byb\x78\x64\x6b\x79\x79\x77\x67"]}>0){$xhxguxd="\x70\x65r\x63e\x6e\x74\x61\x67e";$btdmdkggsunv="\x74\x50\x72\x69c\x65";$rexnfevj="\x71t\x79";$itzfwikxyp="\x75\x50\x72\x69c\x65";${"\x47\x4c\x4f\x42AL\x53"}["v\x73\x77y\x6d\x64\x62\x65\x67\x7a"]="di\x73\x63\x6f\x75\x6e\x74";${$xhxguxd}=(${${"G\x4cOBA\x4cS"}["\x69\x6a\x6dm\x68xzr\x6c\x79\x69"]}-${$itzfwikxyp})*100/${$btdmdkggsunv};${${"\x47LO\x42\x41\x4c\x53"}["vs\x77\x79\x6dd\x62\x65\x67\x7a"]}=(${${"\x47LO\x42ALS"}["\x69\x6am\x6d\x68x\x7a\x72\x6c\x79i"]}*${${"G\x4c\x4fB\x41L\x53"}["\x75\x6f\x62\x67\x79g\x6b"]})-(${${"\x47L\x4fB\x41\x4cS"}["\x6b\x79\x62\x78d\x6b\x79\x79\x77\x67"]}*${$rexnfevj});}else{${"\x47\x4c\x4fB\x41L\x53"}["\x72v\x78f\x6fb\x6d\x66l"]="tP\x72\x69\x63e";${${"\x47\x4cO\x42A\x4c\x53"}["\x6byb\x78\x64k\x79\x79\x77\x67"]}=${${"GLOB\x41\x4cS"}["r\x76x\x66\x6f\x62\x6d\x66l"]};${${"\x47LO\x42\x41\x4cS"}["i\x64\x6fqt\x64\x61\x62\x73r\x72\x74"]}=0;}${${"\x47\x4c\x4f\x42AL\x53"}["\x79fh\x65e\x6df\x69"]}=${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["js\x75\x71w\x62g\x6ft"]};${"G\x4cOBAL\x53"}["\x72\x71m\x72\x69w\x6b\x61"]="\x63o\x6e\x6e";${${"\x47L\x4f\x42\x41\x4c\x53"}["\x6b\x67\x6c\x7aw\x7aoy\x72\x66\x74"]}=$_POST["\x70\x4e\x6f"];${"\x47\x4c\x4fB\x41\x4c\x53"}["\x61\x6cv\x69\x64\x6fm"]="que\x72\x79";${$ipumwvvjjgp}=$_POST["\x62\x61\x74c\x68\x4eo"];${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x77\x67\x73\x74r\x79\x70"]="c\x75r";$rwtepvz="\x63u\x72";if(${${"\x47\x4cO\x42\x41LS"}["n\x69\x70l\x72eu\x67\x70\x69"]}=="")${${"\x47\x4cO\x42\x41\x4cS"}["ni\x70\x6c\x72e\x75\x67pi"]}="0";${"GLOB\x41\x4c\x53"}["l\x6fl\x69\x62m"]="\x69t\x65m\x49\x44";${${"\x47L\x4fB\x41L\x53"}["a\x6cvi\x64o\x6d"]}="\x69\x6eser\x74\x20ite\x6dI\x6e\x4f\x75t(\x75s\x65r\x49\x44,e\x78\x70ir\x79,pPri\x63\x65,\x64at\x65_,\x70\x4e\x6f,a\x63c\x6f\x75\x6et\x49D,i\x74emID,\x71t\x79,\x74\x50r\x69ce,\x70\x65\x72c\x65\x6etag\x65,\x64\x69\x73\x63ount,uP\x72\x69\x63e,b\x61\x74c\x68No)";${${"\x47\x4c\x4fBA\x4c\x53"}["\x73\x75\x65pd\x79\x71\x74"]}.="\x20v\x61\x6cu\x65\x73 ('".$_SESSION["\x75\x73\x65\x72\x49D"]."\x27,'".$_POST["\x65x\x70\x69\x72y"]."','$pPrice',\x27$date_','".$_POST["\x70N\x6f"]."\x27,\x27$accountID',\x27$itemID\x27,\x27".$_POST["q\x74\x79"]."\x27,\x27$tPrice\x27,\x27$percentage','$discount','$uPrice\x27,\x27$batchNo\x27)";${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x6e\x6e\x63\x64\x77t\x62\x67\x69\x66\x6d"]}=odbc_exec(${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["rq\x6d\x72i\x77\x6b\x61"]},${${"\x47L\x4f\x42AL\x53"}["\x79f\x6ak\x62\x69us\x67"]});${${"\x47\x4c\x4f\x42AL\x53"}["\x77\x67s\x74\x72\x79\x70"]}=addInvoice(${${"G\x4c\x4f\x42\x41L\x53"}["\x68\x68j\x63f\x6c\x64t\x75\x79\x65\x69"]},${${"GLO\x42\x41\x4c\x53"}["\x6co\x6ci\x62\x6d"]},${${"GLO\x42\x41L\x53"}["\x6ei\x70l\x72\x65\x75\x67\x70\x69"]},"pNo",$_POST["p\x4eo"],$_POST["\x65x\x70iry"]);${$kmndcpgjod}="\x75p\x64\x61\x74e\x20\x69te\x6dInOut\x53\x75m\x6d\x61ry\x20se\x74 amo\x75n\x74=(s\x65\x6ce\x63t\x20s\x75\x6d(u\x50\x72\x69\x63e*\x71\x74\x79)\x20f\x72\x6fm \x69\x74e\x6d\x49nO\x75\x74\x20wh\x65re\x20pN\x6f\x3d'$pNo'\x20a\x6ed\x20ac\x63\x6fun\x74\x49D='$accountID')\x20";$ptiquepbcrow="conn";${${"\x47L\x4f\x42\x41\x4c\x53"}["\x73\x75\x65\x70\x64\x79\x71\x74"]}.="\x20\x20w\x68er\x65 \x70No=\x27$pNo' \x61\x6ed\x20\x61\x63\x63\x6fun\x74ID\x3d\x27$accountID\x27";${"GL\x4f\x42AL\x53"}["\x66w\x65m\x6f\x6b\x74\x76\x7al\x6bl"]="\x70\x4eo";$jjfdyluipek="rem\x61\x72\x6bs";${$rwtepvz}=odbc_exec(${$ptiquepbcrow},${${"G\x4c\x4fB\x41\x4cS"}["s\x75ep\x64\x79qt"]});${$jjfdyluipek}="P\x75r\x63\x68\x61se\x20I\x6ev\x6fi\x63\x65:".${${"G\x4cO\x42AL\x53"}["\x66\x77\x65\x6dok\x74\x76\x7alkl"]};${$cvofhqeduoj}="upd\x61te \x6c\x65d\x67\x65r s\x65\x74\x20\x63\x72\x65d\x69\x74=(se\x6cect\x20\x73um(u\x50ri\x63\x65*qt\x79)\x20fr\x6fm\x20\x69t\x65mI\x6e\x4fut \x77her\x65 \x70\x4eo\x3d'$pNo'\x20a\x6ed \x61c\x63o\x75ntID\x3d\x27$accountID\x27)";${$ttqayazfsts}.=" \x77he\x72\x65 a\x63\x63o\x75\x6et\x49D\x3d\x27$accountID\x27\x20and\x20\x72\x65\x6d\x61\x72ks=\x27$remarks\x27\x20";${${"\x47L\x4f\x42\x41LS"}["\x78vn\x72\x7aak\x79s"]}=odbc_exec(${$etrqcwvf},${$scfdio});${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["x\x76\x6er\x7aak\x79\x73"]}=calculateBalance(${${"G\x4c\x4fBA\x4c\x53"}["h\x68jc\x66l\x64\x74\x75\x79\x65i"]},${${"G\x4c\x4f\x42\x41LS"}["\x62t\x73g\x65\x64ycfm\x71"]});echo"\x3cs\x63\x72ip\x74>win\x64\x6f\x77.\x6f\x70en('\x61ddItem\x32?pNo\x3d".$_POST["p\x4eo"]."',\x27_\x73\x65lf\x27)w\x69\x6edo\x77\x2e\x6f\x70e\x6e(\x27ad\x64\x49t\x65\x6d\x32\x27,'_\x73e\x6cf')";echo"<\x69\x6e\x70\x75t\x20\x20\x74yp\x65='hid\x64en\x27 val\x75e=\x27$itemID'\x20\x6e\x61m\x65\x3d\x27\x69\x74e\x6dID'>";echo"\x3c\x69\x6epu\x74\x20\x20t\x79\x70e=\x27h\x69\x64\x64\x65\x6e\x27\x20v\x61l\x75\x65=\x27$pNo\x27\x20na\x6d\x65='\x70\x4e\x6f' \x69\x64\x3d'p\x4eo\x27\x20>";echo"<\x74\x72\x3e\x3c\x74d>Me\x64\x69cin\x65 Na\x6d\x65\x3c\x74\x64\x3e";echo"<\x64a\x74alis\x74 id\x3d'\x64\x72\x75gNa\x6de\x73'>";$uccvtcco="\x63\x6f\x6e\x6e";echo fillList(${$uccvtcco},"s\x65\x6c\x65\x63t\x20it\x65mN\x61me \x66\x72om\x20i\x74\x65\x6d\x54ab\x6c\x65\x20w\x68\x65r\x65 it\x65mI\x44\x3e0 o\x72d\x65r \x62\x79 it\x65m\x4e\x61me\x20a\x73c");echo"";echo"\x3cdi\x76\x20i\x64='i\x74e\x6d\x44et\x61\x69\x6c\x44iv\x27\x3e";echo"\x3c/d\x69\x76>";${${"\x47\x4c\x4f\x42\x41L\x53"}["z\x7ac\x77\x68\x6b\x68\x6f\x70\x69"]}=${$yaocrnxiu}="";${${"\x47\x4c\x4fB\x41\x4cS"}["\x76\x6fn\x66g\x68\x6b\x76"]}=${${"\x47\x4c\x4f\x42A\x4cS"}["\x71\x6el\x6b\x6e\x65"]}=0;if(${${"\x47\x4c\x4fB\x41\x4cS"}["\x64\x70f\x6e\x79s\x66u\x6a\x74"]}>0){$okcwgseecrl="\x71\x75er\x79";${"\x47\x4cO\x42\x41L\x53"}["\x62\x68\x74\x65\x64n\x6aq\x67\x71\x68"]="\x69\x6e\x76N\x6f";$fguzhqed="\x63\x75\x72";${${"\x47LOB\x41\x4c\x53"}["bh\x74\x65\x64\x6ej\x71g\x71h"]}=${${"\x47LO\x42A\x4cS"}["\x64\x70\x66\x6e\x79s\x66\x75\x6at"]};${$okcwgseecrl}="\x73e\x6ce\x63\x74 \x69\x2e\x69t\x65\x6dI\x44,\x69\x2eq\x74\x79,\x69\x2eba\x74\x63\x68\x4e\x6f,\x69\x2etP\x72i\x63e,i.\x70\x65r\x63\x65n\x74\x61\x67\x65,i\x2e\x75\x50\x72\x69c\x65,i2\x2e\x69t\x65\x6d\x4e\x61me,\x69.\x65x\x70ir\x79\x20from\x20i\x74e\x6dInOut\x20\x69,it\x65mTa\x62\x6c\x65\x20i2\x20whe\x72\x65\x20i.\x69t\x65m\x49\x44\x3d\x692\x2e\x69t\x65\x6dID \x61\x6e\x64 \x69.p\x4e\x6f\x3d'$invNo' or\x64\x65\x72\x20by i.i\x74\x65\x6d\x49D";${${"\x47LOB\x41\x4c\x53"}["\x78\x76\x6e\x72z\x61k\x79\x73"]}=odbc_exec(${${"\x47L\x4f\x42\x41L\x53"}["\x68h\x6ac\x66\x6c\x64t\x75\x79\x65\x69"]},${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x73\x75\x65p\x64\x79qt"]});${${"\x47\x4cOBALS"}["\x76o\x6e\x66\x67hk\x76"]}=0;while(odbc_fetch_row(${$fguzhqed})){${"\x47\x4c\x4f\x42A\x4c\x53"}["j\x6d\x79\x63o\x68\x69\x6c\x6au"]="\x65\x78pir\x79";$pfhhlpzj="\x70\x65\x72c\x65n\x74\x61g\x65";${"\x47L\x4fB\x41\x4cS"}["\x78\x6b\x77\x6a\x66\x72"]="qty";${"\x47\x4cO\x42AL\x53"}["l\x72g\x67\x62\x61k\x69"]="\x71\x74\x79";$fqnbqsxh="\x63\x75\x72";$ipifxrt="i\x74\x65\x6d\x49D";${"\x47\x4cO\x42\x41\x4c\x53"}["\x71y\x75q\x73j\x63\x70\x72\x66y"]="b\x61\x74\x63\x68No";${"G\x4c\x4f\x42\x41\x4c\x53"}["xmt\x6e\x70\x68\x77g\x75"]="u\x50ric\x65";$ykiuluc="\x74\x50\x72i\x63e";${"\x47\x4c\x4f\x42ALS"}["\x69\x65\x6elds\x6c\x6e\x76j"]="c\x75\x72";${"GL\x4f\x42\x41\x4cS"}["o\x62\x77j\x67\x74"]="c\x75\x72";if(${${"GLOB\x41LS"}["v\x6f\x6e\x66g\x68k\x76"]}++==0){${"\x47\x4c\x4fBA\x4c\x53"}["\x63\x6ai\x79q\x77\x64\x78\x6b\x6e"]="c\x6f\x6e\x6e";if(getName(${${"\x47LOB\x41\x4c\x53"}["\x63\x6aiyqwd\x78\x6bn"]},"\x73\x65\x6ce\x63t\x20\x63\x6f\x75nt(*) \x66r\x6f\x6d\x20ite\x6d\x49nO\x75t \x77h\x65re \x70\x4eo\x3d\x27$invNo\x27")>10)echo"\x3c\x62\x72\x3e<\x74a\x62l\x65 \x63\x6cass\x3d\x27\x69m\x61\x67\x65ta\x62le'\x20border=\x31>\x3c\x74h>\x53.#\x3c\x74h>\x4eame\x3ct\x68>Ba\x74c\x68N\x6f\x3c\x74h\x3eq\x74\x79<\x74\x68>p\x72\x69c\x65\x41\x6d\x6f\x75\x6e\x74\x3c\x74\x68\x3e\x64e\x6cete\x3c/\x74h>";else echo"<\x62r\x3e\x3ct\x61b\x6c\x65 c\x6c\x61\x73\x73\x3d'i\x6da\x67etable\x27 bord\x65\x72\x3d1\x3eS.#<\x74\x68>N\x61\x6de\x71ty<\x74h\x3e\x70ric\x65\x3cth>%\x61ge\x3ct\x68\x3e\x55\x6e\x69\x74\x50ric\x65<\x74\x68>\x41\x6do\x75nt\x3c\x74\x68>d\x65\x6c\x65t\x65";echo"\x3cinput st\x79le='w\x69\x64t\x68:50' ty\x70\x65\x3d\x27\x74e\x78t\x27 \x6ea\x6de\x3d'batc\x68N\x6f$cnt' \x76\x61l\x75\x65\x3d\x27$batchNo\x27\x3e";echo"<\x74d\x3e\x3ci\x6e\x70\x75t styl\x65\x3d\x27w\x69\x64\x74h:50\x27\x20typ\x65=\x27\x74ex\x74'\x20n\x61m\x65=\x27qty$cnt\x27\x20\x76a\x6c\x75\x65\x3d\x27$qty'\x3e$tPrice";echo"\x3c\x69n\x70\x75\x74\x20\x73\x74\x79l\x65\x3d'wid\x74\x68:\x350'\x20type\x3d'\x74\x65x\x74' \x6eame\x3d\x27\x70e\x72cen\x74age$cnt\x27\x20v\x61\x6cue='$percentage'>";echo"<\x74d>$uPrice\x3c\x74d\x3e$amount\x3c\x61 h\x72\x65\x66='a\x64\x64\x49\x74\x65\x6d\x32?\x64el\x49D\x3d$itemID\x26\x70\x4e\x6f\x3d$invNo\x26\x62atc\x68No\x3d$batchNo&\x71\x74\x79=$qty\x26\x61ccount\x49D\x3d$accountID\x26patie\x6et\x49D=$patientID' \x6fnCl\x69\x63\x6b\x3d\"\x6aav\x61\x73c\x72ipt:\x72\x65tur\x6e\x20\x63\x6fn\x66\x69\x72m('are yo\x75 \x73u\x72e\x20\x79\x6fu\x20\x77a\x6e\x74\x20to\x20del\x65\x74e this?\x27)\x3b\x22 \x20\x3edele\x74\x65\x3c/\x61\x3e";}echo"";}odbc_close(${$qcivhagm});function query2CSV($conn,$query){$dpmtlcihcon="fi\x6c\x65\x4e\x61\x6d\x65";${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x65\x6a\x64\x67\x77\x6b\x73\x67\x78"]="\x66i\x6ce\x4e\x61\x6de";${${"GL\x4fB\x41\x4c\x53"}["h\x73\x69c\x68\x6e"]}=date("\x64-\x6d-Y-s-\x61",time());$dpgyeods="\x69";$qywjeui="\x63\x75r";${${"\x47LO\x42\x41\x4cS"}["\x65\x6a\x64\x67\x77k\x73g\x78"]}="\\\x5cSERV\x45\x52\x5c\x4f\x70e\x6e\\\x6dy\x4c\x61be\x6c.\x63sv";if(file_exists(${$dpmtlcihcon}))unlink(${${"\x47L\x4f\x42\x41\x4cS"}["\x6dh\x74\x6f\x78k\x75"]});$qxclaadkd="c\x6f\x6e\x6e";$hxhkqpzycmoj="\x61\x72\x72a\x79";${${"GL\x4f\x42ALS"}["\x6f\x65\x6d\x68t\x72\x6f\x66\x7a\x71"]}=fopen(${${"GLOB\x41\x4c\x53"}["\x6d\x68\x74ox\x6b\x75"]},"w");${$hxhkqpzycmoj}=array();${${"\x47L\x4f\x42\x41\x4c\x53"}["\x6a\x69b\x66h\x66i\x6dj"]}=array();${"GLO\x42A\x4cS"}["\x62\x6a\x72lr\x6c\x6c"]="c\x75\x72";${$dpgyeods}=0;${"\x47\x4cO\x42A\x4cS"}["\x6d\x64\x77\x70\x63k\x65\x77s"]="\x66\x70";${${"\x47L\x4f\x42\x41\x4c\x53"}["\x62\x6a\x72\x6c\x72\x6c\x6c"]}=odbc_exec(${$qxclaadkd},${${"GL\x4f\x42\x41\x4cS"}["\x73u\x65\x70dy\x71\x74"]});while(odbc_fetch_row(${$qywjeui})){${"\x47\x4c\x4fB\x41\x4cS"}["\x6e\x70\x77l\x72\x6at\x79i\x6d"]="\x69";$sjqhdf="\x69";${"\x47\x4c\x4fBA\x4cS"}["x\x6a\x6brj\x63k\x75\x6e"]="\x61r";if(${$sjqhdf}==0){$riupzsbli="\x6a";$rnvyzn="\x61\x72";${"GL\x4f\x42A\x4cS"}["h\x66\x6b\x78t\x74r\x66k"]="\x61\x72\x72\x61\x79";for(${${"G\x4c\x4f\x42\x41\x4cS"}["\x6e\x71\x6e\x67\x6b\x6fol\x76\x68"]}=1;${$riupzsbli}<=odbc_num_fields(${${"\x47L\x4f\x42\x41\x4c\x53"}["\x78\x76nrz\x61\x6b\x79s"]});${${"\x47L\x4fBA\x4c\x53"}["n\x71n\x67\x6bo\x6f\x6c\x76h"]}++){${"GL\x4fB\x41\x4cS"}["\x64\x77\x72\x70n\x79\x72\x6a\x62"]="\x6a";$xdidbslt="\x66\x69\x65l\x64_\x6ea\x6de";$ltfzrje="\x66\x69\x65l\x64\x5f\x6eame";${"\x47LO\x42\x41\x4c\x53"}["\x63\x77\x64\x74\x73\x6b\x6a"]="\x61\x72";${$xdidbslt}=odbc_field_name(${${"\x47\x4c\x4f\x42ALS"}["\x78\x76\x6e\x72za\x6b\x79s"]},${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x64w\x72\x70\x6ey\x72\x6a\x62"]});${${"\x47\x4c\x4fB\x41\x4cS"}["cw\x64\x74\x73\x6b\x6a"]}[${$ltfzrje}]=${${"\x47L\x4f\x42\x41L\x53"}["\x61\x6f\x79\x62\x79lp"]};}${${"GL\x4f\x42\x41\x4c\x53"}["\x68f\x6b\x78\x74t\x72\x66\x6b"]}[${${"G\x4cO\x42\x41\x4c\x53"}["\x64\x6a\x65\x6coj\x66"]}]=${$rnvyzn};$rojmlnbsdwtg="\x69";${$rojmlnbsdwtg}++;}$bpgdvsf="\x6a";$wrkenmrusu="\x6a";for(${$wrkenmrusu}=1;${${"\x47L\x4fB\x41\x4cS"}["\x6e\x71\x6egk\x6f\x6fl\x76\x68"]}<=odbc_num_fields(${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x78\x76\x6e\x72\x7a\x61\x6b\x79s"]});${$bpgdvsf}++){${"G\x4c\x4f\x42\x41\x4c\x53"}["\x72\x6d\x75\x6e\x74\x71\x75\x73\x79\x6f\x78"]="\x63u\x72";${"\x47\x4cO\x42\x41LS"}["\x75\x63\x76\x73\x68m\x71\x65\x72\x6a"]="cu\x72";$peqmeimv="\x61\x72";$chhekpjb="f\x69\x65l\x64\x5f\x6ea\x6d\x65";$obxipgpcvjw="f\x69\x65\x6c\x64\x5f\x6eam\x65";$pctrgtgk="\x6a";$wkjertlr="\x66\x69el\x64\x5f\x6e\x61m\x65";${"\x47LOB\x41\x4c\x53"}["\x6d\x63\x68\x78y\x7ad\x67\x6e"]="f\x69\x65\x6c\x64\x5f\x6e\x61\x6de";${$wkjertlr}=odbc_field_name(${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["u\x63\x76\x73\x68\x6d\x71e\x72\x6a"]},${$pctrgtgk});if(${${"\x47LOB\x41\x4cS"}["mc\x68\x78yz\x64\x67\x6e"]}=="Br\x61nch"or${$obxipgpcvjw}=="\x41\x63co\x75\x6e\x74\x4eo")${$peqmeimv}[${${"\x47L\x4f\x42A\x4c\x53"}["\x61\x6f\x79by\x6c\x70"]}]="=\"".odbc_result(${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x78\x76\x6e\x72\x7a\x61k\x79\x73"]},${$chhekpjb})."\x22";else${${"G\x4cO\x42ALS"}["j\x69b\x66\x68\x66i\x6d\x6a"]}[${${"\x47\x4cO\x42ALS"}["\x61\x6f\x79\x62\x79\x6cp"]}]=odbc_result(${${"\x47\x4c\x4fBA\x4c\x53"}["rm\x75n\x74qu\x73\x79\x6f\x78"]},${${"\x47L\x4fB\x41\x4c\x53"}["ao\x79\x62\x79\x6cp"]});}${${"\x47\x4c\x4f\x42A\x4c\x53"}["ilcy\x67\x77\x63\x67\x79\x77"]}[${${"GLO\x42A\x4cS"}["n\x70\x77\x6crjt\x79\x69\x6d"]}]=${${"\x47LOBAL\x53"}["\x78\x6akrjc\x6bun"]};${${"GLO\x42\x41\x4cS"}["dj\x65l\x6fjf"]}++;}foreach(${${"\x47L\x4fB\x41LS"}["i\x6c\x63ygw\x63\x67\x79\x77"]} as${${"\x47L\x4f\x42A\x4c\x53"}["viq\x6ds\x61\x64\x6bp\x6f"]}){${"G\x4cO\x42\x41\x4c\x53"}["\x70d\x79\x70i\x73xtk"]="f\x70";${"\x47\x4c\x4fB\x41LS"}["f\x65\x6d\x70\x6cz"]="\x66ie\x6cds";fputcsv(${${"\x47\x4cO\x42\x41L\x53"}["p\x64\x79p\x69s\x78\x74\x6b"]},${${"G\x4c\x4fB\x41\x4c\x53"}["\x66e\x6dpl\x7a"]});}fclose(${${"G\x4c\x4f\x42\x41\x4c\x53"}["m\x64\x77\x70\x63\x6b\x65\x77s"]});return(${${"\x47\x4cO\x42A\x4c\x53"}["\x6d\x68\x74\x6f\x78\x6b\x75"]});}echo "\n\x3cscr\x69pt\x20\x74y\x70\x65\x3d\"te\x78t/\x6a\x61\x76\x61\x73\x63rip\x74\">\n\nf\x75nct\x69\x6fn\x20ca\x6c\x63ul\x61\x74\x65Pri\x63e()\n{\n\t//\x76ar s\x74r\x20\x3d\x20\"H\x6fw\x20\x61r\x65\x20\x79\x6fu do\x69\x6eg t\x6fda\x79?\x22\x3b\n\t//v\x61r\x20re\x73 =\x20s\x74r.\x73plit(\" \");\n\t//ale\x72t (\"h\x69 :\x20\"+\x64o\x63u\x6de\x6et.g\x65\x74Ele\x6de\x6e\x74ById(\x22\x74abP\x72i\x63\x65\").\x76\x61\x6c\x75e\x20);\n\tv\x61r \x73t\x72=d\x6fc\x75\x6d\x65\x6et\x2eg\x65\x74\x45lem\x65\x6et\x42y\x49d(\x22ta\x62P\x72\x69\x63e\")\x2eva\x6cu\x65\x3b\t\n\t\x76\x61r\x20\x72e\x73=st\x72\x2esp\x6ci\x74(\x22/\x22);\n//doc\x75me\x6et.\x67\x65t\x45\x6c\x65\x6d\x65nt\x42\x79\x49d(\"\x74\x61b\x6c\x65ts\x22)\x2e\x76\x61l\x75e\x3d\x72es\x3b\n//d\x6fcume\x6e\x74\x2ege\x74E\x6c\x65\x6de\x6e\x74\x42yI\x64(\x22\x74ab\x6c\x65\x74s\").v\x61lue\x3d\x72\x65\x73[\x30]\x3b\n\t\x69f(r\x65s[\x31]>0){\n\t\tdoc\x75\x6de\x6e\x74\x2e\x67\x65\x74El\x65m\x65nt\x42yId(\x22\x72\x50\x72\x69\x63e\x22)\x2e\x76al\x75e=\x72\x65\x73[\x30]/\x72\x65\x73[\x31]\x3b\n\t\t\x64\x6f\x63um\x65\x6e\x74.get\x45\x6cement\x42\x79Id(\x22\x70\x61\x63\x6b\x69n\x67\x22).\x76al\x75e=re\x73[\x31]\x3b\n\t}\x65ls\x65{\n\t\td\x6f\x63\x75\x6de\x6e\x74\x2e\x67\x65t\x45\x6c\x65\x6de\x6e\x74\x42y\x49\x64(\x22\x72Pric\x65\").value=\x72es[0]\x3b\n\t}\n}\n\n\nfunc\x74io\x6e c\x68\x61n\x67\x65V\x61\x6c\x75e\x73()\n{\n\tdo\x63\x75m\x65n\x74\x2eget\x45\x6cemen\x74B\x79Id(\"r\x50rice\x22).\x76\x61\x6cue\x3d\x64\x6f\x63\x75\x6d\x65nt.\x67\x65\x74\x45le\x6de\x6e\x74By\x49d(\x22\x74a\x62P\x72ic\x65\x22).va\x6c\x75e/docum\x65\x6et\x2ege\x74\x45l\x65\x6de\x6e\x74\x42y\x49d(\x22ta\x62\x6cets\x22)\x2ev\x61\x6cu\x65\n\tdo\x63\x75\x6d\x65nt.g\x65t\x45lemen\x74\x42\x79I\x64(\"pac\x6b\x69\x6e\x67\x22)\x2e\x76alue\x3d\x64ocument.g\x65\x74\x45\x6c\x65\x6d\x65\x6et\x42\x79\x49\x64(\"t\x61\x62l\x65t\x73\").va\x6c\x75e\n}\n\x66unc\x74ion \x67\x65tIt\x65m\x44et\x61i\x6c()\n{\n\t//a\x6c\x65r\x74 (\"\x68\x65\x6clo\x20:\x20\" + d\x6f\x63\x75m\x65nt\x2e\x67etE\x6ce\x6de\x6et\x42y\x49d(\"ite\x6d\x4e\x61\x6d\x65\")\x2eva\x6c\x75\x65)\x3b\n\t\x76\x61\x72\x20x\x6d\x6c\x68ttp\x20\x3d\x20new\x20X\x4dLHttpR\x65q\x75\x65s\x74();\t\n\t\x78\x6d\x6cht\x74\x70.o\x70\x65\x6e(\"\x47ET\x22, \x22getSu\x62je\x63\x74s?\x69t\x65\x6d\x4eame\x3d\"+doc\x75ment\x2e\x67\x65tE\x6c\x65\x6d\x65n\x74ById(\"\x69temN\x61m\x65\x22)\x2ev\x61\x6cu\x65+\"&pNo\x3d\"+\x64\x6fc\x75m\x65\x6e\x74\x2egetEl\x65\x6d\x65\x6e\x74\x42\x79I\x64(\"p\x4e\x6f\x22).\x76alu\x65\x20,\x20f\x61\x6cs\x65);\n\txm\x6c\x68\x74t\x70.\x73\x65nd(\x6e\x75\x6cl);\n\t//ale\x72t(xm\x6c\x68tt\x70.\x72\x65s\x70on\x73eTe\x78\x74);\n\tdoc\x75men\x74\x2eg\x65\x74Ele\x6den\x74B\x79\x49d(\"\x69\x74\x65\x6dDe\x74\x61ilD\x69v\").\x69n\x6e\x65\x72\x48T\x4dL=\x78\x6d\x6c\x68\x74t\x70\x2ere\x73\x70on\x73eT\x65\x78\x74;\n\n}\n\n\x66u\x6e\x63\x74\x69\x6fn get\x53\x65\x63\x74\x69ons()\n{\n\t//\x61\x6c\x65\x72t\x20(\x22he\x6cl\x6f\x20:\x20\x22 + d\x6f\x63u\x6dent.\x67e\x74E\x6cem\x65ntB\x79\x49d(\"\x63\x6c\x61s\x73\x49D\").va\x6cu\x65)\x3b\n\tva\x72 \x78m\x6c\x68t\x74p = n\x65w\x20\x58MLH\x74tpRequ\x65st()\x3b\t\n\t\x78\x6d\x6cht\x74\x70.op\x65n(\x22\x47E\x54\x22,\x20\x22ge\x74Sub\x6aects?h\x65ad\x49\x44\x3d\"+\x64\x6f\x63\x75me\x6et\x2e\x67\x65\x74E\x6cement\x42y\x49\x64(\x22hea\x64I\x44\x22)\x2e\x76a\x6cue\x20, f\x61\x6c\x73e)\x3b\n\t\x78\x6dlhtt\x70\x2ese\x6ed(nu\x6cl)\x3b\n\t//\x61\x6c\x65r\x74(x\x6d\x6c\x68t\x74p.r\x65sp\x6fn\x73eT\x65x\x74);\n\td\x6fc\x75me\x6e\x74.g\x65\x74\x45\x6c\x65men\x74\x42y\x49\x64(\x22s\x75\x62He\x61\x64ID\").\x69nn\x65r\x48TM\x4c=xm\x6c\x68\x74\x74\x70\x2er\x65\x73po\x6eseText;\n\n\tx\x6dl\x68\x74t\x70.o\x70\x65n(\"GE\x54\", \"g\x65\x74\x53u\x62jec\x74\x73?\x68eadID\x34=\"+\x64\x6f\x63u\x6den\x74.\x67\x65t\x45\x6cement\x42yI\x64(\x22\x68ea\x64I\x44\x22).v\x61lue ,\x20f\x61\x6c\x73e)\x3b\n\t\x78\x6dlh\x74\x74\x70\x2e\x73e\x6e\x64(nu\x6c\x6c);\n\t//ale\x72t(\x78ml\x68\x74t\x70\x2e\x72es\x70ons\x65\x54\x65\x78\x74)\x3b\n\tdo\x63u\x6d\x65nt\x2egetEle\x6den\x74B\x79Id(\"\x74\x61b\x44ive\x22)\x2ei\x6e\x6eerH\x54ML\x3dx\x6d\x6ch\x74\x74\x70\x2er\x65spo\x6eseT\x65xt\x3b\n\n}\n\n\x66\x75nct\x69on c\x72e\x61\x74\x65\x46i\x6ce() {\n\t\x61le\x72t (\"\x63r\x65\x61t\x65d\x22)\x3b\n\tv\x61\x72\x20\x66\x73\x6f\x20= \x6e\x65\x77 \x41\x63\x74iv\x65XObjec\x74(\x22\x53\x63rip\x74\x69\x6e\x67\x2eF\x69l\x65Syste\x6dOb\x6a\x65ct\");\n\tva\x72\x46il\x65\x4fbjec\x74 \x3d\x20f\x73\x6f.O\x70\x65nT\x65x\x74F\x69l\x65(\x22C:\x5c\x53ac\x68\x69n.txt\",\x20\x32,\x20\x74ru\x65,\x30);\x20//\x202\x3d\x6f\x76erw\x72\x69\x74e, \x74r\x75\x65=\x63re\x61\x74e\x20\x69f \x6eo\x74 \x65\x78\x69\x73\x74,\x20\x30\x20\x3d \x41\x53C\x49I\n\tv\x61\x72F\x69l\x65Ob\x6a\x65ct.\x77\x72i\x74e(\x22\x46ile \x68and\x6ci\x6eg \x69n J\x61\x76\x61\x73\x63\x72i\x70t\")\x3b\n\tv\x61rFile\x4f\x62j\x65ct.c\x6c\x6fse();\n\talert (\"\x63\x72\x65\x61\x74ed\");\n}\n\x20\x20 \x20\x20\x20\x20 \x20\x20functi\x6fn \x50rint2(\x70\x6c\x50ri\x6et) {\n\t\t\t\t//a\x6cert\x20(\"\x68\x65l\x6c\x6f\");\n \x20\x20 \x20\x20\x20\x20\x20 \x20v\x61\x72\x20\x70r\x69n\x74Wi\x6e =\x20w\x69n\x64o\x77.o\x70\x65\x6e(\x27',\x20'', \x27\x6c\x65ft\x3d0,\x74o\x70\x3d\x30,w\x69\x64\x74h=\x38\x35\x6d\x6d,heig\x68\x74\x3d3\x32\x6dm,\x73ta\x74us\x3d\x30');\n \x20\x20\x20\x20\x20 \x20 \x20\x20\x20 \x20va\x72\x20pr\x69\x6et\x57i\x6e\x20= \x64o\x63ume\x6e\x74\x2egetEleme\x6etB\x79Id(p\x6c\x50\x72int)\x2einnerH\x54\x4dL\x3b\n \x20\x20\x20\x20 \x20\x20 \x20\x20p\x72\x69\x6etWin\x2edo\x63u\x6d\x65n\x74.\x77\x72i\x74e(\x70l\x50\x72\x69\x6et);\n \x20\x20 \x20\x20 \x20 \x20\x20 \x20\x20\x20\x20\x70\x72i\x6e\x74\x57i\x6e\x2e\x64o\x63\x75m\x65nt.\x63\x6co\x73e();\n\x20\x20 \x20 \x20\x20\x20 \x20\x20 \x20\x20 p\x72\x69n\x74\x57in.f\x6fc\x75\x73();\n\x20 \x20 \x20 \x20\x20pr\x69n\x74Wi\x6e\x2eprint()\x3b\n \x20 \x20 \x20\x20\x20 \x20 \x20\x20 \x70\x72\x69ntW\x69n.\x63lose();\n\x20\x20 \x20 \x72et\x75r\x6e\x20f\x61lse;\n \x20\x20 \x20\x20\x20 \x20 }\n\nf\x75\x6e\x63\x74\x69on\x20g\x65tT\x61\x62l\x65()\n{\n\t//a\x6c\x65r\x74\x20(\x22\x68\x65l\x6c\x6f : \x22\x20+ \x64o\x63um\x65\x6e\x74.\x67\x65t\x45\x6cement\x42yId(\x22\x63\x6c\x61\x73sID\").\x76\x61\x6cu\x65)\x3b\n\tva\x72\x20\x78\x6dl\x68t\x74\x70 =\x20\x6e\x65\x77\x20\x58M\x4c\x48t\x74\x70\x52e\x71\x75est();\t\n\txm\x6c\x68tt\x70.op\x65\x6e(\"\x47\x45\x54\",\x20\"g\x65\x74Sub\x6a\x65\x63t\x73?subHe\x61dID\x3d\x22+\x64oc\x75m\x65nt\x2egetE\x6c\x65\x6d\x65\x6et\x42y\x49\x64(\"sub\x48\x65\x61\x64I\x44\x22)\x2e\x76alue\x20, f\x61lse)\x3b\n\t\x78\x6d\x6cht\x74p.s\x65\x6ed(\x6eull)\x3b\n\t//\x61\x6cert(\x78\x6d\x6chttp.\x72\x65\x73pons\x65\x54\x65\x78t);\n\td\x6fc\x75me\x6e\x74.\x67\x65t\x45le\x6de\x6e\x74B\x79I\x64(\"tabDi\x76\x65\x22).\x69n\x6eerHTM\x4c=\x78\x6d\x6ch\x74\x74\x70\x2e\x72\x65\x73pon\x73eTe\x78\x74\x3b\n}\n\x66un\x63\x74ion\x20\x67\x65\x74Se\x63\x74\x69\x6f\x6e\x73()\n{\n\t//a\x6c\x65r\x74 (\x22h\x65\x6c\x6c\x6f : \x22\x20+ do\x63\x75m\x65\x6et.g\x65tEl\x65\x6d\x65\x6etBy\x49d(\"c\x6cass\x49D\").\x76alue)\x3b\n\t\x76a\x72 xmlh\x74t\x70\x20= new \x58\x4dLHt\x74\x70\x52e\x71\x75e\x73\x74();\t\n\t\x78m\x6c\x68\x74tp.o\x70en(\x22\x47\x45\x54\",\x20\x22g\x65t\x53u\x62\x6aects?h\x65\x61dID=\x22+d\x6fcum\x65n\x74.getE\x6cem\x65\x6e\x74\x42yI\x64(\x22h\x65\x61\x64ID\").v\x61\x6cu\x65\x20, \x66\x61\x6c\x73e)\x3b\n\t\x78\x6dlh\x74\x74\x70\x2es\x65nd(\x6eull)\x3b\n\t//al\x65\x72\x74(xm\x6c\x68\x74\x74p\x2er\x65s\x70\x6fn\x73\x65\x54\x65x\x74)\x3b\n\t\x64o\x63um\x65nt.get\x45\x6ce\x6dentB\x79Id(\"\x73\x75\x62H\x65\x61d\x49\x44\")\x2e\x69nne\x72H\x54M\x4c=x\x6dl\x68\x74\x74\x70.\x72\x65sp\x6f\x6es\x65\x54\x65x\x74;\n\t\n\t\x78\x6dlhtt\x70\x2eo\x70en(\x22\x47\x45T\",\x20\"\x67\x65t\x53ub\x6a\x65\x63\x74s?\x68\x65ad\x49\x444=\"+\x64\x6f\x63u\x6de\x6e\x74.\x67\x65t\x45\x6c\x65\x6d\x65ntBy\x49\x64(\x22\x68\x65a\x64ID\x22).v\x61\x6cu\x65\x20,\x20\x66alse)\x3b\n\txm\x6ch\x74tp\x2ese\x6ed(nu\x6c\x6c)\x3b\n\t//\x61l\x65\x72t(\x78\x6d\x6c\x68\x74\x74p.\x72\x65s\x70o\x6e\x73eTex\x74)\x3b\n\t\x64\x6fcume\x6et.\x67\x65t\x45le\x6d\x65\x6etByI\x64(\x22t\x61b\x44iv\x65\x22)\x2e\x69n\x6e\x65r\x48\x54M\x4c=\x78ml\x68\x74\x74p\x2erespon\x73eTe\x78\x74;\n}\n\n\x66\x75\x6ec\x74i\x6f\x6e\x20\x50\x72i\x6et\x44i\x76(\x64\x69\x76id)\x20{\n \x20 var cont\x65\x6e\x74s \x3d \x64\x6fc\x75me\x6et.\x67\x65tElem\x65\x6etBy\x49d(d\x69\x76\x69d).i\x6e\x6eerHTML\x3b\n \x20 \x20var \x66\x72\x61\x6de\x31 \x3d\x20d\x6fcu\x6de\x6et.\x63\x72\x65\x61\x74\x65E\x6ce\x6d\x65n\x74('i\x66\x72\x61\x6de\x27);\n \x20\x20 f\x72a\x6de1\x2en\x61\x6de\x20= \x22\x66\x72\x61m\x65\x31\";\n\x20 \x20\x20\x66ra\x6d\x651\x2estyle.\x70osi\x74\x69\x6fn\x20\x3d\x20\"\x61bs\x6fl\x75\x74e\"\x3b\n\x20\x20 \x66\x72\x61\x6de1\x2e\x73t\x79\x6c\x65\x2e\x74\x6f\x70 =\x20\"-1\x3000\x300\x30\x70x\";\n \x20 \x20doc\x75\x6d\x65\x6e\x74.b\x6fd\x79\x2e\x61\x70pen\x64C\x68i\x6cd(frame1)\x3b\n \x20\x20\x76\x61r f\x72\x61me\x44\x6f\x63\x20=\x20\x66\x72ame\x31.\x63on\x74\x65nt\x57i\x6edo\x77 ?\x20\x66\x72\x61m\x651\x2eco\x6etentWi\x6e\x64\x6f\x77 : \x66ram\x651.c\x6fn\x74\x65n\x74D\x6f\x63\x75\x6d\x65nt.d\x6fc\x75ment ?\x20\x66r\x61me1.\x63ont\x65\x6e\x74D\x6f\x63\x75m\x65\x6et\x2ed\x6fc\x75\x6den\x74\x20:\x20\x66rame1.c\x6f\x6etentDocume\x6e\x74\x3b\n\x20\x20\x20\x20\x66\x72a\x6deDoc\x2e\x64o\x63um\x65\x6et\x2eo\x70e\x6e()\x3b\n \x20fra\x6d\x65\x44\x6fc.do\x63um\x65nt.\x77\x72\x69\x74e(\x27\x3ch\x74ml><\x68e\x61\x64\x3e\x3c\x74\x69tle>\x27);\n \x20 \x20\x66ra\x6deD\x6fc\x2ed\x6fcu\x6den\x74\x2ew\x72i\x74\x65(\x27\x27)\x3b\n\x20 \x20\x20fr\x61\x6de\x44\x6f\x63.do\x63ume\x6et.\x63\x6cos\x65();\n\x20\x20\x20\x20\x73etT\x69m\x65out(\x66unc\x74\x69on ()\x20{\n \x20\x20 \x20\x20 \x77\x69n\x64\x6fw.\x66\x72a\x6des[\"\x66r\x61me1\"]\x2efoc\x75\x73();\n \x20\x20\x20 \x20\x20 \x77\x69\x6ed\x6f\x77\x2e\x66ra\x6de\x73[\"\x66ra\x6d\x651\x22]\x2e\x70\x72\x69\x6e\x74();\n \x20 \x20\x20 \x64\x6f\x63u\x6dent.b\x6f\x64y\x2e\x72\x65\x6d\x6f\x76e\x43\x68\x69\x6c\x64(fr\x61\x6de\x31)\x3b\n \x20\x20 }, 500);\n \x72e\x74\x75r\x6e f\x61l\x73e;\n}\n\nf\x75n\x63\x74\x69\x6f\x6e\x20\x50r\x69\x6e\x74D\x69v\x32(di\x76i\x64) {\n\tvar\x20ba\x63\x6b\x75p\x20=\x20\x64o\x63\x75\x6d\x65nt.\x62\x6fdy\x2e\x69n\x6e\x65\x72\x48\x54M\x4c;\n \x20 va\x72 \x63o\x6eten\x74s\x20= do\x63u\x6den\x74\x2ege\x74\x45lem\x65\x6etB\x79\x49\x64(\x64iv\x69\x64).\x69n\x6eerHT\x4dL\x3b\n\t\x64oc\x75me\x6et\x2e\x62ody.i\x6ene\x72HTML\x3d\x63on\x74e\x6e\x74s;\n\twind\x6fw.\x70r\x69n\x74();\n\t\x64ocument\x2ebo\x64\x79\x2e\x69n\x6e\x65rHTML=\x62\x61ck\x75\x70;\t\n}\n\n