113 lines
4.8 KiB
PHP
113 lines
4.8 KiB
PHP
<?php
|
|
require_once("include/globals.php");
|
|
|
|
if (SessionActive() != 1 || ! UserLoggedIn()) {
|
|
header("Location: /");
|
|
exit();
|
|
}
|
|
|
|
// Start the template and output buffering
|
|
startTemplate();
|
|
$templatePageTitle = getLanguageText('TEXT-INFORMATION');
|
|
|
|
?>
|
|
<table width='40%' cellspacing='10'>
|
|
<?php
|
|
$unum = $_SESSION['UserInfo']['record_num'];
|
|
$currentStatus = $_SESSION['UserInfo']['status'];
|
|
|
|
if ($school_record['status'] != 'Linked') {
|
|
if ($school_record['display_class_lists'] == 'Y') {
|
|
$class_list_text = getLanguageText('MENU-CLASS-LIST');
|
|
if ($currentStatus == 'Active') {
|
|
$query = "select * from people " .
|
|
"where school_num = $base_school_num " .
|
|
"and user_num = $unum " .
|
|
"and people_type = 'Student' " .
|
|
"and display = 'Y' " .
|
|
"order by first_name";
|
|
$results = db_query($query);
|
|
if (db_num_rows($results) > 0) {
|
|
while ($row = db_fetch_array($results)) {
|
|
$snum = $row['record_num'];
|
|
$name = $row['first_name'];
|
|
echo(" <tr>\n");
|
|
echo(" <td align='center' style='border: 1px solid black; background: #e0e0e0'>\n");
|
|
echo(" <b><a href='/?action=class-list&student_num=$snum'>$class_list_text - $name</a></b>\n");
|
|
echo(" </td>\n");
|
|
echo(" </tr>\n");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
if ($school_record['display_class_lists'] == 'A') {
|
|
echo(" <tr>\n");
|
|
echo(" <td align='center' style='border: 1px solid black; background: #e0e0e0'>\n");
|
|
echo(" <b><a href='/?action=list-classes'>".getLanguageText('TEXT-VIEW-CLASS-LISTS')."</a></b>\n");
|
|
echo(" </td>\n");
|
|
echo(" </tr>\n");
|
|
}
|
|
}
|
|
|
|
if ($school_record['display_pac_info'] == 'Y') {
|
|
echo(" <tr>\n");
|
|
echo(" <td align='center' style='border: 1px solid black; background: #e0e0e0'>\n");
|
|
echo(" <b><a href='/?action=contact-info'>" . $school_record['pac_name'] . "</a></b>\n");
|
|
echo(" </td>\n");
|
|
echo(" </tr>\n");
|
|
}
|
|
|
|
if ($school_record['display_staff_list'] == 'Y') {
|
|
echo(" <tr>\n");
|
|
echo(" <td align='center' style='border: 1px solid black; background: #e0e0e0'>\n");
|
|
echo(" <b><a href='/?action=staff-list'>" . getLanguageText('MENU-STAFF-LIST') . "</a></b>\n");
|
|
echo(" </td>\n");
|
|
echo(" </tr>\n");
|
|
}
|
|
|
|
echo(" <tr>\n");
|
|
echo(" <td align='center' style='border: 1px solid black; background: #e0e0e0'>\n");
|
|
echo(" <b><a href='/?action=view-documents'>" . getLanguageText('MENU-ONLINE-DOCUMENTS') . "</a></b>\n");
|
|
echo(" </td>\n");
|
|
echo(" </tr>\n");
|
|
|
|
if ($school_record['status'] != 'Linked') {
|
|
if ($school_record['other_modules'] == 'Y') {
|
|
if ($school_record['classified_ads'] == 'Y') {
|
|
echo(" <tr>\n");
|
|
echo(" <td align='center' style='border: 1px solid black; background: #e0e0e0'>\n");
|
|
echo(" <b><a href='/?action=classified'>" . getLanguageText('MENU-CLASSIFIED-ADS') . "</a></b>\n");
|
|
echo(" </td>\n");
|
|
echo(" </tr>\n");
|
|
}
|
|
if ($school_record['event_calendar'] == 'Y') {
|
|
echo(" <tr>\n");
|
|
echo(" <td align='center' style='border: 1px solid black; background: #e0e0e0'>\n");
|
|
echo(" <b><a href='/?action=events-calendar'>" . getLanguageText('MENU-EVENTS') . "</a></b>\n");
|
|
echo(" </td>\n");
|
|
echo(" </tr>\n");
|
|
}
|
|
if ($school_record['photo_gallery'] == 'Y' && isset($numGalleries) && $numGalleries > 0) {
|
|
echo(" <tr>\n");
|
|
echo(" <td align='center' style='border: 1px solid black; background: #e0e0e0'>\n");
|
|
echo(" <b><a href='/?action=photo-gallery'>" . getLanguageText('MENU-PHOTO-GALLERY') . "</a></b>\n");
|
|
echo(" </td>\n");
|
|
echo(" </tr>\n");
|
|
}
|
|
}
|
|
if ($school_record['math_worksheets'] == 'Y') {
|
|
echo(" <tr>\n");
|
|
echo(" <td align='center' style='border: 1px solid black; background: #e0e0e0'>\n");
|
|
echo(" <b><a href='/?action=math-worksheets'>" . getLanguageText('MENU-MATH-WORKSHEETS') . "</a></b>\n");
|
|
echo(" </td>\n");
|
|
echo(" </tr>\n");
|
|
}
|
|
}
|
|
?>
|
|
</table>
|
|
|
|
<?php
|
|
endTemplate();
|
|
?>
|