Beispiel #1
0
?>
      <?php 
photo_settings('car', 'car-photo-dir', car_photo_directory(), 'car-photo');
?>
    </div>
  </div>

  <div class="settings_group">
    <div class="settings_group_image">
      <img src="img/settings-rulebook.png"/>
    </div>
    <div class="settings_group_settings">
      <p>
        <input type="hidden" name="drop-slowest-checkbox" value="yes"/>
        <input id="drop-slowest" name="drop-slowest" data-enhanced="true" type="checkbox"<?php 
if (read_raceinfo_boolean('drop-slowest')) {
    echo ' checked="checked"';
}
?>
/>
        <label>Drop each racer's slowest heat?</label>
      </p>
      <p>
        <input type="hidden" name="use-master-sched-checkbox" value="yes"/>
        <input id="use-master-sched" name="use-master-sched" data-enhanced="true" type="checkbox"<?php 
if ($use_master_sched) {
    echo ' checked="checked"';
}
?>
/>
        <label>Use master schedules</label>
Beispiel #2
0
?>
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/jquery-ui-1.10.4.min.js"></script>
<script type="text/javascript" src="js/dashboard-ajax.js"></script>
<script type="text/javascript" src="js/mobile-init.js"></script>
<script type="text/javascript" src="js/jquery.mobile-1.4.2.min.js"></script>
<script type="text/javascript" src="js/modal.js"></script>
<script type="text/javascript" src="js/awards-editor.js"></script>
<link rel="stylesheet" type="text/css" href="css/jquery.mobile-1.4.2.css"/>
<link rel="stylesheet" type="text/css" href="css/awards-editor.css"/>
</head>
<body>
<?php 
$banner_title = 'Awards Editor';
require 'inc/banner.inc';
$use_subgroups = read_raceinfo_boolean('use-subgroups');
require_once 'inc/awards.inc';
list($classes, $classseq, $ranks, $rankseq) = classes_and_ranks();
$awards = all_awards();
?>

<div class="instructions-wrapper" style="position: relative;">

<div class="left">
<p class="instructions">Drag awards to re-order.</p>
</div>

<div class="center-button-up block_buttons">
<input type="button" value="New Award" data-enhanced="true"
       onclick="handle_new_award();"/>
</div>
Beispiel #3
0
}

</style>
<?php 
require 'inc/stylesheet.inc';
?>
</head>
<body>
<?php 
$banner_title = 'Race Standings';
require 'inc/banner.inc';
?>
<div class="block_buttons">
<div class="center-select">
<h3><?php 
echo read_raceinfo_boolean('drop-slowest') ? "Dropping each racer's slowest time" : "Averaging all heat times";
?>
</h3>
<select>
    <option selected="selected">All</option>
    <?php 
foreach (standings_round_names() as $round) {
    echo '<option data-roundid="' . $round['roundid'] . '">' . htmlspecialchars($round['name'], ENT_QUOTES, 'UTF-8') . '</option>' . "\n";
}
?>
</select>
</div>
</div>
<table class="main_table">
<?php 
write_standings_table_headers();
Beispiel #4
0
// racer's car number from this form, or mark the racer for our
// "exclusively by scout" award.
// Here on the server side, a GET request sends HTML for the whole
// page.  POST requests to make changes to the database are sent to
// action.php, and produce just a small XML document.
// TODO- subgroups explanation
// $use_subgroups, from GPRM settings, tells whether we're using
// "subgroups" within each racing group.
$use_subgroups = read_raceinfo_boolean('use-subgroups');
// Our pack provides an "exclusively by scout" award, based on a
// signed statement from the parent.  Collecting the statement is part
// of the check-in process, so there's provision for a checkbox on the
// check-in form.  For groups that don't do this, $xbs will be false
// (and $xbs_award_name will be blank), and the checkboxes won't be
// shown.
$xbs = read_raceinfo_boolean('xbs-award');
$xbs_award_name = read_raceinfo('xbs-award');
$order = '';
if (isset($_GET['order'])) {
    $order = $_GET['order'];
}
// Values are: name, den, car
if (!$order) {
    $order = 'name';
}
// The table of racers can be presented in order by name, car, or
// den (and then by name within the den).  Each sortable column has
// a header which is a link to change the ordering, with the
// exception that the header for the column for ordering currently
// in use is NOT a link (because it wouldn't do anything).
function column_header($text, $o)