2 include_once("../globals.php");
4 // Determine if the registration date should be requested.
5 $crow = sqlQuery("SELECT count(*) AS count FROM layout_options WHERE " .
6 "form_id = 'DEM' AND field_id = 'regdate' AND uor > 0");
7 $regstyle = $crow['count'] ?
"" : " style='display:none'";
12 <?php
html_header_show();?
>
13 <link rel
="stylesheet" href
="<?php echo xl($css_header,'e');?>" type
="text/css">
14 <style type
="text/css">@import
url(../../library
/dynarch_calendar
.css
);</style
>
16 <script type
="text/javascript" src
="../../library/textformat.js"></script
>
17 <script type
="text/javascript" src
="../../library/dynarch_calendar.js"></script
>
18 <script type
="text/javascript" src
="../../library/dynarch_calendar_en.js"></script
>
19 <script type
="text/javascript" src
="../../library/dynarch_calendar_setup.js"></script
>
21 <script LANGUAGE
="JavaScript">
26 <?php
if ($GLOBALS['inhouse_pharmacy']) { ?
>
27 var f
= document
.forms
[0];
28 if (f
.refsource
.selectedIndex
<= 0) {
29 alert('Please select a referral source!');
41 <body
class="body_top" onload
="javascript:document.new_patient.fname.focus();">
43 <?php
if ($GLOBALS['concurrent_layout']) { ?
>
44 <form name
='new_patient' method
='post' action
="new_patient_save.php"
45 onsubmit
='return validate()'>
46 <span
class='title'><?php
xl('Add Patient Record','e');?
></span
>
48 <form name
='new_patient' method
='post' action
="new_patient_save.php"
49 target
='_top' onsubmit
='return validate()'>
50 <a
class="title" href
="../main/main_screen.php" target
="_top" onclick
="top.restoreSession()">
51 <?php
xl('Add Patient Record','e');?
></a
>
58 <?php
if ($GLOBALS['omit_employers']) { ?
>
59 <input type
='hidden' name
='title' value
='' />
64 <?php
if (!$GLOBALS['omit_employers']) { ?
>
67 <span
class='bold'><?php
xl('Title','e');?
>: </span
>
71 <option value
="Mrs."><?php
xl('Mrs.','e');?
></option
>
72 <option value
="Ms."><?php
xl('Ms.','e');?
></option
>
73 <option value
="Mr."><?php
xl('Mr.','e');?
></option
>
74 <option value
="Dr."><?php
xl('Dr.','e');?
></option
>
82 <span
class='bold'><?php
xl('First Name','e');?
>: </span
>
85 <input type
='entry' size
='15' name
='fname'>
91 <span
class='bold'><?php
xl('Middle Name','e');?
>: </span
>
94 <input type
='entry' size
='15' name
='mname'>
100 <span
class='bold'><?php
xl('Last Name','e');?
>: </span
>
103 <input type
='entry' size
='15' name
='lname'>
107 <?php
if ($GLOBALS['inhouse_pharmacy']) { ?
>
110 <span
class='bold'><?php
xl('Referral Source','e'); ?
>: </span
>
113 <select name
='refsource'>
115 foreach (array('', 'Patient', 'Employee', 'Walk-In', 'Newspaper', 'Radio',
116 'T.V.', 'Direct Mail', 'Coupon', 'Referral Card', 'Other') as $rs)
118 echo " <option value='$rs'>$rs</option>\n";
126 <tr
<?php
echo $regstyle ?
>>
128 <span
class='bold'><?php
xl('Registration Date','e');?
>: </span
>
131 <input type
='text' size
='10' name
='regdate' id
='regdate'
132 value
='<?php echo date('Y
-m
-d
') ?>'
133 onkeyup
='datekeyup(this,mypcc)' onblur
='dateblur(this,mypcc)'
134 title
='yyyy-mm-dd' />
135 <img src
='../pic/show_calendar.gif' align
='absbottom' width
='24' height
='22'
136 id
='img_regdate' border
='0' alt
='[?]' style
='cursor:pointer'
137 title
='Click here to choose a date'>
138 <script LANGUAGE
="JavaScript">
139 Calendar
.setup({inputField
:"regdate", ifFormat
:"%Y-%m-%d", button
:"img_regdate"});
146 <span
class='bold'><?php
xl('Patient Number','e');?
>: </span
>
149 <input type
='entry' size
='5' name
='pubpid'>
150 <span
class='text'><?php
xl('omit to autoassign','e');?
>  
;  
; </span
>
157 <input type
='submit' name
='form_create' value
=<?php
xl('Create New Patient','e'); ?
> />