First Commit
This commit is contained in:
1 parent
5eb9dd037d
commit
2e62c0e60b
11877 files changed
+2035312
No files matched your search
@@ -0,0 +1,122 @@
|
||||
<?php
|
||||
|
||||
$account_num = 0;
|
||||
if (array_key_exists('account_num', $_GET)) $account_num = intval($_GET['account_num']);
|
||||
if (!in_array($_SESSION['UserInfo']['type'], array('SuperUser', 'System Administrator', 'Application Administrator', 'Financial', 'Communications Administrator'))) {
|
||||
$account_num = $_SESSION['UserInfo']['record_num'];
|
||||
}
|
||||
|
||||
|
||||
// Process allergens if required
|
||||
$numAllergens = db_getVal("SELECT count(*) FROM allergens WHERE school_num = $school_num");
|
||||
if ($numAllergens > 0) {
|
||||
$query = "SELECT people_num, count(*) AS num FROM allergies WHERE school_num = $school_num GROUP BY 1";
|
||||
$results = db_query($query);
|
||||
while ($row = db_fetch_assoc($results)) {
|
||||
$pnum = $row['people_num'];
|
||||
$count = intval($row['num']);
|
||||
$query = "UPDATE people SET num_allergies = $count WHERE school_num = $school_num AND record_num = $pnum";
|
||||
db_query($query);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if ($account_num > 0) {
|
||||
$templatePageTitle = $GlobalText['ManageStudents'];
|
||||
$SearchFlag = 'N';
|
||||
}
|
||||
else {
|
||||
?>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
<br>
|
||||
<button id='update-student-status'><?php displayLanguageText('TEXT-UPDATE-STATUS'); ?></button>
|
||||
</td>
|
||||
<?php if ($school_record['special_item_prices'] != 'N') { ?>
|
||||
<td>
|
||||
<br>
|
||||
<button id='update-student-price-category'><?php displayLanguageText('TEXT-UPDATE-MENU-CATEGORY'); ?></button>
|
||||
</td>
|
||||
<?php } ?>
|
||||
<?php if ($school_record['implement_multiple_item_prices'] != 'N') { ?>
|
||||
<td>
|
||||
<br>
|
||||
<button id='update-student-flex-flag'><?php displayLanguageText('TEXT-UPDATE-FLEX-PRICE-ACCESS'); ?></button>
|
||||
</td>
|
||||
<?php } ?>
|
||||
<?php if ($school_record['implement_meal_locations'] != 'N') { ?>
|
||||
<td>
|
||||
<br>
|
||||
<button id='update-student-delivery-location'><?php displayLanguageText('TEXT-UPDATE-DELIVERY-LOCATIONS'); ?></button>
|
||||
</td>
|
||||
<?php } ?>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<?php
|
||||
$cresults = db_query("SELECT * FROM classes WHERE school_num = $base_school_num ORDER BY sequence");
|
||||
$numClass = db_num_rows($cresults);
|
||||
|
||||
if ($numClass > 0 || $school_record['special_item_prices'] == 'Y') {
|
||||
?>
|
||||
<br>
|
||||
<table>
|
||||
<tr>
|
||||
<?php
|
||||
if ($numClass > 0) {
|
||||
|
||||
$Classes = array();
|
||||
while ($row = db_fetch_assoc($cresults)) {
|
||||
$cnum = $row['record_num'];
|
||||
$class_info = getClassInfo($cnum, 'dropdown');
|
||||
$Classes[] = array($cnum, $class_info);
|
||||
}
|
||||
?>
|
||||
<td align='left'>
|
||||
<b><?php echo($GlobalText['Classes']) ?>:</b><br>
|
||||
<select id='selected-class-num'>
|
||||
<option value='0'><?php displayLanguageText('TEXT-VIEW-ALL'); ?></option>
|
||||
<?php
|
||||
for ($i = 0; $i < count($Classes); $i++) {
|
||||
$class = $Classes[$i];
|
||||
$cnum = $class[0];
|
||||
$info = $class[1];
|
||||
echo(" <option value='$cnum'>$info</option>\n");
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</td>
|
||||
<?php
|
||||
}
|
||||
|
||||
if ($school_record['special_item_prices'] == 'Y') {
|
||||
?>
|
||||
<td> </td>
|
||||
<td align='left'>
|
||||
<b><?php displayLanguageText('TEXT-PRICE-CATEGORY'); ?>:</b><br>
|
||||
<select id='selected-menu-category'>
|
||||
<option value='0'><?php displayLanguageText('TEXT-VIEW-ALL'); ?></option>
|
||||
<option value='Regular'><?php displayLanguageText('TEXT-REGULAR'); ?></option>
|
||||
<option value='Special 1'><?php displayLanguageText('TEXT-SPECIAL-1'); ?></option>
|
||||
<option value='Special 2'><?php displayLanguageText('TEXT-SPECIAL-2'); ?></option>
|
||||
<option value='Special 3'><?php displayLanguageText('TEXT-SPECIAL-3'); ?></option>
|
||||
</select>
|
||||
</td>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<td>
|
||||
<br>
|
||||
<button id='view-selected-records'><?php displayLanguageText('TEXT-VIEW'); ?></button>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br>
|
||||
<span id='student-people-message-div' style='padding: 5 5 5 5; margin: 15px 0 0 0; background-color: #FCF3BA;'></span>
|
||||
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
Reference in new issue
Block a user