当前位置: 首页>>代码示例>>PHP>>正文


PHP generate_display_field函数代码示例

本文整理汇总了PHP中generate_display_field函数的典型用法代码示例。如果您正苦于以下问题:PHP generate_display_field函数的具体用法?PHP generate_display_field怎么用?PHP generate_display_field使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了generate_display_field函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: procedure_order_report

function procedure_order_report($pid, $encounter, $cols, $id)
{
    $cols = 1;
    // force always 1 column
    $count = 0;
    $data = sqlQuery("SELECT * " . "FROM procedure_order WHERE " . "procedure_order_id = '{$id}' AND activity = '1'");
    if ($data) {
        print "<table cellpadding='0' cellspacing='0'>\n<tr>\n";
        foreach ($data as $key => $value) {
            if ($key == "procedure_order_id" || $key == "pid" || $key == "user" || $key == "groupname" || $key == "authorized" || $key == "activity" || $key == "date" || $value == "" || $value == "0" || $value == "0.00") {
                continue;
            }
            $key = ucwords(str_replace("_", " ", $key));
            if ($key == "Order Priority") {
                print "<td valign='top'><span class='bold'>" . xl($key) . ": </span><span class='text'>" . generate_display_field(array('data_type' => '1', 'list_id' => 'ord_priority'), $value) . " &nbsp;</span></td>\n";
            } else {
                if ($key == "Order Status") {
                    print "<td valign='top'><span class='bold'>" . xl($key) . ": </span><span class='text'>" . generate_display_field(array('data_type' => '1', 'list_id' => 'ord_status'), $value) . " &nbsp;</span></td>\n";
                } else {
                    print "<td valign='top'><span class='bold'>" . xl($key) . ": </span><span class='text'>{$value} &nbsp;</span></td>\n";
                }
            }
            $count++;
            if ($count == $cols) {
                $count = 0;
                print "</tr>\n<tr>\n";
            }
        }
        print "</tr>\n</table>\n";
    }
}
开发者ID:robonology,项目名称:openemr,代码行数:31,代码来源:report.php

示例2: get_display_field

 /**  
 * To display the result/report names from lists
 */
 public function get_display_field($data)
 {
     if ($this->valid($data[0])) {
         $ret = generate_display_field(array('data_type' => $data['data_type'], 'list_id' => $data['list_id']), $data['value']);
         return $ret;
     }
 }
开发者ID:jatin-52,项目名称:erm,代码行数:10,代码来源:server_side.php

示例3: getLabel

function getLabel($value, $list_id)
{
    // get from list_options
    $result = generate_display_field(array('data_type' => '1', 'list_id' => $list_id), $value);
    if ($result != '') {
        return $result;
    }
    // if not found, default to the passed-in value
    return $value;
}
开发者ID:katopenzz,项目名称:openemr,代码行数:10,代码来源:ui.php

示例4: clinical_summary_widget

function clinical_summary_widget($patient_id, $mode, $dateTarget = '', $organize_mode = 'default')
{
    // Set date to current if not set
    $dateTarget = $dateTarget ? $dateTarget : date('Y-m-d H:i:s');
    // Collect active actions
    $actions = test_rules_clinic('', 'passive_alert', $dateTarget, $mode, $patient_id, '', $organize_mode);
    // Display the actions
    foreach ($actions as $action) {
        // Deal with plan names first
        if ($action['is_plan']) {
            echo "<br><b>";
            echo htmlspecialchars(xl("Plan"), ENT_NOQUOTES) . ": ";
            echo generate_display_field(array('data_type' => '1', 'list_id' => 'clinical_plans'), $action['id']);
            echo "</b><br>";
            continue;
        }
        if ($action['custom_flag']) {
            // Start link for reminders that use the custom rules input screen
            echo "<a href='../rules/patient_data.php?category=" . htmlspecialchars($action['category'], ENT_QUOTES) . "&item=" . htmlspecialchars($action['item'], ENT_QUOTES) . "' class='iframe  medium_modal' onclick='top.restoreSession()'>";
        } else {
            if ($action['clin_rem_link']) {
                // Start link for reminders that use the custom rules input screen
                echo "<a href='../../../" . $action['reminder_message'] . "' class='iframe  medium_modal' onclick='top.restoreSession()'>";
            } else {
                // continue, since no link will be created
            }
        }
        // Display Reminder Details
        echo generate_display_field(array('data_type' => '1', 'list_id' => 'rule_action_category'), $action['category']) . ": " . generate_display_field(array('data_type' => '1', 'list_id' => 'rule_action'), $action['item']);
        if ($action['custom_flag'] || $action['clin_rem_link']) {
            // End link for reminders that use an html link
            echo "</a>";
        }
        // Display due status
        if ($action['due_status']) {
            // Color code the status (red for past due, purple for due, green for not due and black for soon due)
            if ($action['due_status'] == "past_due") {
                echo "&nbsp;&nbsp;(<span style='color:red'>";
            } else {
                if ($action['due_status'] == "due") {
                    echo "&nbsp;&nbsp;(<span style='color:purple'>";
                } else {
                    if ($action['due_status'] == "not_due") {
                        echo "&nbsp;&nbsp;(<span style='color:green'>";
                    } else {
                        echo "&nbsp;&nbsp;(<span>";
                    }
                }
            }
            echo generate_display_field(array('data_type' => '1', 'list_id' => 'rule_reminder_due_opt'), $action['due_status']) . "</span>)<br>";
        } else {
            echo "<br>";
        }
    }
}
开发者ID:robytj,项目名称:openemr,代码行数:55,代码来源:clinical_rules.php

