First Commit
This commit is contained in:
1 parent
5eb9dd037d
commit
2e62c0e60b
11877 files changed
+2035312
No files matched your search
@@ -0,0 +1,143 @@
|
||||
<?php
|
||||
// Get classes for dropdown lists
|
||||
$query = "SELECT * FROM classes WHERE school_num = $school_num AND entry_type = 'Class' ORDER BY sequence";
|
||||
$classes = db_query($query);
|
||||
|
||||
$ClassesSelect = "";
|
||||
while ($row = db_fetch_assoc($classes)) {
|
||||
$cnum = $row['record_num'];
|
||||
$info = getClassInfo($cnum, 'dropdown');
|
||||
$ClassesSelect .= "<option value='$cnum'>$info</option>\n";
|
||||
}
|
||||
|
||||
// Get locations for dropdown lists
|
||||
$LocationsSelect = "";
|
||||
$optgroup_started = false;
|
||||
if ($school_record['implement_meal_locations'] != 'N') {
|
||||
foreach ($MealLocationsLookup AS $value => $option) {
|
||||
$otext = $option;
|
||||
if (strpos($otext, 'TEXT-') === 0 || strpos($otext, 'CODE-') === 0) $otext = getLanguageText('TEXT-'.str_replace(' ','-',$otext));
|
||||
if (strpos($otext, 'GlobalText.') === 0) {
|
||||
$pindex = str_replace('GlobalText.','',$otext);
|
||||
$otext = $GlobalText[$pindex];
|
||||
}
|
||||
|
||||
if (strstr($value, 'OPTGROUP-') !== false) {
|
||||
if ($optgroup_started) $LocationsSelect .= " </optgroup>\n";
|
||||
$LocationsSelect .= " <optgroup label='$otext'>\n";
|
||||
$optgroup_started = true;
|
||||
}
|
||||
else {
|
||||
$LocationsSelect .= " <option value='$value'>$otext</option>\n";
|
||||
}
|
||||
}
|
||||
if ($optgroup_started) $LocationsSelect .= " </optgroup>\n";
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
<div id='menu-category-dialog' title='<?php displayLanguageText('TEXT-UPDATE-MENU-CATEGORY'); ?>'>
|
||||
<center>
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
<p><b><?php displayLanguageText('TEXT-MENU-PRICE-CATEGORY'); ?>:</b><br>
|
||||
<select id='selected-menu-price-category'>
|
||||
<option value=''><?php displayLanguageText('TEXT-SELECT-A-CATEGORY'); ?></option>
|
||||
<option value='Regular'><?php displayLanguageText('TEXT-REGULAR'); ?></option>
|
||||
<option value='Special 1'><?php displayLanguageText('TEXT-SPECIAL-1'); ?></option>
|
||||
<option value='Special 1'><?php displayLanguageText('TEXT-SPECIAL-2'); ?></option>
|
||||
<option value='Special 1'><?php displayLanguageText('TEXT-SPECIAL-3'); ?></option>
|
||||
</select></p>
|
||||
<p><b><?php echo($GlobalText['Class']) ?>:</b><br>
|
||||
<select id='selected-menu-price-class'>
|
||||
<option value='0'><?php displayLanguageText('TEXT-ALL-CLASSES'); ?></option>
|
||||
<?php echo($ClassesSelect) ?>
|
||||
</select></p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br>
|
||||
<button id='update-menu-category-btn'><?php displayLanguageText('TEXT-UPDATE-MENU-CATEGORY'); ?></button>
|
||||
<button class='close-dialog' dialog-name='menu-category-dialog'><?php displayLanguageText('TEXT-CLOSE'); ?></button>
|
||||
<br>
|
||||
</center>
|
||||
</div>
|
||||
|
||||
<div id='flex-access-dialog' title='<?php displayLanguageText('TEXT-UPDATE-FLEX-PRICE-ACCESS'); ?>'>
|
||||
<center>
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
<p><b><?php displayLanguageText('TEXT-ACCESS-TO-FLEX-PRICES'); ?>:</b><br>
|
||||
<select id='selected-flex-access-flag'>
|
||||
<option value='Y'><?php displayLanguageText('TEXT-YES'); ?></option>
|
||||
<option value='N'><?php displayLanguageText('TEXT-NO'); ?></option>
|
||||
</select></p>
|
||||
<p><b><?php echo($GlobalText['Class']) ?>:</b><br>
|
||||
<select id='selected-flex-access-class'>
|
||||
<option value='0'><?php displayLanguageText('TEXT-ALL-CLASSES'); ?></option>
|
||||
<?php echo($ClassesSelect) ?>
|
||||
</select></p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br>
|
||||
<button id='update-flex-flag-btn'><?php displayLanguageText('TEXT-UPDATE-FLEX-PRICE-ACCESS'); ?></button>
|
||||
<button class='close-dialog' dialog-name='flex-access-dialog'><?php displayLanguageText('TEXT-CLOSE'); ?></button>
|
||||
<br>
|
||||
</center>
|
||||
</div>
|
||||
|
||||
<div id='student-status-dialog' title='<?php displayLanguageText('TEXT-UPDATE-STATUS'); ?>'>
|
||||
<center>
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
<p><b><?php displayLanguageText('TEXT-STATUS'); ?>:</b><br>
|
||||
<select id='selected-status-value'>
|
||||
<option value='Verified'><?php displayLanguageText('TEXT-VERIFIED'); ?></option>
|
||||
<option value='Unverified'><?php displayLanguageText('TEXT-UNVERIFIED'); ?></option>
|
||||
<option value='Inactive'><?php displayLanguageText('TEXT-INACTIVE'); ?></option>
|
||||
</select></p>
|
||||
<p><b><?php echo($GlobalText['Class']) ?>:</b><br>
|
||||
<select id='selected-status-class'>
|
||||
<option value='0'><?php displayLanguageText('TEXT-ALL-CLASSES'); ?></option>
|
||||
<?php echo($ClassesSelect) ?>
|
||||
</select></p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br>
|
||||
<button id='update-student-status-btn'><?php displayLanguageText('TEXT-UPDATE-STATUS'); ?></button>
|
||||
<button class='close-dialog' dialog-name='student-status-dialog'><?php displayLanguageText('TEXT-CLOSE'); ?></button>
|
||||
<br>
|
||||
</center>
|
||||
</div>
|
||||
|
||||
<div id='student-delivery-locations-dialog' title='<?php displayLanguageText('TEXT-UPDATE-DELIVERY-LOCATIONS'); ?>'>
|
||||
<center>
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
<p><b><?php displayLanguageText('TEXT-DELIVERY-LOCATION'); ?>:</b><br>
|
||||
<select id='selected-delivery-location'>
|
||||
<option value=''><?php displayLanguageText('TEXT-LOCATION-SELECT'); ?></option>
|
||||
<?php echo($LocationsSelect) ?>
|
||||
</select></p>
|
||||
<p><b><?php echo($GlobalText['Class']) ?>:</b><br>
|
||||
<select id='selected-status-class'>
|
||||
<option value='0'><?php displayLanguageText('TEXT-ALL-CLASSES'); ?></option>
|
||||
<?php echo($ClassesSelect) ?>
|
||||
</select></p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br>
|
||||
<button id='update-student-delivery-locations-btn'><?php displayLanguageText('TEXT-UPDATE-DELIVERY-LOCATIONS'); ?></button>
|
||||
<button class='close-dialog' dialog-name='student-delivery-locations-dialog'><?php displayLanguageText('TEXT-CLOSE'); ?></button>
|
||||
<br>
|
||||
</center>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in new issue
Block a user