Multiple improvements from IPPF related to layouts. (#1081)
[openemr.git] / interface / patient_file / encounter / view_form.php
blob8b1cf5f60e73b9999a792505c959a6893f5909a0
1 <?php
2 // This program is free software; you can redistribute it and/or
3 // modify it under the terms of the GNU General Public License
4 // as published by the Free Software Foundation; either version 2
5 // of the License, or (at your option) any later version.
7 include_once("../../globals.php");
9 if (substr($_GET["formname"], 0, 3) === 'LBF') {
10 // Use the List Based Forms engine for all LBFxxxxx forms.
11 include_once("$incdir/forms/LBF/view.php");
12 } else {
13 // ensure the path variable has no illegal characters
14 check_file_dir_name($_GET["formname"]);
16 include_once("$incdir/forms/" . $_GET["formname"] . "/view.php");
19 $id = $_GET["id"];