source: trunk/plugins/ImageManager/newFolder.html @ 46

Last change on this file since 46 was 43, checked in by yermol, 15 years ago

adding modified version of Xiang Wei Zhuo's ImageManager? plugin that
now features a unified single entry-point backend.

Updated full_example to include ImageManager? checkbox.

File size: 2.2 KB
Line 
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 <style type="text/css">
6 /*<![CDATA[*/
7 html, body {  background-color: ButtonFace;  color: ButtonText; font: 11px Tahoma,Verdana,sans-serif; margin: 0; padding: 0;}
8body { padding: 5px; }
9 .title { background-color: #ddf; color: #000; font-weight: bold; font-size: 120%; padding: 3px 10px; margin-bottom: 10px; border-bottom: 1px  solid black; letter-spacing: 2px;}
10select, input, button { font: 11px Tahoma,Verdana,sans-serif; }
11.buttons { width: 70px; text-align: center; }
12form { padding: 0px;  margin: 0;}
13form .elements{
14        padding: 10px; text-align: center;
15}
16 /*]]>*/
17 </style>
18<script type="text/javascript" src="assets/popup.js"></script>
19<script type="text/javascript">
20/*<![CDATA[*/
21        window.resizeTo(300, 160);
22
23        if(window.opener)
24                I18N = window.opener.I18N;
25
26        init = function ()
27        {
28                __dlg_init();
29                __dlg_translate(I18N);
30                document.getElementById("f_foldername").focus();
31        }
32
33        function onCancel()
34        {
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 = document.getElementById(id);
47                param[id] = el.value;
48          }
49          __dlg_close(param);
50          return false;
51        }
52
53        function addEvent(obj, evType, fn)
54        {
55                if (obj.addEventListener) { obj.addEventListener(evType, fn, true); return true; }
56                else if (obj.attachEvent) {  var r = obj.attachEvent("on"+evType, fn);  return r;  }
57                else {  return false; }
58        }
59       
60        addEvent(window, 'load', init);
61//-->
62</script>
63</head>
64<body >
65<div class="title">New Folder</div>
66<form action="">
67<div class="elements">
68        <label for="f_foldername">Folder Name:</label>
69        <input type="text" id="f_foldername" />
70</div>
71<div style="text-align: right;"> 
72          <hr />
73          <button type="button" class="buttons" onclick="return onOK();">OK</button>
74          <button type="button" class="buttons" onclick="return onCancel();">Cancel</button>
75</div>
76</form>
77</body>
78</html>
Note: See TracBrowser for help on using the repository browser.