1 |
6daefa8c
|
Petr Lukašík
|
<?php
|
2 |
|
|
|
3 |
|
|
|
4 |
|
|
/**
|
5 |
|
|
* pro zpetnou konpatibilitu po pridani hebrejstiny
|
6 |
|
|
*/
|
7 |
|
|
function insert_keyboard($text_field, $extended = false) {
|
8 |
|
|
global $language;
|
9 |
|
|
|
10 |
|
|
?>
|
11 |
|
|
|
12 |
|
|
<script type="text/javascript">
|
13 |
|
|
|
14 |
|
|
|
15 |
|
|
function insertAtCaret(obj, text) {
|
16 |
|
|
if(document.selection) {
|
17 |
|
|
/* First of all, focus the object, we want to work with
|
18 |
|
|
If we do not do so, it is possible, that the selection
|
19 |
|
|
is not, where we expect it to be
|
20 |
|
|
*/
|
21 |
|
|
obj.focus();
|
22 |
|
|
|
23 |
|
|
/* Create a TextRange based on the document.selection
|
24 |
|
|
This TextRanged can be used to replace the selected
|
25 |
|
|
Text with the new one
|
26 |
|
|
*/
|
27 |
|
|
var range = document.selection.createRange();
|
28 |
|
|
|
29 |
|
|
/* If the range is not part of our Object (remember the
|
30 |
|
|
textarea or input field), stop processing here
|
31 |
|
|
*/
|
32 |
|
|
if(range.parentElement() != obj) {
|
33 |
|
|
return false;
|
34 |
|
|
}
|
35 |
|
|
|
36 |
|
|
/* Save the current value. We will need this value later
|
37 |
|
|
to find out, where the text has been changed
|
38 |
|
|
*/
|
39 |
|
|
var orig = obj.value.replace(/rn/g, "n");
|
40 |
|
|
|
41 |
|
|
/* Replace the Text */
|
42 |
|
|
range.text = text;
|
43 |
|
|
|
44 |
|
|
/* Now get the new content and save it into
|
45 |
|
|
a temporary variable
|
46 |
|
|
*/
|
47 |
|
|
var actual = tmp = obj.value.replace(/rn/g, "n");
|
48 |
|
|
|
49 |
|
|
/* Find the first occurance, where the original differs
|
50 |
|
|
from the actual content. This could be the startposition
|
51 |
|
|
of our text selection, but it has not to be. Think of the
|
52 |
|
|
selection "ab" and replacing it with "ac". The first
|
53 |
|
|
difference would be the "c", while the start position
|
54 |
|
|
is the "a"
|
55 |
|
|
*/
|
56 |
|
|
for(var diff = 0; diff < orig.length; diff++) {
|
57 |
|
|
if(orig.charAt(diff) != actual.charAt(diff)) break;
|
58 |
|
|
}
|
59 |
|
|
|
60 |
|
|
/* To get the real start position, we iterate through
|
61 |
|
|
the string searching for the whole replacement
|
62 |
|
|
text - "abc", as long as the first difference is not
|
63 |
|
|
reached. If you do not understand that logic - no
|
64 |
|
|
blame to you, just copy & paste it ;)
|
65 |
|
|
*/
|
66 |
|
|
for(var index = 0, start = 0;
|
67 |
|
|
tmp.match(text)
|
68 |
|
|
&& (tmp = tmp.replace(text, ""))
|
69 |
|
|
&& index <= diff;
|
70 |
|
|
index = start + text.length
|
71 |
|
|
) {
|
72 |
|
|
start = actual.indexOf(text, index);
|
73 |
|
|
}
|
74 |
|
|
} else if(obj.selectionStart || obj.selectionStart == "0") {
|
75 |
|
|
/* Find the Start and End Position */
|
76 |
|
|
var start = obj.selectionStart;
|
77 |
|
|
var end = obj.selectionEnd;
|
78 |
|
|
|
79 |
|
|
/* Remember obj is a textarea or input field */
|
80 |
|
|
obj.value = obj.value.substr(0, start)
|
81 |
|
|
+ text
|
82 |
|
|
+ obj.value.substr(end, obj.value.length);
|
83 |
|
|
} else {
|
84 |
|
|
alert('Nepodporovay prohlizec');
|
85 |
|
|
}
|
86 |
|
|
|
87 |
|
|
position = start + text.length;
|
88 |
|
|
|
89 |
|
|
setCaretTo(obj, position);
|
90 |
|
|
}
|
91 |
|
|
|
92 |
|
|
function setCaretTo(obj, pos) {
|
93 |
|
|
if(obj.createTextRange) {
|
94 |
|
|
/* Create a TextRange, set the internal pointer to
|
95 |
|
|
a specified position and show the cursor at this
|
96 |
|
|
position
|
97 |
|
|
*/
|
98 |
|
|
var range = obj.createTextRange();
|
99 |
|
|
range.move("character", pos);
|
100 |
|
|
range.select();
|
101 |
|
|
} else if(obj.selectionStart) {
|
102 |
|
|
/* Gecko is a little bit shorter on that. Simply
|
103 |
|
|
focus the element and set the selection to a
|
104 |
|
|
specified position
|
105 |
|
|
*/
|
106 |
|
|
obj.focus();
|
107 |
|
|
obj.setSelectionRange(pos, pos);
|
108 |
|
|
}
|
109 |
|
|
}
|
110 |
|
|
|
111 |
|
|
</script>
|
112 |
|
|
|
113 |
|
|
<script type="text/javascript">
|
114 |
|
|
<!--
|
115 |
|
|
var kam = "<?php echo $text_field ?>";
|
116 |
|
|
|
117 |
|
|
function aktivujKlavesnici(param){
|
118 |
|
|
kam = param;
|
119 |
|
|
}
|
120 |
|
|
|
121 |
|
|
function add(znak) {
|
122 |
|
|
/*
|
123 |
|
|
//alert(kam + " " + znak);
|
124 |
|
|
eval("document."+kam+".value = document."+kam+".value + znak");
|
125 |
|
|
//document.getElementById(kam).value = document.getElementById(kam).value + znak;
|
126 |
|
|
eval("document."+kam+".focus()");
|
127 |
|
|
return false;
|
128 |
|
|
*/
|
129 |
|
|
obj = eval("document."+kam);
|
130 |
|
|
|
131 |
|
|
// alert(obj);
|
132 |
|
|
|
133 |
|
|
insertAtCaret(obj, znak);
|
134 |
|
|
return false;
|
135 |
|
|
}
|
136 |
|
|
|
137 |
|
|
function putchar(znak) {
|
138 |
|
|
add(znak);
|
139 |
|
|
return false;
|
140 |
|
|
}
|
141 |
|
|
-->
|
142 |
|
|
</script>
|
143 |
|
|
<?php
|
144 |
|
|
if (Empty($text_field)) {
|
145 |
|
|
$text_field = "form1.text1";
|
146 |
|
|
?>
|
147 |
|
|
<form name="form1">
|
148 |
|
|
<table align="center" cellpadding="0" cellspacing="0">
|
149 |
|
|
<tbody>
|
150 |
|
|
<tr>
|
151 |
|
|
<td dir="rtl">
|
152 |
|
|
<center>
|
153 |
|
|
<!--input type="text" SIZE="62" name="text1" value=""-->
|
154 |
|
|
<textarea
|
155 |
|
|
style="font-size: 11pt; color: rgb(0, 0, 0); font-family: Tahoma; background-color: rgb(222, 227, 231);"
|
156 |
|
|
name="text1"
|
157 |
|
|
rows="5"
|
158 |
|
|
wrap="PHYSICAL"
|
159 |
|
|
cols="61">
|
160 |
|
|
</textarea>
|
161 |
|
|
</center>
|
162 |
|
|
</td>
|
163 |
|
|
</td>
|
164 |
|
|
</tbody>
|
165 |
|
|
</table>
|
166 |
|
|
</form>
|
167 |
|
|
|
168 |
|
|
<?php
|
169 |
|
|
}
|
170 |
|
|
|
171 |
|
|
//echo $language;
|
172 |
|
|
if ($language == 2)
|
173 |
|
|
insert_keyboard_he($text_field, !$extended);
|
174 |
|
|
else if ($language == 3)
|
175 |
|
|
insert_keyboard_ak($text_field);
|
176 |
|
|
else
|
177 |
|
|
insert_keyboard_ar($text_field, $extended);
|
178 |
|
|
}
|
179 |
|
|
|
180 |
|
|
|
181 |
|
|
/**
|
182 |
|
|
* Staticka globalni promenna
|
183 |
|
|
* slouzi jako pocitadlo klavesnic - pri vkladani vice klavesnic do
|
184 |
|
|
* jednoho souboru.
|
185 |
|
|
*/
|
186 |
|
|
$pocet_klavesnic = 0;
|
187 |
|
|
|
188 |
|
|
|
189 |
|
|
function insert_keyboard_he($text_field, $notExtended) {
|
190 |
|
|
//echo "hebrejska klavesnice";
|
191 |
|
|
|
192 |
|
|
$cesta_k_obrazkum = "pict/";
|
193 |
|
|
global $pocet_klavesnic;
|
194 |
|
|
|
195 |
|
|
|
196 |
|
|
?>
|
197 |
|
|
|
198 |
|
|
<map name="keybd<?php echo $pocet_klavesnic; ?>" id="keybd<?php echo $pocet_klavesnic; ?>">
|
199 |
|
|
|
200 |
|
|
|
201 |
|
|
<area shape="rect" coords="86,3,107,31" onclick="return add('ק');" alt="ק" />
|
202 |
|
|
<area shape="rect" coords="114,3,139,31" onclick="return add('ר');" alt="ר" />
|
203 |
|
|
<area shape="rect" coords="145,3,167,31" onclick="return add('א');" alt="א" />
|
204 |
|
|
<area shape="rect" coords="174,3,196,31" onclick="return add('ט');" alt="ט" />
|
205 |
|
|
<area shape="rect" coords="202,3,226,31" onclick="return add('ו');" alt="ו" />
|
206 |
|
|
<area shape="rect" coords="232,3,256,31" onclick="return add('ן');" alt="ן" />
|
207 |
|
|
<area shape="rect" coords="261,3,285,31" onclick="add('ם');" alt="ם" />
|
208 |
|
|
<area shape="rect" coords="290,3,312,31" onclick="add('פ');" alt="פ" />
|
209 |
|
|
<area shape="rect" coords="34,37,56,61" onclick="add('ש');" alt="ש" />
|
210 |
|
|
<area shape="rect" coords="61,37,85,61" onclick="add('ד');" alt="ד" />
|
211 |
|
|
<area shape="rect" coords="92,37,114,61" onclick="add('ג');" alt="ג" />
|
212 |
|
|
<area shape="rect" coords="121,37,144,61" onclick="add('כ');" alt="כ" />
|
213 |
|
|
<area shape="rect" coords="151,37,173,61" onclick="add('ע');" alt="ע" />
|
214 |
|
|
<area shape="rect" coords="181,37,204,61" onclick="add('י');" alt="י" />
|
215 |
|
|
<area shape="rect" coords="209,37,232,61" onclick="add('ח');" alt="ח" />
|
216 |
|
|
<area shape="rect" coords="239,37,261,61" onclick="add('ל');" alt="ל" />
|
217 |
|
|
<area shape="rect" coords="268,37,291,61" onclick="add('ך');" alt="ך" />
|
218 |
|
|
<area shape="rect" coords="296,37,319,61" onclick="add('ף');" alt="ף" />
|
219 |
|
|
<area shape="rect" coords="51,66,71,90" onclick="add('ז');" alt="ז" />
|
220 |
|
|
<area shape="rect" coords="79,66,100,90" onclick="add('ס');" alt="ס" />
|
221 |
|
|
<area shape="rect" coords="107,66,129,90" onclick="add('ב');" alt="ב" />
|
222 |
|
|
<area shape="rect" coords="136,66,157,90" onclick="add('ה');" alt="ה" />
|
223 |
|
|
<area shape="rect" coords="165,66,187,89" onclick="add('נ');" alt="נ" />
|
224 |
|
|
<area shape="rect" coords="194,66,218,90" onclick="add('מ');" alt="מ" />
|
225 |
|
|
<area shape="rect" coords="225,66,247,90" onclick="add('צ');" alt="צ" />
|
226 |
|
|
<area shape="rect" coords="254,66,276,90" onclick="add('ת');" alt="ת" />
|
227 |
|
|
<area shape="rect" coords="282,66,305,90" onclick="add('ץ');" alt="ץ" />
|
228 |
|
|
|
229 |
|
|
|
230 |
|
|
<area shape="rect" coords="334,10,350,32" onclick="add('ַ');" alt="patah פתח" />
|
231 |
|
|
<area shape="rect" coords="334,38,350,60" onclick="add('ֿ');" alt="rafe רפה" />
|
232 |
|
|
<area shape="rect" coords="332,66,350,90" onclick="add('ָ');" alt="qamaz קמץ" />
|
233 |
|
|
<area shape="rect" coords="360,10,378,32" onclick="add('ֹ');" alt="holam חולם" />
|
234 |
|
|
<area shape="rect" coords="362,38,378,60" onclick="add('ּ');" alt="dagesh דגש" />
|
235 |
|
|
<area shape="rect" coords="360,68,378,88" onclick="add('ִ');" alt="hiriq חיריק" />
|
236 |
|
|
<area shape="rect" coords="390,10,406,32" onclick="add('ֻ');" alt="qubuz קובוץ" />
|
237 |
|
|
<area shape="rect" coords="388,38,406,60" onclick="add('ְ');" alt="shva שוא" />
|
238 |
|
|
<area shape="rect" coords="388,66,406,88" onclick="add('ֱ');" alt="hataf-segol חטף-סגול" />
|
239 |
|
|
<area shape="rect" coords="416,10,434,32" onclick="add('ֲ');" alt="hataf-patah חטף-פתח" />
|
240 |
|
|
<area shape="rect" coords="416,38,434,60" onclick="add('ֳ');" alt="hataf-qamaz חטף-קמץ" />
|
241 |
|
|
<area shape="rect" coords="416,68,434,88" onclick="add('ֵ');" alt="tsere צירה" />
|
242 |
|
|
<area shape="rect" coords="444,8,462,32" onclick="add('ֶ');" alt="segol סגול" />
|
243 |
|
|
<area shape="rect" coords="444,38,462,60" onclick="add('„');" alt="open hebrew quote פתח מרכאות" />
|
244 |
|
|
<area shape="rect" coords="444,66,464,88" onclick="add('”');" alt="close hebrew quote סגור מרכאות" />
|
245 |
|
|
<area shape="rect" coords="472,8,490,32" onclick="add('־');" alt="maqaf מקףקו מפריד" />
|
246 |
|
|
<area shape="rect" coords="472,38,490,60" onclick="add('ׂ');" alt="sin ש שמאלית" />
|
247 |
|
|
<area shape="rect" coords="472,66,490,90" onclick="add('ׁ');" alt="shin ש ימנית" />
|
248 |
|
|
|
249 |
|
|
</map>
|
250 |
|
|
|
251 |
|
|
<img src="<?php echo $cesta_k_obrazkum?>our-hebrew-keyb.gif"
|
252 |
|
|
usemap="#keybd<?php echo $pocet_klavesnic;?>"
|
253 |
|
|
class="sokrajem"
|
254 |
|
|
alt="hebrejská klávesnice" />
|
255 |
|
|
|
256 |
|
|
<?php
|
257 |
|
|
if (!$notExtended) {
|
258 |
|
|
insert_keyboard_ak($text_field);
|
259 |
|
|
}
|
260 |
|
|
|
261 |
|
|
$GLOBALS["pocet_klavesnic"] += 1;
|
262 |
|
|
}
|
263 |
|
|
|
264 |
|
|
|
265 |
|
|
/**
|
266 |
|
|
* Funkce vlozi do stranky js/klavesnici pro psani tech klikihacku:)
|
267 |
|
|
*
|
268 |
|
|
* @param $text_field "adresa" ciloveho vstupniho policka v libovolnem
|
269 |
|
|
* formulari (vcetne toho formulare Pr: 'form1.text1' )
|
270 |
|
|
*/
|
271 |
|
|
function insert_keyboard_ar($text_field, $extended) {
|
272 |
|
|
|
273 |
|
|
$cesta_k_obrazkum = "pict/";
|
274 |
|
|
global $pocet_klavesnic;
|
275 |
|
|
|
276 |
|
|
|
277 |
|
|
?>
|
278 |
|
|
|
279 |
|
|
<table border="0" cellpadding="10" cellspacing="0" width="530">
|
280 |
|
|
<tbody>
|
281 |
|
|
<tr>
|
282 |
|
|
<td class="bodyline">
|
283 |
|
|
<p align="center">
|
284 |
|
|
<img src="<?php echo $cesta_k_obrazkum?>key1.gif"
|
285 |
|
|
usemap="#key_<?php echo $pocet_klavesnic;?>"
|
286 |
|
|
border="0"
|
287 |
|
|
height="156"
|
288 |
|
|
width="450"
|
289 |
|
|
alt="arabská klávesnice" /><br />
|
290 |
|
|
<img src="<?php echo $cesta_k_obrazkum?>key2.gif"
|
291 |
|
|
usemap="#key2_<?php echo $pocet_klavesnic;?>"
|
292 |
|
|
border="0"
|
293 |
|
|
height="43"
|
294 |
|
|
width="354"
|
295 |
|
|
alt="arabská klávesnice" /><br />
|
296 |
|
|
<img src="<?php echo $cesta_k_obrazkum?>key3.gif"
|
297 |
|
|
usemap="#key3_<?php echo $pocet_klavesnic;?>"
|
298 |
|
|
border="0"
|
299 |
|
|
height="43"
|
300 |
|
|
width="354"
|
301 |
|
|
alt="arabská klávesnice" />
|
302 |
|
|
<img src="<?php echo $cesta_k_obrazkum?>key4.gif"
|
303 |
|
|
usemap="#key4_<?php echo $pocet_klavesnic;?>"
|
304 |
|
|
border="0"
|
305 |
|
|
height="43"
|
306 |
|
|
width="354"
|
307 |
|
|
alt="arabská klávesnice" />
|
308 |
|
|
</p>
|
309 |
|
|
|
310 |
|
|
<map name="key_<?php echo $pocet_klavesnic;?>">
|
311 |
|
|
<area onclick="add(' ');" shape="RECT" coords="119,123,292,146" alt=" " />
|
312 |
|
|
<area onclick="add('>');" shape="RECT" coords="7,5,32,29" alt=">" />
|
313 |
|
|
<area onclick="add('١');" shape="RECT" coords="37,4,60,26" alt="1" />
|
314 |
|
|
<area onclick="add('٢');" shape="RECT" coords="65,4,89,28" alt="2" />
|
315 |
|
|
<area onclick="add('٣');" shape="RECT" coords="96,3,117,28" alt="3" />
|
316 |
|
|
<area onclick="add('٤');" shape="RECT" coords="125,5,147,27" alt="4" />
|
317 |
|
|
<area onclick="add('٥');" shape="RECT" coords="155,5,176,28" alt="5" />
|
318 |
|
|
<area onclick="add('٦');" shape="RECT" coords="183,4,205,27" alt="6" />
|
319 |
|
|
<area onclick="add('٧');" shape="RECT" coords="212,5,235,27" alt="7" />
|
320 |
|
|
<area onclick="add('٨');" shape="RECT" coords="241,6,263,28" alt="8" />
|
321 |
|
|
<area onclick="add('٩');" shape="RECT" coords="271,6,292,30" alt="9" />
|
322 |
|
|
<area onclick="add('٠');" shape="RECT" coords="298,4,324,30" alt="0" />
|
323 |
|
|
<area onclick="add('ظ');" shape="RECT" coords="334,92,361,118" alt="ظ" />
|
324 |
|
|
<area onclick="add('ز');" shape="RECT" coords="306,92,331,114" alt="ز" />
|
325 |
|
|
<area onclick="add('و');" shape="RECT" coords="276,93,300,115" alt="و" />
|
326 |
|
|
<area onclick="add('ة');" shape="RECT" coords="246,93,271,115" alt="ة" />
|
327 |
|
|
<area onclick="add('ى');" shape="RECT" coords="219,91,245,115" alt="ى" />
|
328 |
|
|
<!--area onclick="add('لا');" shape="RECT" coords="190,91,214,115" alt="لا" /-->
|
329 |
|
|
<area onclick="add('ﻼ');" shape="RECT" coords="190,91,214,115" alt="ﻼ" />
|
330 |
|
|
<area onclick="add('ر');" shape="RECT" coords="159,93,186,115" alt="ر" />
|
331 |
|
|
<area onclick="add('ؤ');" shape="RECT" coords="130,95,153,118" alt="ؤ" />
|
332 |
|
|
<area onclick="add('ء');" shape="RECT" coords="101,90,127,117" alt="ء" />
|
333 |
|
|
<area onclick="add('ئ');" shape="RECT" coords="74,92,96,115" alt="ئ" />
|
334 |
|
|
<area onclick="add('ط');" shape="RECT" coords="351,61,376,88" alt="ط" />
|
335 |
|
|
<area onclick="add('ك');" shape="RECT" coords="321,63,348,86" alt="ك" />
|
336 |
|
|
<area onclick="add('م');" shape="RECT" coords="293,64,315,87" alt="م" />
|
337 |
|
|
<area onclick="add('ن');" shape="RECT" coords="263,63,286,87" alt="ن" />
|
338 |
|
|
<area onclick="add('ت');" shape="RECT" coords="234,62,258,85" alt="ت" />
|
339 |
|
|
<area onclick="add('ا');" shape="RECT" coords="206,64,229,87" alt="ا" />
|
340 |
|
|
<area onclick="add('ل');" shape="RECT" coords="178,64,200,87" alt="ل" />
|
341 |
|
|
<area onclick="add('ب');" shape="RECT" coords="148,63,170,86" alt="ب" />
|
342 |
|
|
<area onclick="add('ي');" shape="RECT" coords="118,64,142,89" alt="ي" />
|
343 |
|
|
<area onclick="add('س');" shape="RECT" coords="90,64,112,87" alt="س" />
|
344 |
|
|
<area onclick="add('ش');" shape="RECT" coords="60,64,84,86" alt="ش" />
|
345 |
|
|
<area onclick="add('د');" shape="RECT" coords="371,34,397,58" alt="د" />
|
346 |
|
|
<area onclick="add('ج');" shape="RECT" coords="343,35,368,59" alt="ج" />
|
347 |
|
|
<area onclick="add('ح');" shape="RECT" coords="315,33,339,58" alt="ح" />
|
348 |
|
|
<area onclick="add('خ');" shape="RECT" coords="285,35,310,60" alt="خ" />
|
349 |
|
|
<area onclick="add('ه');" shape="RECT" coords="255,34,280,57" alt="ه" />
|
350 |
|
|
<area onclick="add('ع');" shape="RECT" coords="229,34,251,57" alt="ع" />
|
351 |
|
|
<area onclick="add('غ');" shape="RECT" coords="198,35,222,58" alt="غ" />
|
352 |
|
|
<area onclick="add('ف');" shape="RECT" coords="169,34,193,57" alt="ف" />
|
353 |
|
|
<area onclick="add('ق');" shape="RECT" coords="140,33,165,58" alt="ق" />
|
354 |
|
|
<area onclick="add('ث');" shape="RECT" coords="110,35,134,57" alt="ث" />
|
355 |
|
|
<area onclick="add('ص');" shape="RECT" coords="82,36,103,57" alt="ص" />
|
356 |
|
|
<area onclick="add('ض');" shape="RECT" coords="51,35,71,55" alt="ض" />
|
357 |
|
|
</map>
|
358 |
|
|
|
359 |
|
|
<map name="key2_<?php echo $pocet_klavesnic;?>">
|
360 |
|
|
<area onclick="add('؛');" shape="RECT" coords="318,3,344,31" alt="؛" />
|
361 |
|
|
<area onclick="add('/');" shape="RECT" coords="282,4,308,32" alt="/" />
|
362 |
|
|
<area onclick="add('،');" shape="RECT" coords="255,6,277,31" alt="،" />
|
363 |
|
|
<area onclick="add('ـ');" shape="RECT" coords="225,3,248,30" alt="ـ" />
|
364 |
|
|
<area onclick="add('أ');" shape="RECT" coords="195,4,222,32" alt="أ" />
|
365 |
|
|
<area onclick="add('لأ');" shape="RECT" coords="168,6,192,32" alt="لأ" />
|
366 |
|
|
<area onclick="add('؟');" shape="RECT" coords="129,5,158,34" alt="؟" />
|
367 |
|
|
<area onclick="add('.');" shape="RECT" coords="102,6,127,32" alt="." />
|
368 |
|
|
<area onclick="add(',');" shape="RECT" coords="71,6,96,32" alt="," />
|
369 |
|
|
<area onclick="add('آ');" shape="RECT" coords="37,6,62,32" alt="آ" />
|
370 |
|
|
<area onclick="add('لآ');" shape="RECT" coords="8,6,31,30" alt="لآ" />
|
371 |
|
|
</map>
|
372 |
|
|
|
373 |
|
|
<map name="key3_<?php echo $pocet_klavesnic;?>">
|
374 |
|
|
<area onclick="add('ٌ');" shape="RECT" coords="318,3,344,31" alt="ٌ" />
|
375 |
|
|
<area onclick="add('ٍ');" shape="RECT" coords="282,4,308,32" alt="ٍ" />
|
376 |
|
|
<area onclick="add('ً');" shape="RECT" coords="255,6,277,31" alt="ً" />
|
377 |
|
|
<area onclick="add('ّ');" shape="RECT" coords="225,3,248,30" alt="ّ" />
|
378 |
|
|
<area onclick="add('ئ');" shape="RECT" coords="195,4,222,32" alt="ئ" />
|
379 |
|
|
<area onclick="add('ؤ');" shape="RECT" coords="168,6,192,32" alt="ؤ" />
|
380 |
|
|
<area onclick="add('ْ');" shape="RECT" coords="129,5,158,34" alt="ْ" />
|
381 |
|
|
<area onclick="add('ُ');" shape="RECT" coords="102,6,127,32" alt="ُ" />
|
382 |
|
|
<area onclick="add('ِ');" shape="RECT" coords="71,6,96,32" alt="ِ" />
|
383 |
|
|
<area onclick="add('َ');" shape="RECT" coords="37,6,62,32" alt="َ" />
|
384 |
|
|
<area onclick="add('ش');" shape="RECT" coords="8,6,31,30" alt="ش" />
|
385 |
|
|
</map>
|
386 |
|
|
|
387 |
|
|
<map name="key4_<?php echo $pocet_klavesnic;?>">
|
388 |
|
|
<!--area onclick="add('ٌ');" shape="RECT" coords="318,3,344,31" alt="" />
|
389 |
|
|
<area onclick="add('ٍ');" shape="RECT" coords="282,4,308,32" alt="" />
|
390 |
|
|
<area onclick="add('ً');" shape="RECT" coords="255,6,277,31" alt="" />
|
391 |
|
|
<area onclick="add('ّ');" shape="RECT" coords="225,3,248,30" alt="" />
|
392 |
|
|
<area onclick="add('ئ');" shape="RECT" coords="195,4,222,32" alt="" /-->
|
393 |
|
|
<area onclick="add('،');" shape="RECT" coords="168,6,192,32" alt="،" />
|
394 |
|
|
<area onclick="add('ﻷ');" shape="RECT" coords="129,5,158,34" alt="ﻷ" />
|
395 |
|
|
<area onclick="add('ﻹ');" shape="RECT" coords="102,6,127,32" alt="ﻹ" />
|
396 |
|
|
<area onclick="add('ﻻ');" shape="RECT" coords="71,6,96,32" alt="ﻻ" />
|
397 |
|
|
<area onclick="add('ٱ');" shape="RECT" coords="37,6,62,32" alt="ٱ" />
|
398 |
|
|
<area onclick="add('إ');" shape="RECT" coords="8,6,31,30" alt="إ" />
|
399 |
|
|
</map>
|
400 |
|
|
|
401 |
|
|
</td>
|
402 |
|
|
</tr>
|
403 |
|
|
</tbody>
|
404 |
|
|
</table>
|
405 |
|
|
<?php
|
406 |
|
|
if ($extended) insert_keyboard_ak($text_field);
|
407 |
|
|
$GLOBALS["pocet_klavesnic"] += 1;
|
408 |
|
|
}
|
409 |
|
|
|
410 |
|
|
function insert_keyboard_ak($text_field) {
|
411 |
|
|
//echo "hebrejska klavesnice";
|
412 |
|
|
|
413 |
|
|
$cesta_k_obrazkum = "pict/";
|
414 |
|
|
global $pocet_klavesnic;
|
415 |
|
|
|
416 |
|
|
|
417 |
|
|
?>
|
418 |
|
|
|
419 |
|
|
<table border="0" cellpadding="10" cellspacing="0">
|
420 |
|
|
<tbody>
|
421 |
|
|
<tr>
|
422 |
|
|
<td class="bodyline">
|
423 |
|
|
<p align="center">
|
424 |
|
|
<table>
|
425 |
|
|
<tr>
|
426 |
|
|
<td>
|
427 |
|
|
<input class="tlacitko1" style="height:25;width:25" type="button" value="á" onclick="add('á')" /></td>
|
428 |
|
|
<td>
|
429 |
|
|
<input class="tlacitko1" style="height:25;width:25" type="button" value="é" onclick="add('é')" /></td>
|
430 |
|
|
<td>
|
431 |
|
|
<input class="tlacitko1" style="height:25;width:25" type="button" value="í" onclick="add('í')" /></td>
|
432 |
|
|
<td>
|
433 |
|
|
<input class="tlacitko1" style="height:25;width:25" type="button" value="ú" onclick="add('ú')" /></td>
|
434 |
|
|
<td>
|
435 |
|
|
<input class="tlacitko1" style="height:25;width:25" type="button" value="ḥ" onclick="add('ḥ')" /></td>
|
436 |
|
|
<td>
|
437 |
|
|
<input class="tlacitko1" style="height:25;width:25" type="button" value="ś" onclick="add('ś')" /></td>
|
438 |
|
|
<td>
|
439 |
|
|
<input class="tlacitko1" style="height:25;width:25" type="button" value='Á' onclick="add('Á')" /></td>
|
440 |
|
|
<td>
|
441 |
|
|
<input class="tlacitko1" style="height:25;width:25" type="button" value="É" onclick="add('É')" /></td>
|
442 |
|
|
<td>
|
443 |
|
|
<input class="tlacitko1" style="height:25;width:25" type="button" value="Í" onclick="add('Í')" /></td>
|
444 |
|
|
<td>
|
445 |
|
|
<input class="tlacitko1" style="height:25;width:25" type="button" value="Ú" onclick="add('Ú')" /></td>
|
446 |
|
|
<td>
|
447 |
|
|
<input class="tlacitko1" style="height:25;width:25" type="button" value="Ḥ" onclick="add('Ḥ')" />
|
448 |
|
|
<input class="tlacitko1" style="height:25;width:25" type="button" value="Ś" onclick="add('Ś')" /></td>
|
449 |
|
|
</tr>
|
450 |
|
|
<tr>
|
451 |
|
|
<td>
|
452 |
|
|
<input class="tlacitko1" style="height:25;width:25" type="button" value='à' onclick="add('à')" /></td>
|
453 |
|
|
<td>
|
454 |
|
|
<input class="tlacitko1" style="height:25;width:25" type="button" value="è" onclick="add('è')" /></td>
|
455 |
|
|
<td>
|
456 |
|
|
<input class="tlacitko1" style="height:25;width:25" type="button" value="ì" onclick="add('ì')" /></td>
|
457 |
|
|
<td>
|
458 |
|
|
<input class="tlacitko1" style="height:25;width:25" type="button" value="ù" onclick="add('ù')" /></td>
|
459 |
|
|
<td>
|
460 |
|
|
<input class="tlacitko1" style="height:25;width:25" type="button" value="ò" onclick="add('ò')" /></td>
|
461 |
|
|
<td>
|
462 |
|
|
<input class="tlacitko1" style="height:25;width:25" type="button" value="ṯ" onclick="add('ṯ')" /></td>
|
463 |
|
|
<td>
|
464 |
|
|
<input class="tlacitko1" style="height:25;width:25" type="button" value="À" onclick="add('À')" /></td>
|
465 |
|
|
<td>
|
466 |
|
|
<input class="tlacitko1" style="height:25;width:25" type="button" value="È" onclick="add('È')" /></td>
|
467 |
|
|
<td>
|
468 |
|
|
<input class="tlacitko1" style="height:25;width:25" type="button" value="Ì" onclick="add('Ì')" /></td>
|
469 |
|
|
<td>
|
470 |
|
|
<input class="tlacitko1" style="height:25;width:25" type="button" value="Ù" onclick="add('Ù')" /></td>
|
471 |
|
|
<td>
|
472 |
|
|
<input class="tlacitko1" style="height:25;width:25" type="button" value="Ò" onclick="add('Ò')" /></td>
|
473 |
|
|
</tr>
|
474 |
|
|
<tr>
|
475 |
|
|
<td>
|
476 |
|
|
<input class="tlacitko1" style="height:25;width:25" type="button" value='â' onclick="add('â')" /></td>
|
477 |
|
|
<td>
|
478 |
|
|
<input class="tlacitko1" style="height:25;width:25" type="button" value="ê" onclick="add('ê')" /></td>
|
479 |
|
|
<td>
|
480 |
|
|
<input class="tlacitko1" style="height:25;width:25" type="button" value="î" onclick="add('î')" /></td>
|
481 |
|
|
<td>
|
482 |
|
|
<input class="tlacitko1" style="height:25;width:25" type="button" value="û" onclick="add('û')" /></td>
|
483 |
|
|
<td>
|
484 |
|
|
<input class="tlacitko1" style="height:25;width:25" type="button" value="ô" onclick="add('ô')" /></td>
|
485 |
|
|
<td>
|
486 |
|
|
<input class="tlacitko1" style="height:25;width:25" type="button" value="ḏ" onclick="add('ḏ')" /></td>
|
487 |
|
|
<td>
|
488 |
|
|
<input class="tlacitko1" style="height:25;width:25" type="button" value="Â" onclick="add('Â')" /></td>
|
489 |
|
|
<td>
|
490 |
|
|
<input class="tlacitko1" style="height:25;width:25" type="button" value="Ê" onclick="add('Ê')" /></td>
|
491 |
|
|
<td>
|
492 |
|
|
<input class="tlacitko1" style="height:25;width:25" type="button" value="Û" onclick="add('Û')" /></td>
|
493 |
|
|
<td>
|
494 |
|
|
<input class="tlacitko1" style="height:25;width:25" type="button" value="Ô" onclick="add('Ô')" /></td>
|
495 |
|
|
<td>
|
496 |
|
|
<input class="tlacitko2" style="height:25;width:15" type="button" value="⌈" onclick="add('⌈')" />
|
497 |
|
|
<input class="tlacitko2" style="height:25;width:15" type="button" value="⌉" onclick="add('⌉')" /></td>
|
498 |
|
|
</tr>
|
499 |
|
|
<tr>
|
500 |
|
|
<td>
|
501 |
|
|
<input class="tlacitko1" style="height:25;width:25" type="button" value='ā' onclick="add('ā')" /></td>
|
502 |
|
|
<td>
|
503 |
|
|
<input class="tlacitko1" style="height:25;width:25" type="button" value="ē" onclick="add('ē')" /></td>
|
504 |
|
|
<td>
|
505 |
|
|
<input class="tlacitko1" style="height:25;width:25" type="button" value="ī" onclick="add('ī')" /></td>
|
506 |
|
|
<td>
|
507 |
|
|
<input class="tlacitko1" style="height:25;width:25" type="button" value="ū" onclick="add('ū')" /></td>
|
508 |
|
|
<td>
|
509 |
|
|
<input class="tlacitko1" style="height:25;width:25" type="button" value="ō" onclick="add('ō')" /></td>
|
510 |
|
|
<td>
|
511 |
|
|
<input class="tlacitko1" style="height:25;width:25" type="button" value="ḍ" onclick="add('ḍ')" /></td>
|
512 |
|
|
<td>
|
513 |
|
|
<input class="tlacitko1" style="height:25;width:25" type="button" value="Ā" onclick="add('Ā')" /></td>
|
514 |
|
|
<td>
|
515 |
|
|
<input class="tlacitko1" style="height:25;width:25" type="button" value="Ē" onclick="add('Ē')" /></td>
|
516 |
|
|
<td>
|
517 |
|
|
<input class="tlacitko1" style="height:25;width:25" type="button" value="Ī" onclick="add('Ī')" /></td>
|
518 |
|
|
<td>
|
519 |
|
|
<input class="tlacitko1" style="height:25;width:25" type="button" value="Ū" onclick="add('Ū')" /></td>
|
520 |
|
|
<td>
|
521 |
|
|
<input class="tlacitko1" style="height:25;width:25" type="button" value="Ō" onclick="add('Ō')" /></td>
|
522 |
|
|
</tr>
|
523 |
|
|
<tr>
|
524 |
|
|
<td>
|
525 |
|
|
<input class="tlacitko2" style="height:25;width:25" type="button" value="ʾ" onclick="add('ʾ')" /></td>
|
526 |
|
|
<td>
|
527 |
|
|
<input class="tlacitko2" style="height:25;width:25" type="button" value="ʿ" onclick="add('ʿ')" /></td>
|
528 |
|
|
<td>
|
529 |
|
|
<input class="tlacitko1" style="height:25;width:25" type="button" value="ṣ" onclick="add('ṣ')" /></td>
|
530 |
|
|
<td>
|
531 |
|
|
<input class="tlacitko1" style="height:25;width:25" type="button" value="š" onclick="add('š')" /></td>
|
532 |
|
|
<td>
|
533 |
|
|
<input class="tlacitko1" style="height:25;width:25" type="button" value="ṭ" onclick="add('ṭ')" /></td>
|
534 |
|
|
<td>
|
535 |
|
|
<input class="tlacitko2" style="height:30;width:25" type="button" value="ḫ" onclick="add('ḫ')" /></td>
|
536 |
|
|
<td>
|
537 |
|
|
<input class="tlacitko2" style="height:30;width:25" type="button" value="Ṣ" onclick="add('Ṣ')" /></td>
|
538 |
|
|
<td>
|
539 |
|
|
<input class="tlacitko2" style="height:30;width:25" type="button" value="Š" onclick="add('Š')" /></td>
|
540 |
|
|
<td>
|
541 |
|
|
<input class="tlacitko2" style="height:30;width:25" type="button" value="Ṭ" onclick="add('Ṭ')" /></td>
|
542 |
|
|
<td>
|
543 |
|
|
<input class="tlacitko2" style="height:30;width:25" type="button" value="Ḫ" onclick="add('Ḫ')" /></td>
|
544 |
|
|
<td>
|
545 |
|
|
<input class="tlacitko2" style="height:25;width:15" type="button" value="[" onclick="add('[')" />
|
546 |
|
|
<input class="tlacitko2" style="height:25;width:15" type="button" value="]" onclick="add(']')" /></td>
|
547 |
|
|
</tr>
|
548 |
|
|
<tr>
|
549 |
|
|
<td>
|
550 |
|
|
<input class=tlacitko2 style="height:25;width:32" type="button" value="1" onclick="add('1')" /></td>
|
551 |
|
|
<td>
|
552 |
|
|
<input class=tlacitko2 style="height:25;width:32" type="button" value="2" onclick="add('2')" /></td>
|
553 |
|
|
<td>
|
554 |
|
|
<input class=tlacitko2 style="height:25;width:32" type="button" value="3" onclick="add('3')" /></td>
|
555 |
|
|
<td>
|
556 |
|
|
<input class=tlacitko2 style="height:25;width:32" type="button" value="4" onclick="add('4')" /></td>
|
557 |
|
|
<td>
|
558 |
|
|
<input class=tlacitko2 style="height:25;width:32" type="button" value="5" onclick="add('5')" /></td>
|
559 |
|
|
<td>
|
560 |
|
|
<input class=tlacitko2 style="height:25;width:32" type="button" value="6" onclick="add('6')" /></td>
|
561 |
|
|
<td>
|
562 |
|
|
<input class=tlacitko2 style="height:25;width:32" type="button" value="7" onclick="add('7')" /></td>
|
563 |
|
|
<td>
|
564 |
|
|
<input class=tlacitko2 style="height:25;width:32" type="button" value="8" onclick="add('8')" /></td>
|
565 |
|
|
<td>
|
566 |
|
|
<input class=tlacitko2 style="height:25;width:32" type="button" value="9" onclick="add('9')" /></td>
|
567 |
|
|
<td>
|
568 |
|
|
<input class=tlacitko2 style="height:25;width:32" type="button" value="0" onclick="add('0')" /></td>
|
569 |
|
|
<td>
|
570 |
|
|
<input class=tlacitko2 style="height:25;width:32" type="button" value="x" onclick="add('x')" /></td>
|
571 |
|
|
</tr>
|
572 |
|
|
|
573 |
|
|
<tr>
|
574 |
|
|
<td>
|
575 |
|
|
<input class=tlacitko2 style="height:25;width:32" type="button" value="ğ" onclick="add('ğ')" /></td>
|
576 |
|
|
<td>
|
577 |
|
|
<input class=tlacitko2 style="height:25;width:32" type="button" value="ẓ" onclick="add('ẓ')" /></td>
|
578 |
|
|
<td>
|
579 |
|
|
<input class=tlacitko2 style="height:25;width:32" type="button" value="ġ" onclick="add('ġ')" /></td>
|
580 |
|
|
<td>
|
581 |
|
|
<input class=tlacitko2 style="height:25;width:32" type="button" value="ֽ" onclick="add('ֽ')" title="meteq" /></td>
|
582 |
|
|
<td>
|
583 |
|
|
<input class=tlacitko2 style="height:25;width:32" type="button" value=" " onclick="add('')" /></td>
|
584 |
|
|
<td>
|
585 |
|
|
<input class=tlacitko2 style="height:25;width:32" type="button" value=" " onclick="add('')" /></td>
|
586 |
|
|
<td>
|
587 |
|
|
<input class=tlacitko2 style="height:25;width:32" type="button" value=" " onclick="add('')" /></td>
|
588 |
|
|
<td>
|
589 |
|
|
<input class=tlacitko2 style="height:25;width:32" type="button" value=" " onclick="add('')" /></td>
|
590 |
|
|
<td>
|
591 |
|
|
<input class=tlacitko2 style="height:25;width:32" type="button" value=" " onclick="add('')" /></td>
|
592 |
|
|
<td>
|
593 |
|
|
<input class=tlacitko2 style="height:25;width:32" type="button" value=" " onclick="add('')" /></td>
|
594 |
|
|
<td>
|
595 |
|
|
<input class=tlacitko2 style="height:25;width:32" type="button" value=" " onclick="add('')" /></td>
|
596 |
|
|
</tr>
|
597 |
|
|
</table>
|
598 |
|
|
</p>
|
599 |
|
|
</td>
|
600 |
|
|
</tr>
|
601 |
|
|
</tbody>
|
602 |
|
|
</table>
|
603 |
|
|
<?php
|
604 |
|
|
$GLOBALS["pocet_klavesnic"] += 1;
|
605 |
|
|
}
|
606 |
|
|
?>
|