Added Lithuanian language
[openemr.git] / interface / patient_file / summary / browse.php
blob95957ddbdcce258e20b570612e84d0f2065ca3ff
1 <?php
3 //SANITIZE ALL ESCAPES
4 $sanitize_all_escapes=true;
5 //
7 //STOP FAKE REGISTER GLOBALS
8 $fake_register_globals=false;
9 //
11 include_once("../../globals.php");
12 include_once("$srcdir/patient.inc");
13 include_once("$srcdir/options.inc.php");
15 //the maximum number of patient records to display:
16 $M = 100;
18 $browsenum = (is_numeric($_REQUEST['browsenum'])) ? $_REQUEST['browsenum'] : 1;
20 <html>
21 <head>
22 <?php html_header_show();?>
23 <link rel='stylesheet' href="<?php echo $css_header;?>" type="text/css">
24 </head>
26 <body class="body_top">
28 <a href="javascript:window.close();"><font class=title><?php echo htmlspecialchars( xl('Browse for Record'), ENT_NOQUOTES); ?></font><font class=back><?php echo htmlspecialchars( $tback, ENT_NOQUOTES);?></font></a>
30 <form border='0' method='post' name="find_patient" action="browse.php?browsenum=<?php echo ".htmlspecialchars( $browsenum, ENT_QUOTES)."?>">
32 <?php //<a href="javascript:document.find_patient.action='finder/patient_finder_keyboard.php';document.find_patient.submit();" class=link>Find Patient:</a>?>
33 <input type='entry' size='10' name='patient'>
34 <select name="findBy" size='1'>
35 <option value="ID"><?php echo htmlspecialchars( xl('ID'), ENT_NOQUOTES); ?></option>
36 <option value="Last" selected><?php echo htmlspecialchars( xl('Last Name'), ENT_NOQUOTES); ?></option>
37 <option value="SSN"><?php echo htmlspecialchars( xl('SSN'), ENT_NOQUOTES); ?></option>
38 <option value="DOB"><?php echo htmlspecialchars( xl('DOB'), ENT_NOQUOTES); ?></option>
39 </select>
40 <a href="javascript:document.find_patient.submit();" class=link><?php echo htmlspecialchars( xl('Find'), ENT_NOQUOTES); ?></a>&nbsp;&nbsp;
41 <a href="javascript:auto_populate_employer_address();" class=link_submit><?php echo htmlspecialchars( xl('Copy Values'), ENT_NOQUOTES); ?></a>
42 </form>
44 <?php
45 if (isset($_GET{set_pid})) {
46 if (!isset($_POST{insurance})){
47 $insurance = "primary";
48 } else {
49 $insurance = $_POST{insurance};
51 $result = getPatientData($_GET{set_pid});
52 // $result2 = getEmployerData($_GET{set_pid}); // not used!
53 $result3 = getInsuranceData($_GET{set_pid},$insurance);
56 <script language=javascript>
57 <!--
58 function auto_populate_employer_address(){
59 var df = opener.document.demographics_form;
60 df.i<?php echo htmlspecialchars( $browsenum, ENT_QUOTES);?>subscriber_fname.value='<?php echo htmlspecialchars( $result3{subscriber_fname}, ENT_QUOTES);?>';
61 df.i<?php echo htmlspecialchars( $browsenum, ENT_QUOTES);?>subscriber_mname.value='<?php echo htmlspecialchars( $result3{subscriber_mname}, ENT_QUOTES);?>';
62 df.i<?php echo htmlspecialchars( $browsenum, ENT_QUOTES);?>subscriber_lname.value='<?php echo htmlspecialchars( $result3{subscriber_lname}, ENT_QUOTES);?>';
63 df.i<?php echo htmlspecialchars( $browsenum, ENT_QUOTES);?>subscriber_street.value='<?php echo htmlspecialchars( $result3{subscriber_street}, ENT_QUOTES);?>';
64 df.i<?php echo htmlspecialchars( $browsenum, ENT_QUOTES);?>subscriber_city.value='<?php echo htmlspecialchars( $result3{subscriber_city}, ENT_QUOTES);?>';
65 df.form_i<?php echo htmlspecialchars( $browsenum, ENT_QUOTES);?>subscriber_state.value='<?php echo htmlspecialchars( $result3{subscriber_state}, ENT_QUOTES);?>';
66 df.i<?php echo htmlspecialchars( $browsenum, ENT_QUOTES);?>subscriber_postal_code.value='<?php echo htmlspecialchars( $result3{subscriber_postal_code}, ENT_QUOTES);?>';
67 if (df.form_i<?php echo htmlspecialchars( $browsenum, ENT_QUOTES);?>subscriber_country) // in case this is commented out
68 df.form_i<?php echo htmlspecialchars( $browsenum, ENT_QUOTES);?>subscriber_country.value='<?php echo htmlspecialchars( $result3{subscriber_country}, ENT_QUOTES);?>';
69 df.i<?php echo htmlspecialchars( $browsenum, ENT_QUOTES);?>subscriber_phone.value='<?php echo htmlspecialchars( $result3{subscriber_phone}, ENT_QUOTES);?>';
70 df.i<?php echo htmlspecialchars( $browsenum, ENT_QUOTES);?>subscriber_DOB.value='<?php echo htmlspecialchars( $result3{subscriber_DOB}, ENT_QUOTES);?>';
71 df.i<?php echo htmlspecialchars( $browsenum, ENT_QUOTES);?>subscriber_ss.value='<?php echo htmlspecialchars( $result3{subscriber_ss}, ENT_QUOTES);?>';
72 df.form_i<?php echo htmlspecialchars( $browsenum, ENT_QUOTES);?>subscriber_sex.value='<?php echo htmlspecialchars( $result3{subscriber_sex}, ENT_QUOTES);?>';
74 df.i<?php echo htmlspecialchars( $browsenum, ENT_QUOTES);?>plan_name.value='<?php echo htmlspecialchars( $result3{plan_name}, ENT_QUOTES);?>';
75 df.i<?php echo htmlspecialchars( $browsenum, ENT_QUOTES);?>policy_number.value='<?php echo htmlspecialchars( $result3{policy_number}, ENT_QUOTES);?>';
76 df.i<?php echo htmlspecialchars( $browsenum, ENT_QUOTES);?>group_number.value='<?php echo htmlspecialchars( $result3{group_number}, ENT_QUOTES);?>';
77 df.i<?php echo htmlspecialchars( $browsenum, ENT_QUOTES);?>provider.value='<?php echo htmlspecialchars( $result3{provider}, ENT_QUOTES);?>';
79 // One clinic comments out the subscriber employer stuff.
80 if (df.i<?php echo htmlspecialchars( $browsenum, ENT_QUOTES);?>subscriber_employer) {
81 df.i<?php echo htmlspecialchars( $browsenum, ENT_QUOTES);?>subscriber_employer.value='<?php echo htmlspecialchars( $result3{subscriber_employer}, ENT_QUOTES);?>';
82 df.i<?php echo htmlspecialchars( $browsenum, ENT_QUOTES);?>subscriber_employer_street.value='<?php echo htmlspecialchars( $result3{subscriber_employer_street}, ENT_QUOTES);?>';
83 df.i<?php echo htmlspecialchars( $browsenum, ENT_QUOTES);?>subscriber_employer_city.value='<?php echo htmlspecialchars( $result3{subscriber_employer_city}, ENT_QUOTES);?>';
84 df.form_i<?php echo htmlspecialchars( $browsenum, ENT_QUOTES);?>subscriber_employer_state.value='<?php echo htmlspecialchars( $result3{subscriber_employer_state}, ENT_QUOTES);?>';
85 df.i<?php echo htmlspecialchars( $browsenum, ENT_QUOTES);?>subscriber_employer_postal_code.value='<?php echo htmlspecialchars( $result3{subscriber_employer_postal_code}, ENT_QUOTES);?>';
86 df.form_i<?php echo htmlspecialchars( $browsenum, ENT_QUOTES);?>subscriber_employer_country.value='<?php echo htmlspecialchars( $result3{subscriber_employer_country}, ENT_QUOTES);?>';
89 //-->
90 </script>
92 <form method=post name=insurance_form action=browse.php?browsenum=<?php echo htmlspecialchars( $browsenum, ENT_QUOTES);?>&set_pid=<?php echo htmlspecialchars( $_GET{set_pid}, ENT_QUOTES);?>>
93 <input type="hidden" name="browsenum" value="<?php echo htmlspecialchars( $browsenum, ENT_QUOTES);?>">
94 <span class=bold> <?php echo htmlspecialchars( xl('Insurance Provider'), ENT_NOQUOTES); ?>:</span>
95 <select name=insurance onchange="javascript:document.insurance_form.submit();">
96 <option value="primary" <?php echo ($insurance == "primary") ? "selected" : ""?>><?php echo htmlspecialchars( xl('Primary'), ENT_NOQUOTES); ?></option>
97 <option value="secondary" <?php echo ($insurance == "secondary") ? "selected" : ""?>><?php echo htmlspecialchars( xl('Secondary'), ENT_NOQUOTES); ?></option>
98 <option value="tertiary" <?php echo ($insurance == "tertiary") ? "selected" : ""?>><?php echo htmlspecialchars( xl('Tertiary'), ENT_NOQUOTES); ?></option>
99 </select>
101 </form>
102 <table>
103 <tr>
104 <td><span class=text><?php echo htmlspecialchars( xl('First Name'), ENT_NOQUOTES); ?>:</span></td>
105 <td><span class=text><?php echo htmlspecialchars( $result3{subscriber_fname}, ENT_NOQUOTES);?></span></td>
106 </tr>
107 <tr>
108 <td><span class=text><?php echo htmlspecialchars( xl('Middle Name'), ENT_NOQUOTES); ?>:</span></td>
109 <td><span class=text><?php echo htmlspecialchars( $result3{subscriber_mname}, ENT_NOQUOTES);?></span></td>
110 </tr>
111 <tr>
112 <td><span class=text><?php echo htmlspecialchars( xl('Last Name'), ENT_NOQUOTES); ?>:</span></td>
113 <td><span class=text><?php echo htmlspecialchars( $result3{subscriber_lname}, ENT_NOQUOTES);?></span></td>
114 </tr>
115 <tr>
116 <td><span class=text><?php echo htmlspecialchars( xl('Address'), ENT_NOQUOTES); ?>:</span></td>
117 <td><span class=text><?php echo htmlspecialchars( $result3{subscriber_street}, ENT_NOQUOTES);?></span></td>
118 </tr>
119 <tr>
120 <td><span class=text><?php echo htmlspecialchars( xl('City'), ENT_NOQUOTES); ?>:</span></td>
121 <td><span class=text><?php echo htmlspecialchars( $result3{subscriber_city}, ENT_NOQUOTES);?></span></td>
122 </tr>
123 <tr>
124 <td><span class=text><?php echo htmlspecialchars( xl('State'), ENT_NOQUOTES); ?>:</span></td>
125 <td><span class=text>
126 <?php
127 //Modified 7/2009 by BM to incorporate data types
128 echo generate_display_field(array('data_type'=>$GLOBALS['state_data_type'],'list_id'=>$GLOBALS['state_list']),$result3{subscriber_state});
130 </span></td>
131 </tr>
132 <tr>
133 <td><span class=text><?php echo htmlspecialchars( xl('Zip Code'), ENT_NOQUOTES); ?>:</span></td>
134 <td><span class=text><?php echo htmlspecialchars( $result3{subscriber_postal_code}, ENT_NOQUOTES);?></span></td>
135 </tr>
136 <tr>
137 <td><span class=text><?php echo htmlspecialchars( xl('Country'), ENT_NOQUOTES); ?>:</span></td>
138 <td><span class=text>
139 <?php
140 //Modified 7/2009 by BM to incorporate data types
141 echo generate_display_field(array('data_type'=>$GLOBALS['country_data_type'],'list_id'=>$GLOBALS['country_list']),$result3{subscriber_country});
143 </span></td>
144 </tr>
145 <tr>
146 <td><span class=text><?php echo htmlspecialchars( xl('Phone'), ENT_NOQUOTES); ?>:</span></td>
147 <td><span class=text><?php echo htmlspecialchars( $result3{subscriber_phone}, ENT_NOQUOTES);?></span></td>
148 </tr>
149 <tr>
150 <td><span class=text><?php echo htmlspecialchars( xl('DOB'), ENT_NOQUOTES); ?>:</span></td>
151 <td><span class=text><?php echo htmlspecialchars( $result3{subscriber_DOB}, ENT_NOQUOTES);?></span></td>
152 </tr>
153 <tr>
154 <td><span class=text><?php echo htmlspecialchars( xl('SS'), ENT_NOQUOTES); ?>:</span></td>
155 <td><span class=text><?php echo htmlspecialchars( $result3{subscriber_ss}, ENT_NOQUOTES);?></span></td>
156 </tr>
157 <tr>
158 <td><span class=text><?php echo htmlspecialchars( xl('Primary Insurance Provider'), ENT_NOQUOTES); ?>:</span></td>
159 <td><span class=text><?php echo htmlspecialchars( $result3{provider_name}, ENT_NOQUOTES);?></span></td>
160 </tr>
161 <tr>
162 <td><span class=text><?php echo htmlspecialchars( xl('Plan Name'), ENT_NOQUOTES); ?>:</span>
163 </td><td><span class=text><?php echo htmlspecialchars( $result3{plan_name}, ENT_NOQUOTES);?></span></td>
164 </tr>
165 <tr>
166 <td><span class=text><?php echo htmlspecialchars( xl('Group Number'), ENT_NOQUOTES); ?>:</span></td>
167 <td><span class=text><?php echo htmlspecialchars( $result3{group_number}, ENT_NOQUOTES);?></span></td>
168 </tr>
169 <tr>
170 <tr>
171 <td><span class=text><?php echo htmlspecialchars( xl('Policy Number'), ENT_NOQUOTES); ?>:</span></td>
172 <td><span class=text><?php echo htmlspecialchars( $result3{policy_number}, ENT_NOQUOTES);?></span></td>
173 </tr>
175 <?php if (empty($GLOBALS['omit_employers'])) { ?>
177 <tr>
178 <td><span class=text><?php echo htmlspecialchars( xl('Subscriber Employer'), ENT_NOQUOTES); ?>:</span></td>
179 <td><span class=text><?php echo htmlspecialchars( $result3{subscriber_employer}, ENT_NOQUOTES);?></span></td>
180 </tr>
181 <tr>
182 <td><span class=text><?php echo htmlspecialchars( xl('Subscriber Employer Address'), ENT_NOQUOTES); ?>:</span></td>
183 <td><span class=text><?php echo htmlspecialchars( $result3{subscriber_employer_street}, ENT_NOQUOTES);?></span></td>
184 </tr>
185 <tr>
186 <td><span class=text><?php echo htmlspecialchars( xl('Subscriber Employer Zip Code'), ENT_NOQUOTES); ?>:</span></td>
187 <td><span class=text><?php echo htmlspecialchars( $result3{subscriber_employer_postal_code}, ENT_NOQUOTES);?></span></td>
188 </tr>
189 <tr>
190 <td><span class=text><?php echo htmlspecialchars( xl('Subscriber Employer City'), ENT_NOQUOTES); ?>:</span></td>
191 <td><span class=text><?php echo htmlspecialchars( $result3{subscriber_employer_city}, ENT_NOQUOTES);?></span></td>
192 </tr>
193 <tr>
194 <td><span class=text><?php echo htmlspecialchars( xl('Subscriber Employer State'), ENT_NOQUOTES); ?>:</span></td>
195 <td><span class=text>
196 <?php
197 //Modified 7/2009 by BM to incorporate data types
198 echo generate_display_field(array('data_type'=>$GLOBALS['state_data_type'],'list_id'=>$GLOBALS['state_list']),$result3{subscriber_employer_state});
200 </span></td>
201 </tr>
202 <tr>
203 <td><span class=text><?php echo htmlspecialchars( xl('Subscriber Employer Country'), ENT_NOQUOTES); ?>:</span></td>
204 <td><span class=text>
205 <?php
206 //Modified 7/2009 by BM to incorporate data types
207 echo generate_display_field(array('data_type'=>$GLOBALS['country_data_type'],'list_id'=>$GLOBALS['country_list']),$result3{subscriber_employer_country});
209 </span></td>
210 </tr>
212 <?php } ?>
214 <tr>
215 <td><span class=text><?php echo htmlspecialchars( xl('Subscriber Sex'), ENT_NOQUOTES); ?>:</span></td>
216 <td><span class=text><?php echo generate_display_field(array('data_type'=>'1','list_id'=>'sex'),$result3{subscriber_sex}); ?></span></td>
217 </tr>
218 </table>
220 <br>
221 <a href="javascript:auto_populate_employer_address();" class=link_submit><?php echo htmlspecialchars( xl('Copy Values'), ENT_NOQUOTES); ?></a>
223 <?php
224 } else {
227 <table border=0 cellpadding=5 cellspacing=0>
228 <tr>
229 <td>
230 <span class=bold><?php echo htmlspecialchars( xl('Name'), ENT_NOQUOTES); ?></span>
231 </td><td>
232 <span class=bold><?php echo htmlspecialchars( xl('SS'), ENT_NOQUOTES); ?></span>
233 </td><td>
234 <span class=bold><?php echo htmlspecialchars( xl('DOB'), ENT_NOQUOTES); ?></span>
235 </td><td>
236 <span class=bold><?php echo htmlspecialchars( xl('ID'), ENT_NOQUOTES); ?></span>
237 </td></tr>
238 <?php
240 $count=0;
241 $total=0;
243 $findby = $_POST['findBy'];
244 $patient = $_POST['patient'];
245 if ($findby == "Last" && $result = getPatientLnames("$patient","*,DATE_FORMAT(DOB,'%m/%d/%Y') as DOB_TS") ) {
246 foreach ($result as $iter) {
248 if ($total >= $M) {
249 break;
251 print "<tr><td><a class=text target=_top href='browse.php?browsenum=" .
252 htmlspecialchars( $browsenum, ENT_QUOTES) . "&set_pid=" .
253 htmlspecialchars( $iter{"pid"}, ENT_QUOTES) . "'>" .
254 htmlspecialchars( $iter{"lname"}.", ".$iter{"fname"}, ENT_NOQUOTES) .
255 "</td></a>\n";
256 print "<td><a class=text target=_top href='browse.php?browsenum=" .
257 htmlspecialchars( $browsenum, ENT_QUOTES) . "&set_pid=" .
258 htmlspecialchars( $iter{"pid"}, ENT_QUOTES) . "'>" .
259 htmlspecialchars( $iter{"ss"}, ENT_NOQUOTES) . "</a></td>";
260 if ($iter{"DOB"} != "0000-00-00 00:00:00") {
261 print "<td><a class=text target=_top href='browse.php?browsenum=" .
262 htmlspecialchars( $browsenum, ENT_QUOTES) . "&set_pid=" .
263 htmlspecialchars( $iter{"pid"}, ENT_QUOTES) . "'>" .
264 htmlspecialchars( $iter{"DOB_TS"}, ENT_NOQUOTES) . "</a></td>";
265 } else {
266 print "<td><a class=text target=_top href='browse.php?browsenum=" .
267 htmlspecialchars( $browsenum, ENT_QUOTES) . "&set_pid=" .
268 htmlspecialchars( $iter{"pid"}, ENT_QUOTES) . "'>&nbsp;</a></td>";
270 print "<td><a class=text target=_top href='browse.php?browsenum=" .
271 htmlspecialchars( $browsenum, ENT_QUOTES) . "&set_pid=" .
272 htmlspecialchars( $iter{"pid"}, ENT_QUOTES) . "'>" .
273 htmlspecialchars( $iter{"pubpid"}, ENT_NOQUOTES) . "</a></td>";
275 $total++;
279 if ($findby == "ID" && $result = getPatientId("$patient","*, DATE_FORMAT(DOB,'%m/%d/%Y') as DOB_TS") ) {
280 foreach ($result as $iter) {
282 if ($total >= $M) {
283 break;
285 print "<tr><td><a class=text target=_top href='browse.php?browsenum=" .
286 htmlspecialchars( $browsenum, ENT_QUOTES) . "&set_pid=" .
287 htmlspecialchars( $iter{"pid"}, ENT_QUOTES) . "'>" .
288 htmlspecialchars( $iter{"lname"}.", ".$iter{"fname"}, ENT_NOQUOTES) .
289 "</td></a>\n";
290 print "<td><a class=text target=_top href='browse.php?browsenum=" .
291 htmlspecialchars( $browsenum, ENT_QUOTES) . "&set_pid=" .
292 htmlspecialchars( $iter{"pid"}, ENT_QUOTES) . "'>" .
293 htmlspecialchars( $iter{"ss"}, ENT_NOQUOTES) . "</a></td>";
294 if ($iter{"DOB"} != "0000-00-00 00:00:00") {
295 print "<td><a class=text target=_top href='browse.php?browsenum=" .
296 htmlspecialchars( $browsenum, ENT_QUOTES) . "&set_pid=" .
297 htmlspecialchars( $iter{"pid"}, ENT_QUOTES) . "'>" .
298 htmlspecialchars( $iter{"DOB_TS"}, ENT_NOQUOTES) . "</a></td>";
299 } else {
300 print "<td><a class=text target=_top href='browse.php?browsenum=" .
301 htmlspecialchars( $browsenum, ENT_QUOTES) . "&set_pid=" .
302 htmlspecialchars( $iter{"pid"}, ENT_QUOTES) . "'>&nbsp;</a></td>";
304 print "<td><a class=text target=_top href='browse.php?browsenum=" .
305 htmlspecialchars( $browsenum, ENT_QUOTES) . "&set_pid=" .
306 htmlspecialchars( $iter{"pid"}, ENT_QUOTES) . "'>" .
307 htmlspecialchars( $iter{"pubpid"}, ENT_NOQUOTES) . "</a></td>";
309 $total++;
313 if ($findby == "DOB" && $result = getPatientDOB("$patient","*, DATE_FORMAT(DOB,'%m/%d/%Y') as DOB_TS") ) {
314 foreach ($result as $iter) {
316 if ($total >= $M) {
317 break;
319 print "<tr><td><a class=text target=_top href='browse.php?browsenum=" .
320 htmlspecialchars( $browsenum, ENT_QUOTES) . "&set_pid=" .
321 htmlspecialchars( $iter{"pid"}, ENT_QUOTES) . "'>" .
322 htmlspecialchars( $iter{"lname"}.", ".$iter{"fname"}, ENT_NOQUOTES) .
323 "</td></a>\n";
324 print "<td><a class=text target=_top href='browse.php?browsenum=" .
325 htmlspecialchars( $browsenum, ENT_QUOTES) . "&set_pid=" .
326 htmlspecialchars( $iter{"pid"}, ENT_QUOTES) . "'>" .
327 htmlspecialchars( $iter{"ss"}, ENT_NOQUOTES) . "</a></td>";
328 if ($iter{"DOB"} != "0000-00-00 00:00:00") {
329 print "<td><a class=text target=_top href='browse.php?browsenum=" .
330 htmlspecialchars( $browsenum, ENT_QUOTES) . "&set_pid=" .
331 htmlspecialchars( $iter{"pid"}, ENT_QUOTES) . "'>" .
332 htmlspecialchars( $iter{"DOB_TS"}, ENT_NOQUOTES) . "</a></td>";
333 } else {
334 print "<td><a class=text target=_top href='browse.php?browsenum=" .
335 htmlspecialchars( $browsenum, ENT_QUOTES) . "&set_pid=" .
336 htmlspecialchars( $iter{"pid"}, ENT_QUOTES) . "'>&nbsp;</a></td>";
338 print "<td><a class=text target=_top href='browse.php?browsenum=" .
339 htmlspecialchars( $browsenum, ENT_QUOTES) . "&set_pid=" .
340 htmlspecialchars( $iter{"pid"}, ENT_QUOTES) . "'>" .
341 htmlspecialchars( $iter{"pubpid"}, ENT_NOQUOTES) . "</a></td>";
343 $total++;
347 if ($findby == "SSN" && $result = getPatientSSN("$patient","*, DATE_FORMAT(DOB,'%m/%d/%Y') as DOB_TS") ) {
348 foreach ($result as $iter) {
350 if ($total >= $M) {
351 break;
353 print "<tr><td><a class=text target=_top href='browse.php?browsenum=" .
354 htmlspecialchars( $browsenum, ENT_QUOTES) . "&set_pid=" .
355 htmlspecialchars( $iter{"pid"}, ENT_QUOTES) . "'>" .
356 htmlspecialchars( $iter{"lname"}.", ".$iter{"fname"}, ENT_NOQUOTES) .
357 "</td></a>\n";
358 print "<td><a class=text target=_top href='browse.php?browsenum=" .
359 htmlspecialchars( $browsenum, ENT_QUOTES) . "&set_pid=" .
360 htmlspecialchars( $iter{"pid"}, ENT_QUOTES) . "'>" .
361 htmlspecialchars( $iter{"ss"}, ENT_NOQUOTES) . "</a></td>";
362 if ($iter{"DOB"} != "0000-00-00 00:00:00") {
363 print "<td><a class=text target=_top href='browse.php?browsenum=" .
364 htmlspecialchars( $browsenum, ENT_QUOTES) . "&set_pid=" .
365 htmlspecialchars( $iter{"pid"}, ENT_QUOTES) . "'>" .
366 htmlspecialchars( $iter{"DOB_TS"}, ENT_NOQUOTES) . "</a></td>";
367 } else {
368 print "<td><a class=text target=_top href='browse.php?browsenum=" .
369 htmlspecialchars( $browsenum, ENT_QUOTES) . "&set_pid=" .
370 htmlspecialchars( $iter{"pid"}, ENT_QUOTES) . "'>&nbsp;</a></td>";
372 print "<td><a class=text target=_top href='browse.php?browsenum=" .
373 htmlspecialchars( $browsenum, ENT_QUOTES) . "&set_pid=" .
374 htmlspecialchars( $iter{"pid"}, ENT_QUOTES) . "'>" .
375 htmlspecialchars( $iter{"pubpid"}, ENT_NOQUOTES) . "</a></td>";
377 $total++;
381 </table>
382 <?php
385 </body>
386 </html>