</div> <div class = "commentsDate"> <?php echo reverseDate($currentNews['date'], "-"); ?> </div> <!-- Комментарии --> <h3>Комментарии</h3> <?php $comments = getComments($newsId); foreach ($comments as $comment) { ?> <div class = "commentsDiv"> <i><?php echo getNicknameById($comment['user']) . ":"; ?> </i> <?php echo $comment['text']; ?> <div class = "commentsDate"> <?php echo $comment['date']; ?> </div> <?php if (isAdmin() || isModerator() || getActiveUser() === $comment['user']) { ?> <div class="btn-group" role="group"> <button type = "submit" name = "edit" onclick = "editComment(<?php
<?php include "top.php"; ?> <div class="content container"> <br /> <p style="font-size:16px;"> Тема: <?php echo $msg['title']; ?> <br /> От кого: <?php echo getNicknameById($msg['sender']); ?> <br /> Кому: <?php echo getNicknameById($msg['recevier']); ?> <br /> Сообщение: </p> <?php echo $msg['text']; ?> </div> <?php include "bottom.php"; } }
function getNicknameByStrategy($strategyId) { return getNicknameById(getUserIdByStrategy($strategyId)); }
?> <td>Визуализатор</td> <?php } ?> </tr> <?php foreach ($duels as $row) { ?> <tr align = center> <td><?php echo getNicknameById($row['user1']) . " ({$row['strategy1']})"; ?> </td> <td><?php echo getNicknameById($row['user2']) . " ({$row['strategy2']})"; ?> </td> <td> <?php $status = $row['status']; if ($status != 'W') { ?> <div class = "attachmentDiv"> <li class="download"><span class="glyphicon glyphicon-download"></span> <a href="getLog.php?duel=<?php echo $row['id']; ?> "><?php echo rusStatus($status);
function (data) { showModalAlert(data); window.location.reload(); } ) } <?php } ?> </script> <div class = "container content"> <div class="titleName">Пользователь: <?php echo getNicknameById(isAdmin() && isset($_GET['id']) ? $_GET['id'] : getActiveUserID()); ?> </div> <div class="titleName">Изменение пароля</div> <form class="form-signin" role="form" method="POST"> <input class="form-control" id = "newPassword" type="password" required="" placeholder="Новый пароль" onchange = "checkPasswordStatus()"> <input class="form-control" id = "tryAnotherOnePassword" type="password" required="" placeholder="Повторный набор пароля" onchange = "checkPasswordStatus();"> <div> <p id = "passwordStatus" class = ""></p> </div> <br> <div id = "submitDiv"> <?php if (isActiveUser()) { echo ' <button type="submit" id = "submitButton" class="btn btn-lg btn-primary btn-block" onclick = "changePassword(); return false;">Изменить пароль</button>'; }
<td>От кого</td> <td>Кому</td> <td>Тема</td> <td>Сообщение</td> </tr> </thead> <tbody> <?php foreach ($messages as $key => $value) { if (intval($value['viewed']) == 0) { echo "<tr style=\"font-weight:bold;\">"; } else { echo "<tr>"; } echo "<td>" . getNicknameById($value['sender']) . "</td>"; echo "<td>" . getNicknameById($value['recevier']) . "</td>"; echo "<td>" . $value['title'] . "</td>"; echo "<td><a href=\"messages.php?id={$key}\">Просмотреть</a></td>"; echo "</tr>"; } ?> </tbody> </table> <h2 align="center">Написать сообщение</h2> <form method="POST" action="userMessages.php" onsubmit="sendMessage(); return false;"> Получатель: <select class="form-control" id="recevier" name="recevier"> <?php $users = getUsersList(true); foreach ($users as $data) { if ($data['id'] != $id) {
?> &uid='+$('#userSelect').val());"> <option <?php if (getActiveUserID() == $user) { ?> selected <?php } ?> value="<?php echo $user; ?> "> <?php echo getNicknameById($user); ?> </option> <?php $users = getUsersWithStrategies($tournamentId); $flag = true; foreach ($users as $field) { if ($field['id'] == getActiveUserID()) { $flag = false; } } if ($flag) { array_unshift($users, array("id" => getActiveUserID(), "login" => getActiveUserNickname())); } foreach ($users as $field) { if ($field['id'] != $user) {