Implement direct message receive and background services manager, take 1.
[openemr.git] / templates / documents / general_upload.html
blobbd7534768dbf2bf00be711b00663c8b2d01b0829
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>
31 {if !empty($file)}
32 <div class="text bold">
33 <br/>
34 {xl t='Upload Report'}
35 </div>
36 {foreach from=$file item=file}
37 <div class="text">
38 {if $error}<i>{$error}</i><br/>{/if}
39 {xl t='ID'}: {$file->get_id()}<br>
40 {xl t='Patient'}: {$file->get_foreign_id()}<br>
41 {xl t='URL'}: {$file->get_url()}<br>
42 {xl t='Size'}: {$file->get_size()}<br>
43 {xl t='Date'}: {$file->get_date()}<br>
44 {xl t='Hash'}: {$file->get_hash()}<br>
45 {xl t='MimeType'}: {$file->get_mimetype()}<br>
46 {xl t='Revision'}: {$file->revision}<br><br>
47 </div>
48 {/foreach}
49 {/if}
51 <input type="hidden" name="patient_id" value="{$patient_id}" />
52 <input type="hidden" name="category_id" value="{$category_id}" />
53 <input type="hidden" name="process" value="{$PROCESS}" />
54 </form>