forked from bitweaver/nlpg
-
Notifications
You must be signed in to change notification settings - Fork 1
/
list_streets.php
37 lines (28 loc) · 878 Bytes
/
list_streets.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
<?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();
$_REQUEST['list'] = 'street';
$listHash = $_REQUEST;
$listnlpg = $nlpg->getOsnList( $listHash );
if ( isset( $listHash['listInfo']['find'] ) ) {
$listHash['listInfo']['ihash']['find_objects'] = $listHash['listInfo']['find'];
}
$gBitSmarty->assign_by_ref('listInfo', $listHash['listInfo']);
$gBitSmarty->assign_by_ref('list', $listnlpg);
// Display the template
$gBitSystem->display('bitpackage:nlpg/list_streets.tpl', tra('Street record detail') );
?>