示例5: convertToDataArray

function convertToDataArray($data_array)
{
    $current = 0;
    while ($row = sqlFetchArray($data_array)) {
        //admin date
        $temp_date = new DateTime($row['administered_date']);
        $data[$current][xl('Date') . "\n" . xl('Admin')] = $temp_date->format('Y-m-d H:i');
        //->format('%Y-%m-%d %H:%i');
        //Vaccine
        // Figure out which name to use (ie. from cvx list or from the custom list)
        if ($GLOBALS['use_custom_immun_list']) {
            $vaccine_display = generate_display_field(array('data_type' => '1', 'list_id' => 'immunizations'), $row['immunization_id']);
        } else {
            if (!empty($row['code_text_short'])) {
                $vaccine_display = htmlspecialchars(xl($row['code_text_short']), ENT_NOQUOTES);
            } else {
                $vaccine_display = generate_display_field(array('data_type' => '1', 'list_id' => 'immunizations'), $row['immunization_id']);
            }
        }
        $data[$current][xl('Vaccine')] = $vaccine_display;
        //Amount
        if ($row['amount_administered'] > 0) {
            $data[$current][xl('Amount') . "\n" . xl('Admin')] = $row['amount_administered'] . " " . generate_display_field(array('data_type' => '1', 'list_id' => 'drug_units'), $row['amount_administered_unit']);
        } else {
            $data[$current][xl('Amount') . "\n" . xl('Admin')] = "";
        }
        //expiration date fixed by checking for empty value, smw 040214
        if (isset($row['expiration_date'])) {
            $temp_date = new DateTime($row['expiration_date']);
            $data[$current][xl('Expiration') . "\n" . xl('Date')] = $temp_date->format('Y-m-d');
        } else {
            $data[$current][xl('Expiration') . "\n" . xl('Date')] = '';
            //$temp_date->format('Y-m-d');
        }
        //Manufacturer
        $data[$current][xl('Manufacturer')] = $row['manufacturer'];
        //Lot Number
        $data[$current][xl('Lot') . "\n" . xl('Number')] = $row['lot_number'];
        //Admin By
        $data[$current][xl('Admin') . "\n" . xl('By')] = $row['administered_by'];
        //education date
        $temp_date = new DateTime($row['education_date']);
        $data[$current][xl('Patient') . "\n" . xl('Education') . "\n" . xl('Date')] = $temp_date->format('Y-m-d');
        //Route
        $data[$current][xl('Route')] = generate_display_field(array('data_type' => '1', 'list_id' => 'drug_route'), $row['route']);
        //Admin Site
        $data[$current][xl('Admin') . "\n" . xl('Site')] = generate_display_field(array('data_type' => '1', 'list_id' => 'proc_body_site'), $row['administration_site']);
        //Comments
        $data[$current][xl('Comments')] = $row['note'];
        $current++;
    }
    return $data;
}
开发者ID:katopenzz,项目名称:openemr,代码行数:53,代码来源:shot_record.php

