$me_in_class = "mein"; if ($OTHERS > 0) { $members_string = "You and {$OTHERS} others"; } else { $members_string = "Only You"; } } else { $OTHERS = $ACTIVE_MEMBER_COUNT; $me_in_class = "menotin"; if ($OTHERS > 0) { $members_string = "{$OTHERS} users in chat room"; } else { $members_string = "empty"; } } echo "\n\t\t\t\t\t\t<div class='room'>\n\t\t\t\t\t\t\t<h2><a href='chatroom.php?rid={$THIS_ROOM}'>" . $MCR->get_roomTitle($THIS_ROOM) . "</a></h2>\n\t\t\t\t\t\t\t<div class='membercount {$me_in_class}'>{$members_string}</div>\n\t\t\t\t\t\t\t<p>" . $MCR->get_roomDescription($THIS_ROOM) . "</p>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t"; } } ?> </TD></TR> <TR><TD align='center'> <?php // links to create a room // Admin or the users with privilege to create a room if ($AM_I_ADMIN || $GMU->has_Privilege('Can Create New Rooms')) { echo "<A href='#' onclick='show_newRoom_form()'>Create New Room</A>"; } ?> </TD> </TR> </tbody>
<?php include_once "activeuserstracking.php"; $TMCR = new ManageChatRooms(); $MU = new ManageUsers(); $MU->userId = $CURRENT_USERID; $DM_COUNT = $MU->get_newDirectMessageCount(); $DM_COUNT_STR = $DM_COUNT ? " ({$DM_COUNT})" : ""; $LOGGEDIN_ROOMS = $MU->get_LoggedInRooms(); ?> <div class="mainMenu" style='margin-top: 5px;'> <span style='font-size:110%;'><I><?php echo $CURRENT_USER; ?> </I></span> <SPAN class='i' selclass='ic' goto="lobby.php" TITLE="Get into the ChatRooms from the Lobby">Lobby</SPAN> <?php foreach ($LOGGEDIN_ROOMS as $THIS_ROOM) { echo "<SPAN class='l' selclass='lc' goto='chatroom.php?rid={$THIS_ROOM}' TITLE='Goto ChatRoom'>" . $TMCR->get_roomTitle($THIS_ROOM) . "</SPAN>"; } ?> <SPAN class='j' selclass='jc' goto="bookmarks.php" TITLE="list of bookmarked messages">BookMarks</SPAN> <SPAN class='g' selclass='gc' goto="files.php" TITLE="Files from various Chat Rooms">Files</SPAN> <SPAN class='h' selclass='hc' goto="dchat.php" TITLE="Send Direct Messages to other users">Messages<?php echo $DM_COUNT_STR; ?> </SPAN> </div>
$result = mysql_query($LASTX_BOOKMARKS_SQL); $MCR = new ManageChatRooms(); while ($row = mysql_fetch_array($result)) { $tmp_preview_str = "<div style='margin-top: 10px; padding: 10px; background-color: #F1F4E3; border-bottom: 2px solid #E7E7E7; text-align:left; display: table; width: 96%;' id='{$row['bkm_msgId']}'>"; if ($row['msgType'] == 'F') { $TMP_MF = new ManageFiles(); $d_fileId = $row['fileId']; $fileInfo = $TMP_MF->get_file_Info($d_fileId, $CURRENT_USERID); $tmp_preview_str .= "<div class='umsg' style='float:left; line-height:150%;'>" . USERID_TO_USERNAME($row['saidBy_empl_id']) . " has uploaded a file <a href='chatfiledownload.php?fc={$fileInfo['fileId']}'>{$fileInfo['fileName']}</a> <span style='color: #A9A9A9;'>" . formatBytesToHumanReadable($fileInfo['fileSize']) . "</span> <a rel='prettyPhoto[iframes]' href='filemail.php?fid={$fileInfo['fileId']}&iframe=true&width=800&height=400'>Email</a>"; if (in_array($fileInfo['fileExt'], array('jpg', 'jpeg', 'gif', 'png', 'bmp'))) { $tmp_preview_str .= "<br/><img src=files/chat_files/thumbs/{$fileInfo['fileRandomName']}>"; } $tmp_preview_str .= "</div>"; } else { // bkm_id, bkms.bkm_msgId, bkms.bkm_dmsgid, bkms.bkm_roomId, cRoom.message_base64 $tmp_preview_str .= "<div style='float:left; line-height:150%;'>" . USERID_TO_USERNAME($row['saidBy_empl_id']) . ": " . base64_decode($row['message_base64']) . "</div>"; } $tmp_preview_str .= "<div style='float:right;'><img src='images/bookmark.png' class='bmarkstar' msgid='{$row['bkm_msgId']}' rid='{$row['bkm_roomId']}' ></div>"; $tmp_preview_str .= "<div style='float:right; color: #C7AD8B; margin-right: 10px;'> " . $MCR->get_roomTitle($row['bkm_roomId']) . "</div>"; $tmp_preview_str .= "</div>"; echo $tmp_preview_str; } ?> </div> </center> <?php some_prettyPicture_JsCrap(); ?> <?php include_once "include_footer.php";