Exemple #1
0
 * @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();
$listnlpg = $nlpg->getOsnList($_REQUEST);
$gBitSmarty->assignByRef('listInfo', $_REQUEST['listInfo']);
$gBitSmarty->assignByRef('list', $listnlpg);
if (isset($_REQUEST['listInfo'])) {
    $gBitSmarty->assignByRef('l_id', $_REQUEST['l_id']);
}
if (isset($_REQUEST['listInfo'])) {
    $gBitSmarty->assignByRef('c_id', $_REQUEST['c_id']);
}
// Display the template
if ($_REQUEST['list'] == 'county') {
    $gBitSystem->display('bitpackage:nlpg/list_county.tpl', tra('Counties'));
} else {
    if ($_REQUEST['list'] == 'local') {
        $gBitSystem->display('bitpackage:nlpg/list_local.tpl', tra('Local Authorities'));
    } else {
Exemple #2
0
<?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->assignByRef('listInfo', $listHash['listInfo']);
$gBitSmarty->assignByRef('list', $listnlpg);
// Display the template
$gBitSystem->display('bitpackage:nlpg/list_streets.tpl', tra('Street record detail'));