Example #1
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 = "engine_type_desc";
}
$nresult = new EBPLSEngine($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;";
Example #2
0
            $nCitizenship->setData(ENGINE_TYPE_DESC, $nCode);
            $nCitizenship->update($bbo);
            $bbo = "";
            ?>
                        <body onload='UptRec();'></body>
                        <?php 
        }
    }
} elseif ($confx == 1) {
    $check1 = mysql_query("select * from ebpls_owner where owner_citizenship = '{$bbo}'");
    $check1 = mysql_num_rows($check1);
    if ($check1 > 0) {
        ?>
		<body onload='javascript:alert ("Cannot Delete. Record exist in other table(s).");'></body>
		<?php 
    } else {
        $nCitizenship = new EBPLSEngine($dbLink, 'false');
        $nCitizenship->delete($bbo);
        $bbo = "";
        ?>
		<body onload='DelRec();'></body>
		<?php 
    }
}
$nCitizenship = new EBPLSEngine($dbLink, 'false');
$nCitizenship->search($bbo, NULL);
$nResult = $nCitizenship->out;
$industry_id = $nResult[engine_type_id];
$nCode = $nResult[engine_type_desc];
include 'html/engine_type.html';
include 'pager/engine_type_page.php';