You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
1014 B
36 lines
1014 B
<?php |
|
|
|
// |
|
|
|
require_once("../../globals.php"); |
|
require_once($GLOBALS["srcdir"] . "/api.inc"); |
|
|
|
function ped_pain_report($pid, $encounter, $cols, $id) |
|
{ |
|
$count = 0; |
|
$data = formFetch("form_ped_pain", $id); |
|
if ($data) : |
|
print "<table span class=text><tr>"; |
|
foreach ($data as $key => $value) { |
|
if ($key == "id" || $key == "pid" || $key == "user" || $key == "groupname" || $key == "authorized" || $key == "activity" || $key == "date" || $value == "" || $value == "0000-00-00 00:00:00") { |
|
continue; |
|
} |
|
|
|
if ($value == "on") { |
|
$value = "yes"; |
|
} |
|
|
|
$key = ucwords(str_replace("_", " ", $key)); |
|
|
|
print "<td><span class=bold>" . text($key) . ": </span><span class=text>" . text($value) . "</span></td>"; |
|
|
|
$count++; |
|
if ($count == $cols) { |
|
$count = 0; |
|
print "</tr><tr>\n"; |
|
} |
|
} |
|
|
|
print "</tr></table>"; |
|
endif; |
|
}
|
|
|