// // 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 2 // of the License, or (at your option) any later version. require_once("../../globals.php"); require_once($GLOBALS["srcdir"] . "/api.inc"); function treatment_protocols_report($pid, $encounter, $cols, $id) { /**** $cols = 1; // force always 1 column $count = 0; $data = sqlQuery("SELECT * " . "FROM form_treatment_protocols WHERE " . "id = '$id'"); if ($data) { print "
" . text($key) . ": " . text($value) . " | \n"; $count++; if ($count == $cols) { $count = 0; print "