コード例 #1
0
ファイル: eBPLS_requirements.php プロジェクト: laiello/ebpls
if ($conact == 1) {
    $nRequirements = new EBPLSRequirements($dbLink, 'false');
    $datetoday = date("Y-m-d H:i:s");
    $nRequirements->searchexist($bbo);
    if ($nRequirements->rcount > 0) {
        ?>
		<body onload='javascript:alert ("Cannot Delete, Record exist in other table!!");'></body>
		<?php 
    } else {
        $nRequirements->setData(RECSTATUS, "A");
        $nRequirements->update($bbo);
        $bbo = "";
        ?>
		<body onload='javascript:alert ("Record Successfully Activated!!");'></body>
		<?php 
    }
}
if ($com == "edit") {
    $nRequirements = new EBPLSRequirements($dbLink, 'false');
    $nRequirements->search($bbo, NULL);
    $nResult = $nRequirements->out;
    $iDesc = $nResult[reqdesc];
    $iPermitType = $nResult[permit_type];
    $ireqindicator = $nResult[reqindicator];
    if ($ireqindicator == '1') {
        $is_checked = "CHECKED";
    } else {
        $is_checked = "";
    }
}
include 'html/eBPLS_requirements.html';