2 include_once("../../globals.php");
3 include_once("$srcdir/patient.inc");
4 include_once("$srcdir/calendar.inc");
5 require_once("$srcdir/classes/Pharmacy.class.php");
9 <?php
html_header_show();?
>
10 <link rel
="stylesheet" href
="<?php echo $css_header;?>" type
="text/css">
11 <script type
="text/javascript" src
="../../../library/dialog.js"></script
>
13 <script language
='JavaScript'>
16 dlgopen('../../main/calendar/add_edit_event.php?patientid=<?php echo $pid ?>',
25 <body
class="body_title">
28 $result = getPatientData($pid, "fname,lname,pid,pubpid,phone_home,pharmacy_id,DOB,DATE_FORMAT(DOB,'%Y%m%d') as DOB_YMD");
29 $provider_results = sqlQuery("select * from users where username='" . $_SESSION{"authUser"} . "'");
30 $age = getPatientAge($result["DOB_YMD"]);
32 $info = 'ID: ' . $result['pubpid'];
33 if ($result['DOB']) $info .= ', DOB: ' . $result['DOB'] . ', Age: ' . $age;
34 if ($result['phone_home']) $info .= ', Home: ' . $result['phone_home'];
36 if ($result['pharmacy_id']) {
37 $pharmacy = new Pharmacy($result['pharmacy_id']);
38 if ($pharmacy->get_phone()) $info .= ', Pharm: ' . $pharmacy->get_phone();
42 <table border
="0" cellpadding
="0" cellspacing
="0" width
="100%" height
="100%">
44 <td style
="width:45%; vertical-align:middle; white-space: nowrap; text-align:left">
46 // ==================================
48 if ( $GLOBALS['dutchpc']) { ?
>
49 <span
class="title_bar_top"><?php
echo sutf8(dutch_name($pid)); ?
></span
>
50 <span style
="font-size:0.8em; color: green;"><?php
$aa = has_ztndbc($pid); echo ' -- ' .$aa['str']. ' -- ' ?
></span
>
52 <span
class="title_bar_top"><?php
echo $result{"fname"} . " " . $result{"lname"};?
></span
>
54 } // EOS DBC DUTCH SYSTEM
55 // ==================================
57 <span style
="font-size:0.7em;">(<?php
echo $info ?
>)</span
>
59 <td style
="width:35%; vertical-align:middle; white-space: nowrap; text-align:center">
60 <span
class="title_bar_top"><?php
xl('Logged in as','e'); ?
>: <?php
echo $provider_results{"fname"}.' '.$provider_results{"lname"};?
></span
>
62 <td style
="width:20%; vertical-align:middle; white-space: nowrap; text-align:right">
63 <a href
='' class='title_bar_top' onclick
='return newEvt()'><?php
xl('New Appointment','e'); ?
></a
>