-
Notifications
You must be signed in to change notification settings - Fork 1
/
tmcview.php
38 lines (38 loc) · 1.03 KB
/
tmcview.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?php
if(array_key_exists('q', $_REQUEST) && (trim($_REQUEST['q']) != ''))
{
// Search requested
include_once("tmcsearch.php");
tmc_search();
}
else if(!array_key_exists('cid', $_REQUEST))
{
// No country chosen - display country list.
include_once("tmccountries.php");
tmc_countries();
}
else if(!array_key_exists('tabcd', $_REQUEST))
{
// Country chosen, but no table chosen - display table list.
include_once("tmctables.php");
tmc_tables();
}
else if(array_key_exists('lcd', $_REQUEST))
{
// Country, table and location chosen - display data for this location.
include_once("tmclocation.php");
tmc_location();
}
else if(array_key_exists('class', $_REQUEST) && array_key_exists('tcd', $_REQUEST) && array_key_exists('stcd', $_REQUEST))
{
// Country, table and location type chosen - show list with locations of this type.
include_once("tmclocations.php");
tmc_locations();
}
else
{
// Only country and table chosen - display list of location types.
include_once("tmctypes.php");
tmc_types();
}
?>