示例6: printAmendment

function printAmendment($amendmentID, $lastAmendment)
{
    $query = "SELECT lo.title AS 'amendmentFrom', lo1.title AS 'amendmentStatus',a.* FROM amendments a \n\t\tLEFT JOIN list_options lo ON a.amendment_by = lo.option_id AND lo.list_id = 'amendment_from' AND lo.activity = 1\n\t\tLEFT JOIN list_options lo1 ON a.amendment_status = lo1.option_id AND lo1.list_id = 'amendment_status' AND lo1.activity = 1\n\t\tWHERE a.amendment_id = ?";
    $resultSet = sqlQuery($query, array($amendmentID));
    echo "<table>";
    echo "<tr class=text>";
    echo "<td class=bold>" . xlt("Requested Date") . ":" . "</td>";
    echo "<td>" . oeFormatShortDate($resultSet['amendment_date']) . "</td>";
    echo "</tr>";
    echo "<tr class=text>";
    echo "<td class=bold>" . xlt("Requested By") . ":" . "</td>";
    echo "<td>" . generate_display_field(array('data_type' => '1', 'list_id' => 'amendment_from'), $resultSet['amendment_by']) . "</td>";
    echo "</tr>";
    echo "<tr class=text>";
    echo "<td class=bold>" . xlt("Request Status") . ":" . "</td>";
    echo "<td>" . generate_display_field(array('data_type' => '1', 'list_id' => 'amendment_status'), $resultSet['amendment_status']) . "</td>";
    echo "</tr>";
    echo "<tr class=text>";
    echo "<td class=bold>" . xlt("Request Description") . ":" . "</td>";
    echo "<td>" . text($resultSet['amendment_desc']) . "</td>";
    echo "</tr>";
    echo "</table>";
    echo "<hr>";
    echo "<span class='bold'>" . xlt("History") . "</span><br>";
    $pageBreak = $lastAmendment ? "" : "page-break-after:always";
    echo "<table border='1' cellspacing=0 cellpadding=3 style='width:75%;margin-top:10px;margin-bottom:20px;" . $pageBreak . "'>";
    echo "<tr class='text bold'>";
    echo "<th align=left style='width:10%'>" . xlt("Date") . "</th>";
    echo "<th align=left style='width:20%'>" . xlt("By") . "</th>";
    echo "<th align=left >" . xlt("Comments") . "</th>";
    echo "</tr>";
    $query = "SELECT u.fname,u.lname,ah.* FROM amendments_history ah INNER JOIN users u ON ah.created_by = u.id WHERE ah.amendment_id = ?";
    $resultSet = sqlStatement($query, array($amendmentID));
    while ($row = sqlFetchArray($resultSet)) {
        echo "<tr class=text>";
        $created_date = date('Y-m-d', strtotime($row['created_time']));
        echo "<td>" . oeFormatShortDate($created_date) . "</td>";
        echo "<td>" . text($row['lname']) . ", " . text($row['fname']) . "</td>";
        echo "<td>" . text($row['amendment_note']) . "</td>";
        echo "</tr>";
    }
    echo "</table>";
}
开发者ID:juggernautsei,项目名称:openemr,代码行数:43,代码来源:print_amendments.php

示例7: sqlStatement

}
$result = sqlStatement($sql, array($pid));
while ($row = sqlFetchArray($result)) {
    if ($row["id"] == $id) {
        echo "<tr class='immrow text selected' id='" . htmlspecialchars($row["id"], ENT_QUOTES) . "'>";
    } else {
        echo "<tr class='immrow text' id='" . htmlspecialchars($row["id"], ENT_QUOTES) . "'>";
    }
    // Figure out which name to use (ie. from cvx list or from the custom list)
    if ($GLOBALS['use_custom_immun_list']) {
        $vaccine_display = generate_display_field(array('data_type' => '1', 'list_id' => 'immunizations'), $row['immunization_id']);
    } else {
        if (!empty($row['code_text_short'])) {
            $vaccine_display = htmlspecialchars(xl($row['code_text_short']), ENT_NOQUOTES);
        } else {
            $vaccine_display = generate_display_field(array('data_type' => '1', 'list_id' => 'immunizations'), $row['immunization_id']);
        }
    }
    echo "<td>" . $vaccine_display . "</td>";
    echo "<td>" . htmlspecialchars($row["administered_date"], ENT_NOQUOTES) . "</td>";
    echo "<td>" . htmlspecialchars($row["manufacturer"], ENT_NOQUOTES) . "</td>";
    echo "<td>" . htmlspecialchars($row["lot_number"], ENT_NOQUOTES) . "</td>";
    echo "<td>" . htmlspecialchars($row["administered_by"], ENT_NOQUOTES) . "</td>";
    echo "<td>" . htmlspecialchars($row["education_date"], ENT_NOQUOTES) . "</td>";
    echo "<td>" . htmlspecialchars($row["note"], ENT_NOQUOTES) . "</td>";
    echo "<td><input type='button' class='delete' id='" . htmlspecialchars($row["id"], ENT_QUOTES) . "' value='" . htmlspecialchars(xl('Delete'), ENT_QUOTES) . "'></td>";
    echo "</tr>";
}
?>

    </table>
