} } elseif ($confx == 1) { $nRequirements = new EBPLSTFO($dbLink, 'false'); $datetoday = date("Y-m-d H:i:s"); $nRequirements->checksearch($bbo); $nResult = $nRequirements->rcount; if ($nResult > 0) { ?> <body onload='javascript:alert ("Cannot Delete, Existing Record found in other table!!");'></body> <?php } else { $nRequirements = new EBPLSTFO($dbLink, 'false'); $nRequirements->delete($bbo); ?> <body onload='javascript:alert ("Record Successfully Deleted!!");'></body> <?php } $bbo = ""; } if ($com == "edit") { $nRequirements = new EBPLSTFO($dbLink, 'false'); $nRequirements->search($bbo, NULL); $nResult = $nRequirements->out; $iDesc = $nResult[tfodesc]; $iTFOType = $nResult[taxfeetype]; $iDefAmount = $nResult[defamt]; $iYearType = $nResult[or_print]; $iNoYear = $nResult[counter]; $itfoindicator = $nResult[tfoindicator]; } include 'html/eBPLS_tfo.html';
} else { if ($is_desc == 'DESC') { $is_desc = 'ASC'; } else { $is_desc = 'DESC'; } } $is_asc = $is_desc; if ($pagemulti == '') { $pagemulti = 1; } //echo $is_desc."VooDoo"; if ($orderkey == "") { $orderkey = "tfoid"; } $nresult = new EBPLSTFO($dbLink, 'false'); $nresult->pagesearch($fromr, $max_resultsr, $orderkey, $is_desc); $fetarray = $nresult->rcount; $total_sr = @mysql_fetch_row($fetarray); $total_resultsr = $total_sr[0]; $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>"; if ($pager > 1) { $prevr = $pager - 1; echo "<a href='index.php?part=4&class_type=Preference&selMode=ebpls_nTFO&page=1&orderkey={$orderkey}&is_asc={$is_asc}'><<</a> "; echo "<a href='index.php?part=4&class_type=Preference&selMode=ebpls_nTFO&page={$prevr}&orderkey={$orderkey}&is_asc={$is_asc}'>Prev</a> "; } if ($pager >= 7) {