Exemple #1
0
            $announcements = "";
            $announced_by = "";
            $sms_send = "";
            $bbo = "";
            ?>
			<body onload='javascript:alert ("Record Successfully Updated!!");'></body>
			<?php 
        }
    }
} elseif ($confx == 1) {
    $nAnnounce = new EBPLSAnnouncement($dbLink, 'false');
    $nAnnounce->delete($bbo);
    $bbo = "";
    ?>
	<body onload='javascript:alert ("Record Deleted!!");'></body>
	<?php 
}
if ($com == "edit") {
    $nAnnounce = new EBPLSAnnouncement($dbLink, 'false');
    $nAnnounce->search($bbo, NULL);
    $nResult = $nAnnounce->out;
    $announcements = stripslashes($nResult[announcements]);
    $announced_by = stripslashes($nResult[announced_by]);
    $sms_checked = $nResult[sms_send];
    if ($sms_checked == '1') {
        $is_checked = "CHECKED";
    } else {
        $is_checked = "";
    }
}
include 'html/eBPLS_announcement.html';
Exemple #2
0
} 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 = "eaid";
}
$nresult = new EBPLSAnnouncement($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_nannouncement&page=1&orderkey={$orderkey}&is_asc={$is_asc}'>&lt;&lt;&nbsp;</a>";
    echo "<a href='index.php?part=4&class_type=Preference&selMode=ebpls_nannouncement&page={$prevr}&orderkey={$orderkey}&is_asc={$is_asc}'>Prev&nbsp;";
}
if ($pager >= 7) {
Exemple #3
0
        }
    }
} elseif ($confx == 1) {
    $nAnnounce = new EBPLSAnnouncement($dbLink, 'false');
    $nAnnounce->delete($bbo);
    $bbo = "";
    ?>
	<body onload='javascript:alert ("Record Deleted!!");'></body>
	<?php 
}
if ($com == "edit") {
    $nAnnounce = new EBPLSAnnouncement($dbLink, 'false');
    $nAnnounce->getLgu();
    $nAnnounce->search($bbo, NULL);
    $nResult = $nAnnounce->out;
    $announcements = $nResult[announcements];
    $announced_by = $nResult[announced_by];
    $sms_checked = $nResult[sms_send];
}
$nAnnounce = new EBPLSAnnouncement($dbLink, 'false');
$nAnnounce->getLgu();
$Pref = $nAnnounce->out;
$iProv = $Pref[lguprovince];
$iLgu = $Pref[lguname];
$nProvince = new EBPLSProvince($dbLink, 'false');
$nProvince->search($iProv, NULL);
$getProvince = $nProvince->out[province_desc];
$nLGU = new EBPLSLGU($dbLink, 'false');
$nLGU->search($iLgu, NULL);
$getLGU = $nLGU->out[city_municipality_desc];
include 'html/eBPLS_lotpin.html';