开发者ID:kgenaidy,项目名称:openemr,代码行数:31,代码来源:immunizations.php

示例8: send_reminders

/**
 * Function to send reminders.
 *
 * Function that sends reminders and returns an array with a specific data structure.
 * <pre>The data structure of the return array includes the following elements
 *   'total_pre_unsent_reminders'  - Number of reminders before processing.
 *   'total_post_unsent_reminders' - Number of reminders after processing.
 *   'number_success_emails'       - Number of successfully sent email reminders.
 *   'number_failed_emails'        - Number of failed sent email reminders.
 *   'number_success_calls'        - Number of successfully call reminders.
 *   'number_failed_calls'         - Number of failed call reminders.
 * </pre>
 *
 * @return array                 see above for data structure of returned array
 */
function send_reminders()
{
    $logging = array();
    // Collect active reminders that have not yet been sent.
    $active_unsent_reminders = fetch_reminders('', 'unsent');
    $logging['total_pre_unsent_reminders'] = count($active_unsent_reminders);
    // Send the unsent reminders
    $logging['number_success_emails'] = 0;
    $logging['number_failed_emails'] = 0;
    $logging['number_success_calls'] = 0;
    $logging['number_failed_calls'] = 0;
    foreach ($active_unsent_reminders as $reminder) {
        // Collect patient information that reminder is going to.
        $sql = "SELECT `fname`, `lname`, `email`, `phone_home`, `hipaa_voice`, `hipaa_allowemail` from `patient_data` where `pid`=?";
        $result = sqlQueryCdrEngine($sql, array($reminder['pid']));
        $patientfname = $result['fname'];
        $patientlname = $result['lname'];
        $patientemail = $result['email'];
        $patientphone = $result['phone_home'];
        $hipaa_voice = $result['hipaa_voice'];
        $hipaa_allowemail = $result['hipaa_allowemail'];
        // Email to patient if Allow Email and set reminder sent flag.
        if ($hipaa_allowemail == "YES") {
            $mail = new MyMailer();
            $sender_name = $GLOBALS['patient_reminder_sender_name'];
            $email_address = $GLOBALS['patient_reminder_sender_email'];
            $mail->FromName = $sender_name;
            // required
            $mail->Sender = $email_address;
            // required
            $mail->From = $email_address;
            // required
            $mail->AddAddress($patientemail, $patientfname . ", " . $patientlname);
            // required
            $mail->AddReplyTo($email_address, $sender_name);
            // required
            $category_title = generate_display_field(array('data_type' => '1', 'list_id' => 'rule_action_category'), $reminder['category']);
            $item_title = generate_display_field(array('data_type' => '1', 'list_id' => 'rule_action'), $reminder['item']);
            $mail->Body = "Dear " . $patientfname . ", This is a message from your clinic to remind you of your " . $category_title . ": " . $item_title;
            $mail->Subject = "Clinic Reminder";
            if ($mail->Send()) {
                // deal with and keep track of this successful email
                sqlStatementCdrEngine("UPDATE `patient_reminders` SET `email_status`='1', `date_sent`=NOW() WHERE id=?", array($reminder['id']));
                $logging['number_success_emails']++;
            } else {
                // deal with and keep track of this unsuccesful email
                $logging['number_failed_emails']++;
            }
        }
        // Call to patient if Allow Voice Message and set reminder sent flag.
        if ($hipaa_voice == "YES") {
            /******************************************************************************
            *     // Maviq does not work, is not currently supported, and seems to break on windows servers, so this
            *     //  feature has been commented out for now.
            *     // Automated VOIP service provided by Maviq. Please visit http://signup.maviq.com for more information.
            *      $siteId = $GLOBALS['phone_gateway_username'];
            *      $token = $GLOBALS['phone_gateway_password'];
            *      $endpoint = $GLOBALS['phone_gateway_url'];
            *      $client = new MaviqClient($siteId, $token, $endpoint);
            *      //Set up params.
            *      $data = array(
            *        "firstName" => $patientfname,
            *        "lastName" => $patientlname,
            *        "phone" => $patientphone,
            *        //"apptDate" => "$scheduled_date[1]/$scheduled_date[2]/$scheduled_date[0]",
            *        "timeRange" => "10-18",
            *        "type" => "reminder",
            *        "timeZone" => date('P'),
            *        "greeting" => str_replace("[[sender]]", $sender_name, str_replace("[[patient_name]]", $patientfname, $myrow['reminder_content']))
            *      );
            *
            *      // Make the call.
            *      $response = $client->sendRequest("appointment", "POST", $data);
            *
            *      if ($response->IsError) {
            *        // deal with and keep track of this unsuccessful call
            *        $logging['number_failed_calls']++;
            *      }
            *      else {
            *        // deal with and keep track of this succesful call
            *        sqlStatementCdrEngine("UPDATE `patient_reminders` SET `voice_status`='1', `date_sent`=NOW() WHERE id=?", array($reminder['id']) );
            *        $logging['number_success_calls']++;
            *      }
            *******************************************************************************/
        }
//.........这里部分代码省略.........
开发者ID:mindfeederllc,项目名称:openemr,代码行数:101,代码来源:reminders.php

示例9: generate_display_field

        $cell_count += $datacols;
    }
    ++$item_count;
    // Skip current-value fields for the display-only case.
    if (empty($is_lbf)) {
        if ($frow['edit_options'] == 'H') {
            echo generate_display_field($frow, $currvalue);
        } else {
            generate_form_field($frow, $currvalue);
        }
    }
    // Append to historical data of other dates for this item.
    foreach ($historical_ids as $key => $dummy) {
        $hvrow = sqlQuery("SELECT field_value FROM lbf_data WHERE " . "form_id = '{$key}' AND field_id = '{$field_id}'");
        $value = empty($hvrow) ? '' : $hvrow['field_value'];
        $historical_ids[$key] .= generate_display_field($frow, $value);
    }
}
end_group();
?>

