コード例 #1
0
ファイル: courts.php プロジェクト: kaveet/HackTX-2015f
                                    <h3 class="box-title">Courts</h3>
                                </div><!-- /.box-header -->
                                <div class="box-body no-padding">
                                    <table class="table table-striped">
                                        <tbody>

                                        <tr>
                                            <th>Name</th>
                                            <th>Available Courts</th>
                                            <th>Open Time</th>
                                            <th>Close Time</th>
                                            <th>Skill Level</th>
                                            <th style="width: 40px">Reputation</th>
                                        </tr>
                                        <?php 
$locations = getCourtList($conn);
foreach ($locations as $thisCourt) {
    echo "\n                                          <tr>\n                                              <td>" . $thisCourt['locName'] . "</td>\n                                              <td>" . $thisCourt['numCourts'] . "</td>\n                                              <td>7:00am</td>\n                                              <td>5:00pm</td>\n                                              <td>\n                                                  <div class=\"progress xs\">\n                                                      <div class=\"progress-bar progress-bar-success\" style=\"width:" . $thisCourt['reputation'] . "%\"></div>\n                                                  </div>\n                                              </td>\n                                              <td><span class=\"badge bg-red\">" . $thisCourt['reputation'] . "</span></td>\n                                          </tr>\n                                          ";
}
?>


                                    </tbody></table>
                                </div><!-- /.box-body -->
                            </div>

                </section><!-- /.content -->
            </aside><!-- /.right-side -->
        </div><!-- ./wrapper -->

        <!-- add new calendar event modal -->
コード例 #2
0
ファイル: match.php プロジェクト: kaveet/HackTX-2015f
                                  <option>Player</option>
                                  <?php 
$playerList = getPlayerList($conn);
foreach ($playerList as $player) {
    echo '<option value="' . $player['id'] . '">' . $player['playerName'];
}
?>
                              </select>

                          </div>
                          <div class="form-group">
                              <label>Location</label>
                              <select class="form-control">
                                <option>Court</option>
                                  <?php 
$courtList = getCourtList($conn);
foreach ($courtList as $court) {
    echo '<option value="' . $court['id'] . '">' . $court['locName'];
}
?>
                              </select>

                          </div>
                          <div class="form-group">
                                <label>Time Start:</label>
                                <div class="input-group">
                                    <input type="text" class="form-control timepicker">
                                    <div class="input-group-addon">
                                        <i class="fa fa-clock-o"></i>
                                    </div>
                                </div><!-- /.input group -->