?> <table align=center class="manageLRS" cellpadding=5 cellspacing=5 width="500" style='margin-top:30px;'> <tbody> <div id="member_list"> <table class="members"> <tbody> <?php foreach ($users as $this_userId) { $MU->userId = $this_userId; $THIS_USER_PROFILE = $MU->getUserProfile(); $THIS_USER_PRIVILEGES = $MU->get_Privileges(); ?> <tr> <td class="avatar"> <img src='files/users/thumbs/<?php echo USERID_TO_USERPIC($this_userId); ?> '> </td> <td class="name"> <?php echo $THIS_USER_PROFILE['emplFullName']; ?> <br> <a href="mailto:<?php echo $THIS_USER_PROFILE['emplEmail_id']; ?> "><?php echo $THIS_USER_PROFILE['emplEmail_id']; ?> </a>
$bgcolor = '#F1F4E3'; $textcolor = '#000000'; } $tmp_preview_str = "<div style='margin-top: 10px; padding: 10px; color: {$textcolor}; background-color: {$bgcolor}; border-bottom: 2px solid #E7E7E7; text-align:left; display:table; width:96%;'>"; if ($row['to_uid'] == $_SESSION['empl_id']) { $msg_class = "leftbox_msg"; $user_float = "float:left;"; $mark_float = "float:right;"; $from_to_name = USERID_TO_USERNAME($row['from_uid']); $user_image = USERID_TO_USERPIC($row['from_uid']); } else { $msg_class = "rightbox_msg"; $user_float = "float:right;"; $mark_float = "float:left;"; $from_to_name = "To " . USERID_TO_USERNAME($row['to_uid']); $user_image = USERID_TO_USERPIC($row['to_uid']); } $tmp_preview_str .= "<div style='{$user_float}'>{$from_to_name}:<div><img width='60' height='60' src='files/users/thumbs/{$user_image}'><div>" . $row['msgtime'] . "</div></div></div>"; $file_str = ''; if ($row['msgType'] == 'F') { $MF = new ManageFiles(); $THIS_FILEINFO = $MF->get_file_Info($row['fileId'], $CURRENT_USERID); $file_str .= "<div>File Name: <a href='chatfiledownload.php?fc={$THIS_FILEINFO['fileId']}'>{$THIS_FILEINFO['fileName']}</a>"; if (in_array($THIS_FILEINFO['fileExt'], array('jpg', 'jpeg', 'gif', 'png', 'bmp'))) { $file_str .= "<br/><a href='chatfiledownload.php?fc={$THIS_FILEINFO['fileId']}'><img src=files/chat_files/thumbs/{$THIS_FILEINFO['fileRandomName']}></a>"; } $file_str .= "</div>"; } $tmp_preview_str .= "<div class='{$msg_class}'> " . stripslashes(base64_decode($row['msg_base64'])) . "{$file_str}</div>"; if ($row['msgStatus'] == 'N' && $row['to_uid'] == $_SESSION['empl_id']) { $tmp_preview_str .= "<div id='mark' dmsgid='{$row['dmsgid']}' class='markasread' msgstatus='{$row['msgStatus']}' style='cursor: pointer; {$mark_float}' >Mark as read</div>";