public function get_workComments($workID, $foriPhone = false) { $result = mysql_query("select comment_date, comment_by, comment from COMMENTS where workID='{$workID}' ORDER BY comment_date DESC"); $lastCommentPerson = ''; if ($foriPhone) { echo "<div id='taskcomments_" . $workID . "' class='divViewComments'>"; while ($row = mysql_fetch_assoc($result)) { if ($lastCommentPerson != $row['comment_by']) { echo '<div class="commentBy">' . $row['comment_by'] . ' said:</div>'; } echo '<div class="commentBdesc">' . format_makeLinks(mynl2br($row['comment'])) . '</div>'; echo '<div class="commentDate">' . caldateTS_to_humanWithTS($row['comment_date']) . '</div>'; $lastCommentPerson = $row['comment_by']; } echo "</div>"; return; } echo "<table align=center width='97%' cellpadding=2 cellspacing=2 border=0 style='font-size: 95%; margin-top:15px;'>"; while ($row = mysql_fetch_assoc($result)) { ?> <tr><td valign='top' align='right' width='125'> <span style='font-weight:bold; color: #65869E;'> <?php if ($lastCommentPerson != $row['comment_by']) { echo $row['comment_by']; } ?> </span> </td> <td><div class='rcs1'> <div class='ncd1'><?php echo format_makeLinks(mynl2br($row['comment'])); ?> </div> <div class='nct1'><?php echo caldateTS_to_humanWithTS($row['comment_date']); ?> </div> </div> </td> </tr> <?php $lastCommentPerson = $row['comment_by']; } echo "</table>"; }
?> <table align=center class="manageLRS" cellpadding=5 cellspacing=5 width="500" style='margin-top:30px;'> <tbody> <table class="members"> <tbody> <?php foreach ($ALLUSERS as $this_uId) { $TMP_MU->userId = $this_uId; if ($this_uId == $CURRENT_USERID) { continue; } $THIS_USER_PROFILE = $TMP_MU->getUserProfile($this_uId); //print_r($THIS_USER_PROFILE); $input_statusmsg = html_entity_decode(stripslashes(base64_decode($THIS_USER_PROFILE['statusMsg']))); $statusmsg = format_makeLinks($input_statusmsg); ?> <tr <?php if (in_array($this_uId, $ACTIVE_USERS)) { ?> bgcolor="#B9E1F4"<?php } ?> > <td class="avatar"> <?php $userpic = 'files/users/thumbs/' . $THIS_USER_PROFILE['userImage']; if ($THIS_USER_PROFILE['userImage'] != '' && file_exists($userpic)) { ?> <img src="<?php echo $userpic;