New Http Rest Client (#2023)
[openemr.git] / templates / patient_finder / general_find.html
blob498144804d132a698c72b556862b063c3034dae6
1 {**
2 * Patient search
4 * @package OpenEMR
5 * @link http://www.open-emr.org
6 * @author Brady Miller <brady.g.miller@gmail.com>
7 * @copyright Copyright (c) 2017 Brady Miller <brady.g.miller@gmail.com>
8 * @license https://github.com/openemr/openemr/blob/master/LICENSE GNU General Public License 3
9 *}
10 <html>
11 <head>
13 {headerShow}
15 {literal}
16 <style type="text/css" title="mystyles" media="all">
17 <!--
18 td {
19 font-size:12pt;
20 font-family:helvetica;
22 .small {
23 font-size:9pt;
24 font-family:helvetica;
25 text-decoration: none;
27 .small:hover {
28 text-decoration: underline;
30 li{
31 font-size:11pt;
32 font-family:helvetica;
33 margin-left: 15px;
35 a {
36 font-size:11pt;
37 font-family:helvetica;
39 -->
40 </style>
41 {/literal}
42 <link rel="stylesheet" href="{$GLOBALS.css_header}" type="text/css">
43 </head>
44 <body class="body_top">
45 <form name="patientfinder" method="post" action="{$FORM_ACTION}" onsubmit="return top.restoreSession()">
46 <table>
47 <tr>
48 <td>{xl t='Name'|escape:'html'}</td>
49 <td>
50 <input type="text" size="40" name="searchstring" value=""/>
51 </td>
52 </tr>
53 <tr>
54 <td>
55 <input type="submit" value="{xl t='Search'|escape:'html'}"/>
56 </td>
57 </tr>
58 </table>
59 <input type="hidden" name="process" value="{$PROCESS|escape:'html'}" />
60 <input type="hidden" name="pid" value="{$hidden_ispid|escape:'html'}" />
61 </form>
62 <table>
63 {if count($result_set) > 0}
64 <tr>
65 <td>{xl t='Results Found For Search'|escape:'html'} '{$search_string|escape:'html'}'</td>
66 </tr>
67 <tr>
68 <td>{xl t='Name'|escape:'html'}</td><td>{xl t='DOB'|escape:'html'}</td><td>{xl t='Patient ID'|escape:'html'}</td>
69 {/if}
70 {foreach name="search_results" from=$result_set item=result}
71 <tr>
72 <td>
73 <a href="javascript:{literal}{}{/literal}" onclick="window.opener.document.{$form_id|escape:'html'}.value='{if $ispub == true }{$result.pubpid|escape:'html'}{else}{$result.pid|escape:'html'}{/if}'; window.opener.document.{$form_name|escape:'html'}.value='{$result.name|escape:'html'}'; window.close();">{$result.name|escape:'html'}</a>
74 </td>
75 <td>{$result.DOB|escape:'html'}</td>
76 <td>{$result.pubpid|escape:'html'}</td>
77 </tr>
78 {foreachelse}
79 {if is_array($result_set)}
80 <tr>
81 <td>{xl t='No Results Found For Search'|escape:'html'} '{$search_string|escape:'html'}'</td>
82 </tr>
83 {/if}
84 {/foreach}
85 </table>
86 </body>
87 </html>