version 1.2, 2006/05/15 22:01:12
|
version 1.3, 2006/05/17 15:01:40
|
Line 330 SCRIPT
|
Line 330 SCRIPT
|
# True -> checkboxes. |
# True -> checkboxes. |
# False -> radiobuttons. |
# False -> radiobuttons. |
|
|
$result .= "<table border=\"2\">\n"; |
$result .= &Apache::loncommon::start_data_table(); |
$result .= '<tr><th></th><th align="center">Name</th>'."\n"; |
$result .= &Apache::loncommon::start_data_table_header_row(); |
$result .= ' <th align="center">Section</th>'."\n"; |
$result .= '<th></th><th>Name</th>'."\n"; |
$result .= ' <th align="center">Status</th>'."\n"; |
$result .= ' <th>Section</th>'."\n"; |
$result .= ' <th align="center">Role</th>'."\n"; |
$result .= ' <th>Status</th>'."\n"; |
$result .= ' <th align="center">Username : Domain</th></tr>'."\n"; |
$result .= ' <th>Role</th>'."\n"; |
|
$result .= ' <th>Username : Domain</th>'."\n"; |
|
$result .= &Apache::loncommon::end_data_table_header_row(); |
|
|
my $input_type; |
my $input_type; |
if ($multiselect) { |
if ($multiselect) { |
Line 346 SCRIPT
|
Line 348 SCRIPT
|
|
|
my $checked = 0; |
my $checked = 0; |
for my $student (@$students) { |
for my $student (@$students) { |
$result .= '<tr><td><input type="'.$input_type.'" name="'. |
$result .= &Apache::loncommon::start_data_table_row(). |
|
'<td><input type="'.$input_type.'" name="'. |
$resultname.".forminput".'"'; |
$resultname.".forminput".'"'; |
my $user = $student->[0]; |
my $user = $student->[0]; |
|
|
Line 377 SCRIPT
|
Line 380 SCRIPT
|
$result .= HTML::Entities::encode($student->[4], '<>&"') |
$result .= HTML::Entities::encode($student->[4], '<>&"') |
. '</td><td align="center">'."\n"; |
. '</td><td align="center">'."\n"; |
$result .= HTML::Entities::encode($student->[0], '<>&"') |
$result .= HTML::Entities::encode($student->[0], '<>&"') |
. '</td></tr>'."\n"; |
. '</td>'.&Apache::loncommon::end_data_table_row(). |
|
"\n"; |
} |
} |
$result .=" </table> <br /> <hr />\n"; |
$result .= &Apache::loncommon::end_data_table(). |
|
" <br /> <hr />\n"; |
|
|
return $result; |
return $result; |
} |
} |