示例#1
0
<?php 
while ($arr = $history->next()) {
    echo "<tr>\n";
    echo "<td align='center'>";
    if ($arr['to_usr'] == @$_SESSION['uid']) {
        echo "\\/";
    } else {
        echo "/\\";
    }
    echo "</td>";
    echo "<td><a ";
    if ($arr['readed'] == 0) {
        echo 'class="notreaded"';
    }
    echo " href='msg.php?id={$arr['id']}'>" . $arr['send_time'] . "</a></td>\n";
    echo "<td>" . get_moderator_login_by_id($arr['from_usr']) . "</td>\n";
    echo "<td>" . get_media_name_by_task_id($arr['task_id']) . "</td>\n";
    echo "</tr>\n";
}
?>

</table>

<td>
</tr>
</table>

</td>
</tr>
</table>
示例#2
0
?>
    </strong>
    </font>
    <br>
    <br>
    </td>
</tr>
<tr>
<td>
<?php 
$id = @$_GET['id'];
$history = Mysql::getInstance()->from('moderators_history')->where(array('id' => $id))->get()->first();
$id = $history['id'];
$send_time = $history['send_time'];
$task_id = $history['task_id'];
$media_name = get_media_name_by_task_id($task_id);
$from_usr = $history['from_usr'];
$from = get_moderator_login_by_id($from_usr);
$to_usr = $history['to_usr'];
$msg = $history['comment'];
$reply_to = $history['reply_to'];
if ($reply_to) {
    $reply_to_msg = Mysql::getInstance()->from('moderators_history')->where(array('id' => $reply_to))->get()->first('comment');
    $msg = ">" . $reply_to_msg . "<br/><br/>" . $msg;
}
if ($to_usr == @$_SESSION['uid']) {
    Mysql::getInstance()->update('moderators_history', array('readed' => 1, 'read_time' => 'NOW()'), array('id' => $id));
}
?>
<table border="0" align="center" width="620">
<tr>