session_start();
ob_start();
require('Cart.php');
Brand();
Root();
DBInfo();
$DBName="calendar";
$TA="Schedule";
$nowDTG=date("Ymd:His");
if (empty($offset) || $offset < 0) {
$offset=0;
}
$limit = 20;
if(!$InstID){
$InstID='1';
}
mysql_connect("$DBHost","$DBUser","$DBPass");
$result1 = mysql("$DBName","select * from Instructors WHERE InstructorID LIKE '$InstID%'");
while ($row1 = mysql_fetch_row($result1)) {
$Instructor=$row1[2];
$plain=explode(",",$Instructor);
$plainInstructor=$plain[1].' '.$plain[0];
}
$title="Seminars by $plainInstructor";
include("masthead.php");
// $logo="speak";
include("topbar.php");
echo "
[ Calendar View ]
";
maroonFont ("Click on any class title to read description, any location to register");
// blueFont ("Arial","Click on any location to find school contact info
");
// blueFont ("Arial","Click on book icon to buy class materials.");
$RowColor=SwapRowColor();
mysql_connect("$DBHost","$DBUser","$DBPass");
mysql_select_db("$DBName");
echo "";
// ========================= Setup # to display on page
if (empty($offset) || $offset < 0) {
$offset=0;
}
// ================== Get Count For Table ===============
$result = mysql("$DBName","select * from Schedule WHERE InstructorID ='$InstID' AND DTG>'$nowDTG' order by DTG ");
$rows=mysql_num_rows($result);
$begin =($offset+1);
$end = ($begin+($limit-1));
if ($end > $rows) {
$end = $rows;
}
if ($rows==0){
echo "There are none found |
";
} elseif ($rows==1){
echo "
There is only $rows found. |
";
} else {
echo "
There are $rows found,";
echo " now showing $begin to $end. |
";
}
echo '';
echo '
';
// =============================================== Next/Previous
echo "";
include('nextprevious.php');
echo "";
include("footer.php");
?>
|