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

Last change on this file since 60 was 60, checked in by niko, 14 years ago

ticket #98: new i18n-system:

  • changed every use of HTMLArea.I18N to HTMLArea._lc-function
  • implemented HTMLArea._loadlang
  • converted all language-files into the new system
  • converted all language-files into utf-8
  • removed all jp-* language-files except jp-utf8.js (and renamed it into jp.js)
  • removed all en.js-files (not needed by the new system)
  • removed all empty i18n-files
  • Property svn:eol-style set to native
  • Property svn:keywords set to LastChangedDate LastChangedRevision LastChangedBy HeadURL Id
File size: 3.7 KB
Line 
1<html>
2
3<head>
4  <title>Document properties</title>
5
6<script type="text/javascript" src="../../../popups/popup.js"></script>
7
8<script type="text/javascript">
9
10FullPage = window.opener.FullPage; // load the FullPage plugin and lang file ;-)
11window.resizeTo(400, 100);
12
13  var accepted = {
14      f_doctype       : true,
15      f_title         : true,
16      f_body_bgcolor  : true,
17      f_body_fgcolor  : true,
18      f_base_style    : true,
19      f_alt_style     : true,
20      f_charset       : true
21  };
22
23var editor = null;
24function Init() {
25  __dlg_translate('FullPage');
26  __dlg_init();
27  var params = window.dialogArguments;
28  for (var i in params) {
29      if (i in accepted) {
30        var el = document.getElementById(i);
31        el.value = params[i];
32      }
33  }
34  editor = params.editor;
35  document.getElementById("f_title").focus();
36  document.getElementById("f_title").select();
37};
38
39function onOK() {
40  var required = {
41  };
42  for (var i in required) {
43    var el = document.getElementById(i);
44    if (!el.value) {
45      alert(required[i]);
46      el.focus();
47      return false;
48    }
49  }
50
51  var param = {};
52  for (var i in accepted) {
53    var el = document.getElementById(i);
54    param[i] = el.value;
55  }
56  __dlg_close(param);
57  return false;
58};
59
60function onCancel() {
61  __dlg_close(null);
62  return false;
63};
64
65</script>
66
67<style type="text/css">
68html, body {
69  background: ButtonFace;
70  color: ButtonText;
71  font: 11px Tahoma,Verdana,sans-serif;
72  margin: 0px;
73  padding: 0px;
74}
75body { padding: 5px; }
76table {
77  font: 11px Tahoma,Verdana,sans-serif;
78}
79select, input, button { font: 11px Tahoma,Verdana,sans-serif; }
80button { width: 70px; }
81table .label { text-align: right; width: 12em; }
82
83.title { background: #ddf; color: #000; font-weight: bold; font-size: 120%; padding: 3px 10px; margin-bottom: 10px;
84border-bottom: 1px solid black; letter-spacing: 2px;
85}
86
87#buttons {
88      margin-top: 1em; border-top: 1px solid #999;
89      padding: 2px; text-align: right;
90}
91</style>
92
93  </head>
94
95  <body onload="Init()">
96
97    <div class="title"><span>Document properties</span></div>
98
99    <table style="width: 100%">
100      <tr>
101        <td class="label"><span>Document title:</span></td>
102        <td><input type="text" id="f_title" style="width: 100%" /></td>
103      </tr>
104      <tr>
105        <td class="label"><span>DOCTYPE:</span></td>
106        <td><input type="text" id="f_doctype" style="width: 100%" /></td>
107      </tr>
108      <tr>
109        <td class="label"><span>Primary style-sheet:</span></td>
110        <td><input type="text" id="f_base_style" style="width: 100%" /></td>
111      </tr>
112      <tr>
113        <td class="label"><span>Alternate style-sheet:</span></td>
114        <td><input type="text" id="f_alt_style" style="width: 100%" /></td>
115      </tr>
116      <tr>
117        <td class="label"><span>Background color:</span></td>
118        <td><input type="text" id="f_body_bgcolor" size="7" /></td>
119      </tr>
120      <tr>
121        <td class="label"><span>Text color:</span></td>
122        <td><input type="text" id="f_body_fgcolor" size="7" /></td>
123      </tr>
124      <tr>
125        <td class="label"><span>Character set:</span></td>
126        <td><select id="f_charset">
127          <option value=""></option>
128          <option value="utf-8">UTF-8 (recommended)</option>
129          <option value="windows-1251">cyrillic (WINDOWS-1251)</option>
130          <option value="koi8-r">cyrillic (KOI8-R)</option>
131          <option value="iso-8859-5">cyrillic (ISO-8859-5)</option>
132          <option value="iso-8859-1">western (ISO-8859-1)</option>
133        </select></td>
134      </tr>
135    </table>
136
137    <div id="buttons">
138      <button type="button" name="ok" onclick="return onOK();"><span>OK</span></button>
139      <button type="button" name="cancel" onclick="return onCancel();"><span>Cancel</span></button>
140    </div>
141
142  </body>
143</html>
Note: See TracBrowser for help on using the repository browser.