Highway to PSR2
[openemr.git] / interface / patient_file / summary / left_frame.php
blob5aec9297362a9bc890f1863b069b99f8ae302515
1 <?php
2 /**
3 * Generic left frame
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 $featureData['amendment']['title'] = xl("Amendments");
30 $featureData['amendment']['addLink'] = "add_edit_amendments.php";
31 $featureData['amendment']['listLink'] = "list_amendments.php";
34 <html>
35 <head>
36 <?php html_header_show();?>
37 <link rel="stylesheet" href="<?php echo $css_header;?>" type="text/css">
38 </head>
39 <body class="body_top">
41 <span class="title"><?php echo text($featureData[$feature]['title']); ?></span>
42 <table>
43 <tr height="20px">
44 <td>
46 <a href="<?php echo $GLOBALS['webroot']?>/interface/patient_file/summary/<?php echo attr($featureData[$feature]['listLink']); ?>?id=<?php echo attr($pid); ?>" target='rightFrame' class="css_button" onclick="top.restoreSession()">
47 <span><?php echo xlt('List');?></span></a>
48 <?php if (acl_check('patients', 'trans')) { ?>
49 <a href="<?php echo $GLOBALS['webroot']?>/interface/patient_file/summary/<?php echo attr($featureData[$feature]['addLink']); ?>" target='rightFrame' class="css_button" onclick="top.restoreSession()">
50 <span><?php echo xlt('Add');?></span></a>
51 <?php } ?>
52 </td>
53 </tr>
54 </table>
55 </body>
56 </html>