Example #1
0
            $nEconomic->setData(ECONOMIC_AREA_DESC, $nType);
            $nEconomic->setData(UPDATED_BY, $ThUserData[username]);
            $nEconomic->setData(DATE_UPDATED, $datetoday);
            $nEconomic->update($bbo);
            $bbo = "";
            $com = 'edit';
            ?>
                        <body onload='javascript:alert ("Record Successfully Updated");'></body>
                        <?php 
        }
    }
} elseif ($confx == 1) {
    $nEconomic = new EBPLSEconomic($dbLink, 'false');
    $nEconomic->delete($bbo);
    $bbo = "";
    $nCode = '';
    $nType = '';
    ?>
	<body onload='javascript:alert ("Record Deleted!!");'></body>
	<?php 
}
if ($com == 'edit' || $confx == 'cancel') {
    $nEconomic = new EBPLSEconomic($dbLink, 'false');
    $nEconomic->search($bbo, NULL);
    $nResult = $nEconomic->out;
    $industry_id = $nResult[economic_area_id];
    $nCode = $nResult[economic_area_code];
    $nType = $nResult[economic_area_desc];
}
include 'html/eBPLS_Economic_Area.html';
include 'pager/economic_area_page.php';
Example #2
0
}
// Define the number of results per page
$fromr = abs($pager * $max_resultsr - $max_resultsr);
if ($is_desc == 'DESC') {
    $is_desc = 'ASC';
} else {
    $is_desc = 'DESC';
}
if ($pagemulti == '') {
    $pagemulti = 1;
}
//echo $is_desc."VooDoo";
if ($orderkey == "") {
    $orderkey = "economic_area_code";
}
$nresult = new EBPLSEconomic($dbLink, 'false');
$nresult->pagesearch($fromr, $max_resultsr, $orderkey, $is_desc);
$fetarray = $nresult->rcount;
//echo $fetarray."VooDoo";
//echo $total_resultsr."Robert<br>";
$total_sr = @mysql_fetch_row($fetarray);
$total_resultsr = $total_sr[0];
//echo $fetarray[0]."VooDoo";
$fetchrecord = $nresult->out;
// Figure out the total number of pages. Always round up using ceil()
$total_pagesr = ceil($total_resultsr / $max_resultsr);
//echo $total_resultsr."VooDoo";
echo "<table border=0 width=100%><tr><td align=left><br />";
if ($pager > 1) {
    $prevr = $pager - 1;
    echo "<a href='index.php?part=4&class_type=Preference&selMode={$selMode}&action_=8&itemEvent=1&data_item=0&page=1&orderkey={$orderkey}&ascdesc1={$ascdesc1}'>&lt;&lt;</a>&nbsp;";