Ejemplo n.º 1
0
  <div class='tab'>
    <?php 
//display all of the notes for the day, as well as others that are active from previous dates, up to a certain number, $N
$M = 3;
?>
    <br/>
    <?php 
$has_sent_note = 0;
if (!$thisauth) {
    echo "<p>(" . htmlspecialchars(xl('Notes not authorized'), ENT_NOQUOTES) . ")</p>\n";
} else {
    ?>
    <table width='100%' border='0' cellspacing='1' cellpadding='1' style='border-collapse:collapse;' >
    <?php 
    //retrieve all active notes
    $result_sent = getSentPnotesByDate("", 1, "id,date,body,user,title,assigned_to,pid", $pid, "{$M}", 0, '', $docid);
    if ($result_sent != null) {
        $notes_sent_count = 0;
        //number of notes so far displayed
        echo "<tr class='text' style='border-bottom:2px solid #000;' >\n";
        echo "<td valign='top' class='text' ><b>" . htmlspecialchars(xl('To'), ENT_NOQUOTES) . "</b></td>\n";
        echo "<td valign='top' class='text' ><b>" . htmlspecialchars(xl('Date'), ENT_NOQUOTES) . "</b></td>\n";
        echo "<td valign='top' class='text' ><b>" . htmlspecialchars(xl('Subject'), ENT_NOQUOTES) . "</b></td>\n";
        echo "<td valign='top' class='text' ><b>" . htmlspecialchars(xl('Content'), ENT_NOQUOTES) . "</b></td>\n";
        echo "</tr>\n";
        foreach ($result_sent as $iter) {
            $has_sent_note = 1;
            $body = $iter['body'];
            if (preg_match('/^\\d\\d\\d\\d-\\d\\d-\\d\\d \\d\\d\\:\\d\\d /', $body)) {
                $body = nl2br(htmlspecialchars(oeFormatPatientNote($body), ENT_NOQUOTES));
            } else {
Ejemplo n.º 2
0
}
$title = '';
$assigned_to = $_SESSION['authUser'];
if ($noteid) {
    $prow = getPnoteById($noteid, 'title,assigned_to,body');
    $title = $prow['title'];
    $assigned_to = $prow['assigned_to'];
}
// Get the users list.  The "Inactive" test is a kludge, we should create
// a separate column for this.
$ures = sqlStatement("SELECT username, fname, lname FROM users " . "WHERE username != '' AND active = 1 AND " . "( info IS NULL OR info NOT LIKE '%Inactive%' ) " . "ORDER BY lname, fname");
$pres = getPatientData($patient_id, "lname, fname");
$patientname = $pres['lname'] . ", " . $pres['fname'];
//retrieve all notes
$result = getPnotesByDate("", $active, 'id,date,body,user,activity,title,assigned_to,message_status', $patient_id, $N, $offset, '', $docid, '', $orderid);
$result_sent = getSentPnotesByDate("", $active, 'id,date,body,user,activity,title,assigned_to,message_status', $patient_id, $M, $offset_sent, '', $docid, '', $orderid);
?>

<html>
<head>
<?php 
html_header_show();
?>

<link rel='stylesheet' href="<?php 
echo $css_header;
?>
" type="text/css">

<!-- supporting javascript code -->
<script type="text/javascript" src="<?php 
Ejemplo n.º 3
0
}
$title = '';
$assigned_to = $_SESSION['authUser'];
if ($noteid) {
    $prow = getPnoteById($noteid, 'title,assigned_to,body');
    $title = $prow['title'];
    $assigned_to = $prow['assigned_to'];
}
// Get the users list.  The "Inactive" test is a kludge, we should create
// a separate column for this.
$ures = sqlStatement("SELECT username, fname, lname FROM users " . "WHERE username != '' AND active = 1 AND " . "( info IS NULL OR info NOT LIKE '%Inactive%' ) " . "ORDER BY lname, fname");
$pres = sqlQuery("SELECT lname, fname " . "FROM patient_data WHERE pid = ?", array($pid));
$patientname = $pres['lname'] . ", " . $pres['fname'];
//retrieve all notes
$result = getPnotesByDate("", $active, 'id,date,body,user,activity,title,assigned_to,message_status', $pid, $N, $offset);
$result_sent = getSentPnotesByDate("", $active, 'id,date,body,user,activity,title,assigned_to,message_status', $pid, $M, $offset_sent);
?>

<html>
<head>
<?php 
html_header_show();
?>

<link rel='stylesheet' href="<?php 
echo $css_header;
?>
" type="text/css">

<!-- supporting javascript code -->
<script type="text/javascript" src="<?php