コード例 #1
0
ファイル: standings.php プロジェクト: jeffpiazza/derbynet
<script type="text/javascript" src="js/jquery.mobile-1.4.2.min.js"></script>
<script type="text/javascript" src="js/standings.js"></script>
<script type="text/javascript">
// This bit of javascript has to be here and not standings.js because of the PHP portions
$(function () {
    // We're initially displaying the "All" case.
    $("tr").not(".headers").addClass('hidden');
    $(select_standings(false, <?php 
echo json_encode(supergroup_label());
?>
)).removeClass('hidden');

    $("select").on("change", function(event) {
        standings_select_on_change($(this).find("option:selected"),
                                   <?php 
echo json_encode(supergroup_label());
?>
);
      });
});
</script>
<title>Standings</title>
<link rel="stylesheet" type="text/css" href="css/jquery.mobile-1.4.2.css"/>
<style type="text/css">
.center-select {
  width: 400px;
  margin-left: auto;
  margin-right: auto;
}
.center-select h3 {
  text-align: center;
コード例 #2
0
ファイル: settings.php プロジェクト: jeffpiazza/derbynet
?>
/>
        <label>Use subgroups?</label>
      </p>
      <p>
        <input id="subgroup-label" name="subgroup-label" type="text" data-enhanced="true"
               value="<?php 
echo subgroup_label();
?>
"/>
        <label for="subgroup-label">Subgroup Label</label>
      </p>
      <p>
        <input id="supergroup-label" name="supergroup-label" type="text" data-enhanced="true"
               value="<?php 
echo supergroup_label();
?>
"/>
        <label for="supergroup-label">Super-Group Label</label>
      </p>
    </div>
  </div>

  <div class="settings_group">
    <div class="settings_group_image">
      <img src="img/settings-gold-medal.png"/>
    </div>

    <div class="settings_group_settings">
      <p>
        <input id="n-den" name="n-den-trophies" type="number" min="0" max="20" data-enhanced="true"
コード例 #3
0
<div class="standings-control hidden control_group block_buttons">
  <div class="round-select">
    <h3>Display standings for:</h3>
      <?php 
$current = read_raceinfo('standings-message');
$current_roundid = explode('-', $current)[0];
?>

    <select>
      <?php 
require_once 'inc/standings.inc';
$sel = ' selected="selected"';
if ($current == '') {
    echo '<option ' . $sel . ' disabled="1">Please choose what standings to display</option>';
}
echo '<option data-roundid=""' . ($current != '' && $current_roundid == '' ? $sel : '') . '>' . supergroup_label() . '</option>';
foreach (standings_round_names() as $round) {
    echo '<option data-roundid="' . $round['roundid'] . '"' . ($current_roundid == $round['roundid'] ? $sel : '') . '>' . htmlspecialchars($round['name'], ENT_QUOTES, 'UTF-8') . '</option>' . "\n";
}
?>
    </select>
  </div>
  <div class="reveal block_buttons">
    <input type="button" data-enhanced="true" value="Reveal One" onclick="handle_reveal1()"/><br/>
    <input type="button" data-enhanced="true" value="Reveal All" onclick="handle_reveal_all()"/><br/>
  </div>
</div><!-- standings-control -->

<div id="kiosk_control_group" class="kiosk_control_group">
</div>