First Commit
This commit is contained in:
1 parent
5eb9dd037d
commit
2e62c0e60b
11877 files changed
+2035312
No files matched your search
@@ -0,0 +1,96 @@
|
||||
<?php
|
||||
require_once("include/globals.php");
|
||||
|
||||
if (SessionActive() != 1 || ! UserLoggedIn()) {
|
||||
header("Location: /");
|
||||
exit();
|
||||
}
|
||||
|
||||
|
||||
// Ensure that only valid user types access this module
|
||||
$AllowedUserTypes = array('SuperUser','System Administrator','Application Administrator','Administration Team');
|
||||
if (checkPermission($AllowedUserTypes) != 1) {
|
||||
header("Location: /");
|
||||
exit();
|
||||
}
|
||||
|
||||
|
||||
// Get set of classes
|
||||
$classes = array();
|
||||
$r = db_query("SELECT * FROM classes WHERE school_num = $base_school_num ORDER BY sequence");
|
||||
while ($class = db_fetch_assoc($r)) {
|
||||
$class['class_info'] = getClassInfo($class['record_num']);
|
||||
$classes[] = $class;
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
<p><b><?php echo($title) ?></b></p>
|
||||
<p><b>Editing <?php echo($num) ?> Entries</b></p>
|
||||
<form method='post' action='/'>
|
||||
<table width='900' id='data-table' class='content-table'>
|
||||
<tr>
|
||||
<td align='left' valign='top' class='data-header'><b><?php displayLanguageText('TEXT-NAME'); ?></b></td>
|
||||
<td align='center' valign='top' class='data-header'><b><?php echo($GlobalText['Class']) ?></b></td>
|
||||
<td align='center' valign='top' class='data-header'><b><?php displayLanguageText('TEXT-STATUS'); ?></b></td>
|
||||
<td align='center' valign='top' class='data-header'><b><?php displayLanguageText('TEXT-DISPLAY'); ?></b></td>
|
||||
<?php if ($school_record['user_defined_values'] == 'Y') { ?>
|
||||
<td align='center' valign='top' class='data-header'><b><?php echo($school_record['user_defined_title']) ?></b></td>
|
||||
<?php } ?>
|
||||
</tr>
|
||||
<?php
|
||||
$data = array();
|
||||
$count = 0;
|
||||
while ($row = db_fetch_array($results)) {
|
||||
$rnum = $row['record_num'];
|
||||
$name = $row['first_name'] . ' ' . $row['last_name'];
|
||||
|
||||
$bgclass = 'data-even';
|
||||
if ($count % 2) $bgclass = 'data-odd';
|
||||
$count++;
|
||||
?>
|
||||
<tr>
|
||||
<td class='<?php echo($bgclass) ?>' align='left'><?php echo($name) ?></td>
|
||||
<td class='<?php echo($bgclass) ?>' align='center'>
|
||||
<select name='class<?php echo($rnum) ?>' class='class-select'>
|
||||
<?php
|
||||
for ($i = 0; $i < count($classes); $i++) {
|
||||
$class = $classes[$i];
|
||||
$cnum = $class['record_num'];
|
||||
$class_info = $class['class_info'];
|
||||
$selected = "";
|
||||
if ($cnum == $row['class_num']) $selected = " selected='selected'";
|
||||
echo(" <option value='$cnum'$selected>$class_info</option>\n");
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</td>
|
||||
<td class='<?php echo($bgclass) ?>' align='center'>
|
||||
<select name='status<?php echo($rnum) ?>'>
|
||||
<?php BuildFileList("student_status.txt",$row['status']) ?>
|
||||
</select>
|
||||
</td>
|
||||
<td class='<?php echo($bgclass) ?>' align='center'>
|
||||
<select name='display<?php echo($rnum) ?>'>
|
||||
<?php BuildFileList("yn.txt",$row['display']) ?>
|
||||
</select>
|
||||
</td>
|
||||
<?php if ($school_record['user_defined_values'] == 'Y') { ?>
|
||||
<td class='<?php echo($bgclass) ?>' align='center'>
|
||||
<input type='text' name='user_val<?php echo($rnum) ?>' size='5' value='<?php echo($row['user_defined_value']) ?>'>
|
||||
</td>
|
||||
<?php } ?>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
<br>
|
||||
<input type='submit' class='btn btn--primary' value='Update Students'>
|
||||
<input type='hidden' name='action' value='students'>
|
||||
<input type='hidden' name='naction' value='update-all'>
|
||||
<input type='hidden' name='grouping' value='<?php echo($grouping) ?>'>
|
||||
<?php if (isset($current_class_num)) { ?>
|
||||
<input type='hidden' name='current_class_num' value='<?php echo($current_class_num) ?>'>
|
||||
<?php } ?>
|
||||
</form>
|
||||
Reference in new issue
Block a user