Files
2026-10-19 15:22:52 -07:00

31 lines
1004 B
PHP

<?php if ($school_record['collect_student_grade'] == 'N') { ?>
$("#school_grade_p").hide();
<?php } ?>
<?php if ($school_record['collect_student_number'] == 'N') { ?>
$("#student_number_p").hide();
<?php } ?>
<?php if ($school_record['implement_meal_locations'] == 'N') { ?>
$("#meal_location_p").hide();
<?php } ?>
<?php if ($school_record['special_item_prices'] == 'N') { ?>
$("#menu_price_category_p").hide();
<?php } ?>
<?php if ($school_record['implement_multiple_item_prices'] == 'N') { ?>
$("#access_to_multiple_item_prices_p").hide();
<?php } ?>
<?php
if (array_key_exists('account_num', $_GET)) $account_num = intval($_GET['account_num']);
if (isset($account_num) && $account_num > 0) {
?>
$("#user_num_default").val(<?php echo($account_num) ?>);
<?php } ?>
<?php
$numAllergens = db_getVal("SELECT count(*) FROM allergens WHERE school_num = $school_num");
if ($numAllergens == 0) {
?>
$("#num_allergies_p").hide();
<?php } ?>