Document module improvements, take 3.
[openemr.git] / templates / documents / general_queue.html
blob61c3755f10378d3745da15ea239bb31e34df47fd
1 {literal}
2 <head>
3 <script language="javascript">
4 function submit_documents()
6 top.restoreSession();
7 document.queue.submit();
9 </script>
10 </head>
11 {/literal}
13 <a href="controller.php?practice_settings&{$TOP_ACTION}document_category&action=list" {php} if (!$GLOBALS['concurrent_layout']) echo "target='Main'"; {/php} onclick="top.restoreSession()" class="css_button" >
14 <span>{xl t='Edit Categories'}</span></a><a href="#" onclick="submit_documents();" class="css_button" target="_self" ><span>{xl t='Update files'}</span></a>
15 <input type="hidden" name="process" value="{$PROCESS}" /><br><br>
17 <form name="queue" method="post" action="{$FORM_ACTION}" onsubmit="return top.restoreSession()">
18 <table cellpadding="1" class="showborder">
19 <tr class="center_display">
20 <td colspan="6">{$messages}</td>
21 </tr>
22 <tr class="showborder_head">
23 <th colspan="2" width="110px">{xl t='Name'}</td>
24 <th width="100px">{xl t='Date'}</td>
25 <th width="200px">{xl t='Patient'}</td>
26 <th colspan="2">{xl t='Category'}</td>
27 </tr>
28 {foreach name=queue_list from=$queue_files item=file}
29 <tr>
30 <td><input type="checkbox" name="files[{$file.document_id}][active]" value="1" {if is_numeric($file.patient_id)}checked{/if}></td>
32 <td><a href="{$file.web_path}" onclick="top.restoreSession()">{$file.filename}</a><input type="hidden" name="files[{$file.document_id}][name]" value="{$file.filename}"></td>
34 <td>{$file.mtime}</td>
36 <td><input type="text" name="files[{$file.document_id}][patient_id]" size="5" value="{$file.patient_id}"><input type="hidden" name="patient_name" value=""></td>
38 <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>
39 <td><select name="files[{$file.document_id}][category_id]">{$tree_html_listbox}</select></td>
41 </tr>
42 {foreachelse}
43 <tr height="25" class="center_display">
44 <td colspan="6">{xl t='No Documents Found'}</td>
45 </tr>
46 {/foreach}
48 </table><br><br>
50 </form>