placed file counter within filename to fix the external viewing bug
[openemr.git] / templates / documents / general_upload.html
blob2f143a1ebf28e60a676a9d3a81385d4c511e0d98
1 <form method=post enctype="multipart/form-data" action="{$FORM_ACTION}" onsubmit="return top.restoreSession()">
2 <input type="hidden" name="MAX_FILE_SIZE" value="12000000" />
3 <table>
4 <tr>
5 <td>{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."}</td>
6 </tr>
7 <tr>
8 <td>{xl t="Upload Document"} {if $category_name} {xl t="to category"} '{$category_name}'{/if}</td>
9 </tr>
10 <tr>
11 <td><input type="file" name="file"></td>
12 </tr>
13 <tr>
14 <td><input type="submit" value="{xl t='Upload'}"></td>
15 </tr>
16 {if !empty($file)}
17 <tr>
18 <td><br><br></td>
19 </tr>
20 <tr>
21 <td>{xl t='Upload Report'}</td>
22 </tr>
23 <tr>
24 <td>{$error}</td>
25 </tr>
26 <tr>
27 <td>
28 {xl t='ID'}: {$file->get_id()}<br>
29 {xl t='Patient'}: {$file->get_foreign_id()}<br>
30 {xl t='URL'}: {$file->get_url()}<br>
31 {xl t='Size'}: {$file->get_size()}<br>
32 {xl t='Date'}: {$file->get_date()}<br>
33 {xl t='MimeType'}: {$file->get_mimetype()}<br>
34 {xl t='Revision'}: {$file->revision}<br>
35 </td>
36 </tr>
37 {/if}
38 </table>
39 <input type="hidden" name="patient_id" value="{$patient_id}" />
40 <input type="hidden" name="category_id" value="{$category_id}" />
41 <input type="hidden" name="process" value="{$PROCESS}" />
42 </form>