本文整理汇总了PHP中formFetch函数的典型用法代码示例。如果您正苦于以下问题:PHP formFetch函数的具体用法?PHP formFetch怎么用?PHP formFetch使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了formFetch函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: Forms2_Cardiology_report
function Forms2_Cardiology_report($pid, $encounter, $cols, $id)
{
$count = 0;
$data = formFetch("form_Forms2_Cardiology", $id);
if ($data) {
print "<hr><table><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));
$mykey = $key . ": ";
$myval = stripslashes($value);
print "<td><span class=bold>" . xl("{$mykey}") . "</span><span class=text>" . xl("{$myval}") . "</span></td>";
$count++;
if ($count == $cols) {
$count = 0;
print "</tr><tr>\n";
}
}
}
print "</tr></table><hr>";
}
开发者ID:mindfeederllc,项目名称:openemr,代码行数:26,代码来源:report.php
示例2: reviewofs_report
function reviewofs_report($pid, $encounter, $cols, $id)
{
$count = 0;
$data = formFetch("form_reviewofs", $id);
if ($data) {
print "<table><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));
//modified by BM 07-2009 for internationalization
if ($key == "Additional Notes") {
print "<td><span class=bold>" . xl($key) . ": </span><span class=text>" . text($value) . "</span></td>";
} else {
print "<td><span class=bold>" . xl($key) . ": </span><span class=text>" . xl($value) . "</span></td>";
}
$count++;
if ($count == $cols) {
$count = 0;
print "</tr><tr>\n";
}
}
}
print "</tr></table>";
}
开发者ID:juggernautsei,项目名称:openemr,代码行数:29,代码来源:report.php
示例3: psychiatrisch_onderzoek_report
function psychiatrisch_onderzoek_report($pid, $encounter, $cols, $id)
{
$count = 0;
$data = formFetch("form_psychiatrisch_onderzoek", $id);
if ($data) {
print "<table>";
foreach ($data as $key => $value) {
// here we check for current ???? what ? session ?
if ($key == "id" || $key == "pid" || $key == "user" || $key == "groupname" || $key == "authorized" || $key == "activity" || $key == "date" || $value == "" || $value == "0000-00-00 00:00:00") {
continue;
}
// larry :: ??? - is this for check box or select or what ?
if ($value == "on") {
$value = "yes";
}
// Datum onderzoek
if ($key == "datum_onderzoek") {
print "<tr><td><span class=bold>" . xl('Examination Date') . ": </span><span class=text>" . nl2br(stripslashes($value)) . "</span></td></tr>";
}
// Reden van aanmelding
if ($key == "reden_van_aanmelding") {
print "<tr><td><span class=bold>" . xl('Reason for Visit') . ": </span><span class=text>" . nl2br(stripslashes($value)) . "</span></td></tr>";
}
// Conclusie van intake
if ($key == "conclusie_van_intake") {
print "<tr><td><span class=bold>" . xl('Intake Conclusion') . ": </span><span class=text>" . nl2br(stripslashes($value)) . "</span></td></tr>";
}
// Medicatie
if ($key == "medicatie") {
print "<tr><td><span class=bold>" . xl('Medications') . ": </span><span class=text>" . nl2br(stripslashes($value)) . "</span></td></tr>";
}
// Anamnese
if ($key == "anamnese") {
print "<tr><td><span class=bold>" . xl('History') . ": </span><span class=text>" . nl2br(stripslashes($value)) . "</span></td></tr>";
}
// Psychiatrisch onderzoek i.e.z.
if ($key == "psychiatrisch_onderzoek") {
print "<tr><td><span class=bold>" . xl('Psychiatric Examination') . ": </span><span class=text>" . nl2br(stripslashes($value)) . "</span></td></tr>";
}
// Beschrijvende conclusie
if ($key == "beschrijvende_conclusie") {
print "<tr><td><span class=bold>" . xl('Conclusions') . ": </span><span class=text>" . nl2br(stripslashes($value)) . "</span></td></tr>";
}
// Behandelvoorstel
if ($key == "behandelvoorstel") {
print "<tr><td><span class=bold>" . xl('Treatment Plan') . ": </span><span class=text>" . nl2br(stripslashes($value)) . "</span></td></tr>";
}
// increment records counter
$count++;
// check if not at the end close/open new row
if ($count == $cols) {
$count = 0;
print "</tr><tr>\n";
}
}
}
print "</tr></table>";
}
开发者ID:katopenzz,项目名称:openemr,代码行数:58,代码来源:report.php
示例4: CAMOS_report
function CAMOS_report($pid, $encounter, $cols, $id)
{
$data = formFetch("form_CAMOS", $id);
if ($data) {
//echo "(category) ".stripslashes($data['category'])." | ";
//echo "(subcategory) ".stripslashes($data['subcategory'])." | ";
//echo "(item) ".stripslashes($data['item']);
echo "<div class='navigateLink'><a href='" . $GLOBALS['webroot'] . "/interface/forms/CAMOS/rx_print.php?sigline=embossed' target=_new>" . xl('Rx') . "</a>\n";
echo " | ";
echo "<a href='" . $GLOBALS['webroot'] . "/interface/forms/CAMOS/rx_print.php?sigline=signed' target=_new>" . xl('Signed Rx') . "</a>\n";
echo "<br>";
echo "<a href='" . $GLOBALS['webroot'] . "/interface/forms/CAMOS/rx_print.php?letterhead=true&signer=patient' target=_new>" . xl('Letterhead that patient signs') . "</a>\n";
echo " | ";
echo "<a href='" . $GLOBALS['webroot'] . "/interface/forms/CAMOS/rx_print.php?letterhead=true&signer=doctor' target=_new>" . xl('Letterhead that doctor signs') . "</a>\n";
echo "<br>";
echo "<a href='" . $GLOBALS['webroot'] . "/interface/forms/CAMOS/notegen.php?pid=" . $pid . "&encounter=" . $encounter . "' target=_new>" . xl('Print This Encounter') . "</a>\n";
echo " | ";
echo "<a href='" . $GLOBALS['webroot'] . "/interface/forms/CAMOS/notegen.php' target=_new>" . xl('Print Any Encounter') . "</a></div>\n";
// echo "<pre>".wordwrap(stripslashes(content_parser($data['content'])))."</pre><hr>\n";
echo "<pre>" . wordwrap(stripslashes(replace($pid, $encounter, $data['content']))) . "</pre><hr>\n";
}
}
开发者ID:katopenzz,项目名称:openemr,代码行数:22,代码来源:report.php
示例5: note_report
function note_report($pid, $encounter, $cols, $id)
{
$count = 0;
$data = formFetch("form_note", $id);
if ($data) {
print "<table><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 "<tr>\n";
print "<tr>\n";
if ($key == "Note Type") {
print "<td><span class=bold>" . xlt($key) . ": </span><span class=text>" . xlt($value) . "</span></td>";
} else {
print "<td><span class=bold>" . xlt($key) . ": </span><span class=text>" . text($value) . "</span></td>";
}
$count++;
if ($count == $cols) {
$count = 0;
print "</tr><tr>\n";
}
}
}
print "</tr></table>";
}
开发者ID:juggernautsei,项目名称:openemr,代码行数:30,代码来源:report.php
示例6: misc_billing_options_report
function misc_billing_options_report($pid, $encounter, $cols, $id)
{
$count = 0;
$data = formFetch("form_misc_billing_options", $id);
if ($data) {
print "<table><tr>";
foreach ($data as $key => $value) {
if ($key == "id" || $key == "pid" || $key == "user" || $key == "groupname" || $key == "authorized" || $key == "activity" || $key == "date" || $value == "" || $value == "0" || $value == "0000-00-00 00:00:00" || $value == "0000-00-00") {
continue;
}
if ($value == "1") {
$value = "yes";
}
if ($key === 'box_14_date_qual' || $key === 'box_15_date_qual') {
$value = text(qual_id_to_description($key, $value));
}
if ($key === 'provider_id') {
$trow = sqlQuery("SELECT id, lname, fname FROM users WHERE " . "id = ? ", array($value));
$value = $trow['fname'] . ' ' . $trow['lname'];
}
$key = ucwords(str_replace("_", " ", $key));
print "<td><span class=bold>{$key}: </span><span class=text>" . text($value) . "</span></td>";
$count++;
if ($count == $cols) {
$count = 0;
print "</tr><tr>\n";
}
}
}
print "</tr></table>";
}
开发者ID:juggernautsei,项目名称:openemr,代码行数:31,代码来源:report.php
示例7: misc_billing_options_report
function misc_billing_options_report($pid, $encounter, $cols, $id)
{
$count = 0;
$data = formFetch("form_misc_billing_options", $id);
if ($data) {
print "<table><tr>";
foreach ($data as $key => $value) {
if ($key == "id" || $key == "pid" || $key == "user" || $key == "groupname" || $key == "authorized" || $key == "activity" || $key == "date" || $value == "" || $value == "0" || $value == "0000-00-00 00:00:00" || $value == "0000-00-00") {
continue;
}
if ($value == "1") {
$value = "yes";
}
if ($key === 'box_14_date_qual' || $key === 'box_15_date_qual') {
$value = text(qual_id_to_description($key, $value));
}
$key = ucwords(str_replace("_", " ", $key));
print "<td><span class=bold>{$key}: </span><span class=text>{$value}</span></td>";
$count++;
if ($count == $cols) {
$count = 0;
print "</tr><tr>\n";
}
}
}
print "</tr></table>";
}
开发者ID:jatin-52,项目名称:erm,代码行数:27,代码来源:report.php
示例8: ankleinjury_report
function ankleinjury_report($pid, $encounter, $cols, $id)
{
$count = 0;
$data = formFetch("form_ankleinjury", $id);
if ($data) {
print "<table>\n<tr>\n";
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));
$key = str_replace("Ankle ", "", $key);
$key = str_replace("Injuary", "Injury", $key);
print "<td valign='top'><span class='bold'>{$key}: </span><span class='text'>{$value}</span></td>\n";
$count++;
if ($count == $cols) {
$count = 0;
print "</tr>\n<tr>\n";
}
}
print "</tr>\n</table>\n";
}
}
开发者ID:katopenzz,项目名称:openemr,代码行数:26,代码来源:report.php
示例9: soap_report
function soap_report($pid, $encounter, $cols, $id)
{
$cols = 1;
// force always 1 column
$count = 0;
$data = formFetch("form_soap", $id);
if ($data) {
print "<table><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));
//Updated by Sherwin 10/24/2016
print "<td><span class=bold>" . xlt($key) . ": </span><span class=text>" . nl2br(text($value)) . "</span></td>";
$count++;
if ($count == $cols) {
$count = 0;
print "</tr><tr>\n";
}
}
}
print "</tr></table>";
}
开发者ID:juggernautsei,项目名称:openemr,代码行数:27,代码来源:report.php
示例10: example_report
/** CHANGE THIS, the name of the function is significant and **
** must be changed to match the folder name **/
function example_report($pid, $encounter, $cols, $id)
{
/** CHANGE THIS - name of the database table associated with this form **/
$table_name = "form_example";
$count = 0;
$data = formFetch($table_name, $id);
if ($data) {
print "<table><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" || $value == "n") {
// skip certain fields and blank data
continue;
}
$key = ucwords(str_replace("_", " ", $key));
print "<tr>\n";
print "<tr>\n";
print "<td><span class=bold>{$key}: </span><span class=text>{$value}</span></td>";
$count++;
if ($count == $cols) {
$count = 0;
print "</tr><tr>\n";
}
}
}
print "</tr></table>";
}
开发者ID:katopenzz,项目名称:openemr,代码行数:28,代码来源:report.php
示例11: md_assessment_report
function md_assessment_report($pid, $encounter, $cols, $id)
{
$count = 0;
$data = formFetch("form_md_assessment", $id);
$width = 100 / $cols;
if ($data) {
print "<table><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 width='{$width}%' valign='top'><span class=bold>{$key}: </span><span class=text>{$value}</span></td>";
$count++;
if ($count == $cols) {
$count = 0;
print "</tr><tr>\n";
}
}
}
print "</tr></table>";
}
开发者ID:mindfeederllc,项目名称:openemr,代码行数:25,代码来源:report.php
示例12: individual_treatment_plan_report
function individual_treatment_plan_report($pid, $encounter, $cols, $id)
{
$count = 0;
print "Individual Treatment Plan";
$data = formFetch("form_individual_treatment_plan", $id);
if ($data) {
print "<table><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>{$key}: </span><span class=text>{$value}</span></td>";
$count++;
if ($count == $cols) {
$count = 0;
print "</tr><tr>\n";
}
}
}
print "</tr></table>";
}
开发者ID:katopenzz,项目名称:openemr,代码行数:25,代码来源:report.php
示例13: review_of_systems_report
function review_of_systems_report($pid, $encounter, $cols, $id)
{
$count = 0;
$data = formFetch("form_review_of_systems", $id);
$sql = "SELECT name from form_review_of_systems_checks where foreign_id = '" . add_escape_custom($id) . "'";
$results = sqlQ($sql);
$data2 = array();
while ($row = sqlFetchArray($results)) {
$data2[] = $row['name'];
}
$data = array_merge($data, $data2);
if ($data) {
print "<table><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));
if (is_numeric($key)) {
$key = "check";
}
print "<td><span class=bold>{$key}: </span><span class=text>{$value}</span></td>";
$count++;
if ($count == $cols) {
$count = 0;
print "</tr><tr>\n";
}
}
}
}
开发者ID:aaricpittman,项目名称:openemr,代码行数:33,代码来源:report.php
示例14: additional_studies_report
function additional_studies_report($pid, $encounter, $cols, $id)
{
$count = 0;
$cols = 2;
$data = formFetch("form_additional_studies", $id);
$width = 100 / $cols;
if ($data) {
$value = $data['additional_studies'];
$value = str_replace("\n", "<br/>", $value);
print "{$value}";
}
}
开发者ID:mindfeederllc,项目名称:openemr,代码行数:12,代码来源:report.php
示例15: activity_impact_report
function activity_impact_report($pid, $encounter, $cols, $id)
{
$count = 0;
$cols = 2;
$data = formFetch("form_activity_impact", $id);
$width = 100 / $cols;
if ($data) {
$value = $data['activity_impact'];
$value = str_replace("\n", "<br/>", $value);
print "{$value}";
}
}
开发者ID:mindfeederllc,项目名称:openemr,代码行数:12,代码来源:report.php
示例16: complaint_history_report
function complaint_history_report($pid, $encounter, $cols, $id)
{
$count = 0;
$cols = 2;
$data = formFetch("form_complaint_history", $id);
if ($data) {
?>
<table class='text' border='0px' cellpadding='2px' cellspacing='0px'>
<tr>
<td><?php
echo $data['complaint_history'] ? $data['complaint_history'] : " ";
?>
</td>
</tr>
</table>
<?php
}
}
开发者ID:mindfeederllc,项目名称:openemr,代码行数:19,代码来源:report.php
示例17: Initial_New_Patient_Physical_Exam_report
function Initial_New_Patient_Physical_Exam_report($pid, $encounter, $cols, $id)
{
$count = 0;
$data = formFetch("form_Initial_New_Patient_Physical_Exam", $id);
if ($data) {
print "<hr><table><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));
$mykey = $key;
$myval = $value;
//Z&H Healthcare Solutions, LLC.
//www.zhservices.com
//Adding Starts
$pos = strpos($myval, 'Negative for ');
if ($pos === false) {
} elseif (!($mykey == 'Note' || $mykey == 'Note2' || $mykey == 'Note3')) {
$myval = substr($myval, 0, $pos);
}
if (!($mykey == 'Note' || $mykey == 'Note2' || $mykey == 'Note3')) {
$myval = str_replace("Positive for ", "", $myval);
}
//Adding Ends
print "<td><span class=bold>" . xl("{$mykey}") . ": </span><span class=text>" . xl("{$myval}") . "</span></td>";
$count++;
if ($count == $cols) {
$count = 0;
print "</tr><tr>\n";
}
}
}
print "</tr></table><hr>";
}
开发者ID:mindfeederllc,项目名称:openemr,代码行数:38,代码来源:report.php
示例18: clinical_instructions_report
function clinical_instructions_report($pid, $encounter, $cols, $id)
{
$count = 0;
$data = formFetch("form_clinical_instructions", $id);
if ($data) {
?>
<table style='border-collapse:collapse;border-spacing:0;width: 100%;'>
<tr>
<td align='center' style='border:1px solid #ccc;padding:4px;'><span class=bold><?php
echo xlt('Instructions');
?>
</span></td>
</tr>
<tr>
<td style='border:1px solid #ccc;padding:4px;'><span class=text><?php
echo nl2br(text($data['instruction']));
?>
</span></td>
</tr>
</table>
<?php
}
}
开发者ID:aaricpittman,项目名称:openemr,代码行数:23,代码来源:report.php
示例19: sqlStatement
include_once "../../globals.php";
include_once "{$srcdir}/api.inc";
include_once "{$srcdir}/forms.inc";
include_once "{$srcdir}/calendar.inc";
include_once "{$srcdir}/lists.inc";
$frmn = 'form_plist';
$ftitle = 'Problem list';
$old = sqlStatement("select form_id, formdir from forms where (form_name='{$ftitle}') and (pid={$pid}) order by date desc limit 1");
if ($old) {
$dt = sqlFetchArray($old);
$fid = $dt['form_id'];
if ($fid && $fid != 0 && $fid != '') {
$fdir = $dt['formdir'];
unset($dt);
$dt = formFetch($frmn, $fid);
$newid = formSubmit($frmn, array_slice($dt, 7), $id, $userauthorized);
addForm($encounter, $ftitle, $newid, $fdir, $pid, $userauthorized);
$id = $newid;
formJump("{$rootdir}/patient_file/encounter/view_form.php?formname={$fdir}&id={$newid}");
exit;
}
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<?php
html_header_show();
开发者ID:mindfeederllc,项目名称:openemr,代码行数:30,代码来源:new.php
示例20: formHeader
/*
* Sports Physical Form created by Jason Morrill: January 2009
*/
include_once "../../globals.php";
include_once "{$srcdir}/api.inc";
/** CHANGE THIS - name of the database table associated with this form **/
$table_name = "form_example";
/** CHANGE THIS name to the name of your form **/
$form_name = "My Example Form";
/** CHANGE THIS to match the folder you created for this form **/
$form_folder = "example";
formHeader("Form: " . $form_name);
$returnurl = $GLOBALS['concurrent_layout'] ? 'encounter_top.php' : 'patient_encounter.php';
/* load the saved record */
$record = formFetch($table_name, $_GET["id"]);
/* remove the time-of-day from the date fields */
if ($record['form_date'] != "") {
$dateparts = split(" ", $record['form_date']);
$record['form_date'] = $dateparts[0];
}
if ($record['dob'] != "") {
$dateparts = split(" ", $record['dob']);
$record['dob'] = $dateparts[0];
}
if ($record['sig_date'] != "") {
$dateparts = split(" ", $record['sig_date']);
$record['sig_date'] = $dateparts[0];
}
?>
开发者ID:mindfeederllc,项目名称:openemr,代码行数:29,代码来源:print.php
注:本文中的formFetch函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论