-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAliasMgmtProcess.php
More file actions
55 lines (38 loc) · 1.2 KB
/
AliasMgmtProcess.php
File metadata and controls
55 lines (38 loc) · 1.2 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<?php
//calling function for all the cities
$cityArray = City::CityArr();
$smarty->assign("cityArray", $cityArray);
$smarty->assign('dirname',$dirName);
$orderby = 'ASC';
if(isset($_POST['asc_x'])) $orderby = 'ASC';
else if(isset($_POST['desc_x'])) $orderby = 'DESC';
$cityId = $_REQUEST['citydd'];
//$cityId = 1;
$smarty->assign('cityId',$cityId);
$suburbArr = array();
//die("here");
$locArr = array();
//$locArr = Locality::getLocalityByCity($cityId);
//die("here");
//print_r($locArr);
$smarty->assign('localityArr',$locArr);
//die("here");
$NearPlaceTypesArr = NearPlaceTypes::getNearPlaceTypesEnabled();
//print_r($NearPlaceTypesArr);
$smarty->assign("nearPlaceTypesArray", $NearPlaceTypesArr);
//die("here");
if(!empty($_REQUEST['near_place_type']))
{
$nearPlaceTypesId = $_REQUEST['near_place_type'];
$smarty->assign('nearPlaceTypesId',$nearPlaceTypesId);
//$suburbId = $_REQUEST['suburb'];
//$smarty->assign('suburbId',$suburbId);
// $projectArr = getProjectArr($suburbId,'suburb',$orderby);
}
$AliasesArr = array();
$AliasesArr = getAllAliases();
//print_r($AliasesArr);
//die("here");
$smarty->assign('aliasesArr',$AliasesArr);
$smarty->assign('url', TYPEAHEAD_API_URL);
?>