You are on page 1of 1

<?

php
require('myFuncs.php');
/*
check that user login if no redirect to
*/
if(!isLoggedIn()) {
//redirect to patient login
echo "you are not logged in";
// header('Location: '.'http://localhost/wordpress/patient-login/');
die();
}
if(getUserType()!='PAT') {
echo "you are not patient";
//an other user trying to access patient home restrict
//header('Location: '.'http://localhost/wordpress/');
die();
}
?>
<b>To See your Pre-rec (History) go to See Appointments then select any one of t
hem to view a history</b><br>
<b>To See your Appointments go to See Appointments then select an option</b><br>
<ul>
<li><a title="Appointment" href="http://localhost/wordpress/?page_id=195
" target="_blank">Set Appointment</a></li>
<li><a title="Show Appointments" href="http://localhost/wordpress/?page_
id=317" target="_blank">See Appointments</a></li>
</ul>
<ul>
<li><a title='See your biodata profile' target='_blank' href="http://loc
alhost/wordpress/?page_id=374&pat_id=<?php echo getUserKey(); ?>">See Profile</a
></li>
<li><a title="Logout" href="http://localhost/wordpress/?page_id=155">Logout</a><
/li>
</ul>

You might also like