From 6987d3ba2094f825af45f08fde25ff8ac9226097 Mon Sep 17 00:00:00 2001 From: Geoffroey-Allen Franklin Date: Fri, 20 Oct 2017 19:29:26 -0400 Subject: [PATCH] highlight pt.comments uses a lightbox to highlight when a record has a pt. comment. --- html/review.php | 19 +++++++++++++++++-- html/styles.css | 28 ++++++++++++++++++++++++++++ 2 files changed, 45 insertions(+), 2 deletions(-) diff --git a/html/review.php b/html/review.php index bdd6aab..682ac18 100644 --- a/html/review.php +++ b/html/review.php @@ -79,7 +79,8 @@
"; - $pg_len = 0; + $pg_len = 0; + $pt_comment_text = ""; while ($events_QUERY->fetch()) { if (($pg_len > 60) || ($pg_len == 0)) @@ -286,18 +287,21 @@ { echo " "; + $pt_comment_text .= " 24 hr: $pt_24hr_details

"; } if (strlen($pt_72hr_details) > 0) { echo " "; + $pt_comment_text .= " 72 hr: $pt_72hr_details

"; } if (strlen($pt_1wk_details) > 0) { echo " "; + $pt_comment_text .= " 1 wk: $pt_1wk_details

"; } } @@ -369,7 +373,7 @@ "; - + if (isset($_POST['submit'])) { if (count($event_id_array) > 0) @@ -439,6 +443,17 @@ header('Location: pause.php'); } } + + if (strlen($pt_comment_text) > 0) + { + echo "
.: Patient Comments :.


$pt_comment_text

[ close ]
+ + + "; + } + include("footer.php"); } ob_end_flush(); diff --git a/html/styles.css b/html/styles.css index 9063451..4209f50 100644 --- a/html/styles.css +++ b/html/styles.css @@ -19,6 +19,34 @@ tr:nth-child(even) { tr:nth-child(odd) { background-color: white; } + +span.comment-overlay { + display: block; + position: absolute; + top: 0%; + left: 0%; + width: 100%; + height: 100%; + background-color: black; + z-index:1001; + -moz-opacity: 0.8; + opacity:.80; + filter: alpha(opacity=80); +} + +span.comment-text { + display: block; + position: absolute; + top: 25%; + left: 25%; + width: 50%; + height: 50%; + padding: 16px; + border: 16px solid orange; + background-color: white; + z-index:1002; + overflow: auto; +} BODY { font-family: serif;
24 hr $pt_24hr_details 72 hr $pt_72hr_details 1 wk $pt_1wk_details