change eligibility batch from ssn to policy number, minor fix to filename with extra...
[openemr.git] / library / ajax / log_print_action_ajax.php
blob583a1922010f14477801fa940fcb92eca2cc90bb
1 <?php
2 /**
3 * Copyright (C) 2015 Rod Roark <rod@sunsetsystems.com>
5 * LICENSE: This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License
7 * as published by the Free Software Foundation; either version 2
8 * of the License, or (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://opensource.org/licenses/gpl-license.php>.
16 * @package OpenEMR
17 * @author Rod Roark <rod@sunsetsystems.com>
18 * @link http://www.open-emr.org
21 // AJAX handler for logging a printing action.
26 require_once("../../interface/globals.php");
27 require_once("$srcdir/log.inc");
29 $instance = new html2text($_POST['comments']);
30 $h2t = &$instance;
31 $h2t->width = 0;
32 $h2t->_convert(false);
34 newEvent("print", $_SESSION['authUser'], $_SESSION['authProvider'], 1, $h2t->get_text());