version 1.194, 2009/03/19 14:24:50
|
version 1.195, 2009/03/19 15:01:24
|
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 1159 $r->print ('<input type="hidden" name="a
|
Line 1164 $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 1279 $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()); |
} |
} |
|
|