source: branches/posledni/forum/adm/style/overall_header.html

Last change on this file was 702, checked in by george, 15 years ago
  • Upraveno: Aktualizace fóra.
File size: 5.4 KB
Line 
1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2<html xmlns="http://www.w3.org/1999/xhtml" dir="{S_CONTENT_DIRECTION}" lang="{S_USER_LANG}" xml:lang="{S_USER_LANG}">
3<head>
4
5<meta http-equiv="Content-Type" content="text/html; charset={S_CONTENT_ENCODING}" />
6<meta http-equiv="Content-Style-Type" content="text/css" />
7<meta http-equiv="Content-Language" content="{S_USER_LANG}" />
8<meta http-equiv="imagetoolbar" content="no" />
9<!-- IF META -->{META}<!-- ENDIF -->
10<title>{PAGE_TITLE}</title>
11
12<link href="style/admin.css" rel="stylesheet" type="text/css" media="screen" />
13
14<script type="text/javascript">
15// <![CDATA[
16var jump_page = '{LA_JUMP_PAGE}:';
17var on_page = '{ON_PAGE}';
18var per_page = '{PER_PAGE}';
19var base_url = '{A_BASE_URL}';
20
21var menu_state = 'shown';
22
23
24/**
25* Jump to page
26*/
27function jumpto()
28{
29 var page = prompt(jump_page, on_page);
30
31 if (page !== null && !isNaN(page) && page == Math.floor(page) && page > 0)
32 {
33 if (base_url.indexOf('?') == -1)
34 {
35 document.location.href = base_url + '?start=' + ((page - 1) * per_page);
36 }
37 else
38 {
39 document.location.href = base_url.replace(/&amp;/g, '&') + '&start=' + ((page - 1) * per_page);
40 }
41 }
42}
43
44/**
45* Set display of page element
46* s[-1,0,1] = hide,toggle display,show
47*/
48function dE(n, s, type)
49{
50 if (!type)
51 {
52 type = 'block';
53 }
54
55 var e = document.getElementById(n);
56 if (!s)
57 {
58 s = (e.style.display == '') ? -1 : 1;
59 }
60 e.style.display = (s == 1) ? type : 'none';
61}
62
63/**
64* Mark/unmark checkboxes
65* id = ID of parent container, name = name prefix, state = state [true/false]
66*/
67function marklist(id, name, state)
68{
69 var parent = document.getElementById(id);
70 if (!parent)
71 {
72 eval('parent = document.' + id);
73 }
74
75 if (!parent)
76 {
77 return;
78 }
79
80 var rb = parent.getElementsByTagName('input');
81
82 for (var r = 0; r < rb.length; r++)
83 {
84 if (rb[r].name.substr(0, name.length) == name)
85 {
86 rb[r].checked = state;
87 }
88 }
89}
90
91/**
92* Find a member
93*/
94function find_username(url)
95{
96 popup(url, 760, 570, '_usersearch');
97 return false;
98}
99
100/**
101* Window popup
102*/
103function popup(url, width, height, name)
104{
105 if (!name)
106 {
107 name = '_popup';
108 }
109
110 window.open(url.replace(/&amp;/g, '&'), name, 'height=' + height + ',resizable=yes,scrollbars=yes, width=' + width);
111 return false;
112}
113
114/**
115* Hiding/Showing the side menu
116*/
117function switch_menu()
118{
119 var menu = document.getElementById('menu');
120 var main = document.getElementById('main');
121 var toggle = document.getElementById('toggle');
122 var handle = document.getElementById('toggle-handle');
123
124 switch (menu_state)
125 {
126 // hide
127 case 'shown':
128 main.style.width = '93%';
129 menu_state = 'hidden';
130 menu.style.display = 'none';
131 toggle.style.width = '20px';
132 handle.style.backgroundImage = 'url(images/toggle.gif)';
133 handle.style.backgroundRepeat = 'no-repeat';
134
135 <!-- IF S_CONTENT_DIRECTION eq 'rtl' -->
136 handle.style.backgroundPosition = '0% 50%';
137 toggle.style.left = '96%';
138 <!-- ELSE -->
139 handle.style.backgroundPosition = '100% 50%';
140 toggle.style.left = '0';
141 <!-- ENDIF -->
142 break;
143
144 // show
145 case 'hidden':
146 main.style.width = '76%';
147 menu_state = 'shown';
148 menu.style.display = 'block';
149 toggle.style.width = '5%';
150 handle.style.backgroundImage = 'url(images/toggle.gif)';
151 handle.style.backgroundRepeat = 'no-repeat';
152
153 <!-- IF S_CONTENT_DIRECTION eq 'rtl' -->
154 handle.style.backgroundPosition = '100% 50%';
155 toggle.style.left = '75%';
156 <!-- ELSE -->
157 handle.style.backgroundPosition = '0% 50%';
158 toggle.style.left = '15%';
159 <!-- ENDIF -->
160 break;
161 }
162}
163
164// ]]>
165</script>
166</head>
167
168<body class="{S_CONTENT_DIRECTION}">
169
170<div id="wrap">
171 <div id="page-header">
172 <h1>{L_ADMIN_PANEL}</h1>
173 <p><a href="{U_ADM_INDEX}">{L_ADMIN_INDEX}</a> &bull; <a href="{U_INDEX}">{L_FORUM_INDEX}</a></p>
174 <p id="skip"><a href="#acp">{L_SKIP}</a></p>
175 </div>
176
177 <div id="page-body">
178 <div id="tabs">
179 <ul>
180 <!-- BEGIN t_block1 -->
181 <li<!-- IF t_block1.S_SELECTED --> id="activetab"<!-- ENDIF -->><a href="{t_block1.U_TITLE}"><span>{t_block1.L_TITLE}</span></a></li>
182 <!-- END t_block1 -->
183 </ul>
184 </div>
185
186 <div id="acp">
187 <div class="panel">
188 <span class="corners-top"><span></span></span>
189 <div id="content">
190 <!-- IF not S_USER_NOTICE -->
191 <div id="toggle">
192 <a id="toggle-handle" accesskey="m" title="{L_MENU_TOGGLE}" onclick="switch_menu(); return false;" href="#"></a></div>
193 <!-- ENDIF -->
194 <div id="menu">
195 <p>{L_LOGGED_IN_AS}<br /><strong>{USERNAME}</strong> [&nbsp;<a href="{U_LOGOUT}">{L_LOGOUT}</a>&nbsp;][&nbsp;<a href="{U_ADM_LOGOUT}">{L_ADM_LOGOUT}</a>&nbsp;]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</p>
196 <ul>
197 <!-- DEFINE $LI_USED = 0 -->
198 <!-- BEGIN l_block1 -->
199 <!-- IF l_block1.S_SELECTED -->
200
201 <!-- BEGIN l_block2 -->
202 <!-- IF .l_block1.l_block2.l_block3 -->
203 <li class="header">{l_block1.l_block2.L_TITLE}</li>
204 <!-- DEFINE $LI_USED = 1 -->
205 <!-- ENDIF -->
206
207 <!-- BEGIN l_block3 -->
208 <li<!-- IF l_block1.l_block2.l_block3.S_SELECTED --> id="activemenu"<!-- ENDIF -->><a href="{l_block1.l_block2.l_block3.U_TITLE}"><span>{l_block1.l_block2.l_block3.L_TITLE}</span></a></li>
209 <!-- DEFINE $LI_USED = 1 -->
210 <!-- END l_block3 -->
211 <!-- END l_block2 -->
212
213 <!-- ENDIF -->
214 <!-- END l_block1 -->
215 <!-- IF not $LI_USED -->
216 <li></li>
217 <!-- ENDIF -->
218 </ul>
219 </div>
220
221 <div id="main">
Note: See TracBrowser for help on using the repository browser.