First Commit
This commit is contained in:
1 parent
5eb9dd037d
commit
2e62c0e60b
11877 files changed
+2035312
No files matched your search
@@ -0,0 +1,61 @@
|
||||
<?php
|
||||
return;
|
||||
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'");
|
||||
|
||||
|
||||
?>
|
||||
<div class="btns-home">
|
||||
<center>
|
||||
<table cellpadding='1' cellspacing='1' border='0'>
|
||||
<tr>
|
||||
<td align='center'>
|
||||
<?php if ($_SESSION['UserInfo']['type'] == 'Parent' || ($school_record['staff_can_have_children'] == 'Y' && $_SESSION['UserInfo']['type'] == 'Staff')) { ?>
|
||||
<a href='?action=students-list' class='btn btn--primary btn--outline'><?php echo($studentText) ?></a>
|
||||
<a href='?action=order-list' class='btn btn--primary btn--outline'><?php displayLanguageText('TEXT-MANAGE-ORDERS'); ?></a>
|
||||
<?php if ($school_record['enable_customers'] == 'Y') { ?>
|
||||
<a href='?action=customers' class='btn btn--primary btn--outline'><?php displayLanguageText('TEXT-CUSTOMERS') ?></a>
|
||||
<?php } ?>
|
||||
<?php if ($school_record['enable_volunteer_signup'] == 'Y') { ?>
|
||||
<a href='?action=volunteer-signup' class='btn btn--primary btn--outline'><?php displayLanguageText('BUTTON-VOLUNTEER-SIGNUP') ?></a>
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($school_record['classified_ads'] == 'Y' || $school_record['event_calendar'] == 'Y' || ($numGalleries > 0 && $school_record['photo_gallery'] == 'Y')) { ?>
|
||||
<?php if ($school_record['classified_ads'] == 'Y') { ?>
|
||||
<a href='?action=classified' class='btn btn--primary btn--outline'><?php displayLanguageText('TEXT-CLASSIFIED-ADS'); ?></a>
|
||||
<?php } ?>
|
||||
<?php if ($school_record['event_calendar'] == 'Y') { ?>
|
||||
<a href='?action=events-calendar' class='btn btn--primary btn--outline'><?php displayLanguageText('TEXT-EVENT-CALENDAR'); ?></a>
|
||||
<?php } ?>
|
||||
<?php if ($numGalleries > 0 && $school_record['photo_gallery'] == 'Y') { ?>
|
||||
<a href='?action=photo-gallery' class='btn btn--primary btn--outline'><?php displayLanguageText('TEXT-PHOTO-GALLERY') ?></a>
|
||||
<?php } ?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($_SESSION['UserInfo']['type'] == 'Guest') { ?>
|
||||
<table cellpadding='1' cellspacing='1' border='0'>
|
||||
<tr>
|
||||
<td align='center'>
|
||||
<a href='?action=order-list' class='btn btn--primary btn--outline'><?php displayLanguageText('TEXT-MANAGE-ORDERS'); ?></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<?php } ?>
|
||||
|
||||
</center>
|
||||
</div>
|
||||
Reference in new issue
Block a user