First Commit

This commit is contained in:
mark committed 2026-10-19 15:22:52 -07:00
1 parent 5eb9dd037d
commit 2e62c0e60b
11877 files changed
+2035312

No files matched your search

+30
View File
@@ -0,0 +1,30 @@
<?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 } ?>