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

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

Nowegian UTF-8 language files
Ticket #388, #389, #390, #391, #393, #395, #396, #397, #398
and some little changes for language support

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