<p style='text-align:center'>
<?php 
if (empty($is_lbf)) {
    ?>
<input type='submit' name='bn_save' value='<?php 
    echo htmlspecialchars(xl('Save'));
    ?>
' />
&nbsp;
<input type='button' value='<?php 
开发者ID:richsiy,项目名称:openemr,代码行数:31,代码来源:new.php

示例10: empty

     } else {
         if (!empty($row['facility_id'])) {
             continue;
         }
     }
 }
 $patient_name = $row['lname'] . ', ' . $row['fname'] . ' ' . $row['mname'];
 //$patient_id      = $row['patient_id'];
 $patient_id = $row['pubpid'];
 $prescription_id = $row['id'];
 $drug_name = empty($row['name']) ? $row['drug'] : $row['name'];
 $ndc_number = $row['ndc_number'];
 $drug_units = $row['size'] . ' ' . generate_display_field(array('data_type' => '1', 'list_id' => 'drug_units'), $row['unit']);
 $refills = $row['refills'];
 $reactions = $row['reactions'];
 $instructed = $row['dosage'] . ' ' . generate_display_field(array('data_type' => '1', 'list_id' => 'drug_form'), $row['form']) . ' ' . generate_display_field(array('data_type' => '1', 'list_id' => 'drug_interval'), $row['interval']);
 //if ($row['patient_id'] == $last_patient_id) {
 if (strcmp($row['pubpid'], $last_patient_id) == 0) {
     $patient_name = '&nbsp;';
     $patient_id = '&nbsp;';
     if ($row['id'] == $last_prescription_id) {
         $prescription_id = '&nbsp;';
         $drug_name = '&nbsp;';
         $ndc_number = '&nbsp;';
         $drug_units = '&nbsp;';
         $refills = '&nbsp;';
         $reactions = '&nbsp;';
         $instructed = '&nbsp;';
     }
 }
 ?>
