1
|
<?php
|
2
|
|
3
|
require_once('./inc/all.inc.php');
|
4
|
|
5
|
//aplikacni logika - predelat
|
6
|
if ( !empty($_REQUEST['id_transliteration']) ) {
|
7
|
require_once('./logic/show-transliteration-info.logic.php');
|
8
|
}
|
9
|
//konec aplikacni logiky
|
10
|
|
11
|
//zobrazeni
|
12
|
$tpl = & new Template(INDEX_TMPL);
|
13
|
|
14
|
if (Empty($_POST['actionButton'])) {
|
15
|
$body = & new Template('./tmpl/transliteration-info-edit.tmpl.php');
|
16
|
|
17
|
$body->set('id_transliteration', $_REQUEST['id_transliteration']);
|
18
|
$body->set('button_label', $sec_button_label);
|
19
|
$body->set('POST', $result );
|
20
|
}
|
21
|
//treti krok
|
22
|
else {
|
23
|
$body = & new Template('./logic/edit-transliteration-info.logic.php');
|
24
|
$body->set('POST', $_REQUEST );
|
25
|
}
|
26
|
|
27
|
$tpl->set('obsah', $body);
|
28
|
|
29
|
echo $tpl->fetch(INDEX_TMPL);
|
30
|
|
31
|
//p_g($result);
|
32
|
//p_g($_POST);
|
33
|
|
34
|
?>
|