1 <form method=post
enctype=
"multipart/form-data" action=
"{$FORM_ACTION}" onsubmit=
"return top.restoreSession()">
2 <input type=
"hidden" name=
"MAX_FILE_SIZE" value=
"64000000" />
4 {if (!($patient_id
> 0)) }
5 <div class=
"text" style=
"color:red;">
6 {xl
t=
"IMPORTANT: This upload tool is only for uploading documents on patients that are not yet entered into the system. To upload files for patients whom already have been entered into the system, please use the upload tool linked within the Patient Summary screen."}
13 {xl
t=
"NOTE: Uploading files with duplicate names will cause the files to be automatically renamed (for example, file.jpg will become file.1.jpg). Filenames are considered unique per patient, not per category."}
17 <div class=
"text bold">
18 {xl
t=
"Upload Document"} {if $category_name} {xl
t=
"to category"} '{$category_name}'{/if}
21 <p><span>{xl
t=
"Source File Path"}:
</span> <input type=
"file" name=
"file[]" id=
"source-name" multiple=
"true"/> (
<font size=
"1">{xl
t=
"Multiple files can be uploaded at one time by selecting them using CTRL+Click or SHIFT+Click."}
</font>)
</p>
22 <p><span title=
"{xl t='Leave Blank To Keep Original Filename'}">{xl
t=
"Optional Destination Name"}:
</span> <input type=
"text" name=
"destination" title=
"{xl t='Leave Blank To Keep Original Filename'}" id=
"destination-name" /></p>
23 {if !$hide_encryption}
25 <p><span title=
"{xl t='Check the box if this is an encrypted file'}">{xl
t=
"Is The File Encrypted?"}:
</span> <input type=
"checkbox" name=
"encrypted" title=
"{xl t='Check the box if this is an encrypted file'}" id=
"encrypted" /></p>
26 <p><span title=
"{xl t='Pass phrase to decrypt document'}">{xl
t=
"Pass Phrase"}:
</span> <input type=
"text" name=
"passphrase" title=
"{xl t='Pass phrase to decrypt document'}" id=
"passphrase" /></p>
27 <p><i>{xl t='Supports TripleDES encryption/decryption only.'}
</i></p>
29 <p><input type=
"submit" value=
"{xl t='Upload'}" /></p>
32 <input type=
"hidden" name=
"patient_id" value=
"{$patient_id}" />
33 <input type=
"hidden" name=
"category_id" value=
"{$category_id}" />
34 <input type=
"hidden" name=
"process" value=
"{$PROCESS}" />
37 <!-- Section for document template download -->
38 <form method='post' action='interface/patient_file/download_template.php' onsubmit='return top.restoreSession()'
>
39 <input type='hidden' name='patient_id' value='{$patient_id}'
/>
41 {xl
t=
"Download document template for this patient and visit"}
44 <select name='form_filename'
>{$TEMPLATES_LIST}
</select>
45 <input type='submit' value='{xl
t=
"Fetch"}'
/>
48 <!-- End document template download section -->
51 <div class=
"text bold">
53 {xl t='Upload Report'}
55 {foreach from=$file item=file}
57 {if $error}
<i>{$error}
</i><br/>{/if}
58 {xl t='ID'}: {$file-
>get_id()}
<br>
59 {xl t='Patient'}: {$file-
>get_foreign_id()}
<br>
60 {xl t='URL'}: {$file-
>get_url()}
<br>
61 {xl t='Size'}: {$file-
>get_size()}
<br>
62 {xl t='Date'}: {$file-
>get_date()}
<br>
63 {xl t='Hash'}: {$file-
>get_hash()}
<br>
64 {xl t='MimeType'}: {$file-
>get_mimetype()}
<br>
65 {xl t='Revision'}: {$file-
>revision}
<br><br>