forked from bitweaver/nlpg
-
Notifications
You must be signed in to change notification settings - Fork 1
/
list_properties.php
38 lines (29 loc) · 1.2 KB
/
list_properties.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
/**
* @version $Header$
* Copyright (c) 2004 bitweaver nlpg
* @package nlpg
* @subpackage functions
*/
/**
* required setup
*/
require_once('../kernel/setup_inc.php' );
require_once(NLPG_PKG_PATH.'BitNlpg.php' );
// Is package installed and enabled
$gBitSystem->verifyPackage( 'nlpg' );
// Now check permissions to access this page
$gBitSystem->verifyPermission( 'p_nlpg_view' );
$nlpg = new BitNlpg();
$listHash = $_REQUEST;
$listnlpg = $nlpg->getPropertyList( $listHash );
// we will probably need a better way to do this
$listHash['listInfo']['ihash']['find_org'] = !empty( $listHash['find_org'] ) ? $listHash['find_org'] : '';
$listHash['listInfo']['ihash']['find_xao'] = !empty( $listHash['find_xao'] ) ? $listHash['find_xao'] : '';
$listHash['listInfo']['ihash']['find_street'] = !empty( $listHash['find_street'] ) ? $listHash['find_street'] : '';
$listHash['listInfo']['ihash']['find_postcode'] = !empty( $listHash['find_postcode'] ) ? $listHash['find_postcode'] : '';
$gBitSmarty->assign_by_ref('listInfo', $listHash['listInfo']);
$gBitSmarty->assign_by_ref('list', $listnlpg);
// Display the template
$gBitSystem->display('bitpackage:nlpg/list_properties.tpl', tra('Property record list') );
?>