Ejemplo n.º 1
0
        $nlpg->OnsLARecordLoad($data);
    }
    fclose($handle);
}
$gBitSmarty->assign('local', $row);
$row = 0;
$handle = fopen("data/Ward.csv", "r");
if ($handle == FALSE) {
    $row = -999;
} else {
    while (($data = fgetcsv($handle, 4000, ",")) !== FALSE) {
        $row++;
        $nlpg->OnsWardRecordLoad($data);
    }
    fclose($handle);
}
$gBitSmarty->assign('ward', $row);
$row = 0;
$handle = fopen("data/Parish.csv", "r");
if ($handle == FALSE) {
    $row = -999;
} else {
    while (($data = fgetcsv($handle, 4000, ",")) !== FALSE) {
        $row++;
        $nlpg->OnsParishRecordLoad($data);
    }
    fclose($handle);
}
$gBitSmarty->assign('parish', $row);
$nlpg->OnsRecordsFix();
$gBitSystem->display('bitpackage:nlpg/load_ons.tpl', tra('Load results: '));