Example #1
0
function updateSchedule()
{
    $dao = new DAO();
    $wid = $_GET['workerID'];
    $tid = $_REQUEST['tselect'];
    $ts = $_REQUEST['st'];
    $te = $_REQUEST['et'];
    $dao->updateSchedule($wid, $ts, $te, $tid, $dao->fetchManagerIDbyStaffID($_SESSION['managerID']));
    header("refresh:0; url=staff.php");
}