[LON-CAPA-cvs] cvs: loncom /homework bridgetask.pm
albertel
lon-capa-cvs@mail.lon-capa.org
Sat, 01 Oct 2005 04:14:52 -0000
albertel Sat Oct 1 00:14:52 2005 EDT
Modified files:
/loncom/homework bridgetask.pm
Log:
- add section restrivition info to the queue/user selct screens
Index: loncom/homework/bridgetask.pm
diff -u loncom/homework/bridgetask.pm:1.62 loncom/homework/bridgetask.pm:1.63
--- loncom/homework/bridgetask.pm:1.62 Sat Oct 1 00:06:29 2005
+++ loncom/homework/bridgetask.pm Sat Oct 1 00:14:51 2005
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# definition of tags that give a structure to a document
#
-# $Id: bridgetask.pm,v 1.62 2005/10/01 04:06:29 albertel Exp $
+# $Id: bridgetask.pm,v 1.63 2005/10/01 04:14:51 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -928,6 +928,10 @@
&Apache::grades::init_perm();
my ($classlist,$section,$fullname)=&Apache::grades::getclasslist(\@chosen_sections,);
&Apache::grades::reset_perm();
+ if (!(grep(/^all$/,@chosen_sections))) {
+ $result.='<p> Showing only sections <tt>'.join(', ',@chosen_sections).
+ '</tt>.</p> '."\n";
+ }
my $regexp="^$symb\0";
my %queue=&Apache::lonnet::dump($queue,$cdom,$cnum,$regexp);
@@ -1187,13 +1191,19 @@
sub select_user {
my ($symb,$cid)=&Apache::lonxml::whichuser();
- my $result.='<table border="1">';
my @chosen_sections=
&Apache::loncommon::get_env_multiple('form.chosensections');
&Apache::grades::init_perm();
my ($classlist,$section,$fullname)=&Apache::grades::getclasslist(\@chosen_sections,);
&Apache::grades::reset_perm();
+
+ my $result;
+ if (!(grep(/^all$/,@chosen_sections))) {
+ $result.='<p> Showing only sections <tt>'.join(', ',@chosen_sections).
+ '</tt>.</p> '."\n";
+ }
+ $result.='<table border="1">';
foreach my $student (sort {lc($$fullname{$a}) cmp lc($$fullname{$b}) } keys %$fullname) {
my ($uname,$udom) = split(/:/,$student);