</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> <td align="center"><br> <br>
<?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>
echo $error; ?> </strong> </font> <br> <br> </td> </tr> <tr> <td> <?php $reply_to = @$_GET['id']; $task_id = get_task_id_by_msg_id($reply_to); $media_name = get_media_name_by_task_id($task_id); $to_id = Mysql::getInstance()->from('moderators_history')->where(array('id' => $reply_to))->get()->first('from_usr'); $to = get_moderator_login_by_id($to_id); ?> <table border="0" align="center" width="620"> <tr> <td align="center"><br> <br> <br> <form method="POST"> <table border="0"> <tr> <td valign="top"><?php echo _('Movie'); ?> :</td> <td>