a5a268200dd4f8e242de4074afb2c42ec23b9b8a
[openemr.git] / templates / documents / general_upload.html
bloba5a268200dd4f8e242de4074afb2c42ec23b9b8a
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 <div class="text">
5 {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."}
6 <br/>
7 <br/>
8 </div>
9 <div class="text bold">
10 {xl t="Upload Document"} {if $category_name} {xl t="to category"} '{$category_name}'{/if}
11 </div>
12 <div class="text">
13 <p><span>{xl t="Source File Path"}:</span> <input type="file" name="file" id="source-name"/></p>
14 <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>
15 {if !$hide_encryption}
16 </br>
17 <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>
18 <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>
19 <p><i>{xl t='Supports TripleDES encryption/decryption only.'}</i></p>
20 {/if}
21 <p><input type="submit" value="{xl t='Upload'}" /></p>
22 </div>
23 {if !empty($file)}
24 <div class="text bold">
25 <br/>
26 {xl t='Upload Report'}
27 </div>
28 <div class="text">
29 {if $error}<i>{$error}</i><br/>{/if}
30 {xl t='ID'}: {$file->get_id()}<br>
31 {xl t='Patient'}: {$file->get_foreign_id()}<br>
32 {xl t='URL'}: {$file->get_url()}<br>
33 {xl t='Size'}: {$file->get_size()}<br>
34 {xl t='Date'}: {$file->get_date()}<br>
35 {xl t='Hash'}: {$file->get_hash()}<br>
36 {xl t='MimeType'}: {$file->get_mimetype()}<br>
37 {xl t='Revision'}: {$file->revision}<br>
38 </div>
39 {/if}
41 <input type="hidden" name="patient_id" value="{$patient_id}" />
42 <input type="hidden" name="category_id" value="{$category_id}" />
43 <input type="hidden" name="process" value="{$PROCESS}" />
44 </form>