76 lines
3.3 KiB
PHP
76 lines
3.3 KiB
PHP
<?php
|
|
require_once("include/globals.php");
|
|
|
|
if ($_SESSION['UserInfo']['type'] == 'Supplier') return;
|
|
|
|
|
|
$studentText = $GlobalText['Students'];
|
|
$studentLink = $GlobalText['StudentLink'];
|
|
$manage_students = $GlobalText['ManageStudents'];
|
|
$add_students = $GlobalText['AddStudents'];
|
|
$student_orders = $GlobalText['StudentOrders'];
|
|
|
|
// Determine if there are any photo galleries defined
|
|
$numGalleries = db_getVal("SELECT count(*) FROM photo_galleries WHERE school_num = $school_num AND active = 'Y'");
|
|
|
|
|
|
?>
|
|
<center class='buttons-col'>
|
|
<?php if ($_SESSION['UserInfo']['type'] == 'Parent') { ?>
|
|
<table cellpadding='1' cellspacing='1' border='0'>
|
|
<tr>
|
|
<td align='center'><a href='?action=<?php echo($studentLink) ?>' class='largeButton'><?php echo($studentText) ?></a></td>
|
|
<td align='center'><a href='?action=order-list' class='largeButton'><?php displayLanguageText('TEXT-MANAGE-ORDERS'); ?></a></td>
|
|
<?php if ($school_record['enable_customers'] == 'Y' && $school_record['enable_volunteer_signup'] == 'Y') { ?>
|
|
</tr>
|
|
</table>
|
|
<table cellpadding='1' cellspacing='1' border='0'>
|
|
<tr>
|
|
<?php } ?>
|
|
<?php if ($school_record['enable_customers'] == 'Y') { ?>
|
|
<td align='center'><a href='?action=customers' class='largeButton'><?php displayLanguageText('TEXT-CUSTOMERS') ?></a></td>
|
|
<?php } ?>
|
|
<?php if ($school_record['enable_volunteer_signup'] == 'Y') { ?>
|
|
<td align='center'><a href='?action=volunteer-signup' class='largeButton'><?php displayLanguageText('BUTTON-VOLUNTEER-SIGNUP') ?></a></td>
|
|
<?php } ?>
|
|
</tr>
|
|
</table>
|
|
<?php } ?>
|
|
|
|
<?php if ($school_record['staff_can_have_children'] == 'Y' && $_SESSION['UserInfo']['type'] == 'Staff') { ?>
|
|
<table cellpadding='1' cellspacing='1' border='0'>
|
|
<tr>
|
|
<td align='center'><a href='?action=students&naction=display' class='largeButton'><?php echo($studentText) ?></a></td>
|
|
<td align='center'><a href='?action=order-list' class='largeButton'><?php displayLanguageText('TEXT-MANAGE-ORDERS'); ?></a></td>
|
|
<?php if ($school_record['enable_customers'] == 'Y') { ?>
|
|
<td align='center'><a href='?action=customers' class='largeButton'><?php displayLanguageText('TEXT-CUSTOMERS') ?></a></td>
|
|
<?php } ?>
|
|
</tr>
|
|
</table>
|
|
<?php } ?>
|
|
|
|
<?php if ($_SESSION['UserInfo']['type'] == 'Guest') { ?>
|
|
<table cellpadding='1' cellspacing='1' border='0'>
|
|
<tr>
|
|
<td align='center'><a href='?action=order-list' class='largeButton'><?php displayLanguageText('TEXT-MANAGE-ORDERS'); ?></a></td>
|
|
</tr>
|
|
</table>
|
|
<?php } ?>
|
|
|
|
<?php if ($_SESSION['UserInfo']['type'] != 'Guest') { ?>
|
|
<table cellpadding='1' cellspacing='1' border='0'>
|
|
<tr>
|
|
<?php if ($school_record['classified_ads'] == 'Y') { ?>
|
|
<td align='center'><a href='?action=classified' class='largeButton'><?php displayLanguageText('TEXT-CLASSIFIED-ADS'); ?></a></td>
|
|
<?php } ?>
|
|
<?php if ($school_record['event_calendar'] == 'Y') { ?>
|
|
<td align='center'><a href='?action=events-calendar' class='largeButton'><?php displayLanguageText('TEXT-EVENT-CALENDAR'); ?></a></td>
|
|
<?php } ?>
|
|
<?php if ($numGalleries > 0 && $school_record['photo_gallery'] == 'Y') { ?>
|
|
<td align='center'><a href='?action=photo-gallery' class='largeButton'><?php displayLanguageText('TEXT-PHOTO-GALLERY') ?></a></td>
|
|
<?php } ?>
|
|
</tr>
|
|
</table>
|
|
<?php } ?>
|
|
</center>
|