Fixed issue #9424: htmlArea RTE: Cleanup dialogue windows
[Packages/TYPO3.CMS.git] / typo3 / sysext / rtehtmlarea / htmlarea / plugins / AboutEditor / popups / about.html
1 <!DOCTYPE html
2 PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
3 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4 <html>
5 <!--
6 /***************************************************************
7 * Copyright notice
8 *
9 * (c) 2002-2004, interactivetools.com, inc.
10 * (c) 2003-2004 dynarch.com
11 * (c) 2004-2008 Stanislas Rolland <typo3(arobas)sjbr.ca>
12 * All rights reserved
13 *
14 * This script is part of the TYPO3 project. The TYPO3 project is
15 * free software; you can redistribute it and/or modify
16 * it under the terms of the GNU General Public License as published by
17 * the Free Software Foundation; either version 2 of the License, or
18 * (at your option) any later version.
19 *
20 * The GNU General Public License can be found at
21 * http://www.gnu.org/copyleft/gpl.html.
22 * A copy is found in the textfile GPL.txt and important notices to the license
23 * from the author is found in LICENSE.txt distributed with these scripts.
24 *
25 *
26 * This script is distributed in the hope that it will be useful,
27 * but WITHOUT ANY WARRANTY; without even the implied warranty of
28 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
29 * GNU General Public License for more details.
30 *
31 * This script is a modified version of a script published under the htmlArea License.
32 * A copy of the htmlArea License may be found in the textfile HTMLAREA_LICENSE.txt.
33 *
34 * This copyright notice MUST APPEAR in all copies of the script!
35 ***************************************************************/
36 /*
37 * About window for TYPO3 htmlArea RTE
38 *
39 * TYPO3 SVN ID: $Id$
40 */
41 -->
42 <head>
43 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
44 <meta http-equiv="Content-Style-Type" content="text/css" />
45 <title>About HTMLArea</title>
46 <script type="text/javascript">
47 /*<![CDATA[*/
48 <!--
49 var HTMLArea = window.opener.HTMLArea;
50 var dialog = HTMLArea.Dialog.AboutEditor;
51
52 function Init() {
53 initDocument();
54 dialog.initialize();
55 }
56
57 var TABS = [];
58 var CURRENT_TAB = 0;
59
60 function selectTab(idx) {
61 var ct = TABS[CURRENT_TAB];
62 HTMLArea._removeClass(ct, "tab-current");
63 ct = TABS[CURRENT_TAB = idx];
64 HTMLArea._addClass(ct, "tab-current");
65 for (var i = TABS.length; --i >= 0;) {
66 var area = document.getElementById("tab-area-" + i);
67 if (CURRENT_TAB == i) area.style.display = "block";
68 else area.style.display = "none";
69 }
70 document.body.style.visibility = "hidden";
71 document.body.style.visibility = "visible";
72 document.cookie = "HTMLAREA-ABOUT-TAB=" + idx;
73 }
74
75 function initDocument() {
76 var editor = dialog.plugin.editor;
77 var version = document.getElementById("version");
78 version.innerHTML = "htmlArea RTE v " + window.opener.RTEarea[0]["version"];
79 var plugins = document.getElementById("plugins");
80 var j = 0, i, info;
81 var html = "<table width='99%' cellpadding='0' style='border-collapse: collapse; border: 1px solid #8b8;'>" +
82 "<thead><tr>" +
83 "<td>Name</td>" +
84 "<td>Developer</td>" +
85 "<td>Sponsored by</td>" +
86 "</tr></thead><tbody>";
87 for (i in editor.plugins) {
88 info = editor.plugins[i];
89 html += "<tr><td>" + info.name + " v" + info.version + "</td>" +
90 "<td><a href='" + info.developer_url + "' target='_blank' >" +
91 info.developer + "</a></td>" +
92 "<td><a href='" + info.sponsor_url + "' target='_blank' >" +
93 info.sponsor + "</a></td>" +
94 "</tr>";
95 ++j;
96 }
97
98 if (j) {
99 html += "</tbody></table>";
100 plugins.innerHTML = "<p><span>The following plugins have been loaded.</span></p>" + html;
101 } else {
102 plugins.innerHTML = "<p><span>No plugins have been loaded.</span></p>";
103 }
104 plugins.innerHTML += "<p><span>User agent reports:</span><br/>" + navigator.userAgent + "</p>";
105
106 var bar = document.getElementById("tabbar");
107 j = 0;
108 for (i = bar.firstChild; i; i = i.nextSibling) {
109 if(i.nodeType == 1) {
110 TABS.push(i);
111 i.__msh_tab = j;
112 i.onmousedown = function(ev) { selectTab(this.__msh_tab); HTMLArea._stopEvent(ev || window.event); };
113 var area = document.getElementById("tab-area-" + j);
114 if (/tab-current/.test(i.className)) {
115 CURRENT_TAB = j;
116 area.style.display = "block";
117 } else {
118 area.style.display = "none";
119 }
120 ++j;
121 }
122 }
123 if (document.cookie.match(/HTMLAREA-ABOUT-TAB=([0-1]+)/)) selectTab(RegExp.$1);
124 }
125 function onCancel() {
126 dialog.close();
127 return false;
128 }
129 // -->
130 /*]]>*/
131 </script>
132 </head>
133 <body class="popupwin htmlarea-about" onload="Init();">
134 <div id="content">
135 <div class="title" style="cursor: pointer;" onclick="window.open('http://typo3.org/extensions/repository/view/rtehtmlarea_manual/current/');">About HTMLArea</div>
136 <div style="overflow: auto; height: 250px;" id="tab-areas-content">
137 <div id="tab-areas">
138 <div id="tab-area-0">
139 <h1 id="version">htmlArea RTE v 1.1.3</h1>
140 <p><span>free_editor</span></p>
141 <p><span>Mozilla_or_IE</span></p>
142 <p><span>product_documentation</span>&nbsp;<a href="http://typo3.org/extensions/repository/view/rtehtmlarea_manual/current/">typo3.org</a></p>
143 <p style="text-align: center;">
144 <br />
145 &copy; 2002-2004 <a href="http://interactivetools.com" target="_blank">interactivetools.com, inc.</a><br />
146 &copy; 2003-2004 <a href="http://dynarch.com" target="_blank">dynarch.com LLC.</a><br />
147 &copy; 2004-2008 <a href="http://www.fructifor.ca" target="_blank">Stanislas Rolland</a><br />
148 <span>All rights reserved.</span>
149 </p>
150 </div>
151 <div id="tab-area-1">
152 <h1>Plugins</h1>
153 <div id="plugins"></div>
154 </div>
155 </div>
156 </div>
157 <div class="buttons">
158 <div id="tabbar">
159 <div class="tab tab-current">About</div>
160 <div class="tab">Plugins</div>
161 </div>
162 <button type="button" onclick="onCancel();">Close</button>
163 </div>
164 </div>
165 </body>
166 </html>