The Third Reminders email bug fix - contributed by arnabnaha
[openemr.git] / interface / main / onotes / office_comments.php
blobf429d3ffdfc8f3b4953a6953addb392baae04736
1 <?php
2 include_once("../../globals.php");
3 include_once("$srcdir/onotes.inc");
5 //display all of the notes for the day, as well as others that are active from previous dates, up to a certain number, $N
6 $N = 10;
7 ?>
9 <html>
10 <head>
12 <link rel="stylesheet" href="<?php echo $css_header;?>" type="text/css">
14 </head>
15 <body class="body_top">
17 <div id="officenotes_list">
18 <a href="office_comments_full.php" <?php if (!$GLOBALS['concurrent_layout']) echo 'target="Main"'; ?>>
19 <font class="title"><?php xl('Office Notes','e'); ?></font>
20 <font class="more"><?php echo $tmore;?></font></a>
22 <br>
24 <table border=0 width=100%>
26 <?php
28 //retrieve all active notes
29 if($result = getOnoteByDate("", 1, "date,body,user","all",0)) {
31 $notes_count = 0;//number of notes so far displayed
32 foreach ($result as $iter) {
33 if ($notes_count >= $N) {
34 //we have more active notes to print, but we've reached our display maximum (defined at top of this file)
35 print "<tr><td colspan=3 align=center><a target=Main href='office_comments_full.php?active=1' class='alert'>Some notes were not displayed. Click here to view all</a></td></tr>\n";
36 break;
40 if (getdate() == strtotime($iter{"date"})) {
41 $date_string = "Today, " . date( "D F dS" ,strtotime($iter{"date"}));
42 } else {
43 $date_string = date( "D F dS" ,strtotime($iter{"date"}));
46 print "<tr><td width=20% valign=top><font class='bold'>".$date_string . "</font> <font class='bold'>(". $iter{"user"}.")</font><br>" . "<font class='text'>" . stripslashes($iter{"body"}) . "</font></td></tr>\n";
49 $notes_count++;
55 </table>
56 </div>
58 </body>
59 </html>