another minor fix to prior commit
[openemr.git] / templates / documents / general_upload.html
blob5f355db72329201a964028dcc4959ebc26da6833
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."}
7 <br/>
8 <br/>
9 </div>
10 {/if}
12 <div class="text">
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."}
14 <br/>
15 <br/>
16 </div>
17 <div class="text bold">
18 {xl t="Upload Document"} {if $category_name} {xl t="to category"} '{$category_name}'{/if}
19 </div>
20 <div class="text">
21 <p><span>{xl t="Source File Path"}:</span> <input type="file" name="file[]" id="source-name" multiple="true"/>&nbsp;(<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}
24 </br>
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>
28 {/if}
29 <p><input type="submit" value="{xl t='Upload'}" /></p>
30 </div>
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}" />
35 </form>
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}' />
40 <p class='text bold'>
41 {xl t="Download document template for this patient and visit"}
42 </p>
43 <p class='text'>
44 <select name='form_filename'>{$TEMPLATES_LIST}</select> &nbsp;
45 <input type='submit' value='{xl t="Fetch"}' />
46 </p>
47 </form>
48 <!-- End document template download section -->
50 {if !empty($file)}
51 <div class="text bold">
52 <br/>
53 {xl t='Upload Report'}
54 </div>
55 {foreach from=$file item=file}
56 <div class="text">
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>
66 </div>
67 {/foreach}
68 {/if}