Location: PHPKode > projects > phpRefManager > phpRefManager/picknewscheduleref.php
<?php
require_once('functions/functions.php');
session_start();
if (!empty($_SESSION['schedulefor']))
{
   if ($_GET['reason']=='offtill')
   {
      print_html_header('Referee Unavaliable Until Date');
      ?>
      Please enter the date the referee will be unavaliable until:
      <form action="refofftill.php" method=POST>
      <select name=month>
      <option value=00>Month
      <option value=01>Jan
      <option value=02>Feb
      <option value=03>Mar
      <option value=04>Apr
      <option value=05>May
      <option value=06>Jun
      <option value=07>Jul
      <option value=08>Aug
      <option value=09>Sep
      <option value=10>Oct
      <option value=11>Nov
      <option value=12>Dec
      </select>
      <select name=day>
      <option value=00>Day
      <option value=1>1
      <option value=2>2
      <option value=3>3
      <option value=4>4
      <option value=5>5
      <option value=6>6
      <option value=7>7
      <option value=8>8
      <option value=9>9
      <option value=10>10
      <option value=11>11
      <option value=12>12
      <option value=13>13
      <option value=14>14
      <option value=15>15
      <option value=16>16
      <option value=17>17
      <option value=18>18
      <option value=19>19
      <option value=20>20
      <option value=21>21
      <option value=22>22
      <option value=23>23
      <option value=24>24
      <option value=25>25
      <option value=26>26
      <option value=27>27
      <option value=28>28
      <option value=29>29
      <option value=30>30
      <option value=31>31
      </select>
      <select name=year>
      <option value=00>Year
      <option value=2001>2001
      <option value=2002>2002
      <option value=2003>2003
      <option value=2004>2004
      <option value=2005>2005
      </select><p>
      <input type=submit value=Submit>
      </form>
      <?php
      print_html_footer();
   }
   else
   {
      if ($_GET['reason']=='notthis')
      {
         set_ref_off_this_weekend($_SESSION['schedulefor']);
      }
      elseif ($_GET['reason']=='noanswer')
      {
         //set last call status as noanswer
         set_call_status($_SESSION['schedulefor'],'n');
      }
      elseif ($_GET['reason']=='message')
      {
         //set last call status as message
         set_call_status($_SESSION['schedulefor'],'m');
      }
      elseif ($_GET['reason']=='nocall')
      {
         //no action if unable to reach
      }
      unset($_SESSION['schedulefor']);
      header("Location: http://".$_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF'])."/scheduleothers.php");
   }
}
else
{
   header("Location: http://".$_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF'])."/main.php");
}
?>
Return current item: phpRefManager