First Commit
This commit is contained in:
1 parent
5eb9dd037d
commit
2e62c0e60b
11877 files changed
+2035312
No files matched your search
@@ -0,0 +1,39 @@
|
||||
<?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>
|
||||
Reference in new issue
Block a user