Ejemplo n.º 1
0
<?php

/*
 * Created on 5 Jan 2008
 *
 * To change the template for this generated file go to
 * Window - Preferences - PHPeclipse - PHP - Code Templates
 */
// Initialization
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_admin');
$nlpg = new BitNlpg();
//$listnlpg = $nlpg->getList( $_REQUEST );
set_time_limit(0);
$nlpg->NlpgExpunge();
$row = 1;
$no11 = 0;
$no12 = 0;
$no15 = 0;
$no21 = 0;
$no22 = 0;
$no23 = 0;
$no24 = 0;
$no25 = 0;
$no26 = 0;
$no27 = 0;
$handle = fopen("data/Full.csv", "r");
Ejemplo n.º 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();
$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->assignByRef('listInfo', $listHash['listInfo']);
$gBitSmarty->assignByRef('list', $listnlpg);
// Display the template
$gBitSystem->display('bitpackage:nlpg/list_properties.tpl', tra('Property record list'));
Ejemplo n.º 3
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'));
Ejemplo n.º 4
0
<?php

/*
 * Created on 5 Jan 2008
 *
 * To change the template for this generated file go to
 * Window - Preferences - PHPeclipse - PHP - Code Templates
 */
// Initialization
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_admin');
$nlpg = new BitNlpg();
//$listnlpg = $nlpg->getList( $_REQUEST );
set_time_limit(0);
$nlpg->UKPCExpunge();
$row = 1;
$handle = fopen("data/FullUKPostcode.csv", "r");
while (($data = fgetcsv($handle, 4000, ",")) !== FALSE) {
    $num = count($data);
    $row++;
    $nlpg->UKPCRecordLoad($data);
}
fclose($handle);
$gBitSmarty->assign('row', $row);
$gBitSystem->display('bitpackage:nlpg/load_ukpc.tpl', tra('Load results: '));
Ejemplo n.º 5
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'));
Ejemplo n.º 6
0
<?php

/*
 * Created on 5 Jan 2008
 *
 * To change the template for this generated file go to
 * Window - Preferences - PHPeclipse - PHP - Code Templates
 */
// Initialization
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_admin');
$nlpg = new BitNlpg();
//$listnlpg = $nlpg->getList( $_REQUEST );
$nlpg->OnsExpunge();
$row = 0;
$handle = fopen("data/Local_Authorities.csv", "r");
if ($handle == FALSE) {
    $row = -999;
} else {
    while (($data = fgetcsv($handle, 400, ",")) !== FALSE) {
        $row++;
        $nlpg->OnsLARecordLoad($data);
    }
    fclose($handle);
}
$gBitSmarty->assign('local', $row);
$row = 0;