version 1.3, 2003/01/06 13:53:26
|
version 1.5, 2003/05/10 23:01:56
|
Line 79 function gochoose(uname,udom) {
|
Line 79 function gochoose(uname,udom) {
|
var slct=opener.document.$ENV{'form.form'}.$ENV{'form.udomelement'}; |
var slct=opener.document.$ENV{'form.form'}.$ENV{'form.udomelement'}; |
var i; |
var i; |
for (i=0;i<slct.length;i++) { |
for (i=0;i<slct.length;i++) { |
if (slct[i]==udom) { slct.selectedIndex=i; } |
if (slct.options[i].value==udom) { slct.selectedIndex=i; } |
} |
} |
self.close(); |
self.close(); |
} |
} |
Line 87 function gochoose(uname,udom) {
|
Line 87 function gochoose(uname,udom) {
|
ENDSCRIPT |
ENDSCRIPT |
|
|
$r->print('<h3>'.$ENV{'course.'.$ENV{'request.course.id'}.'.description'}. |
$r->print('<h3>'.$ENV{'course.'.$ENV{'request.course.id'}.'.description'}. |
'</h3>'); |
'</h3><form>'); |
|
# -------------------------------------------------------- Get course personnel |
|
my %coursepersonnel= |
|
&Apache::lonnet::get_course_adv_roles(); |
|
$r->print('<table border="2">'); |
|
foreach my $role (sort keys %coursepersonnel) { |
|
foreach (split(/\,/,$coursepersonnel{$role})) { |
|
my ($puname,$pudom)=split(/\:/,$_); |
|
$r->print('<tr><td>'. |
|
'<input type="button" value="Select" onClick="gochoose('. |
|
"'".$puname."','".$pudom."')".'" /></td><td>'.$role.'</td><td>'. |
|
&Apache::loncommon::aboutmewrapper( |
|
&Apache::loncommon::plainname($puname, |
|
$pudom),$puname,$pudom).'</td></tr>'); |
|
} |
|
} |
|
$r->print('</table><p> '); |
if ($filter ne '.') { |
if ($filter ne '.') { |
$r->print('Name starting with "'.$filter.'"<br />'); |
$r->print('<br/ >Name starting with "'.$filter.'"<br />'); |
} |
} |
$r->print('<form><table>'); |
$r->print('</p><table>'); |
|
# ------------------------------------------------------------------ Students |
foreach (sort keys %$classlist) { |
foreach (sort keys %$classlist) { |
# the following undefs are for 'domain', and 'username' respectively. |
# the following undefs are for 'domain', and 'username' respectively. |
my (undef,undef,$end,$start,$id,$section,$fullname,$status)= |
my (undef,undef,$end,$start,$id,$section,$fullname,$status)= |