Login   Register  
PHP Classes
elePHPant
Icontem

File: media/file-picker.pack.js

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Peter He  >  File Picker  >  media/file-picker.pack.js  >  Download  
File: media/file-picker.pack.js
Role: Application script
Content type: text/plain
Description: main js file
Class: File Picker
Let the user browse and pick server side files
Author: By
Last change: Update
Date: 5 years ago
Size: 4,822 bytes
 

Contents

Class file image Download
/*
Program Name: File Picker
Program URI: http://code.google.com/p/file-picker/
Description: Display and choose files from your website.

Copyright (c) 2008 Hpyer (hpyer[at]yahoo.cn)
Dual licensed under the MIT (MIT-LICENSE.txt)
and GPL (GPL-LICENSE.txt) licenses.
*/

eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('3 h={k:{P:\'.\',Q:\'1B\',F:v,15:\'16-1C.1D\',1E:v,17:1F},r:R,L:R,1G:2(a){$.1H(5.k,a);$.l.1I=5.k.1J;$.1K({1L:5.k.15,1M:\'1N\'});5.18();5.19();5.B()},S:2(){3 a=h;3 b=\'{\'+\'P:"\'+a.T()+\'", \'+\'1O:[\'+a.G(v)+\']\'+\'}\';a.U(b)},U:2(a){3 b=h;4(1a(a)!=\'1P\')a=\'\';1Q(\'V.1R.\'+b.k.Q+\'=\\\'\'+a+\'\\\';\');V.1S()},T:2(){3 a;a=$.l.w($(\'#m\').7());a=a==\'/\'?\'\':a;9 5.k.P+a},G:2(b){3 t=$(\'f.8\');4(t.M==1){9 b?\'"\'+t.x()+\'"\':t.x()}9 $.1T(t,2(a){9\'"\'+a.1U+\'"\'}).1V(\', \')},y:2(a,b){b=b||j;a.W(\'8\');$(\'#n\').7(b?5.G():\'\')},z:2(){$(\'f.8\').H(\'8\');$(\'#n\').7(\'\');h.C();$(\'#n\').1b()},1c:2(a){3 b=$(\'#o\').W(\'o\').Y("1W",(a.1X+10)+"1d").Y("1Y",(a.1Z+10)+"1d").20(\'21\')},C:2(a){3 b=$(\'#o\').1e();4(!a){b.1f()}},18:2(){$(\'#m 22\').D(2(){$(5).x($.l.w($(5).x()))})},1g:2(){3 a=$.l.w($(\'#m\').7());3 p=a.23(\'/\');4(p<0||a==\'/\')9 j;3 s=a.24(0,p);s=(s==\'\')?\'/\':$.l.Z(s);$(\'#m\').7(s);h.B()},1h:2(){3 a=h;1i(a.L);3 b=$(5);4(b.6(\'I\')==\'E\'){3 c=$.l.w($(\'#m\').7());4(c!=\'/\')c+=\'/\';$(\'#m\').7($.l.Z(c+b.x()));a.B()}A{a.y(b);a.S()}},1j:2(a){3 b=h;3 c=$(5);b.C();$(\'#n\').1b();4(!b.k.F){b.z()}4(b.k.F&&c.6(\'I\')==\'E\'){4(!a.11){b.r=c.6(\'g\')}4(a.1k){9 j}3 t=$(\'f.8\').H(\'8\');4(t.M==1&&t.6(\'g\')==c.6(\'g\')){b.z();9 j}b.y(c)}A{4(a.1k){b.r=c.6(\'g\');$(\'f.8[I=E]\').H(\'8\');$(5).25(\'8\');$(\'#n\').7(b.G())}A 4(b.k.F&&a.11){}A{b.r=c.6(\'g\');3 t=$(\'f.8\').H(\'8\');4(t.M==1&&t.6(\'g\')==c.6(\'g\')){b.z();9 j}b.y(c,v)}}4(b.k.F&&a.11){4(!b.r){b.r=c.6(\'g\');b.y(c)}A{b.z();3 d=1l(b.r.1m(\'1n\')[1]);3 e=1l(c.6(\'g\').1m(\'1n\')[1]);4(d>e){$(\'#J > f\').1o(e,d+1).D(2(){h.y($(5))})}A{$(\'#J > f\').1o(d,e+1).D(2(){h.y($(5))})}}$(\'f.8[I=E]\').H(\'8\');$(\'#n\').7(b.G())}1i(b.L);b.L=26(2(){b.1p(a)},b.k.17);9 j},1p:2(e){5.C(v);3 t=$(\'f.8\');4(t.M==1){5.1c(e);$(\'<1q />\').6(\'g\',\'27\').6(\'N\',$(\'#12\').6(\'N\')).1r(\'#o\');$.1s({1t:{1u:\'28\',1v:$(\'#m\').7(),16:$.l.Z(t.x())},1w:2(c){3 d=h;$(\'#o\').13($(\'<1x></1x>\').6(\'g\',\'29\').x(\'X\').q(2(){d.C(j)}));3 i=0;$.D(c,2(i,a){4($(\'#o\').Y(\'2a\')==\'2b\')9 j;4(a.Q==\'2c\'){3 b=d.T()+\'/\'+$.l.w(a.O);$(\'<1q />\').6(\'g\',\'2d\').6(\'2e\',a.1y).6(\'N\',b).q(2(){V.2f(5.N,\'2g\',\'\')}).2h(\'#o\')}A{4(i==0){a.O=$.l.w(a.O)}$(\'#o\').2i(\'<1z>\'+a.1y+\'</1z>:<1A />\'+\' &2j; \'+a.O+\'<1A />\')}i++})}})}},B:2(e){4(1a(e)==\'2k\')e=v;5.r=R;5.C();$(\'#12\').2l();$(\'#J\').1e();$(\'#n\').7(\'\');$.1s({2m:e,1t:{1u:\'J\',1v:$(\'#m\').7(),2n:$(\'#2o\').7()},1w:2(b){3 c=h;$(\'#12\').1f();3 d=[];$.D(b,2(i,a){a.K=$.l.w(a.K);$(\'<f></f>\').6(\'g\',\'2p\'+i).6(\'I\',a.14).6(\'2q\',a.K).13(a.K).W(a.14).q(c.1j).2r(c.1h).1r(\'#J\');4(a.14!=\'E\'){d.2s(a.K)}});$(\'#n\').2t(d,{2u:2(){$(\'f:2v(f[2w:E])\').D(2(){4($(5).13()==$(\'#n\').7()){$(5).q();9 j}})}});c.z()}})},19:2(){3 a=h;$(\'2x\').u(\'2y\',2(){9 j});$(\'#2z\').u(\'2A\',2(){9 j});$(\'#2B\').u(\'q\',a.z);$(\'#m\').u(\'2C\',2(){a.B(v)});$(\'#2D\').u(\'q\',2(){a.B(j)});$(\'#2E\').u(\'q\',a.1g);$(\'#2F\').u(\'q\',a.S);$(\'#2G\').u(\'q\',a.U);$(\'#o\').2H()}}',62,168,'||function|var|if|this|attr|val|selected|return||||||li|id|FilePicker||false|params|base64|folders_tree|filename_box|info_box||click|last_click|||bind|true|decode|text|do_select|do_unselect|else|get_list|do_hide_info|each|folder|multi|get_selected|removeClass|ftype|list|name|timer|length|src|value|uri|key|null|do_complete|get_uri|do_close|window|addClass||css|encode||shiftKey|loading_img|html|type|access|file|delay|do_translate_options|events_binder|typeof|focus|do_show_info|px|empty|hide|do_up|do_dblclick|clearTimeout|do_click|ctrlKey|parseInt|split|_|slice|get_info|img|appendTo|ajax|data|action|dir|success|label|trans|strong|br|FP_RESULT|picker|php|unicode|300|init|extend|is_unicode|use_unicode|ajaxSetup|url|dataType|json|files|string|eval|opener|close|map|innerHTML|join|top|pageY|left|pageX|fadeIn|fast|option|lastIndexOf|substr|toggleClass|setTimeout|info_loading_img|info|btn_close|display|none|preview|preview_img|alt|open|_blank|prependTo|append|nbsp|undefined|show|cache|filter|filter_box|item_|title|dblclick|push|autocompleteArray|onItemSelect|not|ftyp|body|selectstart|file_picker_form|submit|list_box|change|btn_refresh|btn_up|btn_complete|btn_cancel|ppdrag'.split('|'),0,{}))