1 |
6daefa8c
|
Petr Lukašík
|
<?php
|
2 |
|
|
require_once("./functions/dictionary.php");
|
3 |
|
|
if (!Empty($_GET['akce']) && $_GET['akce'] == "odhlasit") {
|
4 |
|
|
odhlasit();
|
5 |
|
|
$hlaska = lang("Byl jste odhlasen!!!");
|
6 |
|
|
}
|
7 |
|
|
if (!Empty($_GET['set_lang'])) {
|
8 |
|
|
session_register("LaId");
|
9 |
|
|
$LaId = $_GET['set_lang'];
|
10 |
|
|
}
|
11 |
|
|
if (!Empty($_POST['n']) && !Empty($_POST['p'])) {
|
12 |
|
|
if(prihlasit($_POST['n'], $_POST['p'])) {
|
13 |
|
|
session_register('ses_pref_dist');
|
14 |
|
|
$_SESSION['ses_pref_dist'] = 'hebrew';
|
15 |
|
|
if ( !empty($_REQUEST['action']) && $_REQUEST['action'] == 'select_lection')
|
16 |
|
|
Header ("Location: examination.php?nav_id=new_exam&action=select_lection&source=".urlencode($_REQUEST['source'])."&lection=".urlencode($_REQUEST['lection']));
|
17 |
|
|
else
|
18 |
|
|
//p_g($_SESSION);
|
19 |
|
|
Header ("Location: examination.php?poprve=$poprve");
|
20 |
|
|
exit;
|
21 |
|
|
}
|
22 |
|
|
else {
|
23 |
|
|
$hlaska = lang("Heslo nebo login jsou nesprávně!!!");
|
24 |
|
|
}
|
25 |
|
|
}
|
26 |
|
|
elseif(Empty($_POST['send']) || $_POST['send'] != lang("Přihlásit")) {
|
27 |
|
|
$hlaska = "";
|
28 |
|
|
}
|
29 |
|
|
else {
|
30 |
|
|
$hlaska = lang("Nebyl vyplněn celý formulář!!!");
|
31 |
|
|
}
|
32 |
|
|
|
33 |
|
|
$language = 2;//hebrew
|
34 |
|
|
|
35 |
|
|
// PROGRAM
|
36 |
|
|
require_once("./examination/article.php");
|
37 |
|
|
|
38 |
|
|
/*<?xml version="1.0" encoding="utf8"?>*/
|
39 |
|
|
|
40 |
|
|
?>
|
41 |
|
|
<!DOCTYPE html
|
42 |
|
|
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
43 |
|
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
44 |
|
|
|
45 |
|
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="cs" lang="cs">
|
46 |
|
|
|
47 |
|
|
<head>
|
48 |
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
49 |
|
|
<title><?php echo lang("Hebrejsko - česko - anglický slovník"); ?></title>
|
50 |
|
|
<link rel="stylesheet" type="text/css" media="all" href="css/hebrewindex.css" />
|
51 |
|
|
<!--[if IE ]>
|
52 |
|
|
<link rel="stylesheet" type="text/css" media="all" href="css/cssie.css" />
|
53 |
|
|
<![endif]-->
|
54 |
|
|
</head>
|
55 |
|
|
|
56 |
|
|
<body>
|
57 |
|
|
<div id="all">
|
58 |
|
|
<div id="center">
|
59 |
|
|
<div id="header">
|
60 |
|
|
<div id="navig">
|
61 |
|
|
<h1><?php echo lang("Hebrejský slovník"); ?></h1>
|
62 |
|
|
<div id="menu">
|
63 |
|
|
<ul>
|
64 |
|
|
<li><a href="hebrew" title="online preklad - Hebrejsko - česko - anglický slovník">Online překlad</a></li>
|
65 |
|
|
<li><a href="arabic" title="Arabský slovník">Arabský slovník</a></li>
|
66 |
|
|
<?php if (kontrola_pristupu()):?>
|
67 |
|
|
<?php if(kontrola_pristupu(1))
|
68 |
|
|
echo" <li><a href=\"examination.php\">Zkoušení</a></li>";
|
69 |
|
|
?>
|
70 |
|
|
<?php if(kontrola_pristupu(2))
|
71 |
|
|
echo" <li><a href=\"administration.php\">Admin</a></li>";
|
72 |
|
|
?>
|
73 |
|
|
<?php else: ?>
|
74 |
|
|
<!--li><a href="new_registration.php"><?php echo lang("Registrace") ?></a></li-->
|
75 |
|
|
<?php endif; ?>
|
76 |
|
|
</ul>
|
77 |
|
|
</div><!-- konec menu -->
|
78 |
|
|
</div><!-- konec navig -->
|
79 |
|
|
<div id="login">
|
80 |
|
|
<?php require('inc/prihlaseni-nove.php'); ?>
|
81 |
|
|
</div><!-- konec login -->
|
82 |
|
|
</div><!-- konec header -->
|
83 |
|
|
|
84 |
|
|
<?php
|
85 |
|
|
if (Empty($_REQUEST['direction'])) {
|
86 |
|
|
$_REQUEST['direction'] = 'he';
|
87 |
|
|
}
|
88 |
|
|
switch ($_REQUEST['direction']) {
|
89 |
|
|
case("cz"):
|
90 |
|
|
$vyzva = lang("Zadejte slovo v češtině:");
|
91 |
|
|
$klavesnice = false;
|
92 |
|
|
break;
|
93 |
|
|
case("en"):
|
94 |
|
|
$vyzva = lang("Zadejte slovo v angličtině:");
|
95 |
|
|
$klavesnice = false;
|
96 |
|
|
break;
|
97 |
|
|
case("he"):
|
98 |
|
|
default:
|
99 |
|
|
$vyzva = lang("Zadejte slovo v hebrejštině:");
|
100 |
|
|
$klavesnice = true;
|
101 |
|
|
break;
|
102 |
|
|
}
|
103 |
|
|
$pomocna = lang("z češtiny");
|
104 |
|
|
if ( $_REQUEST['direction'] != "cz" ) {
|
105 |
|
|
$odkazcz = "<a href=\"?direction=cz\">$pomocna</a>\n";
|
106 |
|
|
$tridacz = '';
|
107 |
|
|
}
|
108 |
|
|
else {
|
109 |
|
|
$odkazcz = " $pomocna \n";
|
110 |
|
|
$tridacz = ' class="chosen"';
|
111 |
|
|
}
|
112 |
|
|
|
113 |
|
|
$pomocna = lang("z angličtiny");
|
114 |
|
|
if ( $_REQUEST['direction'] != "en" ) {
|
115 |
|
|
$odkazen = "<a href=\"?direction=en\">$pomocna</a>\n";
|
116 |
|
|
$tridaen = '';
|
117 |
|
|
}
|
118 |
|
|
else {
|
119 |
|
|
$odkazen = " $pomocna \n";
|
120 |
|
|
$tridaen = ' class="chosen"';
|
121 |
|
|
}
|
122 |
|
|
|
123 |
|
|
$pomocna = lang("z hebrejštiny");
|
124 |
|
|
if ( $_REQUEST['direction'] != "he" ) {
|
125 |
|
|
$odkaztr = "<a href=\"?direction=he\">$pomocna</a>\n";
|
126 |
|
|
$tridatr = '';
|
127 |
|
|
}
|
128 |
|
|
else {
|
129 |
|
|
$odkaztr = " $pomocna \n";
|
130 |
|
|
$tridatr = ' class="chosen"';
|
131 |
|
|
}
|
132 |
|
|
|
133 |
|
|
?>
|
134 |
|
|
|
135 |
|
|
<div id="desk">
|
136 |
|
|
<div id="flags">
|
137 |
|
|
<ul>
|
138 |
|
|
<li<?php echo $tridacz ?>><span><?php echo $odkazcz ?></span></li>
|
139 |
|
|
<li<?php echo $tridaen ?>><span><?php echo $odkazen ?></span></li>
|
140 |
|
|
<li<?php echo $tridatr ?>><span><?php echo $odkaztr ?></span></li>
|
141 |
|
|
</ul>
|
142 |
|
|
</div><!-- konec flags -->
|
143 |
|
|
<div id="card" class="rounded">
|
144 |
|
|
<form id="translate_form" name="translate_form" action="hebrew" method="post">
|
145 |
|
|
<div class="sokrajem sinnerokrajem">
|
146 |
|
|
<input type="text" class="big<?php if($klavesnice) echo ' arabic' ?>" name="text1" id="text1" title="hledane slovo" />
|
147 |
|
|
<input type="submit" value="<?php echo lang("Přelož") ?>" />
|
148 |
|
|
<input type="hidden" name="direction" value="<?php echo $direction?>" />
|
149 |
|
|
<input type="hidden" name="actione" value="translate" />
|
150 |
|
|
|
151 |
|
|
<?php
|
152 |
|
|
if($klavesnice) {
|
153 |
|
|
require("./functions/keyboard.php");
|
154 |
|
|
insert_keyboard("translate_form.text1");
|
155 |
|
|
}
|
156 |
|
|
|
157 |
|
|
if (!Empty($actione) && $actione == "translate") {
|
158 |
|
|
require_once("./functions/dictionary.php");
|
159 |
|
|
print_translation($text1, $_REQUEST['direction'], $language);
|
160 |
|
|
}
|
161 |
|
|
?>
|
162 |
|
|
|
163 |
|
|
|
164 |
|
|
</div>
|
165 |
|
|
</form>
|
166 |
|
|
<div class="copyright" style="border-top:solid 1px #aaa;font-size:10px;margin:15px 0pt 0pt;padding:2px;valign:middle">
|
167 |
|
|
<img src="pict/zcu_logo.png"
|
168 |
|
|
alt="Západočeská univerzita v Plzni - logo"
|
169 |
|
|
/>
|
170 |
|
|
Copyright © 2007
|
171 |
|
|
<a href="http://www.zcu.cz" title="Západočeská univerzita v Plzni">Západočeská univerzita</a>
|
172 |
|
|
<a href="http://www.kbs.zcu.cz/" title="Centrum blízkovýchodních studií">Centrum blízkovýchodních studií</a>
|
173 |
|
|
</span>
|
174 |
|
|
</div>
|
175 |
|
|
<div style="">
|
176 |
|
|
|
177 |
|
|
<span>
|
178 |
|
|
</div>
|
179 |
|
|
</div><!-- konec card -->
|
180 |
|
|
</div>
|
181 |
|
|
</div><!-- konec center -->
|
182 |
|
|
</div><!-- konec all -->
|
183 |
|
|
|
184 |
|
|
<?php //pr( $_SESSION ) ?>
|
185 |
|
|
|
186 |
|
|
<script type="text/javascript">
|
187 |
|
|
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
|
188 |
|
|
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
|
189 |
|
|
</script>
|
190 |
|
|
<script type="text/javascript">
|
191 |
|
|
try {
|
192 |
|
|
var pageTracker = _gat._getTracker("UA-4912419-6");
|
193 |
|
|
pageTracker._trackPageview();
|
194 |
|
|
} catch(err) {}</script>
|
195 |
|
|
|
196 |
|
|
</body>
|
197 |
|
|
|
198 |
|
|
</html>
|