Files
HotLunches/user_account.list.buttons.php
T
2026-10-19 15:22:52 -07:00

40 lines
3.0 KiB
PHP

<?php
$aview = "";
if (!array_key_exists('aview',$_GET) || $_GET['aview'] == 'consolidated') $aview = "consolidated";
if (!isset($selected_payment_method)) $selected_payment_method = '';
?>
<table align='right'>
<tr height='25'>
<?php if ($selected_payment_method == 'Check') { ?>
<td align='center'><a href='?action=user-account-check-register<?php echo($print_cmd) ?>' class='btn btn--primary btn--xsmall'><span><?php displayLanguageText('TEXT-CHECK-REGISTER'); ?></span></a></td>
<!--
<td align='center'><a href='?action=user-account-check-register-csv<?php echo($print_cmd) ?>' class='btn btn--primary btn--xsmall'><span><?php displayLanguageText('TEXT-CHECK-REGISTER-CSV'); ?></span></a></td>
-->
<?php } ?>
<?php if ($selected_payment_method == 'Cash') { ?>
<td align='center'><a href='?action=user-account-check-register<?php echo($print_cmd) ?>' class='btn btn--primary btn--xsmall'><span><?php displayLanguageText('TEXT-DEPOSIT-REPORT'); ?></span></a></td>
<!--
<td align='center'><a href='?action=user-account-check-register-csv<?php echo($print_cmd) ?>' class='btn btn--primary btn--xsmall'><span><?php displayLanguageText('TEXT-DEPOSIT-REPORT-CSV'); ?></span></a></td>
-->
<?php } ?>
<?php if (isset($selected_user_num) && $selected_user_num > 0) { ?>
<td align='center'><a href='?action=print-remittance-form&user_num=<?php echo($selected_user_num) ?>&aview=<?php echo($aview) ?>' class='btn btn--primary btn--xsmall'><span><?php displayLanguageText('TEXT-PRINT-REMITTANCE'); ?></span></a></td>
<?php if ($school_record['num_linked_sites'] > 0) { ?>
<?php if ($aview != 'consolidated') { ?>
<td align='center'><a href='?action=user-account&naction=list&user_num=<?php echo($selected_user_num) ?>&aview=consolidated' class='btn btn--primary btn--xsmall'><span><?php displayLanguageText('TEXT-VIEW-USER-CONSOLIDATED'); ?></span></a></td>
<?php } else { ?>
<td align='center'><a href='?action=user-account&naction=list&user_num=<?php echo($selected_user_num) ?>&aview=' class='btn btn--primary btn--xsmall'><span><?php displayLanguageText('TEXT-VIEW-USER-CURRENT'); ?></span></a></td>
<?php } ?>
<?php } ?>
<td align='center'><a href='?action=user-account&naction=list&user_num=<?php echo($selected_user_num) ?>&view=details' class='btn btn--primary btn--xsmall'><span><?php displayLanguageText('TEXT-VIEW-DETAILS'); ?></span></a></td>
<?php } ?>
<td align='center'><a href='?action=user-account-report-print<?php echo($print_cmd) ?>&aview=<?php echo($aview) ?>' class='btn btn--primary btn--xsmall'><span><?php displayLanguageText('TEXT-PRINT'); ?></span></a></td>
<td align='center'><a href='?action=user-account-report-csv<?php echo($print_cmd) ?>&aview=<?php echo($aview) ?>' class='btn btn--primary btn--xsmall'><span><?php displayLanguageText('TEXT-CSV'); ?></span></a></td>
<?php if (!isset($deleteType) || $deleteType != 'deleted') { ?>
<td align='center'>&nbsp;</td>
<?php } ?>
</tr>
</table>