40 lines
1.7 KiB
PHP
40 lines
1.7 KiB
PHP
<?php
|
|
$BTNstyle = "btn btn--primary";
|
|
$BTNstyle = "class='btn btn--primary btn--large' style='width:165px'";
|
|
|
|
$studentButton = false;
|
|
if ($_SESSION['UserInfo']['type'] == 'Parent') $studentButton = true;
|
|
if ($_SESSION['UserInfo']['type'] == 'Staff' && $school_record['staff_can_have_children'] == 'Y') $studentButton = true;
|
|
|
|
$payOnline = false;
|
|
if ($school_record['paypal_enabled'] == 'Y' || $school_record['bambora_enabled'] == 'Y') {
|
|
$payOnline = true;
|
|
}
|
|
|
|
|
|
$profileButton = true;
|
|
if ($studentButton && $payOnline) $profileButton = false;
|
|
|
|
$gridCount = 4;
|
|
if (!$studentButton && !$payOnline) $gridCount = 3;
|
|
|
|
|
|
?>
|
|
|
|
<br>
|
|
<div id='parent-student-buttons'>
|
|
<?php if ($studentButton) { ?>
|
|
<a href='?action=students-list' <?php echo($BTNstyle) ?>> <img class="btn__icon" src="images/navicons/icon-students.svg"><span> <?php echo($GlobalText['Students']) ?> </span></a>
|
|
<?php } ?>
|
|
<a href='?action=order-list' <?php echo($BTNstyle) ?>><img class="btn__icon" src="images/navicons/icon-ordering.svg"><span> <?php displayLanguageText('TEXT-ORDERS'); ?> </span></a>
|
|
<a href='?action=user-account' <?php echo($BTNstyle) ?>><img class="btn__icon" src="images/navicons/icon-transactions.svg"><span> <?php displayLanguageText('TEXT-TRANSACTIONS'); ?> </span></a>
|
|
<?php if ($payOnline) { ?>
|
|
<a href='?action=pay-online' <?php echo($BTNstyle) ?>><img class="btn__icon" src="images/navicons/icon-pay-online.svg"><span> <?php displayLanguageText('TEXT-PAY-ONLINE'); ?> </span></a>
|
|
<?php } ?>
|
|
<?php if ($profileButton) { ?>
|
|
<a href='?action=account&naction=edit' <?php echo($BTNstyle) ?>><img class="btn__icon" src="images/navicons/icon-profile.svg"><span> <?php displayLanguageText('TEXT-PROFILE'); ?> </span></a>
|
|
<?php } ?>
|
|
</div>
|
|
<br>
|
|
<br>
|