$arr_display = $_SESSION["str_not_updated"];
} elseif ($_GET["type"] == 'inc') {
    $arr_display = $_SESSION["str_not_completed"];
} elseif ($_GET["type"] == 'newpx') {
    $arr_display = $_SESSION["str_new_px"];
} elseif ($_GET["type"] == 'oldpx') {
    $arr_display = $_SESSION["str_old_px_id"];
} else {
}
/*if(!empty($_GET["uid"]) && !empty($_GET["program"]) && $_GET["action"]='sync'):
		check_program($_GET["uid"],$_GET["program"]);
	endif;
	*/
//print_r($_SESSION);
if ($_POST["submit_patient"] == 'Add New Patient') {
    insert_patient($arr_display);
} else {
}
if ($_POST["submit_conflict"]) {
    $pxid = $_POST["pxid"];
    $uid = $_POST["uid"];
    foreach ($_POST as $key => $value) {
        if ($key != 'pxid' && $key != 'submit_conflict') {
            save_conflict_data($value, $pxid, $uid);
        }
    }
    header("Location:" . $_SERVER["PHP_SELF"] . "?type={$_GET['type']}&title={$_GET['title']}&uid={$_GET['uid']}&program={$_GET['program']}&action={$_GET['action']}");
}
echo "<html>";
echo "<head>";
echo "<script>";
Exemplo n.º 2
0
 * @author  Eldho Chacko <*****@*****.**>
 * @author  Ajil P M <*****@*****.**>
 * @link    http://www.open-emr.org
 */
//SANITIZE ALL ESCAPES
$sanitize_all_escapes = true;
//
//STOP FAKE REGISTER GLOBALS
$fake_register_globals = false;
//
require_once dirname(__FILE__) . "/../globals.php";
require_once dirname(__FILE__) . "/../../library/options.inc.php";
require_once dirname(__FILE__) . "/../../library/patient.inc";
require_once dirname(__FILE__) . "/../../library/parse_patient_xml.php";
if ($_REQUEST['approve'] == 1) {
    insert_patient($_REQUEST['am_id']);
    ?>
  <html>
		<head>
			<title><?php 
    echo xlt('CCR Approve');
    ?>
</title>
			<link rel="stylesheet" href="<?php 
    echo $css_header;
    ?>
" type="text/css" >
		</head>
		<body class="body_top" >
			<center><?php 
    echo xlt('Approved Successfully');