You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
1.0 KiB
33 lines
1.0 KiB
<?php |
|
|
|
/** |
|
* view_form.php |
|
* |
|
* @package OpenEMR |
|
* @link http://www.open-emr.org |
|
* @author Brady Miller <brady.g.miller@gmail.com> |
|
* @author Jerry Padgett <sjpadgett@gmail.com> |
|
* @copyright Copyright (c) 2018 Brady Miller <brady.g.miller@gmail.com> |
|
* @copyright Copyright (c) 2019 Jerry Padgett <sjpadgett@gmail.com> |
|
* @license https://github.com/openemr/openemr/blob/master/LICENSE GNU General Public License 3 |
|
*/ |
|
|
|
require_once("../../globals.php"); |
|
|
|
$clean_id = sanitizeNumber($_GET["id"]); |
|
|
|
if (substr($_GET["formname"], 0, 3) === 'LBF') { |
|
// Use the List Based Forms engine for all LBFxxxxx forms. |
|
include_once("$incdir/forms/LBF/view.php"); |
|
} else { |
|
// ensure the path variable has no illegal characters |
|
check_file_dir_name($_GET["formname"]); |
|
|
|
include_once("$incdir/forms/" . $_GET["formname"] . "/view.php"); |
|
} |
|
|
|
$id = $clean_id; |
|
|
|
if (!empty($GLOBALS['text_templates_enabled'])) { ?> |
|
<script src="<?php echo $GLOBALS['web_root'] ?>/library/js/CustomTemplateLoader.js"></script> |
|
<?php } ?>
|
|
|