[2] | 1 | <html style="width: 280; height: 150;"> |
---|
| 2 | <head> |
---|
| 3 | <title>New Folder</title> |
---|
| 4 | <style type="text/css"> |
---|
| 5 | <!-- |
---|
| 6 | html, body { |
---|
| 7 | background: ButtonFace; |
---|
| 8 | color: ButtonText; |
---|
| 9 | font: 11px Tahoma,Verdana,sans-serif; |
---|
| 10 | margin: 0px; |
---|
| 11 | padding: 0px; |
---|
| 12 | } |
---|
| 13 | body { padding: 5px; } |
---|
| 14 | table { |
---|
| 15 | font: 11px Tahoma,Verdana,sans-serif; |
---|
| 16 | } |
---|
| 17 | form p { |
---|
| 18 | margin-top: 5px; |
---|
| 19 | margin-bottom: 5px; |
---|
| 20 | } |
---|
| 21 | fieldset { padding: 0px 10px 5px 5px; } |
---|
| 22 | select, input, button { font: 11px Tahoma,Verdana,sans-serif; } |
---|
| 23 | button { width: 70px; } |
---|
| 24 | .space { padding: 2px; } |
---|
| 25 | |
---|
| 26 | .title { background: #ddf; color: #000; font-weight: bold; font-size: 120%; padding: 3px 10px; margin-bottom: 10px; |
---|
| 27 | border-bottom: 1px solid black; letter-spacing: 2px; |
---|
| 28 | } |
---|
| 29 | //--> |
---|
| 30 | </style> |
---|
| 31 | <script type="text/javascript" src="../popup.js"></script> |
---|
| 32 | <script type="text/javascript" src="../../dialog.js"></script> |
---|
| 33 | <script type="text/javascript"> |
---|
| 34 | function onCancel() { |
---|
| 35 | __dlg_close(null); |
---|
| 36 | return false; |
---|
| 37 | }; |
---|
| 38 | |
---|
| 39 | function onOK() |
---|
| 40 | { |
---|
| 41 | // pass data back to the calling window |
---|
| 42 | var fields = ["f_foldername"]; |
---|
| 43 | var param = new Object(); |
---|
| 44 | for (var i in fields) { |
---|
| 45 | var id = fields[i]; |
---|
| 46 | var el = MM_findObj(id); |
---|
| 47 | param[id] = el.value; |
---|
| 48 | } |
---|
| 49 | __dlg_close(param); |
---|
| 50 | return false; |
---|
| 51 | } |
---|
| 52 | function Init() { |
---|
| 53 | __dlg_init(); |
---|
| 54 | MM_findObj("f_foldername").focus(); |
---|
| 55 | } |
---|
| 56 | |
---|
| 57 | function MM_findObj(n, d) { //v4.01 |
---|
| 58 | var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { |
---|
| 59 | d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} |
---|
| 60 | if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n]; |
---|
| 61 | for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); |
---|
| 62 | if(!x && d.getElementById) x=d.getElementById(n); return x; |
---|
| 63 | } |
---|
| 64 | |
---|
| 65 | </script> |
---|
| 66 | </head> |
---|
| 67 | <body onload="Init()"> |
---|
| 68 | <div class="title">New Folder</div> |
---|
| 69 | <form action="" method="get"> |
---|
| 70 | <table width="100%" border="0" cellspacing="0" cellpadding="0"> |
---|
| 71 | <tr> |
---|
| 72 | <td> <table border="0" cellspacing="2" cellpadding="2"> |
---|
| 73 | <tr> |
---|
| 74 | <td>Folder Name:</td> |
---|
| 75 | <td><input name="foldername" type="text" id="f_foldername"></td> |
---|
| 76 | </tr> |
---|
| 77 | </table></td> |
---|
| 78 | <tr> |
---|
| 79 | <td><div style="text-align: right;"> |
---|
| 80 | <hr /> |
---|
| 81 | <button type="button" name="ok" onclick="return onOK();">OK</button> |
---|
| 82 | <button type="button" name="cancel" onclick="return onCancel();">Cancel</button> |
---|
| 83 | </div></td> |
---|
| 84 | </tr> |
---|
| 85 | </table> |
---|
| 86 | </form> |
---|
| 87 | <p> </p><br /> |
---|
| 88 | </body> |
---|
| 89 | </html> |
---|