1 |
6daefa8c
|
Petr Lukašík
|
<?php
|
2 |
|
|
|
3 |
|
|
require_once("./functions/dictionary.php");
|
4 |
|
|
//register_globals();
|
5 |
|
|
|
6 |
|
|
if (!kontrola_pristupu(2)) {
|
7 |
|
|
//echo "odhlas";
|
8 |
|
|
Header("Location: index_to_admin.php?hlaska=Byl jste automaticky odhlášen&n=$ses_nick");
|
9 |
|
|
}
|
10 |
|
|
|
11 |
|
|
|
12 |
|
|
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
|
13 |
|
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="cs">
|
14 |
|
|
<head>
|
15 |
|
|
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8" />
|
16 |
|
|
<meta http-equiv="Content-Language" content="cs" />
|
17 |
|
|
<title>Administrace slovníku katedry blízkovýchoních studií</title>
|
18 |
|
|
<link rel="stylesheet" type="text/css" href="./css/kbs.css">
|
19 |
|
|
<script src="functions/popup.js" type="text/javascript"></script>
|
20 |
|
|
</head>
|
21 |
|
|
<body>
|
22 |
|
|
|
23 |
|
|
<?php ?>
|
24 |
|
|
|
25 |
|
|
<div id="left">
|
26 |
|
|
<h2 class="nadpis">Administrace</h2>
|
27 |
|
|
|
28 |
|
|
<div class="nadpis_sekce">
|
29 |
|
|
<i>Přihlášen:</i><br />
|
30 |
|
|
<?php echo "".$ses_name." ".$ses_surname."\n"?>
|
31 |
|
|
<br />
|
32 |
|
|
<?php if(kontrola_pristupu(3)) echo "Administrátor";
|
33 |
|
|
else echo "Uživatel (smí i zapisovat)";?>
|
34 |
|
|
<br />
|
35 |
|
|
<ul>
|
36 |
|
|
<li><a href="./<?php echo $_SESSION['ses_pref_dist'] ?>"><?php echo lang("Slovník") ?></a></li>
|
37 |
|
|
|
38 |
|
|
<?php if(kontrola_pristupu(2))
|
39 |
|
|
echo" <li> <a href=\"examination.php\">Zkoušení</a></li>";
|
40 |
|
|
?>
|
41 |
|
|
<li><a href="./<?php echo $_SESSION['ses_pref_dist'] ?>?akce=odhlasit"><?php echo lang("Odhlásit") ?></a></li>
|
42 |
|
|
</ul>
|
43 |
|
|
</div>
|
44 |
|
|
<?php
|
45 |
|
|
if (kontrola_pristupu(3)):
|
46 |
|
|
?>
|
47 |
|
|
<div class="nadpis_sekce"><strong>Uživatelé</strong></div>
|
48 |
|
|
<ul>
|
49 |
|
|
<li><a href="?nav_id=add_user" class="active">Přidat uživatele</a></li>
|
50 |
|
|
<li><a href="?nav_id=list_user" class="active">Vypiš uživatele</a></li>
|
51 |
|
|
</ul>
|
52 |
|
|
<?php
|
53 |
|
|
endif;
|
54 |
|
|
?>
|
55 |
|
|
<div class="nadpis_sekce"><strong>Slova</strong></div>
|
56 |
|
|
<ul>
|
57 |
|
|
<li><a href="?nav_id=add_word" class="active">Vložit nové slovo do studijního slovníku</a></li>
|
58 |
|
|
<?php
|
59 |
|
|
if (kontrola_pristupu(3)):
|
60 |
|
|
?>
|
61 |
|
|
<li><a href="?nav_id=list_word" class="active">Výpis ze studijního slovníku</a></li>
|
62 |
|
|
<li><a href="?nav_id=list_nonauthorized_word" class="active">Neautorizovaná slova</a></li>
|
63 |
|
|
<li><a href="?nav_id=list_duplicity" class="active">Duplicity</a></li>
|
64 |
|
|
|
65 |
|
|
<?php elseif(kontrola_pristupu(2)):?>
|
66 |
|
|
<!--li><a href="?nav_id=list_nonauthorized_word&contrains_user_id=<?php echo $ses_IDuser?>" class="active">Neautorizovaná slova</a></li-->
|
67 |
|
|
<li><a href="?nav_id=list_nonauthorized_word" class="active">Neautorizovaná slova</a></li>
|
68 |
|
|
<?php endif;?>
|
69 |
|
|
</ul>
|
70 |
|
|
|
71 |
|
|
<div class="nadpis_sekce"><strong>Testy</strong></div>
|
72 |
|
|
<ul>
|
73 |
|
|
<?php if(kontrola_pristupu(2)):?>
|
74 |
|
|
<li><a href="?nav_id=add_test" class="active">Vložit test</a></li>
|
75 |
|
|
<li><a href="?nav_id=list_test" class="active">Vypiš testy</a></li>
|
76 |
|
|
<li><a href="?nav_id=list_nonauthorized_test" class="active">Vypiš neutorizované testy</a></li>
|
77 |
|
|
<?php endif;?>
|
78 |
|
|
</ul>
|
79 |
|
|
<?php
|
80 |
|
|
//if (kontrola_pristupu(3)):
|
81 |
|
|
?>
|
82 |
|
|
<div class="nadpis_sekce"><strong>Články</strong></div>
|
83 |
|
|
<ul>
|
84 |
|
|
<li><a href="?nav_id=add_article" class="active">Vložit nový článek</a></li>
|
85 |
|
|
<li><a href="?nav_id=list_article" class="active">Vypiš články</a></li>
|
86 |
|
|
<li><a href="?nav_id=list_nonauthorized_article" class="active">Vypiš neautorizované články</a></li>
|
87 |
|
|
</ul>
|
88 |
|
|
<?php
|
89 |
|
|
|
90 |
|
|
if (kontrola_pristupu(3)):
|
91 |
|
|
?>
|
92 |
|
|
<div class="nadpis_sekce"><strong>Kategorie testů</strong></div>
|
93 |
|
|
<ul>
|
94 |
|
|
<li><a href="?nav_id=add_test_category" class="active">Vložit novou kategorii testu</a></li>
|
95 |
|
|
<li><a href="?nav_id=list_test_category" class="active">Vypiš kategorii testu</a></li>
|
96 |
|
|
</ul>
|
97 |
|
|
<?php
|
98 |
|
|
?>
|
99 |
|
|
<div class="nadpis_sekce"><strong>Obory</strong></div>
|
100 |
|
|
<ul>
|
101 |
|
|
<li><a href="?nav_id=add_field" class="active">Vložit nový obor</a></li>
|
102 |
|
|
<li><a href="?nav_id=list_field" class="active">Vypiš obory</a></li>
|
103 |
|
|
</ul>
|
104 |
|
|
<?php
|
105 |
|
|
|
106 |
|
|
?>
|
107 |
|
|
<div class="nadpis_sekce"><strong>Autoři</strong></div>
|
108 |
|
|
<ul>
|
109 |
|
|
<li><a href="?nav_id=add_author" class="active">Vložit nového autora</a></li>
|
110 |
|
|
<li><a href="?nav_id=list_author" class="active">Vypiš autory</a></li>
|
111 |
|
|
</ul>
|
112 |
|
|
<?php
|
113 |
|
|
|
114 |
|
|
?>
|
115 |
|
|
<div class="nadpis_sekce"><strong>Zdroje</strong></div>
|
116 |
|
|
<ul>
|
117 |
|
|
<li><a href="?nav_id=add_source" class="active">Vložit nový zdroj</a></li>
|
118 |
|
|
<li><a href="?nav_id=list_source" class="active">Vypiš zdroje</a></li>
|
119 |
|
|
</ul>
|
120 |
|
|
<?php
|
121 |
|
|
|
122 |
|
|
?>
|
123 |
|
|
<div class="nadpis_sekce"><strong>Nenalezená slova</strong></div>
|
124 |
|
|
<ul>
|
125 |
|
|
<li><a href="?nav_id=list_not_found_cz" class="active">Čeština</a></li>
|
126 |
|
|
<li><a href="?nav_id=list_not_found_en" class="active">Angličtina</a></li>
|
127 |
|
|
<li><a href="?nav_id=list_not_found_ar" class="active">Arabština</a></li>
|
128 |
|
|
<!--li><a href="?nav_id=list_source" class="active">Vypiš zdroje</a></li-->
|
129 |
|
|
</ul>
|
130 |
|
|
<?php
|
131 |
|
|
|
132 |
|
|
?>
|
133 |
|
|
<div class="nadpis_sekce"><strong>Překlady prostředí</strong></div>
|
134 |
|
|
<ul>
|
135 |
|
|
<li><a href="?nav_id=add_translation_lang" class="active">Vlož jazyk prostředí</a></li>
|
136 |
|
|
<li><a href="?nav_id=list_translation_lang" class="active">Vypiš jazyky</a></li>
|
137 |
|
|
<li><a href="?nav_id=list_translation" class="active">Uprav překlad</a></li>
|
138 |
|
|
</ul>
|
139 |
|
|
|
140 |
|
|
<div class="nadpis_sekce"><strong>Motivační zprávy</strong></div>
|
141 |
|
|
<ul>
|
142 |
|
|
<li><a href="?nav_id=list_report" class="active">Vypiš zprávy</a></li>
|
143 |
|
|
</ul>
|
144 |
|
|
<?php
|
145 |
|
|
|
146 |
|
|
endif;
|
147 |
|
|
?>
|
148 |
|
|
<div class="nadpis_sekce"><strong> </strong></div>
|
149 |
|
|
<?php copyright(); ?>
|
150 |
|
|
</div>
|
151 |
|
|
|
152 |
|
|
<div id="content">
|
153 |
|
|
<div class="content_home">
|
154 |
|
|
|
155 |
|
|
<?php $cesta = "./administration/";
|
156 |
|
|
|
157 |
|
|
// pr($_);
|
158 |
|
|
|
159 |
|
|
switch($nav_id) {
|
160 |
|
|
case("add_user") :
|
161 |
|
|
require_once($cesta."add_user.php");
|
162 |
|
|
break;
|
163 |
|
|
case("list_user") :
|
164 |
|
|
require_once($cesta."list_user.php");
|
165 |
|
|
break;
|
166 |
|
|
case("edit_user") :
|
167 |
|
|
require_once($cesta."edit_user.php");
|
168 |
|
|
break;
|
169 |
|
|
case("add_word") :
|
170 |
|
|
require_once($cesta."add_word.php");
|
171 |
|
|
break;
|
172 |
|
|
case("list_word") :
|
173 |
|
|
require_once($cesta."list_word.php");
|
174 |
|
|
break;
|
175 |
|
|
case("edit_word") :
|
176 |
|
|
require_once($cesta."edit_word.php");
|
177 |
|
|
break;
|
178 |
|
|
case("view_word") :
|
179 |
|
|
require_once($cesta."view_word.php");
|
180 |
|
|
break;
|
181 |
|
|
case("authorize_word") :
|
182 |
|
|
require_once($cesta."list_word.php");
|
183 |
|
|
break;
|
184 |
|
|
case("list_nonauthorized_word") :
|
185 |
|
|
require_once($cesta."list_word.php");
|
186 |
|
|
break;
|
187 |
|
|
case("list_duplicity") :
|
188 |
|
|
require_once($cesta."list_duplicity.php");
|
189 |
|
|
break;
|
190 |
|
|
/*case("sort_word") :
|
191 |
|
|
require_once($cesta."list_word.php");
|
192 |
|
|
break;*/
|
193 |
|
|
case("add_article") :
|
194 |
|
|
require_once($cesta."add_article.php");
|
195 |
|
|
break;
|
196 |
|
|
case("autorize_article") :
|
197 |
|
|
require_once($cesta."list_article.php");
|
198 |
|
|
break;
|
199 |
|
|
case("list_article") :
|
200 |
|
|
require_once($cesta."list_article.php");
|
201 |
|
|
break;
|
202 |
|
|
case("list_nonauthorized_article") :
|
203 |
|
|
require_once($cesta."list_article.php");
|
204 |
|
|
break;
|
205 |
|
|
case("edit_article") :
|
206 |
|
|
require_once($cesta."edit_article.php");
|
207 |
|
|
break;
|
208 |
|
|
case("add_article_voice") :
|
209 |
|
|
require_once($cesta."add_article_voice.php");
|
210 |
|
|
break;
|
211 |
|
|
case("add_field") :
|
212 |
|
|
require_once($cesta."add_field.php");
|
213 |
|
|
break;
|
214 |
|
|
case("list_field") :
|
215 |
|
|
require_once($cesta."list_field.php");
|
216 |
|
|
break;
|
217 |
|
|
case("edit_field") :
|
218 |
|
|
require_once($cesta."edit_field.php");
|
219 |
|
|
break;
|
220 |
|
|
case("add_test_category") :
|
221 |
|
|
require_once($cesta."add_test_category.php");
|
222 |
|
|
break;
|
223 |
|
|
case("list_test_category") :
|
224 |
|
|
require_once($cesta."list_test_category.php");
|
225 |
|
|
break;
|
226 |
|
|
case("edit_test_category") :
|
227 |
|
|
require_once($cesta."edit_test_category.php");
|
228 |
|
|
break;
|
229 |
|
|
case("add_author") :
|
230 |
|
|
require_once($cesta."add_author.php");
|
231 |
|
|
break;
|
232 |
|
|
case("list_author") :
|
233 |
|
|
require_once($cesta."list_author.php");
|
234 |
|
|
break;
|
235 |
|
|
case("edit_author") :
|
236 |
|
|
require_once($cesta."edit_author.php");
|
237 |
|
|
break;
|
238 |
|
|
case("add_source") :
|
239 |
|
|
require_once($cesta."add_source.php");
|
240 |
|
|
break;
|
241 |
|
|
case("list_source") :
|
242 |
|
|
require_once($cesta."list_source.php");
|
243 |
|
|
break;
|
244 |
|
|
case("edit_source") :
|
245 |
|
|
require_once($cesta."edit_source.php");
|
246 |
|
|
break;
|
247 |
|
|
case("delete_author_of_source") :
|
248 |
|
|
require_once($cesta."delete_author_of_source.php");
|
249 |
|
|
break;
|
250 |
|
|
case("add_author_of_source") :
|
251 |
|
|
require_once($cesta."add_author_of_source.php");
|
252 |
|
|
break;
|
253 |
|
|
case("add_context") :
|
254 |
|
|
require_once($cesta."add_context.php");
|
255 |
|
|
break;
|
256 |
|
|
case("link_context") :
|
257 |
|
|
require_once($cesta."link_context.php");
|
258 |
|
|
break;
|
259 |
|
|
case("delete_context") :
|
260 |
|
|
require_once($cesta."list_word.php");
|
261 |
|
|
break;
|
262 |
|
|
case("edit_context") :
|
263 |
|
|
require_once($cesta."edit_context.php");
|
264 |
|
|
break;
|
265 |
|
|
case("add_word_voice"):
|
266 |
|
|
require_once($cesta."add_word_voice.php");
|
267 |
|
|
break;
|
268 |
|
|
case("list_not_found_cz"):
|
269 |
|
|
require_once($cesta."list_not_found_cz.php");
|
270 |
|
|
break;
|
271 |
|
|
case("list_not_found_en"):
|
272 |
|
|
require_once($cesta."list_not_found_en.php");
|
273 |
|
|
break;
|
274 |
|
|
case("list_not_found_ar"):
|
275 |
|
|
require_once($cesta."list_not_found_ar.php");
|
276 |
|
|
break;
|
277 |
|
|
case("list_translation_lang"):
|
278 |
|
|
require_once($cesta."list_translation_lang.php");
|
279 |
|
|
break;
|
280 |
|
|
case("add_translation_lang"):
|
281 |
|
|
require_once($cesta."add_translation_lang.php");
|
282 |
|
|
break;
|
283 |
|
|
case("edit_translation_lang"):
|
284 |
|
|
require_once($cesta."edit_translation_lang.php");
|
285 |
|
|
break;
|
286 |
|
|
case("list_translation"):
|
287 |
|
|
require_once($cesta."list_translation.php");
|
288 |
|
|
break;
|
289 |
|
|
case("edit_translation"):
|
290 |
|
|
require_once($cesta."edit_translation.php");
|
291 |
|
|
break;
|
292 |
|
|
case("list_report"):
|
293 |
|
|
require_once($cesta."list_report.php");
|
294 |
|
|
break;
|
295 |
|
|
case("edit_report"):
|
296 |
|
|
require_once($cesta."edit_report.php");
|
297 |
|
|
break;
|
298 |
|
|
case("list_test"):
|
299 |
|
|
require_once($cesta."list_test.php");
|
300 |
|
|
break;
|
301 |
|
|
case("list_nonauthorized_test"):
|
302 |
|
|
require_once($cesta."list_test.php");
|
303 |
|
|
break;
|
304 |
|
|
case("authorize_test") :
|
305 |
|
|
require_once($cesta."list_test.php");
|
306 |
|
|
break;
|
307 |
|
|
case("edit_test"):
|
308 |
|
|
require_once($cesta."edit_test.php");
|
309 |
|
|
break;
|
310 |
|
|
case("detail_test"):
|
311 |
|
|
require_once($cesta."detail_test.php");
|
312 |
|
|
break;
|
313 |
|
|
case("add_test"):
|
314 |
|
|
require_once($cesta."add_test.php");
|
315 |
|
|
break;
|
316 |
|
|
case("desk") :
|
317 |
|
|
require_once($cesta."desk.php");
|
318 |
|
|
break;
|
319 |
|
|
default:
|
320 |
|
|
}
|
321 |
|
|
|
322 |
|
|
?></div>
|
323 |
|
|
</div>
|
324 |
|
|
<?php //pr($_SESSION); ?>
|
325 |
|
|
</body>
|
326 |
|
|
</html>
|