demographics_dashboard_part_2 (#1903)
[openemr.git] / templates / documents / general_upload.html
blob347476928fdf1d76aae0701fe438659c5fcccb54
1 {**
2 * general document view
4 * @package OpenEMR
5 * @link http://www.open-emr.org
6 * @author Brady Miller <brady.g.miller@gmail.com>
7 * @copyright Copyright (c) 2017 Brady Miller <brady.g.miller@gmail.com>
8 * @license https://github.com/openemr/openemr/blob/master/LICENSE GNU General Public License 3
9 *}
11 <form method=post enctype="multipart/form-data" action="{$FORM_ACTION}" onsubmit="return top.restoreSession()">
12 <input type="hidden" name="MAX_FILE_SIZE" value="64000000" />
14 {if (!($patient_id > 0)) }
15 <div class="text" style="color:red;">
16 {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."|escape:'html'}
17 <br/>
18 <br/>
19 </div>
20 {/if}
22 <div class="text">
23 {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."|escape:'html'}
24 <br/>
25 <br/>
26 </div>
27 <div class="text bold">
28 {xl t="Upload Document"|escape:'html'} {if $category_name} {xl t="to category"|escape:'html'} '{$category_name|escape:'html'}'{/if}
29 </div>
30 <div class="text">
31 <p><span>{xl t="Source File Path"|escape:'html'}:</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."|escape:'html'}</font>)</p>
32 <p><span title="{xl t='Leave Blank To Keep Original Filename'|escape:'html'}">{xl t="Optional Destination Name"|escape:'html'}:</span> <input type="text" name="destination" title="{xl t='Leave Blank To Keep Original Filename'|escape:'html'}" id="destination-name" /></p>
33 {if !$hide_encryption}
34 </br>
35 <p><span title="{xl t='Check the box if this is an encrypted file'|escape:'html'}">{xl t="Is The File Encrypted?"|escape:'html'}:</span> <input type="checkbox" name="encrypted" title="{xl t='Check the box if this is an encrypted file'|escape:'html'}" id="encrypted" /></p>
36 <p><span title="{xl t='Pass phrase to decrypt document'|escape:'html'}">{xl t="Pass Phrase"|escape:'html'}:</span> <input type="text" name="passphrase" title="{xl t='Pass phrase to decrypt document'|escape:'html'}" id="passphrase" /></p>
37 <p><i>{xl t='Supports AES-256-CBC encryption/decryption only.'|escape:'html'}</i></p>
38 {/if}
39 <p><input type="submit" value="{xl t='Upload'|escape:'html'}" /></p>
40 </div>
42 <input type="hidden" name="patient_id" value="{$patient_id|escape:'html'}" />
43 <input type="hidden" name="category_id" value="{$category_id|escape:'html'}" />
44 <input type="hidden" name="process" value="{$PROCESS|escape:'html'}" />
45 </form>
47 <br><br>
49 <!-- Drag and drop uploader -->
50 <div id="autouploader">
51 <form method="post" enctype="multipart/form-data" action="{$GLOBALS.webroot}/library/ajax/upload.php?patient_id={$patient_id|escape:'html'}&parent_id={$category_id|escape:'html'}" class="dropzone">
52 <input type="hidden" name="MAX_FILE_SIZE" value="64000000" >
53 </form>
54 </div>
56 <!-- Section for document template download -->
57 <form method='post' action='interface/patient_file/download_template.php' onsubmit='return top.restoreSession()'>
58 <input type='hidden' name='patient_id' value='{$patient_id|escape:'html'}' />
59 <p class='text bold'>
60 {xl t="Download document template for this patient and visit"|escape:'html'}
61 </p>
62 <p class='text'>
63 <select name='form_filename'>{$TEMPLATES_LIST}</select> &nbsp;
64 <input type='submit' value='{xl t="Fetch"|escape:'html'}' />
65 </p>
66 </form>
67 <!-- End document template download section -->
69 {if !empty($file)}
70 <div class="text bold">
71 <br/>
72 {xl t='Upload Report'|escape:'html'}
73 </div>
74 {foreach from=$file item=file}
75 <div class="text">
76 {if $error}<i>{$error|escape:'html'}</i><br/>{/if}
77 {xl t='ID'|escape:'html'}: {$file->get_id()|escape:'html'}<br>
78 {xl t='Patient'|escape:'html'}: {$file->get_foreign_id()|escape:'html'}<br>
79 {xl t='URL'|escape:'html'}: {$file->get_url()|escape:'html'}<br>
80 {xl t='Size'|escape:'html'}: {$file->get_size()|escape:'html'}<br>
81 {xl t='Date'|escape:'html'}: {$file->get_date()|escape:'html'}<br>
82 {xl t='Hash'|escape:'html'}: {$file->get_hash()|escape:'html'}<br>
83 {xl t='MimeType'|escape:'html'}: {$file->get_mimetype()|escape:'html'}<br>
84 {xl t='Revision'|escape:'html'}: {$file->revision|escape:'html'}<br><br>
85 </div>
86 {/foreach}
87 {/if}
88 <h3>{$error}</h3>