<?php
session_start();
if(!isset($_SESSION['myusername'])){
header("location:../../index.php");
}
include 'globals.inc';
$a=$_SESSION['data_entry'];
if($a==1) {
}
elseif($a==0) {
header("location:http://$sname/therapydoc/noauth.php");
}
require_once "connect.inc";
include '../../classes/therapydoc/physician/physician.php';
$physician_id=$_GET['physician_id'];
?>
<html>
<head>
<link href="../../CSS/main.css" rel="stylesheet" type="text/css">
<script language="javascript" src="../../classes/calendar/calendar.js"></script>
<script language="JavaScript"
src="../../classes/therapydoc/validation/physician_form.js"></script>
<script type="text/javascript" src="../../classes/therapydoc/menu.js"></script>
</head>
<body id="main_body">
<div id="wrapper"><?php include '../../classes/therapydoc/menu.php';?>
<h1>Edit Physician Information</h1>
<form method="post" name="physician_form" action="edit_physician.php"
onClick="return checkForm();"><input type="hidden" name="physician_id"
id="physician_id" value='<?php echo $physician_id; ?>'>
<table class="forms">
<tr>
<td colspan="4" class="center"><label>Physician Information</label>
</tr>
<?php physician_data($dbh,$physician_id); ?>
<tr>
<td colspan="4" class="center"><label>Payor Information</label></td>
</tr>
<tr>
<td><label for="specialty">Specialty</label></td>
<td><? specialty_lookup($dbh,$physician_id); ?></td>
<tr>
<td colspan="4" class="center"><input name="submit" type="submit"
value="Update Record"></td>
</tr>
<tr>
<td colspan="4" class="center"><?php
$s="http://$sname/therapydoc/view/physician/edit_physician.php";
if(($_SERVER['HTTP_REFERER'])=== $s){
echo "Record successfully updated.";
}
?></td>
</tr>
</tr>
</table>
</form>
<script language="JavaScript">
new validateForm(document.forms.referral_form);
</script>
</body>
</html>