Academic Class Schedule – Texarkana



No courses available for listing at this time.
“;
}

else {
echo “
** – Course has reached it’s limit and is now closed.

“;
echo ”

“;
while ($number > $i) {
$shortid = mysql_result($result,$i,”shortid”);
$courseid = mysql_result($result,$i,”courseid”);
$sractnumber = mysql_result($result,$i,”sractnumber”);
$coursetitle = mysql_result($result,$i,”coursetitle”);
$instructor = mysql_result($result,$i,”instructor”);
$days = mysql_result($result,$i,”days”);
$starts = mysql_result($result,$i,”starts”);
$ends = mysql_result($result,$i,”ends”);
$location = mysql_result($result,$i,”location”);
$closed = mysql_result($result,$i,”closed”);

echo “

“;
if ($closed == “YES”) {
echo “

“;

$i++;

}
}
mysql_close($db);

echo “

SHORTID COURSEID ACTNUMBER COURSETITLE INSTRUCTOR DAYS STARTS ENDS LOCATION
**$shortid

“; }
else {
echo “

$shortid

“; }

echo “

$courseid $sractnumber $coursetitle $instructor $days $starts $ends $location

“;

}

else // form hasn’t been submitted, so display the form
{

$datenow = date(“y”);
$datenowfull = date(“Y”);

$beforemore = strtotime ( ‘-1 year’ , strtotime ( date(“Y”) ) ) ;
$beforemore = date ( ‘y’ , $beforemore );
$beforemorefull = ($datenowfull – 01);

$ahead = strtotime ( ‘+1 year’ , strtotime ( date(“Y”) ) ) ;
$ahead = date ( ‘y’ , $ahead );
$aheadfull = ($datenowfull + 01);

$FallDate = date(‘Y-m-d’);
$FallDate=date(‘Y-m-d’, strtotime($FallDate));;

$FallDateBegin = date(‘Y-m-d’, strtotime(’08/01/’ . $datenowfull));
$FallDateEnd = date(‘Y-m-d’, strtotime(’12/31/’ . $datenowfull));

$SpringDate = date(‘Y-m-d’);
$SpringDate=date(‘Y-m-d’, strtotime($SpringDate));;

$SpringDateBegin = date(‘Y-m-d’, strtotime(’01/01/’ . $datenowfull));
$SpringDateEnd = date(‘Y-m-d’, strtotime(’05/31/’ . $datenowfull));

if (($FallDate > $FallDateBegin) && ($FallDate < $FallDateEnd)) { echo "

Choose Semester Term:”;

echo “

“;

}

elseif (($SpringDate > $SpringDateBegin) && ($SpringDate < $SpringDateEnd)) { echo "

Choose Semester Term:”;

echo “

“;

}

else
{
echo “

Choose Semester Term:”;

echo “

“;
}

}

?>