开发者ID:mindfeederllc,项目名称:openemr,代码行数:31,代码来源:prescriptions_report.php

示例11: sqlStatement

    $sqlstmt .= " i1.immunization_id, i1.administered_date DESC";
} else {
    $sqlstmt .= " i1.administered_date desc";
}
$res3 = sqlStatement($sqlstmt, array($pid));
while ($data[] = sqlFetchArray($res3)) {
}
for ($i = 0; $i < count($data); $i++) {
    // Figure out which name to use (ie. from cvx list or from the custom list)
    if ($GLOBALS['use_custom_immun_list']) {
        $data[$i][xl('Vaccine')] = generate_display_field(array('data_type' => '1', 'list_id' => 'immunizations'), $data[$i][xl('Vaccine')]);
    } else {
        if (!empty($data[$i]['cvx_text'])) {
            $data[$i][xl('Vaccine')] = htmlspecialchars(xl($data[$i]['cvx_text']), ENT_NOQUOTES);
        } else {
            $data[$i][xl('Vaccine')] = generate_display_field(array('data_type' => '1', 'list_id' => 'immunizations'), $data[$i][xl('Vaccine')]);
        }
    }
    unset($data[$i]['cvx_text']);
}
$title = xl('Shot Record as of:', '', '', ' ') . date('m/d/Y h:i:s a');
if ($_GET['output'] == "html") {
    //print html css
    //convert end of line characters to html (escape for html output first)
    $patterns = array('/\\n/');
    $replace = array('<br>');
    $res['facility_address'] = htmlspecialchars($res['facility_address'], ENT_NOQUOTES);
    $res['facility_address'] = preg_replace($patterns, $replace, $res['facility_address']);
    $res2['patient_address'] = htmlspecialchars($res2['patient_address'], ENT_NOQUOTES);
    $res2['patient_address'] = preg_replace($patterns, $replace, $res2['patient_address']);
    //deal with bug (last array index is empty)
开发者ID:kgenaidy,项目名称:openemr,代码行数:31,代码来源:shot_record.php

示例12: htmlspecialchars

            echo "href='pnotes_full.php?active=1&{$urlparms}" . "' class='alert' onclick='top.restoreSession()'>";
            echo htmlspecialchars(xl('Some notes were not displayed.', '', '', ' '), ENT_NOQUOTES) . htmlspecialchars(xl('Click here to view all.'), ENT_NOQUOTES) . "</a>\n";
            echo "  </td>\n";
            echo " </tr>\n";
            break;
        }
        $body = $iter['body'];
        if (preg_match('/^\\d\\d\\d\\d-\\d\\d-\\d\\d \\d\\d\\:\\d\\d /', $body)) {
            $body = nl2br(htmlspecialchars($body, ENT_NOQUOTES));
        } else {
            $body = htmlspecialchars(date('Y-m-d H:i', strtotime($iter['date'])), ENT_NOQUOTES) . ' (' . htmlspecialchars($iter['user'], ENT_NOQUOTES) . ') ' . nl2br(htmlspecialchars($body, ENT_NOQUOTES));
        }
        echo " <tr class='text noterow' id='" . htmlspecialchars($iter['id'], ENT_QUOTES) . "'>\n";
        // Modified 6/2009 by BM to incorporate the patient notes into the list_options listings
        echo "  <td valign='top' class='bold'>";
        echo generate_display_field(array('data_type' => '1', 'list_id' => 'note_type'), $iter['title']);
        echo "</td>\n";
        echo "  <td valign='top'>{$body}</td>\n";
        echo " </tr>\n";
        $notes_count++;
    }
}
?>

</table>

</div> <!-- end pnotes -->

</body>

<script language="javascript">
开发者ID:katopenzz,项目名称:openemr,代码行数:31,代码来源:pnotes.php

