source: trunk/plugins/FullPage/popups/docprop.html @ 239

Last change on this file since 239 was 239, checked in by gocher, 14 years ago

Ticket #353 make plugins /popups skinable
change editor.config.skin to _editor_skin

  • Property svn:eol-style set to native
  • Property svn:keywords set to LastChangedDate LastChangedRevision LastChangedBy HeadURL Id
File size: 3.2 KB
Line 
1<html>
2
3<head>
4  <title>Document properties</title>
5
6<script type="text/javascript" src="../../../popups/popup.js"></script>
7<link rel="stylesheet" type="text/css" href="../../../popups/popup.css" />
8
9<script type="text/javascript">
10
11FullPage = window.opener.FullPage; // load the FullPage plugin and lang file ;-)
12window.resizeTo(400, 100);
13
14  var accepted = {
15      f_doctype       : true,
16      f_title         : true,
17      f_body_bgcolor  : true,
18      f_body_fgcolor  : true,
19      f_base_style    : true,
20      f_alt_style     : true,
21      f_charset       : true
22  };
23
24var editor = null;
25function Init() {
26  __dlg_translate('FullPage');
27  __dlg_init();
28  var params = window.dialogArguments;
29  for (var i in params) {
30      if (i in accepted) {
31        var el = document.getElementById(i);
32        el.value = params[i];
33      }
34  }
35  editor = params.editor;
36  document.getElementById("f_title").focus();
37  document.getElementById("f_title").select();
38};
39
40function onOK() {
41  var required = {
42  };
43  for (var i in required) {
44    var el = document.getElementById(i);
45    if (!el.value) {
46      alert(required[i]);
47      el.focus();
48      return false;
49    }
50  }
51
52  var param = {};
53  for (var i in accepted) {
54    var el = document.getElementById(i);
55    param[i] = el.value;
56  }
57  __dlg_close(param);
58  return false;
59};
60
61function onCancel() {
62  __dlg_close(null);
63  return false;
64};
65
66</script>
67
68
69  </head>
70
71  <body class="dialog" onload="Init()">
72
73    <div class="title"><span>Document properties</span></div>
74
75    <table style="width: 100%">
76      <tr>
77        <td class="label"><span>Document title:</span></td>
78        <td><input type="text" id="f_title" style="width: 100%" /></td>
79      </tr>
80      <tr>
81        <td class="label"><span>DOCTYPE:</span></td>
82        <td><input type="text" id="f_doctype" style="width: 100%" /></td>
83      </tr>
84      <tr>
85        <td class="label"><span>Primary style-sheet:</span></td>
86        <td><input type="text" id="f_base_style" style="width: 100%" /></td>
87      </tr>
88      <tr>
89        <td class="label"><span>Alternate style-sheet:</span></td>
90        <td><input type="text" id="f_alt_style" style="width: 100%" /></td>
91      </tr>
92      <tr>
93        <td class="label"><span>Background color:</span></td>
94        <td><input type="text" id="f_body_bgcolor" size="7" /></td>
95      </tr>
96      <tr>
97        <td class="label"><span>Text color:</span></td>
98        <td><input type="text" id="f_body_fgcolor" size="7" /></td>
99      </tr>
100      <tr>
101        <td class="label"><span>Character set:</span></td>
102        <td><select id="f_charset">
103          <option value=""></option>
104          <option value="utf-8">UTF-8 (recommended)</option>
105          <option value="windows-1251">cyrillic (WINDOWS-1251)</option>
106          <option value="koi8-r">cyrillic (KOI8-R)</option>
107          <option value="iso-8859-5">cyrillic (ISO-8859-5)</option>
108          <option value="iso-8859-1">western (ISO-8859-1)</option>
109        </select></td>
110      </tr>
111    </table>
112
113    <div id="buttons">
114      <button type="button" name="ok" onclick="return onOK();"><span>OK</span></button>
115      <button type="button" name="cancel" onclick="return onCancel();"><span>Cancel</span></button>
116    </div>
117
118  </body>
119</html>
Note: See TracBrowser for help on using the repository browser.