Add appointment(s)!

You can set your weekly schedule
Your ID
Location
Time
or select multiple appts below
Date
Go back to appts"; ?>
"; echo""; $Profession=lookupprofession($_SESSION['userProid']); if(empty($_SESSION['userProprov'])) { error_message("No provider logged on"); } else if($_SESSION['userProprov']=="BC"){$apptdb="appointments";} else if($_SESSION['userProprov']=="AB"){$apptdb="appointments_ab";} else if($_SESSION['userProprov']=="SK"){$apptdb="appointments_sk";} else if($_SESSION['userProprov']=="MB"){$apptdb="appointments_mb";} else if($_SESSION['userProprov']=="ON"){$apptdb="appointments_on";} else if($_SESSION['userProprov']=="QC"){$apptdb="appointments_qc";} else if($_SESSION['userProprov']=="NS"){$apptdb="appointments_ns";} else if($_SESSION['userProprov']=="NB"){$apptdb="appointments_nb";} else if($_SESSION['userProprov']=="PE"){$apptdb="appointments_pe";} else if($_SESSION['userProprov']=="NL"){$apptdb="appointments_nl";} else if($_SESSION['userProprov']=="YK"){$apptdb="appointments_yk";} else if($_SESSION['userProprov']=="NW"){$apptdb="appointments_nw";} else if($_SESSION['userProprov']=="NV"){$apptdb="appointments_nv";} ///////check input here if($Profession=="Physiotherapist"){$allowSameTime=1;} else if($Profession=="Occupational Rehab Program"){$allowSameTime=1;} else if($Profession=="Pain Program"){$allowSameTime=1;} else if($Profession=="Work Conditioning Program"){$allowSameTime=1;} else if($Profession=="Medical Rehab Program"){$allowSameTime=1;} else if($Profession=="Day Spa"){$allowSameTime=1;} else if($Profession=="Dentist"){$allowSameTime=1;} else if($Profession=="Laser Surgery Clinic"){$allowSameTime=1;} else if($Profession=="Physician"){$allowSameTime=1;} else if($Profession=="Naturopath"){$allowSameTime=1;} else if($Profession=="Voc Rehab Consultant"){$allowSameTime=1;} else if($_POST['Assmt']==14){$allowSameTime=1;} else if($_POST['Assmt']==42){$allowSameTime=1;} else{$allowSameTime=0;} if($_POST['action']=="added_appt") {$temptime3=$_POST['time3']; if(empty($_POST['user_Pro_id2'])) error_message("Enter your user id."); $poass=array($_POST['Assmt']); $needtime=count(array_intersect($poass,$moretime_ary)); if($needtime){ if($temptime3 =="8:00:00X4") error_message("Cannot book hour assessments."); else if($temptime3 =="9:00:00X3") error_message("Cannot book hour assessments."); else if($temptime3 =="13:00:00X3") error_message("Cannot book hour assessments."); else if($temptime3 =="13:00:00X4") error_message("Cannot book hour assessments."); } $result1=enter_new_appt(); if(!$result1) echo "Didn't work. Check enter_new_appt"; else echo "

Appointment(s) booked! Use back button to book another!

"; } else { add_appt_form(); } echo "


Click here to go back to your appointments

"; echo "

Appointment booking method Patent Pending

"; echo "


zappointments.com: online booking for health professionals

"; ?>