A couple of new experimental features. Type perl formscript.pl for documentation.
[openemr.git] / contrib / forms / documents / new.php
blob71f065fbe1da1183411886019a95ba53e8920b0b
1 <?
3 // file new.php
5 // presents a blank form to upload an image file
7 // this file made by andres@paglayan.com on 2004-04-23
9 // custom from for uploading scanned documents into the emr.
11 include_once("../../globals.php");
13 include_once("../../../library/api.inc");
15 formHeader("Scanned Documents Input");
21 <html><head>
22 <? html_header_show();?>
24 <link rel=stylesheet href="<?echo $css_header;?>" type="text/css">
26 </head>
28 <body <?echo $top_bg_line;?> topmargin=0 rightmargin=0 leftmargin=2 bottommargin=0 marginwidth=2 marginheight=0>
32 <!--REM note that every input method has the same name as a valid column, this will make things easier in save.php -->
36 <br>
38 <form method='post' action="<?echo $rootdir;?>/forms/documents/save.php?mode=new" name='document_form' enctype="multipart/form-data">
40 <span class=title>Scanned Documents Input</span>
42 <br>
46 <span class=text>Document:</span><br>
48 <input type="file" name="document_image"><br>
52 <br>
54 <span class=text>Description:</span> <input type=text name="document_description">
56 <br>
60 <span class=text>Who sent it?:</span> <input type=text name="document_source">
62 <br>
66 <!--REM note our nifty jscript submit -->
68 <input type="hidden" name="action" value="submit">
70 <a href="javascript:top.restoreSession();document.document_form.submit();" class="link_submit">[Save]</a>
72 <br>
76 <a href="<?php echo $GLOBALS['form_exit_url']; ?>" class="link" onclick="top.restoreSession()">[Don't Save]</a>
78 </form>
82 <?php
84 formFooter();