Beispiel #1
0
     echo "<input type='submit' name='free' value='Aggiorna' />";
     echo "</form>";
     echo "</td>";
     echo "</tr>";
 }
 echo "</table>";
 ?>
         <table class="table">
             <tr>
                 <td class="td">Iscritti</td>
                 <td class="td">Giornata</td>
                 <td class="td">Azione</td>
             </tr>
         <?php 
 $registration = new MURegistration();
 $users = $registration->getUserNotApproved($_GET["tournament"]);
 echo "<form action='create_free_tournament.php' method='POST'>";
 for ($i = 0; $i < count($users); $i++) {
     echo "<tr><td class='td'>";
     echo "<input type='checkbox' name='players[]' value='" . $users[$i]["utente"] . "'/>" . $users[$i]["utente"];
     if ($i == 0) {
         echo "</td>";
         echo "<td class='td'>";
         echo "<input type='hidden' name='tournament_id' value='" . $_GET["tournament"] . "' />";
         echo "<input type='text' name='day' placeholder='giornata' />";
         echo "</td><td class='td'>";
         echo "<input type='submit' name='submit' value='Crea Gara' />";
         echo "</td>";
     }
     echo "</td></tr>";
 }