First Commit
This commit is contained in:
1 parent
5eb9dd037d
commit
2e62c0e60b
11877 files changed
+2035312
No files matched your search
@@ -0,0 +1,179 @@
|
||||
<table width='100%'>
|
||||
<tr>
|
||||
<td align='left'>
|
||||
<?php if ($school_record['staff_titles'] == 'Y') { ?>
|
||||
<p class='align-left'><b><label for='dialog_title'><?php displayLanguageText('TEXT-TITLE'); ?></label>:</b><br>
|
||||
<select name='title' id='dialog_title' class="form-field text ui-widget-content ui-corner-all">
|
||||
<option value=''></option>
|
||||
<?php BuildFileList("titles.txt") ?>
|
||||
</select></p>
|
||||
<?php } ?>
|
||||
<p class='align-left'><b><label for='dialog_first_name'><?php displayLanguageText('TEXT-FIRST-NAME'); ?></label>:</b><br>
|
||||
<input type='text' name='first_name' id='dialog_first_name' size='30' class="form-field text ui-widget-content ui-corner-all"></p>
|
||||
<p class='align-left'><b><label for='dialog_last_name'><?php displayLanguageText('TEXT-LAST-NAME'); ?></label>:</b><br>
|
||||
<input type='text' name='last_name' id='dialog_last_name' size='30' class="form-field text ui-widget-content ui-corner-all"></p>
|
||||
<p class='align-left'><b><label for='dialog_label_note'><?php displayLanguageText('TEXT-LABEL-NOTE'); ?></label>:</b> <?php displayHelp('TEXT-LABEL-NOTE-EXPLANATION') ?><br>
|
||||
<input type='text' name='label_note' id='dialog_label_note' size='40' class="form-field text ui-widget-content ui-corner-all"></p>
|
||||
<p class='align-left'><b><label for='dialog_email'><?php displayLanguageText('TEXT-EMAIL-ADDRESS'); ?></label>:</b><br>
|
||||
<input type='text' name='email' id='dialog_email' size='60' class="form-field text ui-widget-content ui-corner-all"></p>
|
||||
<p class='align-left'><b><label for='dialog_staff_category'><?php displayLanguageText('TEXT-STAFF-CATEGORY'); ?></label>:</b><br>
|
||||
<select name='staff_category' id='dialog_staff_category' class="form-field text ui-widget-content ui-corner-all">
|
||||
<?php
|
||||
$query = "select * from staff_categories where school_num = $school_num order by sequence";
|
||||
$results = db_query($query);
|
||||
|
||||
while ($row = db_fetch_array($results)) {
|
||||
$title = $row['category_title'];
|
||||
$rnum = $row['record_num'];
|
||||
echo(" <option value='$rnum'>$title</option>\n");
|
||||
}
|
||||
?>
|
||||
</select></p>
|
||||
<?php
|
||||
$numClasses = db_getVal("SELECT count(*) FROM classes WHERE school_num = $base_school_num AND entry_type = 'Class'");
|
||||
if ($numClasses > 0) {
|
||||
$disabled = '';
|
||||
// if ($userType != 'Admin' && $school_record['allow_parents_to_edit_grade'] == 'N') $disabled = ' disabled';
|
||||
?>
|
||||
<p class='align-left'><b><label for='dialog_class_num'><?php echo($GlobalText['Class']) ?></label>:</b><br>
|
||||
<select name='class_num' id='dialog_class_num'<?php echo($disabled) ?> class='select-width300 form-field text ui-widget-content ui-corner-all'>
|
||||
<option value=''><?php echo($GlobalText['ClassSelect']); ?></option>
|
||||
<?php
|
||||
// Get class and teacher information
|
||||
if ($school_record['p_display_program'] == 'Y') {
|
||||
$query = "select c.*,program_name,cp.sequence " .
|
||||
"from classes as c left join class_programs as cp on cp.record_num = class_program " .
|
||||
"where c.school_num = $base_school_num " .
|
||||
"and entry_type = 'Class' " .
|
||||
"order by cp.sequence,c.sequence";
|
||||
}
|
||||
else {
|
||||
$query = "select c.* from classes as c " .
|
||||
"where c.school_num = $base_school_num " .
|
||||
"and entry_type = 'Class' " .
|
||||
"order by c.sequence";
|
||||
}
|
||||
|
||||
$cresults = db_query($query);
|
||||
|
||||
if ($school_record['p_display_program'] == 'N') {
|
||||
$title = $GlobalText['Classes'];
|
||||
echo(" <optgroup label='$title'>\n");
|
||||
}
|
||||
|
||||
$prev_program = "none";
|
||||
while ($crow = db_fetch_array($cresults)) {
|
||||
if (array_key_exists('program_name', $crow)) {
|
||||
if ($prev_program != $crow['program_name']) {
|
||||
if ($prev_program != "none") echo(" </optgroup>\n");
|
||||
$title = $crow['program_name'];
|
||||
if (strlen($title) > 0) {
|
||||
$prev_program = $title;
|
||||
echo(" <optgroup label='$title'>\n");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$cnum = $crow['record_num'];
|
||||
if ($_SESSION['UserInfo']['type'] == 'Parent') $class_info = getClassInfo($cnum,'dropdown');
|
||||
else $class_info = getClassInfo($cnum,'dropdown');
|
||||
|
||||
echo(" <option value='$cnum'>$class_info</option>\n");
|
||||
}
|
||||
|
||||
if (strlen($title) > 0) echo(" </optgroup>\n");
|
||||
|
||||
if ($userType == 'Admin') {
|
||||
$title = '';
|
||||
$numCustomers = db_getVal("SELECT count(*) FROM people WHERE school_num = $base_school_num AND class_num = 1");
|
||||
if ($numCustomers > 0 || $school_record['registrations_permitted'] == 'Guest' || $school_record['registrations_permitted'] == 'Both' ||
|
||||
$school_record['orders_for'] == 'Registrant' || $school_record['orders_for'] == 'Both' || $userType == 'Admin') {
|
||||
// $title = getLanguageText('TEXT-OTHER');
|
||||
// echo(" <optgroup label='$title'>\n");
|
||||
}
|
||||
|
||||
if ($numCustomers > 0 || $school_record['registrations_permitted'] == 'Guest' || $school_record['registrations_permitted'] == 'Both') {
|
||||
echo(" <option value='1'>" . getLanguageText('TEXT-CUSTOMER') . "</option>\n");
|
||||
}
|
||||
|
||||
if ($school_record['orders_for'] == 'Registrant' || $school_record['orders_for'] == 'Both') {
|
||||
echo(" <option value='2'>" . getLanguageText('TEXT-PARENT') . "</option>\n");
|
||||
}
|
||||
|
||||
echo(" <option value='0'>".getLanguageText('TEXT-STAFF')."</option>\n");
|
||||
|
||||
// if (strlen($title) > 0) echo(" </optgroup>\n");
|
||||
}
|
||||
|
||||
?>
|
||||
</select>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<?php
|
||||
if ($school_record['implement_meal_locations'] == 'Y' && in_array($_SESSION['UserInfo']['type'],array('SuperUser','System Administrator','Application Administrator'))) {
|
||||
$numClasses = db_getVal("SELECT count(*) FROM classes WHERE school_num = $school_num AND entry_type = 'Class'");
|
||||
$numLocations = db_getVal("SELECT count(*) FROM classes WHERE school_num = $school_num AND entry_type = 'Location'");
|
||||
|
||||
$lresults = db_query("SELECT * FROM classes WHERE school_num = $school_num ORDER BY entry_type,sequence");
|
||||
if ($numClasses || $numLocations) {
|
||||
?>
|
||||
<p class='align-left'><b><label for='dialog_meal_location'><?php displayLanguageText('TEXT-ALTERNATE-LOCATION'); ?></label>:</b><br>
|
||||
<select name='meal_location' id='dialog_meal_location' class='select-width400 form-field text ui-widget-content ui-corner-all'>
|
||||
<option value=''><?php displayLanguageText('TEXT-SELECT'); ?></option>
|
||||
<option value='0'><?php displayLanguageText('TEXT-DEFAULT-LOCATION'); ?></option>
|
||||
<?php
|
||||
$prev_type = "";
|
||||
while ($lrow = db_fetch_assoc($lresults)) {
|
||||
$entry_type = $lrow['entry_type'];
|
||||
if ($numClasses > 0 && $numLocations > 0) {
|
||||
if ($entry_type != $prev_type) {
|
||||
if (strlen($prev_type)) echo(" </optgroup>\n");
|
||||
if ($entry_type == 'Class') $t = $GlobalText['Classes'];
|
||||
if ($entry_type == 'Locations') $t = getLanguageText('TEXT-ALTERNATE-LOCATIONS');
|
||||
echo(" <optgroup label='$t'>\n");
|
||||
$prev_type = $entry_type;
|
||||
}
|
||||
}
|
||||
|
||||
$v = $lrow['record_num'];
|
||||
if ($entry_type == 'Class') $l = getClassInfo($v,'dropdown');
|
||||
else $l = $lrow['description'];
|
||||
echo(" <option value='$v'>$l</option>\n");
|
||||
}
|
||||
if ($numClasses > 0 && $numLocations > 0) echo(" </optgroup>\n");
|
||||
?>
|
||||
</select></p>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
<?php if ($school_record['special_item_prices'] != 'N') { ?>
|
||||
<p class='align-left'><b><label for='dialog_dialog_menu_price_category'><?php displayLanguageText('TEXT-MENU-PRICE-CATEGORY'); ?></label>:</b><br>
|
||||
<select name='menu_price_category' id='dialog_menu_price_category' class='select-width400 form-field text ui-widget-content ui-corner-all'>
|
||||
<?php BuildFileList("menu_price_category.txt") ?>
|
||||
</select></p>
|
||||
<?php } ?>
|
||||
<p class='align-left'><b><label for='dialog_added_date'><?php displayLanguageText('TEXT-ADDED-DATE'); ?></label>:</b><br>
|
||||
<input type='text' name='added_date' id='dialog_added_date' size='15' readonly class="form-field text ui-widget-content ui-corner-all"></p>
|
||||
<p class='align-left'><b><label for='dialog_user_num'><?php displayLanguageText('TEXT-USER-ID'); ?></label>:</b><br>
|
||||
<select name='user_num' id='dialog_user_num' class='select-width400 form-field text ui-widget-content ui-corner-all'>
|
||||
<option value='0'><?php displayLanguageText('TEXT-CREATE-USER-ID'); ?></option>
|
||||
<?php
|
||||
$query = "select * from users " .
|
||||
"where school_num = $base_school_num " .
|
||||
"and type in ('Staff') " .
|
||||
"order by userid";
|
||||
$results = db_query($query);
|
||||
|
||||
while ($row = db_fetch_array($results)) {
|
||||
$unum = $row['record_num'];
|
||||
$user = $row['userid'];
|
||||
echo(" <option value='$unum'>$user</option>\n");
|
||||
}
|
||||
?>
|
||||
</select></p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<input type='hidden' name='people_type' value='Staff'>
|
||||
Reference in new issue
Block a user