| [ PHPXref.com ] | [ Generated: Sun Jul 20 20:02:47 2008 ] | [ phpXplorer 0.9.35 ] |
| [ Index ] [ Variables ] [ Functions ] [ Classes ] [ Constants ] [ Statistics ] | ||
[Summary view] [Print] [Text view]
1 <html> 2 <head> 3 <title></title> 4 <style type="text/css"> 5 <!-- 6 7 button.pxpSelector{ 8 width: 40px; 9 font-family: Verdana; 10 font-size: 8px; 11 font-weight: bold; 12 border: 1px solid #999999; 13 height: 18px; 14 } 15 16 input.pxpFile{ 17 font-family: Verdana; 18 font-size: 11px; 19 border: 1px solid #cccccc; 20 font-family: Verdana; 21 height: 18px; 22 } 23 body, td{ 24 font-family: Verdana; 25 font-size: 12px; 26 } 27 28 --> 29 </style> 30 <script type="text/javascript" language="JavaScript"> 31 <!-- 32 33 function cls_pxpFileInfo(filename, typeKey, currentDir, currentURL){ 34 this.name = filename 35 this.typeKey = typeKey 36 this.dir = currentDir 37 this.url = currentURL 38 } 39 40 function cls_pxp(url){ 41 this.url = url 42 this.arr_callObj = new Array() 43 this.arr_callHandler = new Array() 44 this.arr_returnHandler = new Array() 45 this.windows = new Array() 46 47 this.show = function(obj, shareId, callbackHandler, returnHandler){ 48 var parts = obj.name.split("_") 49 var callId = "c" + String(Math.random()).replace(".", "") 50 this.windows[callId] = window.open(this.url + "/system/index.php?shareId=" + shareId + "&allowSelection=true&path=%2F" + eval("document.forms[0]." + parts[1]).value, callId, "scrollbars=yes, resizable=yes, width=888, height=480, left=100, top=100") 51 this.arr_callObj[callId] = obj 52 this.arr_callHandler[callId] = callbackHandler 53 this.arr_returnHandler[callId] = returnHandler 54 } 55 56 this.callback = function(callId, filename, typeKey, currentDir , currentURL){ 57 this.arr_callHandler[callId](this.arr_callObj[callId], this.arr_returnHandler[callId](new cls_pxpFileInfo(filename, typeKey, currentDir , currentURL))) 58 } 59 } 60 61 function pxpReturn_file(obj_file){ 62 return obj_file.name 63 } 64 65 function pxpReturn_url(obj_file){ 66 return obj_file.url + "/" + obj_file.name 67 } 68 69 function pxpCallback_button(obj, value){ 70 var parts = obj.name.split("_") 71 if(parts[0] == "btn") 72 eval("document.forms[0]." + parts[1]).value = value 73 } 74 75 var pxp = new cls_pxp("http://192.168.1.24/phpXplorer") 76 77 //--> 78 </script> 79 </head> 80 <body> 81 82 <form name="zzz" method="post" action="" onsubmit="return false"> 83 84 <table summary="" border="0" cellspacing="10" cellpadding="0"> 85 <tr> 86 <td>pxpCallback_button</td> 87 <td>pxpReturn_file</td> 88 <td> 89 <input type="text" name="testField1" value="" class="pxpFile" style="width: 420px" /> 90 <button name="btn_testField1" onclick="pxp.show(this, 'test', pxpCallback_button, pxpReturn_file)" class="pxpSelector"> ooo </button> 91 </td> 92 </tr> 93 <tr> 94 <td>pxpCallback_button</td> 95 <td>pxpReturn_url</td> 96 <td> 97 <input type="text" name="testField2" value="" class="pxpFile" style="width: 420px" /> 98 <button name="btn_testField2" onclick="pxp.show(this, 'test', pxpCallback_button, pxpReturn_url)" class="pxpSelector"> ooo </button> 99 </td> 100 </tr> 101 102 </form> 103 </body> 104 </html>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| [ Powered by PHPXref - Served by Debian GNU/Linux ] |