version 1.14, 2001/04/24 15:01:25
|
version 1.16, 2001/04/25 20:33:26
|
Line 110 ENDENHEAD
|
Line 110 ENDENHEAD
|
my %inccourses; |
my %inccourses; |
map { |
map { |
$incdomains{$_}=1; |
$incdomains{$_}=1; |
} %Apache::lonnet::hostdom; |
} values %Apache::lonnet::hostdom; |
map { |
map { |
if ($_=~/^user\.priv\.cm\.\/(\w+)\/(\w+)/) { |
if ($_=~/^user\.priv\.cm\.\/(\w+)\/(\w+)/) { |
$inccourses{$1.'_'.$2}=1; |
$inccourses{$1.'_'.$2}=1; |
Line 266 ENDDROW
|
Line 266 ENDDROW
|
'<th>Group/Section</th><th>Start</th><th>End</th></tr>'); |
'<th>Group/Section</th><th>Start</th><th>End</th></tr>'); |
map { |
map { |
my $thiscourse=$_; |
my $thiscourse=$_; |
$thiscourse=~s:/:_:g; |
my $protectedcourse=$_; |
|
$thiscourse=~s:_:/:g; |
my %coursedata=&Apache::lonnet::coursedescription($thiscourse); |
my %coursedata=&Apache::lonnet::coursedescription($thiscourse); |
my $area=$coursedata{'description'}; |
my $area=$coursedata{'description'}; |
my $bgcol=$thiscourse; |
my $bgcol=$thiscourse; |
Line 275 ENDDROW
|
Line 276 ENDDROW
|
map { |
map { |
if (&Apache::lonnet::allowed('c'.$_,$thiscourse)) { |
if (&Apache::lonnet::allowed('c'.$_,$thiscourse)) { |
my $plrole=&Apache::lonnet::plaintext($_); |
my $plrole=&Apache::lonnet::plaintext($_); |
$r->print(<<ENDROW); |
$r->print(" |
<tr bgcolor=#$bgcol> |
<tr bgcolor=#$bgcol> |
<td><input type=checkbox name="act_$thiscourse\_$_"></td> |
<td><input type=checkbox name=\"act_$protectedcourse\_$_\"></td> |
<td>$plrole</td> |
<td>$plrole</td> |
<td>$area</td> |
<td>$area</td> |
<td><input type=text size=5 name="sec_$thiscourse\_$_"></td> |
<td>"); |
<td><input type=hidden name="start_$thiscourse\_$_" value=''> |
if ($_ ne 'cc') { |
|
$r->print("<input type=text size=5 name=\"sec_$protectedcourse\_$_\">"); |
|
} else { $r->print(" "); } |
|
$r->print(<<ENDROW); |
|
<td><input type=hidden name="start_$protectedcourse\_$_" value=''> |
<a href= |
<a href= |
"javascript:pjump('date_start','Start Date $plrole',document.cu.start_$thiscourse\_$_.value,'start_$thiscourse\_$_','cu.pres','dateset')">Set Start Date</a></td> |
"javascript:pjump('date_start','Start Date $plrole',document.cu.start_$protectedcourse\_$_.value,'start_$protectedcourse\_$_','cu.pres','dateset')">Set Start Date</a></td> |
<td><input type=hidden name="end_$thiscourse\_$_" value=''> |
<td><input type=hidden name="end_$protectedcourse\_$_" value=''> |
<a href= |
<a href= |
"javascript:pjump('date_end','End Date $plrole',document.cu.end_$thiscourse\_$_.value,'end_$thiscourse\_$_','cu.pres','dateset')">Set End Date</a></td> |
"javascript:pjump('date_end','End Date $plrole',document.cu.end_$protectedcourse\_$_.value,'end_$protectedcourse\_$_','cu.pres','dateset')">Set End Date</a></td> |
</tr> |
</tr> |
ENDROW |
ENDROW |
|
|
} |
} |
} ('st','ta','ep','ad','in','cc'); |
} ('st','ta','ep','ad','in','cc'); |
} sort keys %inccourses; |
} sort keys %inccourses; |