| Current Path : /var/www/cesa.co.za/php/ |
| Current File : /var/www/cesa.co.za/php/scecategories.php |
<p><b><a href="/node/162">View the Upcoming Course Calendar</a></b></p>
<p>Click on a category to view the calendar for that category, or on a course name for more information on the course:</p>
<?php
include('inc_db.php');
$catrs=mysql_query("SELECT * FROM SchoolWebCategories WHERE DisplayOrder>0 ORDER BY DisplayOrder");
while ($catrow=mysql_fetch_assoc($catrs)) {
?><p><b><a href="/node/162?cat=<?php echo $catrow["WebCategoryID"]; ?>"><?php echo $catrow["WebCategoryName"]; ?></a></b>
<ul>
<?php
$coursers=mysql_query("SELECT DISTINCT EventName, MAX(EventID) AS EventID FROM SchoolEvents WHERE WebCategory=".$catrow["WebCategoryID"]." GROUP BY EventName ORDER BY EventName");
while ($courserow=mysql_fetch_assoc($coursers)) {
?>
<li><a href="/sce/school-course?id=<?php echo $courserow["EventID"]; ?>"><?php echo htmlspecialchars($courserow["EventName"]); ?></a></li>
<?php
}
?>
</ul></p>
<?php
}
?>