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'}
5 <a href=
"#" onclick=
"submit_documents();" class=
"btn btn-default btn-update" target=
"_self" onclick=
"top.restoreSession()">
6 {xl t='Update files'|escape:'html'}
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>
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>
22 {foreach name=queue_list from=$queue_files item=file}
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> </td>
33 <td><select name=
"files[{$file.document_id}][category_id]">{$tree_html_listbox}
</select></td>
37 <tr height=
"25" class=
"center_display">
38 <td colspan=
"6">{xl t='No Documents Found'|escape:'html'}
</td>
48 <script language=
"javascript">
49 function submit_documents()
52 document
.queue
.submit();