* Added "rtehtmlarea" as a system extension
[Packages/TYPO3.CMS.git] / typo3 / sysext / rtehtmlarea / htmlarea / popups / about.html
1 <html class="popupwin" style="height: 100%">
2 <!--
3 /*
4 * About window for TYPO3 htmlArea RTE
5 *
6 * @author Mihai Bazon (http://dynarch.com/mishoo)
7 * @author Stanislas Rolland. Sponsored by Fructifor Inc.
8 * Copyright (c) 2003-2004 dynarch.com
9 * Copyright (c) 2005 Stanislas Rolland <stanislas.rolland(arobas)fructifor.ca>
10 * Distributed under the same terms as HTMLArea itself.
11 * This notice MUST stay intact for use.
12 *
13 * TYPO3 CVS ID: $Id$
14 */
15 -->
16 <head>
17 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
18 <title>About HTMLArea</title>
19 <script type="text/javascript" src="popup.js"></script>
20 <script type="text/javascript">
21 var HTMLArea = window.opener.HTMLArea;
22 var _editor_CSS = window.opener._editor_CSS;
23 __dlg_loadStyle(_editor_CSS);
24
25 function Init() {
26 __dlg_init();
27 initDocument();
28 __dlg_translate(HTMLArea.I18N.dialogs);
29 };
30
31 var TABS = [];
32 var CURRENT_TAB = 0;
33 var CONTENT_HEIGHT_DIFF = 0;
34 var CONTENT_WIDTH_DIFF = 0;
35
36 function selectTab(idx) {
37 var ct = TABS[CURRENT_TAB];
38 HTMLArea._removeClass(ct, "tab-current");
39 ct = TABS[CURRENT_TAB = idx];
40 HTMLArea._addClass(ct, "tab-current");
41 for (var i = TABS.length; --i >= 0;) {
42 var area = document.getElementById("tab-area-" + i);
43 if (CURRENT_TAB == i) area.style.display = "block";
44 else area.style.display = "none";
45 }
46 document.body.style.visibility = "hidden";
47 document.body.style.visibility = "visible";
48 document.cookie = "HTMLAREA-ABOUT-TAB=" + idx;
49 }
50
51 function initDocument() {
52 var editor = window.dialogArguments;
53 var plugins = document.getElementById("plugins");
54 var j = 0, i, info;
55 var html = "<table width='99%' cellpadding='0' style='collapse-borders: collapse; border: 1px solid #8b8;'>" +
56 "<thead><tr>" +
57 "<td>Name</td>" +
58 "<td>Developer</td>" +
59 "<td>Sponsored by</td>" +
60 "</tr></thead><tbody>";
61 for (i in editor.plugins) {
62 info = editor.plugins[i];
63 html += "<tr><td>" + info.name + " v" + info.version + "</td>" +
64 "<td><a href='" + info.developer_url + "' target='_blank' >" +
65 info.developer + "</a></td>" +
66 "<td><a href='" + info.sponsor_url + "' target='_blank' >" +
67 info.sponsor + "</a></td>" +
68 "</tr>";
69 ++j;
70 }
71
72 if (j) {
73 html += "</tbody></table>";
74 plugins.innerHTML = "<p><span>The following plugins have been loaded.</span></p>" + html;
75 } else {
76 plugins.innerHTML = "<p><span>No plugins have been loaded.</span></p>";
77 }
78
79 plugins.innerHTML += "<p><span>User agent reports:</span><br/>" + navigator.userAgent + "</p>";
80
81 var content = document.getElementById("tab-areas-content");
82 if (window.innerHeight) {
83 CONTENT_HEIGHT_DIFF = window.innerHeight - 250;
84 CONTENT_WIDTH_DIFF = window.innerWidth - content.offsetWidth;
85 } else {
86 CONTENT_HEIGHT_DIFF = document.body.offsetHeight - 250;
87 CONTENT_WIDTH_DIFF = document.body.offsetWidth - 400;
88 }
89 window.onresize();
90
91 var bar = document.getElementById("tabbar");
92 j = 0;
93 for (i = bar.firstChild; i; i = i.nextSibling) {
94 if(i.nodeType == 1) {
95 TABS.push(i);
96 i.__msh_tab = j;
97 i.onmousedown = function(ev) { selectTab(this.__msh_tab); HTMLArea._stopEvent(ev || window.event); };
98 var area = document.getElementById("tab-area-" + j);
99 if (/tab-current/.test(i.className)) {
100 CURRENT_TAB = j;
101 area.style.display = "block";
102 } else {
103 area.style.display = "none";
104 }
105 ++j;
106 }
107 }
108 if (document.cookie.match(/HTMLAREA-ABOUT-TAB=([0-1]+)/)) selectTab(RegExp.$1);
109 }
110
111 window.onresize = function() {
112 var content = document.getElementById("tab-areas-content");
113 if (window.innerHeight) {
114 content.style.height = (window.innerHeight - CONTENT_HEIGHT_DIFF) + "px";
115 content.style.width = (window.innerWidth - CONTENT_WIDTH_DIFF) + "px";
116 } else {
117 content.style.height = (document.body.offsetHeight - CONTENT_HEIGHT_DIFF) + "px";
118 //content.style.width = (document.body.offsetWidth - CONTENT_WIDTH_DIFF) + "px";
119 }
120 }
121 </script>
122 </head>
123 <body class="popupwin" onload="Init();">
124 <div id="content">
125 <div class="title" style="cursor: pointer;" onclick="window.open('http://typo3.org/extensions/repository/search/rtehtmlarea/');">About HTMLArea</div>
126 <div style="overflow: auto; height: 250px;" id="tab-areas-content">
127 <div id="tab-areas">
128 <div id="tab-area-0">
129 <h1>htmlArea RTE v 1.1.0</h1>
130 <p><span>free_editor</span></p>
131 <p><span>Mozilla_or_IE</span></p>
132 <p><span>product_documentation</span>&nbsp;<a href="http://typo3.org/extensions/repository/search/rtehtmlarea/" target="_blank">typo3.org</a></p>
133 <p style="text-align: center;">
134 <br />
135 &copy; 2002-2004 <a href="http://interactivetools.com" target="_blank">interactivetools.com, inc.</a><br />
136 &copy; 2003-2004 <a href="http://dynarch.com" target="_blank">dynarch.com LLC.</a><br />
137 &copy; 2004-2005 <a href="http://www.fructifor.ca" target="_blank">Stanislas Rolland</a><br />
138 <span>All rights reserved.</span>
139 </p>
140 </div>
141 <div id="tab-area-1">
142 <h1>Plugins</h1>
143 <div id="plugins"></div>
144 </div>
145 </div>
146 </div>
147 <div class="buttons">
148 <div id="tabbar">
149 <div class="tab tab-current">About</div>
150 <div class="tab">Plugins</div>
151 </div>
152 <button type="button" onclick="__dlg_close(null);">Close</button>
153 </div>
154 </div>
155 </body></html>