Пример #1
0
  <legend><b>Assign TAs Manually</b></legend>
  <select id="course" name="course" class="selection_drops" onchange="redirectMe(this);">
    <?php 
populate_courses($_SESSION['dept'], "http://tamatch.math.ucdavis.edu/MathWeb/conflicts.php");
?>
  </select>
  <br>
  <select <?php 
if (!isset($_GET['course'])) {
    print 'disabled';
}
?>
 id="section" name="section" class="selection_drops" onchange="redirectMe(this);">
    <?php 
if (isset($_GET['course'])) {
    populate_sections($_GET['course'], $_SESSION['dept'], "http://tamatch.math.ucdavis.edu/MathWeb/conflicts.php");
}
?>
  </select>
  <br>
  <select name="mta">
    <?php 
populate_tas($_SESSION['year'], $_SESSION['season'], $_SESSION['dept']);
?>
  </select>
  <br>
  <input style="float:right" type="submit" name="match" value="Force Match" id="scipbutton">
 </fieldset>
</form>
  <?php 
match_body($_SESSION['dept'], $_SESSION['year'], $_SESSION['season']);
Пример #2
0
        <label class="selections" for="course"><p2 class="shadow40">Course:</p2></label>
        <select id="course" name="course" class="selection_drops" onchange="redirectMe(this);">
          <?php 
populate_courses($_GET['dept'], "http://tamatch.math.ucdavis.edu/MathWeb/calendar.php");
?>
        </select>     
        <label  class="selections" for="section"><p2 class="shadow40">Section:</p2></label>
        <select <?php 
if (!isset($_GET['course'])) {
    print 'disabled';
}
?>
 id="section" name="section" class="selection_drops" onchange="redirectMe(this);">
          <?php 
if (isset($_GET['course'])) {
    populate_sections($_GET['course'], $_GET['dept'], "http://tamatch.math.ucdavis.edu/MathWeb/calendar.php");
}
?>
        </select> 
    </fieldset>
    <label style="margin-left:60px" class="assigned" for="assigned">Remove a Section:</label>
    <select class="selection_drops" id="assigned" name="assigned">
      <?php 
populate_assigned($_SESSION['ta_id'], $_SESSION['year'], $_SESSION['season']);
?>
    </select>
    <input type="submit" name="drop" id="drop" class="selection_buttons" value="Remove" />
  </form>
  <div id="error-message" name="error">
    <?php 
print $_SESSION['error'];