Highway to PSR2
[openemr.git] / interface / forms / clinical_instructions / report.php
blob3b1a14a56c3cf273efc0e17c9b05ffa8775b9aca
1 <?php
3 // +-----------------------------------------------------------------------------+
4 // Copyright (C) 2015 Z&H Consultancy Services Private Limited <sam@zhservices.com>
5 //
6 //
7 // 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 2
10 // of the License, or (at your option) any later version.
13 // This program is distributed in the hope that it will be useful,
14 // but WITHOUT ANY WARRANTY; without even the implied warranty of
15 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 // GNU General Public License for more details.
19 // A copy of the GNU General Public License is included along with this program:
20 // openemr/interface/login/GnuGPL.html
21 // For more information write to the Free Software
22 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
23 //
24 // Author: Jacob Paul <jacob@zhservices.com>
26 // +------------------------------------------------------------------------------+
28 include_once(dirname(__FILE__).'/../../globals.php');
29 include_once($GLOBALS["srcdir"]."/api.inc");
30 function clinical_instructions_report($pid, $encounter, $cols, $id)
32 $count = 0;
33 $data = formFetch("form_clinical_instructions", $id);
34 if ($data) {
36 <table style='border-collapse:collapse;border-spacing:0;width: 100%;'>
37 <tr>
38 <td align='center' style='border:1px solid #ccc;padding:4px;'><span class=bold><?php echo xlt('Instructions'); ?></span></td>
39 </tr>
40 <tr>
41 <td style='border:1px solid #ccc;padding:4px;'><span class=text><?php echo nl2br(text($data['instruction'])); ?></span></td>
42 </tr>
43 </table>
44 <?php