Location: PHPKode > projects > TherapyDoc > therapydoc_1.3.1_3/view/referrals/referral_detail.php
<?
session_start();
if(!$_SESSION['myusername']){
	header("location:../index.php");
}
require_once "connect.inc";
include('globals.inc');
include('../../classes/therapydoc/referrals/referrals.php');
$referral_id = TRIM($_GET['referral_id']);
if(!isset($_GET['mp'])){
	$_GET['mp']="";
}

$mp = TRIM($_GET['mp']);
if(!$dbh){
	echo "Database Connection Failed.<br />";
}
?>
<html>
<head>
<link href="../../CSS/main.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="../../classes/therapydoc/menu.js"></script>
<script type="text/javascript">
function confirmation1() {
	var answer1 = confirm("Are you sure you want to reject this referral?")
	if (answer1){
		window.location = "http://<?php echo $sname; ?>/therapydoc/classes/therapydoc/referrals/reject_form.php?referral_id=<?php echo $referral_id; ?>";
	}
	else{
	}
	}
function confirmation2() {
	var answer2 = confirm("Are you sure you want to convert this referral to a patient?")
	if (answer2){
		window.location = "http://<?php echo $sname; ?>/therapydoc/classes/therapydoc/referrals/convert.php?referral_id=<?php echo $referral_id; ?>";
	}
	else{
	}
}
</script>
</head>
<body>
<div id="wrapper"><?php include '../../classes/therapydoc/menu.php';?>
<h1>Referral Details</h1>
<?php referral_detail($dbh,$referral_id,$_SESSION,$mp); ?>
<form name="placeholder">
<td><INPUT TYPE="button" value="Edit This Record" name="edit"
	onClick="parent.location='edit_form.php?referral_id=<? echo $referral_id; ?>'">

</form>
</td>
</tr>
</table>

</div>
</body>
</html>
Return current item: TherapyDoc