bug fix march continued (#1921)
[openemr.git] / templates / documents / general_queue.html
blob7ab8d58e59c3032196214bca66e7c3a9f7c660b3
1 <div class="btn-group">
2 <a href="controller.php?practice_settings&{$TOP_ACTION}document_category&action=list" onclick="top.restoreSession()" class="btn btn-default btn-edit" >
3 {xl t='Edit Categories'|escape:'html'}
4 </a>
5 <a href="#" onclick="submit_documents();" class="btn btn-default btn-update" target="_self" onclick="top.restoreSession()">
6 {xl t='Update files'|escape:'html'}
7 </a>
8 </div>
9 <input type="hidden" name="process" value="{$PROCESS|escape:'html'}" /><br><br>
11 <form name="queue" method="post" action="{$FORM_ACTION}" onsubmit="return top.restoreSession()">
12 <table class="table table-responsive table-striped">
13 <tr class="center_display">
14 <td colspan="6">{$messages}</td>
15 </tr>
16 <tr class="showborder_head">
17 <th colspan="2" width="110px">{xl t='Name'|escape:'html'}</td>
18 <th width="100px">{xl t='Date'|escape:'html'}</td>
19 <th width="200px">{xl t='Patient'|escape:'html'}</td>
20 <th colspan="2">{xl t='Category'|escape:'html'}</td>
21 </tr>
22 {foreach name=queue_list from=$queue_files item=file}
23 <tr>
24 <td><input type="checkbox" name="files[{$file.document_id}][active]" value="1" {if is_numeric($file.patient_id)}checked{/if}></td>
26 <td><a href="{$file.web_path}" onclick="top.restoreSession()">{$file.filename|escape:'html'}</a><input type="hidden" name="files[{$file.document_id|escape:'html'}][name]" value="{$file.filename|escape:'html'}"></td>
28 <td>{$file.mtime|escape:'html'}</td>
30 <td><input type="text" name="files[{$file.document_id|escape:'html'}][patient_id]" size="5" value="{$file.patient_id|escape:'html'}"><input type="hidden" name="patient_name" value=""></td>
32 <td><a href="javascript:{literal}{}{/literal}" onclick="top.restoreSession();var URL='controller.php?patient_finder&find&form_id=queue{"['files[`$file.document_id`][patient_id]']"|escape:"url"}&form_name=patient_name'; window.open(URL, 'queue', 'toolbar=0,scrollbars=1,location=0,statusbar=1,menubar=0,resizable=1,width=450,height=400,left = 425,top = 250');"><img src="images/stock_search-16.png" border="0"</a>&nbsp;&nbsp;&nbsp;</td>
33 <td><select name="files[{$file.document_id}][category_id]">{$tree_html_listbox}</select></td>
35 </tr>
36 {foreachelse}
37 <tr height="25" class="center_display">
38 <td colspan="6">{xl t='No Documents Found'|escape:'html'}</td>
39 </tr>
40 {/foreach}
42 </table><br><br>
44 </form>
46 {literal}
47 <head>
48 <script language="javascript">
49 function submit_documents()
51 top.restoreSession();
52 document.queue.submit();
54 </script>
55 </head>
56 {/literal}