Highway to PSR2
[openemr.git] / interface / patient_file / summary / main_frameset.php
blob514d8010e3d4bcba1e73b708657086fcd5079ea0
1 <?php
2 /**
3 * Generic main frameset
5 * Copyright (C) 2014 Ensoftek
7 * LICENSE: This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation; either version 3
10 * of the License, or (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://opensource.org/licenses/gpl-license.php>;.
18 * @package OpenEMR
19 * @author Hema Bandaru <hemab@drcloudemr.com>
20 * @link http://www.open-emr.org
26 include_once("../../globals.php");
28 $feature = $_GET["feature"];
29 $id = $_GET["id"];
31 $featureData['amendment']['title'] = xl("Amendments");
32 $featureData['amendment']['addLink'] = "add_edit_amendments.php";
33 $featureData['amendment']['listLink'] = "list_amendments.php";
35 <html>
36 <head>
37 <?php html_header_show();?>
38 <title><?php echo text($featureData[$feature]['title']); ?></title>
39 </head>
41 <frameset cols="18%,*" id="main_frame">
42 <frame src="left_frame.php?feature=<?php echo attr($feature); ?>" name="leftFrame" scrolling="auto"/>
43 <?php if ($id) { ?>
44 <frame src="<?php echo $GLOBALS['webroot'] ?>/interface/patient_file/summary/<?php echo attr($featureData[$feature]['addLink']); ?>?id=<?php echo attr($id) ?>"
45 name="rightFrame" scrolling="auto"/>
46 <?php } else { ?>
47 <frame src="<?php echo $GLOBALS['webroot'] ?>/interface/patient_file/summary/<?php echo attr($featureData[$feature]['listLink']); ?>?id=<?php echo attr($pid) ?>"
48 name="rightFrame" scrolling="auto"/>
49 <?php } ?>
50 </frameset>
52 </html>