version 1.194, 2009/03/19 14:24:50
|
version 1.197, 2009/04/22 17:19:10
|
Line 420 ENDHEADER
|
Line 420 ENDHEADER
|
|
|
# ---------------------------------- get state of file attributes to be showing |
# ---------------------------------- get state of file attributes to be showing |
if ($env{'form.attrs'}) { |
if ($env{'form.attrs'}) { |
for (my $i=0; $i<=15; $i++) { |
for (my $i=0; $i<=16; $i++) { |
delete $hash{'display_attrs_'.$i}; |
delete $hash{'display_attrs_'.$i}; |
if ($env{'form.attr'.$i} == 1) { |
if ($env{'form.attr'.$i} == 1) { |
$attrchk[$i] = 'checked'; |
$attrchk[$i] = 'checked'; |
Line 428 ENDHEADER
|
Line 428 ENDHEADER
|
} |
} |
} |
} |
} else { |
} else { |
for (my $i=0; $i<=15; $i++) { |
for (my $i=0; $i<=16; $i++) { |
$attrchk[$i] = 'checked' if $hash{'display_attrs_'.$i} == 1; |
$attrchk[$i] = 'checked' if $hash{'display_attrs_'.$i} == 1; |
} |
} |
} |
} |
Line 449 ENDHEADER
|
Line 449 ENDHEADER
|
'ab' => 'Abstract', |
'ab' => 'Abstract', |
'ln' => 'Language', |
'ln' => 'Language', |
'gl' => 'Grade Level', |
'gl' => 'Grade Level', |
|
'sd' => 'Standards', |
'sa' => 'Source Available', |
'sa' => 'Source Available', |
'sr' => 'Show resource', |
'sr' => 'Show resource', |
'li' => 'Linked/Related Resources', |
'li' => 'Linked/Related Resources', |
Line 472 ENDHEADER
|
Line 473 ENDHEADER
|
<td><label><input type="checkbox" name="attr5" value="1" $attrchk[5] onClick="this.form.submit();" /> $lt{'kw'}</label></td> |
<td><label><input type="checkbox" name="attr5" value="1" $attrchk[5] onClick="this.form.submit();" /> $lt{'kw'}</label></td> |
<td><label><input type="checkbox" name="attr6" value="1" $attrchk[6] onClick="this.form.submit();" /> $lt{'ln'}</label></td> |
<td><label><input type="checkbox" name="attr6" value="1" $attrchk[6] onClick="this.form.submit();" /> $lt{'ln'}</label></td> |
<td><label><input type="checkbox" name="attr13" value="1" $attrchk[13] onClick="this.form.submit();" /> $lt{'nt'}</label></td> |
<td><label><input type="checkbox" name="attr13" value="1" $attrchk[13] onClick="this.form.submit();" /> $lt{'nt'}</label></td> |
|
<td><label><input type="checkbox" name="attr16" value="1" $attrchk[16] onClick="this.form.submit();" /> $lt{'sd'}</label></td> |
</tr> |
</tr> |
<tr> |
<tr> |
<td><label><input type="checkbox" name="attr1" value="1" $attrchk[1] onClick="this.form.submit();" /> $lt{'si'}</label></td> |
<td><label><input type="checkbox" name="attr1" value="1" $attrchk[1] onClick="this.form.submit();" /> $lt{'si'}</label></td> |
Line 479 ENDHEADER
|
Line 481 ENDHEADER
|
<td><label><input type="checkbox" name="attr3" value="1" $attrchk[3] onClick="this.form.submit();" /> $lt{'lm'}</label></td> |
<td><label><input type="checkbox" name="attr3" value="1" $attrchk[3] onClick="this.form.submit();" /> $lt{'lm'}</label></td> |
<td><label><input type="checkbox" name="attr10" value="1" $attrchk[10] onClick="this.form.submit();" /> $lt{'sa'}</label></td> |
<td><label><input type="checkbox" name="attr10" value="1" $attrchk[10] onClick="this.form.submit();" /> $lt{'sa'}</label></td> |
<td><label><input type="checkbox" name="attr14" value="1" $attrchk[14] onClick="this.form.submit();" /> $lt{'ab'}</label></td> |
<td><label><input type="checkbox" name="attr14" value="1" $attrchk[14] onClick="this.form.submit();" /> $lt{'ab'}</label></td> |
|
<td> </td> |
</tr> |
</tr> |
<tr> |
<tr> |
<td><label><input type="checkbox" name="attr8" value="1" $attrchk[8] onClick="this.form.submit();" /> $lt{'st'}</label></td> |
<td><label><input type="checkbox" name="attr8" value="1" $attrchk[8] onClick="this.form.submit();" /> $lt{'st'}</label></td> |
Line 585 END
|
Line 588 END
|
if ($hash{'display_attrs_14'} == 1); |
if ($hash{'display_attrs_14'} == 1); |
$r->print("<th>".&mt("Grade Level")."</th>\n") |
$r->print("<th>".&mt("Grade Level")."</th>\n") |
if ($hash{'display_attrs_15'} == 1); |
if ($hash{'display_attrs_15'} == 1); |
|
$r->print("<th>".&mt("Standards")."</th>\n") |
|
if ($hash{'display_attrs_16'} == 1); |
|
|
$r->print(&Apache::loncommon::end_data_table_header_row()); |
$r->print(&Apache::loncommon::end_data_table_header_row()); |
|
|
Line 854 sub display_line {
|
Line 859 sub display_line {
|
|
|
my $tabtag='</td>'; |
my $tabtag='</td>'; |
my $i=0; |
my $i=0; |
while ($i<=15) { |
while ($i<=16) { |
$tabtag=join('',$tabtag,"<td> </td>") |
$tabtag=join('',$tabtag,"<td> </td>") |
if ($i != 9 && |
if ($i != 9 && |
$hash{'display_attrs_'.$i} == 1); |
$hash{'display_attrs_'.$i} == 1); |
Line 880 sub display_line {
|
Line 885 sub display_line {
|
'enctype="application/x-www-form-urlencoded"'. |
'enctype="application/x-www-form-urlencoded"'. |
'>'."\n"); |
'>'."\n"); |
$r->print(&Apache::loncommon::inhibit_menu_check('input')); |
$r->print(&Apache::loncommon::inhibit_menu_check('input')); |
$r->print ('<input type=hidden name=openuri value="'. |
$r->print ('<input type="hidden" name="openuri" value="'. |
$startdir.'" />'."\n"); |
$startdir.'" />'."\n"); |
$r->print ('<input type="hidden" name="acts" value="" />'."\n"); |
$r->print ('<input type="hidden" name="acts" value="" />'."\n"); |
$r->print ('<a href="#" onClick="document.dirpathUP.submit()"><img src="'.$iconpath.'arrow.up.gif"'); |
$r->print ('<a href="#" onClick="document.dirpathUP.submit()"><img src="'.$iconpath.'arrow.up.gif"'); |
Line 1085 $r->print ('<input type="hidden" name="a
|
Line 1090 $r->print ('<input type="hidden" name="a
|
# statistics |
# statistics |
&dynmetaread($filelink); |
&dynmetaread($filelink); |
$r->print("<td>"); |
$r->print("<td>"); |
&dynmetaprint($r,$filelink,'count'); |
|
&dynmetaprint($r,$filelink,'course'); |
for (qw(count course stdno avetries difficulty disc clear technical |
&dynmetaprint($r,$filelink,'stdno'); |
correct helpful depth)) { |
&dynmetaprint($r,$filelink,'avetries'); |
|
&dynmetaprint($r,$filelink,'difficulty'); |
dynmetaprint($r,$filelink,$_); |
&dynmetaprint($r,$filelink,'disc'); |
} |
&dynmetaprint($r,$filelink,'clear'); |
|
&dynmetaprint($r,$filelink,'technical'); |
|
&dynmetaprint($r,$filelink,'correct'); |
|
&dynmetaprint($r,$filelink,'helpful'); |
|
&dynmetaprint($r,$filelink,'depth'); |
|
$r->print(" </td>\n"); |
$r->print(" </td>\n"); |
|
|
} |
} |
Line 1118 $r->print ('<input type="hidden" name="a
|
Line 1119 $r->print ('<input type="hidden" name="a
|
&dynmetaread($filelink); |
&dynmetaread($filelink); |
$r->print('<td>'); |
$r->print('<td>'); |
&coursecontext($r,$filelink); |
&coursecontext($r,$filelink); |
&dynmetaprint($r,$filelink,'goto_list'); |
for (qw(goto_list comefrom_list sequsage_list dependencies course_list)) { |
&dynmetaprint($r,$filelink,'comefrom_list'); |
dynmetaprint($r,$filelink,$_); |
&dynmetaprint($r,$filelink,'sequsage_list'); |
} |
&dynmetaprint($r,$filelink,'dependencies'); |
|
&dynmetaprint($r,$filelink,'course_list'); |
|
$r->print('</td>'); |
$r->print('</td>'); |
} |
} |
|
|
Line 1159 $r->print ('<input type="hidden" name="a
|
Line 1158 $r->print ('<input type="hidden" name="a
|
" </td>\n"); |
" </td>\n"); |
} |
} |
|
|
|
if ($hash{'display_attrs_16'} == 1) { |
|
my $standards = &Apache::lonnet::metadata($filelink,'standards'); |
|
$r->print('<td> '.($standards eq '' ? ' ' : $standards). |
|
" </td>\n"); |
|
} |
|
|
$r->print(&Apache::loncommon::end_data_table_row()); |
$r->print(&Apache::loncommon::end_data_table_row()); |
} |
} |
|
|
Line 1268 $r->print ('<input type="hidden" name="a
|
Line 1273 $r->print ('<input type="hidden" name="a
|
" </td>\n"); |
" </td>\n"); |
} |
} |
|
|
|
if ($hash{'display_attrs_16'} == 1) { |
|
my $standards = &Apache::lonnet::metadata($filelink,'standards'); |
|
$r->print('<td> '.($standards eq '' ? ' ' : $standards). |
|
" </td>\n"); |
|
} |
|
|
|
|
$r->print(&Apache::loncommon::end_data_table_row()); |
$r->print(&Apache::loncommon::end_data_table_row()); |
} |
} |
|
|