$pageTitle="Dental Assistant School Calendar - National School of Dental Assisting - Frisco | Colorado School of Dental Assisting";
$pageKeywords="dental assistant classes";
$pageDescription="The School of Dental Assisting specializes in dental assisting programs and school and physician assistant training.";
include("inc/head.php");
include_once("lib/aLearn.php");
include_once("lib/aLearnPrint.php");
$time = new timeConversion;
switch($action){
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//viewschedule
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
case"viewschedule":
$q = "SELECT courses.*, courseSchedule.* FROM courseSchedule LEFT JOIN courses USING(course_id) WHERE courseSchedule.courseSchedule_id='$get->courseSchedule_id'";
$res = $db->query($q);
$res->fetchInto($row);
$out = new aLearnPrint($db,$config);
$out->setCourse($row->course_id);
$time->dbdate = $row->startDate;
$startMonth = $time->datetime2monthname();
$startDay = $time->datetime2day();
$startYear = $time->datetime2year();
$time->dbdate = $row->endDate;
$endDay = $time->datetime2day();
$endMonth = $time->datetime2monthname();
$endYear = $time->datetime2year();
$row->courseNotes = nl2br($row->courseNotes);
$row->coursePrice=number_format($row->coursePrice,2);
print<< $row->courseLocation $startMonth $startDay $startYear - $endMonth $endDay $endYear
$classStatus $row->courseLocation $startMonth $startDay $startYear - $endMonth $endDay $endYear
$classStatus
eof;
$days = array();
$dayCells='';
$res = $db->query("SELECT DISTINCT(DAYNAME(the_day))AS day FROM courseScheduleDays WHERE courseSchedule_id='$get->courseSchedule_id' AND the_text='' ORDER BY the_day ASC");
while($res->fetchInto($r)){
array_push($days,$r->day);
/*
print<<
eof;
break;
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//viewdate
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
case"viewdate":
$q = "SELECT courses.*, courseSchedule.* FROM courseSchedule LEFT JOIN courses USING(course_id) WHERE courseSchedule.courseSchedule_id='$get->courseSchedule_id'";
$res = $db->query($q);
$res->fetchInto($row);
$out = new aLearnPrint($db,$config);
$out->setCourse($row->course_id);
$time->dbdate = $row->startDate;
$startMonth = $time->datetime2monthname();
$startDay = $time->datetime2day();
$startYear = $time->datetime2year();
$time->dbdate = $row->endDate;
$endDay = $time->datetime2day();
$endMonth = $time->datetime2monthname();
$endYear = $time->datetime2year();
$row->courseNotes = nl2br($row->courseNotes);
$row->coursePrice=number_format($row->coursePrice,2);
if($row->scheduleFile!=''){
$scheduleLink.=<<
$month $row->year
$dayCells
eof;
}
$result = $db->query("SELECT * FROM courseScheduleDays WHERE the_day = '$row->interval_from' AND courseSchedule_id='$get->courseSchedule_id' AND the_text=''");
if($result->numRows()>0){
$result->fetchInto($d);
if($d->is_class=="Yes"){
print"$row->date Class ";
}
if($d->the_text!=''){
print"$row->date $d->the_text ";
}
if($d->is_lab=="Yes"){
print"$row->date Lab ";
}
}
if($row->dayname == end($days)){
print" ";
}
}
print<<
eof;
}else{
$scheduleLink = "";
}
$classStatus = '';
if($row->remainingSpaces<1){
$classStatus.=<<
Notes:
$row->courseNotes
Below is a listing of upcomming Dental Assisting Courses available at our various locations.