1 |
6daefa8c
|
Petr Lukašík
|
<?php
|
2 |
|
|
|
3 |
|
|
require_once('./inc/all.inc.php');
|
4 |
|
|
|
5 |
|
|
//aplikacni logika
|
6 |
|
|
if ( !empty($_REQUEST['id_transliteration']) ) {
|
7 |
|
|
require_once('./logic/show-transliteration.logic.php');
|
8 |
|
|
}
|
9 |
|
|
//konec aplikacni logiky
|
10 |
|
|
|
11 |
|
|
$tpl = & new Template(INDEX_TMPL);
|
12 |
|
|
$body = & new Template('./tmpl/show-transliteration.tmpl.php');
|
13 |
|
|
if ( !empty($_REQUEST['id_transliteration']) ) {
|
14 |
|
|
$body->set('found_cat', $SearchCatalog->getResult());
|
15 |
|
|
$body->set('transliteration_count', $SearchCatalog->getCount());
|
16 |
|
|
$body->set('POST', $Transliteration->getResult());
|
17 |
|
|
$body->set('object_type_array', utils_get_object_types());
|
18 |
|
|
$body->set('surface_type_array', utils_get_surface_types());
|
19 |
|
|
$body->set('id_transliteration', $_REQUEST['id_transliteration']);
|
20 |
|
|
$body->set('searchtext1', $_REQUEST['searchtext1']);
|
21 |
|
|
$body->set('searchtext2', $_REQUEST['searchtext2']);
|
22 |
|
|
$body->set('searchtext3', $_REQUEST['searchtext3']);
|
23 |
|
|
$body->set('references', $Reference->getResult());
|
24 |
|
|
$body->set('rev_history', $Transliteration->getRevHistory());
|
25 |
|
|
$body->set('photos', $Transliteration->getPhotos());
|
26 |
|
|
$body->set('handcopies', $Transliteration->getHandcopies());
|
27 |
|
|
}
|
28 |
|
|
|
29 |
|
|
$tpl->set('obsah', $body);
|
30 |
|
|
|
31 |
|
|
echo $tpl->fetch();
|
32 |
|
|
|
33 |
|
|
//p_g($_REQUEST);
|
34 |
|
|
?>
|