Beispiel #1
0
					return ;
				}else{
					My_JsLibrary.showErrMsg() ;
				}
			}
		});
	};
</script>

	<center>
		<div style='margin-left: auto; margin-right: auto; margin:2px; font-size: 110%; font-weight: bold; padding: 10px; width: 82%;'>List of Recent Direct Messages</div>
		<div id='BOOKMARKSLIST'>
		<div id='markall' class="markallasread" style='cursor: pointer; float:right; padding:5px 10px 0px 0px;' >Mark all as read</div>
			<?php 
$DM = new DirectMessages();
$LASTX_DirectMessages_SQL = $DM->get_AllUnread_Plus_Xread_DirectMessages($CURRENT_USERID, 20);
$result = mysql_query($LASTX_DirectMessages_SQL);
while ($row = mysql_fetch_array($result)) {
    // dmsgid, from_uid, to_uid, msg_base64, msgtime, msgType, fileId, msgStatus (N/R)
    if ($row['msgStatus'] == 'N' && $row['to_uid'] == $_SESSION['empl_id']) {
        $bgcolor = '#73C171';
        $textcolor = '#FFFFFF';
    } else {
        $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;";