Ejemplo n.º 1
0
     if ($orderid) {
         if (isGpRelation(2, $orderid, 6, $row_note_id)) {
             $linked = "checked";
         } else {
             // Skip unlinked notes if that is requested.
             if ($form_doc_only) {
                 continue;
             }
         }
     }
 }
 $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 {
     $body = htmlspecialchars(oeFormatSDFT(strtotime($iter['date'])) . date(' H:i', strtotime($iter['date'])), ENT_NOQUOTES) . ' (' . htmlspecialchars($iter['user'], ENT_NOQUOTES) . ') ' . nl2br(htmlspecialchars(oeFormatPatientNote($body), ENT_NOQUOTES));
 }
 $body = preg_replace('/(:\\d{2}\\s\\()' . $patient_id . '(\\sto\\s)/', '${1}' . $patientname . '${2}', $body);
 if ($iter["activity"] && $iter['message_status'] != "Done") {
     $checked = "checked";
 } else {
     $checked = "";
 }
 // highlight the row if it's been selected for updating
 if ($_REQUEST['noteid'] == $row_note_id) {
     echo " <tr height=20 class='noterow highlightcolor' id='" . htmlspecialchars($row_note_id, ENT_QUOTES) . "'>\n";
 } else {
     echo " <tr class='noterow' id='" . htmlspecialchars($row_note_id, ENT_QUOTES) . "'>\n";
 }
 echo "  <td><a href='pnotes_full_add.php?{$urlparms}&trigger=edit&noteid=" . htmlspecialchars($row_note_id, ENT_QUOTES) . "' class='css_button_small iframe' onclick='top.restoreSession()'><span>" . htmlspecialchars(xl('Edit'), ENT_NOQUOTES) . "</span></a>\n";
 // display, or not, a button to delete the note
Ejemplo n.º 2
0
 $linked = "";
 if ($docid) {
     if (isGpRelation(1, $docid, 6, $row_note_id)) {
         $linked = "checked";
     } else {
         // Skip unlinked notes if that is requested.
         if ($form_doc_only) {
             continue;
         }
     }
 }
 $body = $iter['body'];
 if (preg_match('/^\\d\\d\\d\\d-\\d\\d-\\d\\d \\d\\d\\:\\d\\d /', $body)) {
     $body = nl2br(oeFormatPatientNote($body));
 } else {
     $body = oeFormatSDFT(strtotime($iter['date'])) . date(' H:i', strtotime($iter['date'])) . ' (' . $iter['user'] . ') ' . nl2br(oeFormatPatientNote($body));
 }
 if ($iter["activity"]) {
     $checked = "checked";
 } else {
     $checked = "";
 }
 // highlight the row if it's been selected for updating
 if ($_REQUEST['noteid'] == $row_note_id) {
     echo " <tr height=20 class='noterow highlightcolor' id='{$row_note_id}'>\n";
 } else {
     echo " <tr class='noterow' id='{$row_note_id}'>\n";
 }
 echo "  <td><a href='pnotes_full_add.php?trigger=edit&noteid={$row_note_id}' class='css_button_small iframe'><span>" . xl('Edit') . "</span></a>\n";
 // display, or not, a button to delete the note
 // if the user is an admin or if they are the author of the note, they can delete it