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></title>
|
---|
5 | <script type="text/javascript" src="../../popups/popup.js"></script>
|
---|
6 | <style type="text/css">
|
---|
7 | /*<![CDATA[*/
|
---|
8 | html, body { background-color: ButtonFace; color: ButtonText; font: 11px Tahoma,Verdana,sans-serif; margin: 0; padding: 0;}
|
---|
9 | body { padding: 5px; }
|
---|
10 | .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;}
|
---|
11 | select, input, button { font: 11px Tahoma,Verdana,sans-serif; }
|
---|
12 | .buttons { width: 70px; 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="../../popups/popup.js"></script>
|
---|
20 | <script type="text/javascript">
|
---|
21 | /*<![CDATA[*/
|
---|
22 |
|
---|
23 | if(window.opener)
|
---|
24 | HTMLArea = window.opener.HTMLArea;
|
---|
25 |
|
---|
26 | init = function ()
|
---|
27 | {
|
---|
28 | __dlg_translate('ImageManager');
|
---|
29 |
|
---|
30 | var param = opener.Dialog._arguments;
|
---|
31 |
|
---|
32 | if ( param )
|
---|
33 | {
|
---|
34 | if ( param.title )
|
---|
35 | {
|
---|
36 | document.title = param.title;
|
---|
37 | document.getElementById("title").innerHTML = param.title;
|
---|
38 | }
|
---|
39 | if ( param.prompt )
|
---|
40 | {
|
---|
41 | document.getElementById("prompt").innerHTML = param.prompt;
|
---|
42 | }
|
---|
43 | if ( param.value )
|
---|
44 | {
|
---|
45 | document.getElementById("f_input").value = param.value;
|
---|
46 | }
|
---|
47 | }
|
---|
48 | document.getElementById("f_input").focus();
|
---|
49 |
|
---|
50 | __xinha_dlg_init();
|
---|
51 |
|
---|
52 | };
|
---|
53 |
|
---|
54 | function onCancel()
|
---|
55 | {
|
---|
56 | __dlg_close(null);
|
---|
57 | return false;
|
---|
58 | }
|
---|
59 |
|
---|
60 | function onOK()
|
---|
61 | {
|
---|
62 | // pass data back to the calling window
|
---|
63 | __dlg_close({value:document.getElementById("f_input").value});
|
---|
64 | return false;
|
---|
65 | }
|
---|
66 |
|
---|
67 | function addEvent(obj, evType, fn)
|
---|
68 | {
|
---|
69 | if (obj.addEventListener) { obj.addEventListener(evType, fn, true); return true; }
|
---|
70 | else if (obj.attachEvent) { var r = obj.attachEvent("on"+evType, fn); return r; }
|
---|
71 | else { return false; }
|
---|
72 | }
|
---|
73 |
|
---|
74 | addEvent(window, 'load', init);
|
---|
75 | //-->
|
---|
76 | </script>
|
---|
77 | </head>
|
---|
78 | <body >
|
---|
79 | <div class="title" id="title" style="white-space:nowrap">Please enter value</div>
|
---|
80 | <form action="">
|
---|
81 | <div class="elements">
|
---|
82 | <label for="f_input" id="prompt"></label>
|
---|
83 | <input type="text" id="f_input" style="width:50%"/>
|
---|
84 | </div>
|
---|
85 | <div style="text-align: right;">
|
---|
86 | <hr />
|
---|
87 | <button type="button" class="buttons" onclick="return onOK();">OK</button>
|
---|
88 | <button type="button" class="buttons" onclick="return onCancel();">Cancel</button>
|
---|
89 | </div>
|
---|
90 | </form>
|
---|
91 | </body>
|
---|
92 | </html> |
---|