making forms compatible with new frame layout
[openemr.git] / contrib / forms / documents / new.php
blob63702473cdd5492ef3a36baef3e039c3f3c1ba49
1 <?
2 // file new.php
3 // presents a blank form to upload an image file
4 // this file made by andres@paglayan.com on 2004-04-23
5 // custom from for uploading scanned documents into the emr.
6 include_once("../../globals.php");
7 include_once("../../../library/api.inc");
8 formHeader("Scanned Documents Input");
11 <html><head>
12 <link rel=stylesheet href="<?echo $css_header;?>" type="text/css">
13 </head>
14 <body <?echo $top_bg_line;?> topmargin=0 rightmargin=0 leftmargin=2 bottommargin=0 marginwidth=2 marginheight=0>
16 <!--REM note that every input method has the same name as a valid column, this will make things easier in save.php -->
18 <br>
19 <form method='post' action="<?echo $rootdir;?>/forms/documents/save.php?mode=new" name='document_form' enctype="multipart/form-data">
20 <span class=title>Scanned Documents Input</span>
21 <br>
23 <span class=text>Document:</span><br>
24 <input type="file" name="document_image"><br>
26 <br>
27 <span class=text>Description:</span> <input type=text name="document_description">
28 <br>
30 <span class=text>Who sent it?:</span> <input type=text name="document_source">
31 <br>
33 <!--REM note our nifty jscript submit -->
34 <input type="hidden" name="action" value="submit">
35 <a href="javascript:document.document_form.submit();" class="link_submit">[Save]</a>
36 <br>
38 <a href="<?php echo $GLOBALS['form_exit_url']; ?>" class="link">[Don't Save]</a>
39 </form>
44 <?php
45 formFooter();