/** * CARE2X Integrated Hospital Information System beta 2.0.1 - 2004-07-04 * GNU General Public License * Copyright 2002,2003,2004,2005 Elpidio Latorilla * elpidio@care2x.org, * * See the file "copy_notice.txt" for the licence notice */ $thisfile = basename($_SERVER['PHP_SELF']); if (!isset($type_nr) || !$type_nr) { $type_nr = 1; } //* 1 = history physical notes require_once $root_path . 'include/care_api_classes/class_notes.php'; $obj = new Notes(); $types = $obj->getAllTypesSort('name'); $this_type = $obj->getType($type_nr); if (isset($_GET['pn'])) { $pid = $_GET['pn']; } else { $pid = $_GET['pid']; } if (!isset($mode)) { $mode = 'show'; } elseif ($mode == 'create' || $mode == 'update') { include_once $root_path . 'include/inc_date_format_functions.php'; # Set the date, default is today if (empty($_POST['date'])) { $_POST['date'] = date('Y-m-d'); } else { $_POST['date'] = @formatDate2STD($_POST['date'], $date_format);