Ejemplo n.º 1
0
<br /><br />
<table class="table table-bordered">
    <tr>
        <td align=center>ID</td>
        <td align=center>Статус</td>
        <td align=center></td>
<?php 
    if (getActiveUserID() == $user && $tournamentRunning) {
        ?>
            <td align=center>Изменение активной стратегии</td>
<?php 
    }
    ?>
    </tr>
<?php 
    $strategies2 = getUserStrategies($id, $user, $tournamentId, false, (intval(sizeof($strategies) / 10) - $page) * 10, 10);
    foreach ($strategies2 as $value) {
        $key = $value['id'];
        ?>
        <tr <?php 
        echo getStrategyStateColor($value['status']);
        ?>
>
            <td align=center><?php 
        echo $key;
        ?>
</td>
            <td align=center><?php 
        echo getStrategyStatusRusTip($value['status']);
        ?>
</td>
Ejemplo n.º 2
0
    echo $gameId;
    ?>
, <?php 
    echo $tournamentId;
    ?>
)">Посмотреть</a>
<?php 
}
if (getCurrentStrategy(getActiveUserID(), $tournamentId) != null) {
    ?>
        <h3>Сыграть с участниками</h3>
        <table class="table table-bordered">
<?php 
    $users = getUsersList(true);
    foreach ($users as $user) {
        $strategies = getUserStrategies($gameId, $user['id'], $tournamentId, true);
        if (!empty($strategies)) {
            ?>
                    <tr align=center>
                        <td><b><?php 
            echo $user['login'];
            ?>
</b><br />
                            <select class="form-control" id="strategy-<?php 
            echo $user['id'];
            ?>
">
<?php 
            foreach ($strategies as $str) {
                $act = $str['status'] == 'ACT';
                echo '<option value="' . $str['id'] . '" ' . ($act ? 'selected' : '') . '>';