} 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 = "sign_id"; } $nresult = new EBPLSSign($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><br />"; if ($pager > 1) { $prevr = $pager - 1; echo "<a href='index.php?part=4&class_type=Preference&selMode=ebpls_nsign&page=1&orderkey={$orderkey}&is_asc={$is_asc}'><< "; echo "<a href='index.php?part=4&class_type=Preference&selMode=ebpls_nsign&page={$prevr}&orderkey={$orderkey}&is_asc={$is_asc}'>Prev "; } if ($pager >= 7) {
$nSign->setData(GS_NAME, $iName); $nSign->setData(GS_POS, $iPosition); $nSign->setData(GS_OFFICE, $iOffice); $nSign->update($bbo); $bbo = ""; $iName = ""; $iPosition = ""; $iOffice = ""; ?> <!--<body onload='javascript:alert ("Record Successfully Updated!!");'></body>--> <body onload='javascript:alert ("Data is successfully updated!!"); _FRM.iName.focus();'></body> <?php } } } elseif ($confx == 1) { $nSign = new EBPLSSign($dbLink, 'false'); $nSign->delete($bbo); $bbo = ""; ?> <body onload='javascript:alert ("Record Deleted!!"); _FRM.iName.focus();'></body> <?php } if ($com == "edit") { $nSign = new EBPLSSign($dbLink, 'false'); $nSign->search($bbo, NULL); $nResult = $nSign->out; $iName = stripslashes($nResult[gs_name]); $iPosition = stripslashes($nResult[gs_pos]); $iOffice = stripslashes($nResult[gs_office]); } include 'html/eBPLS_signatories.html';