Skip to content

Commit

Permalink
highlight pt.comments
Browse files Browse the repository at this point in the history
uses a lightbox to highlight when a record has a pt. comment.
  • Loading branch information
frgeof committed Oct 20, 2017
1 parent 6dc15c6 commit 6987d3b
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 2 deletions.
19 changes: 17 additions & 2 deletions html/review.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@
<form name=\"review_pt\" action=\"\" method=\"POST\">
<TABLE>";

$pg_len = 0;
$pg_len = 0;
$pt_comment_text = "";
while ($events_QUERY->fetch())
{
if (($pg_len > 60) || ($pg_len == 0))
Expand Down Expand Up @@ -286,18 +287,21 @@
{
echo " <TD> 24 hr </TD>
<TD colspan=\"7\"> $pt_24hr_details </TD>";
$pt_comment_text .= "<b> 24 hr:</b> $pt_24hr_details <br /><br />";
}

if (strlen($pt_72hr_details) > 0)
{
echo " <TD> 72 hr </TD>
<TD colspan=\"7\"> $pt_72hr_details </TD>";
$pt_comment_text .= "<b> 72 hr:</b> $pt_72hr_details <br /><br />";
}

if (strlen($pt_1wk_details) > 0)
{
echo " <TD> 1 wk </TD>
<TD colspan=\"7\"> $pt_1wk_details </TD>";
$pt_comment_text .= "<b> 1 wk: </b> $pt_1wk_details <br /><br />";
}
}

Expand Down Expand Up @@ -369,7 +373,7 @@
</form>
</span>
</center>";

if (isset($_POST['submit']))
{
if (count($event_id_array) > 0)
Expand Down Expand Up @@ -439,6 +443,17 @@
header('Location: pause.php');
}
}

if (strlen($pt_comment_text) > 0)
{
echo " <span id=\"pt-comments\" class=\"comment-text\"><center><b> .: Patient Comments :.</b></center> <br /><br />$pt_comment_text<br /><br /><a href=\"javascript:void(0)\" onclick=\"document.getElementById('pt-comments').style.display='none';document.getElementById('pt-comments-overlay').style.display='none'\">[ close ] </a></span>
<span id=\"pt-comments-overlay\" class=\"comment-overlay\"></span>
<script type=\"text/javascript\">
window.onload=\"document.getElementById('pt-comments').style.display='block';document.getElementById('pt-comments-overlay').style.display='block'\";
</script>";
}

include("footer.php");
}
ob_end_flush();
Expand Down
28 changes: 28 additions & 0 deletions html/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6987d3b

Please sign in to comment.