function _recordMusic() { $sAuthorCheck = $this->checkAuthorBeforeAdd(); if (empty($sAuthorCheck)) { if (checkRecord($this->_getAuthorId())) { return $this->GenSendFileInfoForm(1, array('type' => "record")); } else { return $this->getMusicAddError(); } } else { return $sAuthorCheck; } }
<?php include 'init.php'; if (!logged_in()) { header('Location: index.php'); exit; } if (!isset($_GET['pid']) || !isset($_GET['rid']) || !isset($_GET['scid']) || empty($_GET['pid']) || empty($_GET['rid']) || empty($_GET["scid"]) || checkRecord($_GET['pid'], $_GET['rid']) === false || $_SESSION["scid"] != $_GET["scid"]) { header('Location: pagenotfound.php'); exit; } $pid = $_GET["pid"]; $rid = $_GET["rid"]; $ptInfo = getPtInfo($pid); $ptRec = getPtRecord($pid, $rid); if (empty($ptRec)) { header("Location: pagenotfound.php"); exit; } else { foreach ($ptInfo as $i) { $opdnum = $i["opdnum"]; } foreach ($ptRec as $rc) { $rid = $rc["rid"]; $dateofvisit = $rc["dateofvisit"]; $age = $rc["age"]; $timein = $rc["timein"]; $timeout = $rc["timeout"]; $bp = $rc["bp"]; $cr = $rc["cr"]; $rr = $rc["rr"];
<?php include 'init.php'; if (!logged_in()) { header('Location: index.php'); exit; } if (!isset($_GET['pid']) || !isset($_GET['rid']) || empty($_GET['pid']) || empty($_GET['rid']) || checkRecord($_GET['pid'], $_GET['rid']) === false) { header('Location: pagenotfound.php'); exit; } $pid = $_GET["pid"]; $rid = $_GET["rid"]; $ptInfo = getPtInfo($pid); $ptRec = getPtRecord($pid, $rid); if (empty($ptRec)) { header("Location: pagenotfound.php"); exit; } else { foreach ($ptInfo as $i) { $opdnum = $i["opdnum"]; } foreach ($ptRec as $r) { $rid = $r["rid"]; $pid = $r["pid"]; $dateofvisit = date('F d, Y', strtotime($r["dateofvisit"])); $age = $r["age"]; $timein = $r["timein"]; $timeout = $r["timeout"]; $bp = $r["bp"]; $cr = $r["cr"];
if (empty($service)) { $error[] = "Please select a service where the patient will be admitted."; } if (empty($roomtype)) { $error[] = "Please select the type of room where the patient will be admitted."; } if (empty($bednum)) { $error[] = "Please select a bed where the patient will be admitted."; } if (empty($docid)) { $error[] = "Select the Admitting Doctor"; } else { if (checkPID($pid) === false) { $error[] = "The patient does not exist. Please try again."; } if (checkRecord($pid, $rid) === false) { $error[] = "The record that you've passed is not available. Please try again"; } if (checkForAdmit($pid, $rid) === false) { $error[] = "The patient is not for admission."; } } if (!empty($errors)) { foreach ($errors as $error) { $return['error'] = true; $return['msg'][] = $error . "\n"; } } else { if ($curr_doc == $docid) { admitPatientCurDoc($pid, $rid, $docid, $bednum, $service, $roomtype); } else {
case 'rec': if (!isset($_GET["rid"]) || empty($_GET["rid"]) || checkRecord($pid, $_GET["rid"]) === false) { header("Location: pagenotfound.php"); exit; } else { $rid = $_GET["rid"]; } } break; case 'delete': switch ($loc) { case 'pt': $rid = ""; break; case 'rec': if (!isset($_GET["rid"]) || empty($_GET["rid"]) || checkRecord($pid, $_GET["rid"]) === false) { header("Location: pagenotfound.php"); exit; } else { $rid = $_GET["rid"]; } } break; default: header("Location: pagenotfound.php"); exit; } } ?> <!DOCTYPE HTML> <head>