include getenv("DOCUMENT_ROOT")."/include/session_include.php";
$func->checkLevelModal(9);
$uid = trim($_GET["uid"]);
$orderdate = trim($_GET["orderdate"]);
$customeruid = trim($_GET["customeruid"]);
if ($mode == "") {
$mode = "update";
$btnName = "UPDATE";
$admTag = "DISABLED";
}
if($uid == "") {
/*
$msg = "Invalid Parameter. Please try again.";
$func -> modalMsg ($msg, 1);
echo "
";
exit();
*/
$setDisplayNEWStr = " DISPLAY:none; ";
$setDisplayBTNStr = " DISPLAY:block; ";
$setDisplaySIGNYESStr = " DISPLAY:none; ";
$setDisplaySIGNNEWStr = " DISPLAY:inline; ";
} else {
$qry_cnt = "SELECT COUNT(*) FROM tbl_daily WHERE d_uid = '".$uid."' ";
$total_count=$jdb->rQuery($qry_cnt, "record query error");
if ($total_count > 0) {
// Get Information
$query = "SELECT * FROM tbl_daily WHERE d_uid = '".$uid."' ";
$result=$jdb->fQuery($query, "fetch query error");
// echo"$query";
for($i=0; $i $value )
$$key = $value;
}
$d_orderdateSTR = $func -> convertFormat ($d_orderdate, 3);
$d_payeenameSTR = str_replace("\\", "", $d_payeename);
$folderPath = getenv("DOCUMENT_ROOT")."/upload_sign/".$d_customeruid;
}
if (is_file($folderPath."/".trim($d_payeesign))) {
$d_payeesignSTR = "
";
$setDisplayNEWStr = " DISPLAY:inline; ";
$setDisplayBTNStr = " DISPLAY:none; ";
$setDisplaySIGNYESStr = " DISPLAY:inline; ";
$setDisplaySIGNNEWStr = " DISPLAY:none; ";
}
else {
$setDisplayNEWStr = " DISPLAY:none; ";
$setDisplayBTNStr = " DISPLAY:block; ";
$setDisplaySIGNYESStr = " DISPLAY:none; ";
$setDisplaySIGNNEWStr = " DISPLAY:inline; ";
}
}
?>
Green Oil Inc. Intranet System