示例#1
0
    }
    ?>
        </div>
  </form>
    <div class="titleName">Изменение информации</div>
    <form class="form-signin" role="form" method="POST">
<input class="form-control" id = "newSurname" value="<?php 
    echo getUserSurname(isAdmin() && isset($_GET['id']) ? $_GET['id'] : "");
    ?>
" type="text" placeholder="Фамилия">
  <input class="form-control" id = "newName" value="<?php 
    echo getUserRealName(isAdmin() && isset($_GET['id']) ? $_GET['id'] : "");
    ?>
" type="text" placeholder="Имя"> 
    <input class="form-control" id = "newPatronymic" value="<?php 
    echo getUserPatronymic(isAdmin() && isset($_GET['id']) ? $_GET['id'] : "");
    ?>
" type="text" placeholder="Отчество">
<?php 
    if (isAdmin() && $id != getActiveUserID()) {
        ?>
<br /> 
Роль: <select id="group" class="form-control">
<option value="user" <?php 
        if (isUserInGroup('user', $id)) {
            echo "selected";
        }
        ?>
 >Пользователь</option>
<option value="moder" <?php 
        if (isUserInGroup('moder', $id)) {
示例#2
0
            <?php 
$result = getUsersRoundScores($roundId);
foreach ($result as $row) {
    ?>
                <tr align = center>
                <td><?php 
    echo '<b>';
    if (isAdmin()) {
        echo '<a href="userProfile.php?id=' . $row['id'] . '">';
    }
    echo $row['name'];
    if (isAdmin()) {
        echo '</a>';
    }
    echo '</b> (';
    echo getUserSurname($row['id']), ' ', getUserRealName($row['id']), ' ', getUserPatronymic($row['id']);
    echo ')';
    ?>
</td>
                    <td><?php 
    echo $row['score'];
    ?>
</td>
                </tr>
            <?php 
}
?>
        </table>
        <br>
        <h3>Турнирная таблица</h3>
        <a href="javascript:loadRoundTable(<?php