newFolder.html 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html>
  3. <head>
  4. <title>New Folder</title>
  5. <link href="assets/manager.css" rel="stylesheet" type="text/css" />
  6. <style type="text/css">
  7. /*<![CDATA[*/
  8. html, body { background-color: #f7f7f7; color: ButtonText; font: 11px Tahoma,Verdana,sans-serif; margin: 0; padding: 0;}
  9. body { padding: 5px; }
  10. .title { background-color: #dedede; color: #504845; font-weight: bold; font-size: 120%; padding: 3px 10px; margin-bottom: 10px; border-bottom: 1px solid #cec6b5; letter-spacing: 2px;}
  11. select, input, button { font: 11px Tahoma,Verdana,sans-serif; }
  12. .buttons { width: 100px; text-align: center; }
  13. form { padding: 0px; margin: 0;}
  14. form .elements{
  15. padding: 10px; text-align: center;
  16. }
  17. /*]]>*/
  18. </style>
  19. <script type="text/javascript" src="assets/popup.js"></script>
  20. <script type="text/javascript">
  21. /*<![CDATA[*/
  22. window.resizeTo(450, 205);
  23. if(window.opener)
  24. I18N = window.opener.I18N;
  25. init = function ()
  26. {
  27. __dlg_init();
  28. __dlg_translate(I18N);
  29. document.getElementById("f_foldername").focus();
  30. }
  31. function onCancel()
  32. {
  33. __dlg_close(null);
  34. return false;
  35. }
  36. function onOK()
  37. {
  38. // pass data back to the calling window
  39. var fields = ["f_foldername"];
  40. var param = new Object();
  41. for (var i in fields) {
  42. var id = fields[i];
  43. var el = document.getElementById(id);
  44. param[id] = el.value;
  45. }
  46. __dlg_close(param);
  47. return false;
  48. }
  49. function addEvent(obj, evType, fn)
  50. {
  51. if (obj.addEventListener) { obj.addEventListener(evType, fn, true); return true; }
  52. else if (obj.attachEvent) { var r = obj.attachEvent("on"+evType, fn); return r; }
  53. else { return false; }
  54. }
  55. addEvent(window, 'load', init);
  56. //-->
  57. </script>
  58. </head>
  59. <body >
  60. <div class="title">New Folder</div>
  61. <form action="">
  62. <div class="elements">
  63. <label for="f_foldername">Folder Name:</label>
  64. <input type="text" id="f_foldername" style="width: 250px;"/>
  65. </div>
  66. <div style="text-align: right;">
  67. <hr noshade="noshade" style="height: 1px; color=#cec6b5;" />
  68. <button type="button" class="save" onclick="return onOK();">OK</button>
  69. <button type="button" class="cancel" onclick="return onCancel();">Cancel</button>
  70. </div>
  71. </form>
  72. </body>
  73. </html>