fix: Update patient_tracker.php (#6595)
[openemr.git] / templates / documents / general_upload.html
blobd12162b7e980b0d1b6ead030975b73ba158504c5
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 * @author Jerry Padgett <sjpadgett@gmail.com>
8 * @copyright Copyright (c) 2017-2018 Brady Miller <brady.g.miller@gmail.com>
9 * @copyright Copyright (c) 2019-2020 Jerry Padgett <sjpadgett@gmail.com>
10 * @license https://github.com/openemr/openemr/blob/master/LICENSE GNU General Public License 3
13 <form method="post" enctype="multipart/form-data" action="{$FORM_ACTION}" onsubmit="return top.restoreSession()">
14 <input type="hidden" name="MAX_FILE_SIZE" value="64000000" />
15 <h3>{if !empty($error)}{$error|text|nl2br}{/if}</h3>
16 {if (!($patient_id > 0))}
17 <div class="text text-danger">
18 {xlt 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."}
19 <br/>
20 <br/>
21 </div>
22 {/if}
23 <div class="text">
24 {xlt 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."}
25 <br/>
26 <br/>
27 </div>
28 <div class="text font-weight-bold">
29 {xlt t="Upload Document"} {if $category_name} {xlt t="to category"} '{$category_name|text}'{/if}
30 </div>
31 <div class="text">
32 <div class="form-group">
33 <p>(<small>{xlt t="Multiple files can be uploaded at one time by selecting them using CTRL+Click or SHIFT+Click."}</small>)</p>
34 <span>{xlt t="Source File Path"}:</span>
35 <input type="file" class="form-control-file" name="file[]" id="source-name" multiple="true" />
36 </div>
37 <div class="form-group">
38 <p>(<small>{xlt t="Select below to Zip Directory of image slices."}</small>)</p>
39 <input type="file" class="form-control-file" name="dicom_folder[]" id="dicom_folder" multiple directory="" webkitdirectory="" moxdirectory="" />
40 </div>
41 <p>
42 <span title="{xla t='Leave Blank To Keep Original Filename'}">{xlt t="Optional Destination or Dicom Study Name"}:</span>
43 <input type="text" class="form-control" name="destination" title="{xla t='Leave Blank To Keep Original Filename'}" id="destination-name" />
44 </p>
45 {if !$hide_encryption}
46 <br />
47 <p>
48 <span title="{xla t='Check the box if this is an encrypted file'}">{xlt t="Is The File Encrypted?"}:</span>
49 <input type="checkbox" name="encrypted" title="{xla t='Check the box if this is an encrypted file'}" id="encrypted" />
50 </p>
51 <p>
52 <span title="{xla t='Pass phrase to decrypt document'}">{xlt t="Pass Phrase"}:</span>
53 <input type="text" class="form-control" name="passphrase" title="{xla t='Pass phrase to decrypt document'}" id="passphrase" />
54 </p>
55 <p><i>{xlt t='Supports AES-256-CBC encryption/decryption only.'}</i></p>
56 {/if}
57 </div>
58 <p>
59 <input type="submit" class="btn btn-primary" value="{xl t='Upload'|attr}" />
60 </p>
62 <input type="hidden" name="patient_id" value="{$patient_id|attr}" />
63 <input type="hidden" name="category_id" value="{$category_id|attr}" />
64 <input type="hidden" name="process" value="{$PROCESS|attr}" />
65 </form>
67 <br /><br />
69 <!-- Drag and drop uploader -->
70 <div id="autouploader">
71 <form method="post" enctype="multipart/form-data" action="{$GLOBALS.webroot}/library/ajax/upload.php?patient_id={$patient_id|attr_url}&parent_id={$category_id|attr_url}&csrf_token_form={$CSRF_TOKEN_FORM|attr_url}" class="dropzone">
72 <div class="dz-message" data-dz-message><span>{xlt t='Drop files here to upload'}</span></div>
73 <input type="hidden" name="MAX_FILE_SIZE" value="64000000" />
74 </form>
75 </div>
77 <!-- Section for document template download -->
78 <form method='post' action='interface/patient_file/download_template.php' onsubmit='return top.restoreSession()'>
79 <input type="hidden" name="csrf_token_form" value="{$CSRF_TOKEN_FORM|attr}" />
80 <input type='hidden' name='patient_id' value='{$patient_id|attr}' />
81 <div class='col-sm-6'>
82 <p class='text font-weight-bold'>{xlt t="Download document template for this patient and visit"}</p>
83 <div class="input-group">
84 <span class="input-group-prepend">
85 <button type="submit" class="btn btn-primary btn-download">{xlt t="Fetch"}</button>
86 </span>
87 <select class="form-control" name='form_filename'>{$TEMPLATES_LIST}</select>
88 </div>
89 </div>
90 </form>
91 <!-- End document template download section -->
93 <!-- Section for portal document templates -->
94 <div class='col-sm-6'>
95 <p class='text font-weight-bold'>{xlt t="Patient Document Template Forms"}</p>
96 <div class="input-group">
97 <span class="input-group-prepend">
98 <button class="btn btn-primary btn-download" onclick="callTemplateModule()">{xlt t="Open"}</button>
99 </span>
100 <select class="form-control" id='template_filename'>{$TEMPLATES_LIST_PATIENT}</select>
101 </div>
102 </div>
104 {if !empty($file)}
105 <div class="text font-weight-bold">
106 <br/>
107 {xlt t='Uploaded'}
108 </div>
109 {foreach from=$file item=onefile}
110 <div class="text">
111 {if $error}<i>{$error|text|nl2br}</i><br/>{/if}
112 {xlt t='Name'}: {$onefile->get_name()|text}<br /><br />
113 </div>
114 {/foreach}
115 {/if}