2 include_once("../../globals.php");
3 include_once("$srcdir/patient.inc");
4 require_once("$srcdir/classes/Pharmacy.class.php");
10 <link rel
=stylesheet href
="<?echo $css_header;?>" type
="text/css">
13 <body
<?
echo $title_bg_line;?
> topmargin
=0 rightmargin
=0 leftmargin
=2 bottommargin
=0 marginwidth
=2 marginheight
=0>
16 $result = getPatientData($pid, "fname,lname,pid,pubpid,phone_home,pharmacy_id,DOB,DATE_FORMAT(DOB,'%Y%m%d') as DOB_YMD");
17 $provider_results = sqlQuery("select * from users where username='" . $_SESSION{"authUser"} . "'");
18 $age = getPatientAge($result["DOB_YMD"]);
20 $info = 'ID: ' . $result['pubpid'];
21 if ($result['DOB']) $info .= ', ' . xl('DOB') . ': ' . $result['DOB'] . ', ' . xl('Age') . ': ' . $age;
22 if ($result['phone_home']) $info .= ', ' . xl('Home') . ': ' . $result['phone_home'];
24 if ($result['pharmacy_id']) {
25 $pharmacy = new Pharmacy($result['pharmacy_id']);
26 if ($pharmacy->get_phone()) $info .= ', Pharm: ' . $pharmacy->get_phone();
30 <table border
="0" cellpadding
="0" cellspacing
="0" width
="100%" height
="100%">
32 <td width
="45%" valign
="middle" nowrap
>
33 <span
class="title_bar_top"><?
echo $result{"fname"} . " " . $result{"lname"};?
></span
>
34 <span style
="font-size:8pt;">(<?php
echo $info ?
>)</span
>
36 <td width
="35%" align
="center" valign
="middle" nowrap
>
37 <span
class="title"><?
xl('Logged in as','e'); ?
>: <?
echo $provider_results{"fname"}.' '.$provider_results{"lname"};?
></span
>
39 <td width
="20%" align
="right" valign
="middle" nowrap
>