Example #1
0
            $alreadyAddedCount = 1;
            $manualLot = $markDetailDO->checkManualLotNumber($markDetailVO);
            echo $alreadyAddedCount . '<br>';
            echo $manualLot . '<br>';
            if ($manualLot > 0 || $manualLot > 0) {
                // Redirest to profile
                $dateRangeString = "&dt_fromDate=" . $markDetailVO->dt_fromDate . "&dt_toDate=" . $markDetailVO->dt_toDate . ($dateRangeString .= "&i_division_id=" . $markDetailVO->i_division_id . "&i_forest_id=" . $markDetailVO->i_forest_id . ($dateRangeString .= "&daterangeerror=error"));
                if ($manualLot > 0) {
                    $errorMsg = 'Manual Lot Already Exists ';
                } else {
                    $errorMsg = 'Records  Already Added ';
                }
                // header("Location:".BASE_URL."index.php?page=profile".$dateRangeString);
                //  return;
            } else {
                $markDetail = $markDetailDO->insert($markDetailVO);
                //die();
                $markDetailVO->m_id = $markDetail->id;
                $_SESSION['mardDetail'] = serialize($markDetailVO);
                ob_end_clean();
                header("Location:" . BASE_URL . "index.php?page=markCompleteDetailStep1&markId=" . $markDetail->id);
            }
        }
    } else {
        $errorMsg = "From date can not be greater then to date";
    }
}
if (isset($_GET['nameOfDepartMent'])) {
    $nameOfDepartMent = $_GET['nameOfDepartMent'];
}
include 'html/screen1HTML.php';
Example #2
0
if (isset($_POST['cancel']) == "Cancel") {
    ob_end_clean();
    header("Location:" . BASE_URL . "index.php?page=sc1");
}
if (isset($_POST['marktrees']) == "Mark Trees") {
    ob_end_clean();
    header("Location:" . BASE_URL . "index.php?page=sc3");
}
if (isset($_POST['save_detail'])) {
    //parent.location='index.php?page=sc1';
    if (!isset($markTressDetails) && empty($markTressDetails)) {
        $errorMsg = 'Enter Marking  Details';
    } else {
        $markDetailDO = new MarkDetailDO();
        if (!isset($mardDetail->id) || $mardDetail->id == '0' || $mardDetail->id == '') {
            $markDetail = $markDetailDO->insert($mardDetail);
        } else {
            $markDetail->id = $mardDetail->id;
        }
        $_SESSION['markTressDetails'] = '';
        $_SESSION['mardDetail'] = '';
        ob_end_clean();
        header("Location:" . BASE_URL . "index.php?page=markCompleteDetail&markId=" . $markDetail->id);
    }
}
if (isset($_POST['editsc1'])) {
    ob_end_clean();
    header("Location:" . BASE_URL . "index.php?page=sc1&markId=" . $mardDetail->id);
}
if (isset($_POST['delete'])) {
    $arrCondition = array('i_mark_id' => $mardDetail->id);