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
12 <link rel
="stylesheet" href
="<?php echo $css_header;?>" type
="text/css">
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
>
24 <table border
=0 width
=100%
>
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";
40 if (getdate() == strtotime($iter{"date"})) {
41 $date_string = "Today, " . date( "D F dS" ,strtotime($iter{"date"}));
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";