some optimization for IPPF forms
[openemr.git] / interface / dbc / dbc_generate.php
blob2d3e698c6d285d1f0af57941787a58cee9020c2c
1 <?php
2 /**
3 * VEKTIS
5 * @author Cristian NAVALICI
6 * @version 1.0 feb 2008
8 */
10 require_once("../globals.php");
11 require_once("$srcdir/acl.inc");
13 // Check authorization.
14 $thisauth = acl_check('admin', 'dbc');
15 if (!$thisauth) die("Not authorized.");
18 <html>
20 <head>
22 <link rel=stylesheet href='<?php echo $css_header ?>' type='text/css'>
23 <LINK href="<?php echo $css_dbc ?>" rel="stylesheet" type="text/css">
24 <title>DBC Generation</title>
25 </head>
27 <body <?php echo $top_bg_line;?>>
29 <form enctype="multipart/form-data" action="<?echo $_SERVER['PHP_SELF'] ?>" method="POST">
30 <input type="radio" name="resim" value="1" checked="checked" />Simulation <br />
31 <input type="radio" name="resim" value="0" />Real <br />
33 <input type="submit" value="Generate the zip file" name="submitfile" />
34 </form>
36 <?php
37 if ( $_POST['submitfile'] ) {
38 $option = (int)$_POST['resim'];
39 $archive = dbc_generatefile('all', $option);
40 echo 'The resulted archive file is <a href="'. DB_WORKINGLNK . basename($archive) .'">' .$archive. '</a>' ;
44 </body>
45 </html>