* * LICENSE: This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 3 * of the License, or (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * You should have received a copy of the GNU General Public License * along with this program. If not, see ;. * * @package OpenEMR * @author Hema Bandaru * @author Jerry Padgett * @link http://www.open-emr.org */ require_once("verify_session.php"); $query = "SELECT a.*,lo.title AS AmendmentBy,lo1.title AS AmendmentStatus FROM amendments a INNER JOIN list_options lo ON a.amendment_by = lo.option_id AND lo.list_id='amendment_from' LEFT JOIN list_options lo1 ON a.amendment_status = lo1.option_id AND lo1.list_id='amendment_status' WHERE a.pid = ? ORDER BY amendment_date DESC"; $res = sqlStatement($query, array($pid)); if (sqlNumRows($res) > 0) { ?> "; echo ""; echo ""; echo ""; echo ""; echo ""; } echo "
" . text($row['amendment_date']) . "" . text($row['AmendmentBy']) . "" . text($row['amendment_desc']) . "" . text($row['AmendmentStatus']) . "
"; } else { echo xlt("No Results"); } ?>