print('value="'.$tempkey.'"'); + if ($$pscat[0] eq "all" || grep $_ eq $tempkey, @{$pscat}) { + $r->print(' checked'); + } + $r->print('>'.$$allparms{$tempkey}.' | '); + $cnt++; + if ($cnt==3) { + $r->print("||
+Select All +Select Common Only + |
+Add Problem Dates
+Add Content Dates +Add Discussion Settings +Add Visibilities +Add Part Parameters + | +Unselect All + | +'); + $r->print('
'.&mt('Select Parameters to View').' | '. + &mt('Select Parts to View').' |
---|---|
'); + &parmmenu($r,$allparms,$pscat,$keyorder); + $r->print(' | '); + &partmenu($r,$allparts,$psprt); + $r->print(' |
'.&mt('Select Parameter Level').' | '); - $r->print(' | \n"); - - $r->print('
'); + &levelmenu($r,\%alllevs,$parmlev); if ($parmlev ne 'general') { - $r->print(' | ||
'.&mt('Select Enclosing Map or Folder').' | '); - $r->print(''); + &mapmenu($r,\%allmaps,$pschp,\%maptitles); + $r->print(' | '); } + $r->print('
print(' checked') unless (@pscat); - $r->print('>'.&mt('All Parameters').' | '); - - my $cnt=0; - foreach $tempkey (sort { $allparms{$a} cmp $allparms{$b} } - keys %allparms ) { - ++$cnt; - $r->print('
print('value="'.$tempkey.'"'); - if ($pscat[0] eq "all" || grep $_ eq $tempkey, @pscat) { - $r->print(' checked'); - } - $r->print('>'.$allparms{$tempkey}.' | '); - } - $r->print('
'.$message.'
'); -# @psprt = @temp_psprt; + $r->print(''); @@ -1112,8 +1278,9 @@ sub assessparms { $r->print(< | $lt{'csv'} ($csuname $lt{'at'} $csudom) |
-|||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
$lt{'rl'} | -$lt{'ic'} | +|||||||||||||||||||||||||||
$lt{'ic'} | $lt{'rl'} | +$lt{'ic'} | + ENDTABLETWO if ($csec) { $r->print("".
@@ -1122,8 +1289,8 @@ ENDTABLETWO
$r->print(<$lt{'aut'} | $lt{'type'} |
$lt{'emof'} | $lt{'part'} | $lt{'pn'} |
-$lt{'def'} | $lt{'femof'} |
-$lt{'gen'} | $lt{'foremf'} | $lt{'fr'} |
+$lt{'gen'} | $lt{'foremf'} |
+$lt{'def'} | $lt{'femof'} | $lt{'fr'} |
ENDTABLEHEADFOUR
if ($csec) {
@@ -1144,18 +1311,20 @@ ENDTABLEHEADFOUR
my $rid=$_;
my ($inmapid)=($rid=~/\.(\d+)$/);
- if (($pschp eq 'all') || ($allmaps{$pschp} eq $mapp{$rid}) ||
- ($pssymb eq $symbp{$rid})) {
+ if ((!$pssymb &&
+ (($pschp eq 'all') || ($allmaps{$pschp} eq $mapp{$rid})))
+ ||
+ ($pssymb && $pssymb eq $symbp{$rid})) {
# ------------------------------------------------------ Entry for one resource
- if ($defbgone eq '"E0E099"') {
- $defbgone='"E0E0DD"';
+ if ($defbgone eq '"#E0E099"') {
+ $defbgone='"#E0E0DD"';
} else {
- $defbgone='"E0E099"';
+ $defbgone='"#E0E099"';
}
- if ($defbgtwo eq '"FFFF99"') {
- $defbgtwo='"FFFFDD"';
+ if ($defbgtwo eq '"#FFFF99"') {
+ $defbgtwo='"#FFFFDD"';
} else {
- $defbgtwo='"FFFF99"';
+ $defbgtwo='"#FFFF99"';
}
my $thistitle='';
my %name= ();
@@ -1164,9 +1333,9 @@ ENDTABLEHEADFOUR
my %display=();
my %type= ();
my %default=();
- my $uri=&Apache::lonnet::declutter($bighash{'src_'.$rid});
+ my $uri=&Apache::lonnet::declutter($uris{$rid});
- foreach (split(/\,/,$keyp{$rid})) {
+ foreach (&keysplit($keyp{$rid})) {
my $tempkeyp = $_;
if (grep $_ eq $tempkeyp, @catmarker) {
$part{$_}=&Apache::lonnet::metadata($uri,$_.'.part');
@@ -1182,14 +1351,14 @@ ENDTABLEHEADFOUR
my $totalparms=scalar keys %name;
if ($totalparms>0) {
my $firstrow=1;
- my $title=$bighash{'title_'.$rid};
- $title=~s/\:/:/g;
+ my $title=&Apache::lonnet::gettitle($uri);
$r->print(''.
join(' / ',split(/\//,$uri)).
' | ');
- foreach (sort keys %name) {
+ foreach (&keysinorder(\%name,\%keyorder)) {
unless ($firstrow) {
$r->print(''. - "$title"); @@ -1210,23 +1379,23 @@ ENDTABLEHEADFOUR $r->print(' |