示例13: array

    $row = array();
    if (!empty($ptrow)) {
        $query = "SELECT ct.ct_when, ct.ct_userid, ct.ct_location, " . "u.username, u.fname, u.mname, u.lname " . "FROM chart_tracker AS ct " . "LEFT OUTER JOIN users AS u ON u.id = ct.ct_userid " . "WHERE ct.ct_pid = ? " . "ORDER BY ct.ct_when DESC";
        $res = sqlStatement($query, array($curr_pid));
        while ($row = sqlFetchArray($res)) {
            ?>
 <tr>
  <td>
   <?php 
            echo text(oeFormatShortDate(substr($row['ct_when'], 0, 10))) . text(substr($row['ct_when'], 10));
            ?>
  </td>
  <td>
<?php 
            if (!empty($row['ct_location'])) {
                echo generate_display_field(array('data_type' => '1', 'list_id' => 'chartloc'), $row['ct_location']);
            } else {
                if (!empty($row['ct_userid'])) {
                    echo text($row['lname']) . ', ' . text($row['fname']) . ' ' . text($row['mname']);
                }
            }
            ?>
  </td>
 </tr>
<?php 
        }
        // end while
    }
    // end if
    ?>
</tbody>
开发者ID:katopenzz,项目名称:openemr,代码行数:31,代码来源:chart_location_activity.php

示例14: count

            }
            // calculate count of encounters, regardless of billing
            $query = "select count(date) as encounter_count " . " from form_encounter where " . " pid = ?";
            $statement = sqlStatement($query, array($iter["pid"]));
            if ($results = sqlFetchArray($statement)) {
                $encounter_count = $results['encounter_count'];
            }
            echo "<td class='srNumEnc'>" . htmlspecialchars($encounter_count, ENT_NOQUOTES) . "</td>\n";
            echo "<td class='srNumDay'>" . htmlspecialchars($day_diff, ENT_NOQUOTES) . "</td>\n";
            echo "<td class='srDateLast'>" . htmlspecialchars($last_date_seen, ENT_NOQUOTES) . "</td>\n";
            echo "<td class='srDateNext'>" . htmlspecialchars($next_appt_date, ENT_NOQUOTES) . "</td>\n";
        } else {
            // alternate search results style
            foreach ($extracols as $field_id => $frow) {
                echo "<td class='srMisc'>";
                echo generate_display_field($frow, $iter[$field_id]);
                echo "</td>\n";
            }
        }
    }
}
?>
</table>
</div>  <!-- end searchResults DIV -->

<script language="javascript">

// jQuery stuff to make the page a little easier to use

$(document).ready(function(){
    // $("#searchparm").focus();
开发者ID:juggernautsei,项目名称:openemr,代码行数:31,代码来源:patient_select.php

示例15: date

        $dayname = date("l", strtotime($row['pc_eventDate']));
        $dispampm = "am";
        $disphour = substr($row['pc_startTime'], 0, 2) + 0;
        $dispmin = substr($row['pc_startTime'], 3, 2);
        if ($disphour >= 12) {
            $dispampm = "pm";
            if ($disphour > 12) {
                $disphour -= 12;
            }
        }
        if ($row['pc_hometext'] != "") {
            $etitle = xl('Comments') . ": " . $row['pc_hometext'] . "\r\n" . $etitle;
        }
        echo "<a href='javascript:oldEvt(" . htmlspecialchars($row['pc_eid'], ENT_QUOTES) . ")' title='" . htmlspecialchars($etitle, ENT_QUOTES) . "'>";
        echo "<b>" . htmlspecialchars(xl($dayname) . ", " . $row['pc_eventDate'], ENT_NOQUOTES) . "</b>" . xlt("Status") . "(";
        echo " " . generate_display_field(array('data_type' => '1', 'list_id' => 'apptstat'), $row['pc_apptstatus']) . ")<br>";
        // can't use special char parser on this
        echo htmlspecialchars("{$disphour}:{$dispmin} ") . xl($dispampm) . " ";
        echo htmlspecialchars($row['fname'] . " " . $row['lname'], ENT_NOQUOTES) . "</a><br>\n";
    }
    if (isset($pres) && $res != null) {
        if ($count < 1) {
            echo "&nbsp;&nbsp;" . htmlspecialchars(xl('None'), ENT_NOQUOTES);
        }
        echo "</div>";
    }
}
// END of past appointments
?>
		</div>
开发者ID:mindfeederllc,项目名称:openemr,代码行数:30,代码来源:demographics.php


注:本文中的generate_display_field函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。