version 1.48, 2003/09/29 16:33:09
|
version 1.54, 2003/10/09 14:37:48
|
Line 1873 BUTTONS
|
Line 1873 BUTTONS
|
|
|
# Evaluate the map url as needed |
# Evaluate the map url as needed |
my $mapUrl; |
my $mapUrl; |
if ($self->{EVALUATE_MAP_URL}) { |
if ($self->{EVAL_MAP_URL}) { |
my $mapUrlFunc = eval('sub { my $helper = shift; my $state = shift; ' . |
my $mapUrlFunc = eval('sub { my $helper = shift; my $state = shift; ' . |
$self->{MAP_URL} . '}'); |
$self->{MAP_URL} . '}'); |
$mapUrl = &$mapUrlFunc($helper, $self); |
$mapUrl = &$mapUrlFunc($helper, $self); |
Line 2044 sub render {
|
Line 2044 sub render {
|
} |
} |
} |
} |
} |
} |
|
function checksec(value) { |
|
for (i=0; i<document.forms.helpform.elements.length; i++) { |
|
comp = document.forms.helpform.elements.chksec.value; |
|
if (document.forms.helpform.elements[i].value.indexOf(':'+comp+':') != -1) { |
|
document.forms.helpform.elements[i].checked=value; |
|
} |
|
} |
|
} |
|
function checkactive() { |
|
for (i=0; i<document.forms.helpform.elements.length; i++) { |
|
if (document.forms.helpform.elements[i].value.indexOf(':Active') != -1) { |
|
document.forms.helpform.elements[i].checked=true; |
|
} |
|
} |
|
} |
</script> |
</script> |
SCRIPT |
SCRIPT |
$buttons = <<BUTTONS; |
$buttons = <<BUTTONS; |
<br /> |
<br /> |
|
<input type="button" onclick="checkactive()" value="Select Only Current Students" /> |
<input type="button" onclick="checkall(true, '$var')" value="Select All Students" /> |
<input type="button" onclick="checkall(true, '$var')" value="Select All Students" /> |
<input type="button" onclick="checkall(false, '$var')" value="Unselect All Students" /> |
<input type="button" onclick="checkall(false, '$var')" value="Unselect All Students" /> |
<br /> |
<br /> |
|
<input type="button" onclick="checksec(true)" value="Select for Section/Group"> |
|
<input type="text" size="5" name="chksec"> |
|
<input type="button" onclick="checksec(false)" value="Unselect for Section/Group"> |
|
|
|
<br /> |
BUTTONS |
BUTTONS |
} |
} |
|
|
Line 2103 BUTTONS
|
Line 2124 BUTTONS
|
if (!$self->{'activeonly'} || $classlist->{$_}->[$status] eq |
if (!$self->{'activeonly'} || $classlist->{$_}->[$status] eq |
'Active') { |
'Active') { |
push @$choices, [$_, $classlist->{$_}->[$fullname], |
push @$choices, [$_, $classlist->{$_}->[$fullname], |
$classlist->{$_}->[$section], 'Student']; |
$classlist->{$_}->[$section], |
|
$classlist->{$_}->[$status], 'Student']; |
} |
} |
} |
} |
|
|
Line 2113 BUTTONS
|
Line 2135 BUTTONS
|
$result .= "<table cellspacing='2' cellpadding='2' border='0'>\n"; |
$result .= "<table cellspacing='2' cellpadding='2' border='0'>\n"; |
$result .= "<tr><td></td><td align='center'><b>$name</b></td>". |
$result .= "<tr><td></td><td align='center'><b>$name</b></td>". |
"<td align='center'><b>Section</b></td>" . |
"<td align='center'><b>Section</b></td>" . |
"<td align='center'><b>Role</b></td></tr>"; |
"<td align='center'><b>Status</b></td>" . |
|
"<td align='center'><b>Role</b></td>" . |
|
"<td align='center'><b>Username:Domain</b></td></tr>"; |
|
|
my $checked = 0; |
my $checked = 0; |
for my $choice (@$choices) { |
for my $choice (@$choices) { |
Line 2125 BUTTONS
|
Line 2149 BUTTONS
|
$checked = 1; |
$checked = 1; |
} |
} |
$result .= |
$result .= |
" value='" . HTML::Entities::encode($choice->[0] . ':' . $choice->[2]) |
" value='" . HTML::Entities::encode($choice->[0] . ':' . $choice->[2] . ':' . $choice->[1] . ':' . $choice->[3]) |
. "' /></td><td>" |
. "' /></td><td>" |
. HTML::Entities::encode($choice->[1]) |
. HTML::Entities::encode($choice->[1]) |
. "</td><td align='center'>" |
. "</td><td align='center'>" |
. HTML::Entities::encode($choice->[2]) |
. HTML::Entities::encode($choice->[2]) |
. "</td>\n<td>" |
. "</td>\n<td>" |
. HTML::Entities::encode($choice->[3]) . "</td></tr>\n"; |
. HTML::Entities::encode($choice->[3]) |
|
. "</td>\n<td>" |
|
. HTML::Entities::encode($choice->[4]) |
|
. "</td>\n<td>" |
|
. HTML::Entities::encode($choice->[0]) |
|
. "</td></tr>\n"; |
} |
} |
|
|
$result .= "</table>\n\n"; |
$result .= "</table>\n\n"; |