version 1.182, 2008/09/19 08:50:42
|
version 1.184, 2008/12/05 10:23:56
|
Line 452 ENDHEADER
|
Line 452 ENDHEADER
|
'ud' => 'Update Display', |
'ud' => 'Update Display', |
'pr' => 'Problems', |
'pr' => 'Problems', |
'gr' => 'Graphics', |
'gr' => 'Graphics', |
'at' => 'All types' |
'at' => 'All types', |
|
'hd' => 'Display Options' |
); |
); |
$r->print(<<END); |
$r->print(<<END); |
|
<fieldset> |
|
<legend>$lt{'hd'}</legend> |
<form method="post" name="fileattr" action="$uri" |
<form method="post" name="fileattr" action="$uri" |
enctype="application/x-www-form-urlencoded"> |
enctype="application/x-www-form-urlencoded"> |
<label><input type="checkbox" name="attr9" value="1" $attrchk[9] onClick="this.form.submit();" /> $lt{'av'}</label> |
<label><input type="checkbox" name="attr9" value="1" $attrchk[9] onClick="this.form.submit();" /> $lt{'av'}</label> |
Line 495 END
|
Line 498 END
|
%select_file_categories); |
%select_file_categories); |
$type_element = '<label>'.&mt('File Type Displayed: [_1]', |
$type_element = '<label>'.&mt('File Type Displayed: [_1]', |
$type_element).'</label>'; |
$type_element).'</label>'; |
|
$r->print($type_element |
|
.'</fieldset>'); |
$r->print(<<END); |
$r->print(<<END); |
$type_element |
|
<br /> |
<br /> |
<input type="submit" name="updatedisplay" value="$lt{'ud'}" /> |
<input type="submit" name="updatedisplay" value="$lt{'ud'}" /> |
<input type="hidden" name="acts" value="" /> |
<input type="hidden" name="acts" value="" /> |
Line 953 sub display_line {
|
Line 957 sub display_line {
|
} |
} |
# Set the icon for the file |
# Set the icon for the file |
my $iconname = &Apache::loncommon::icon($listname); |
my $iconname = &Apache::loncommon::icon($listname); |
#SB $r->print("<tr valign='$valign' bgcolor=\"$fileclr\"><td nowrap='nowrap' valign='top'>"); |
#SB $r->print("<tr valign='$valign' bgcolor=\"$fileclr\">); |
$r->print(&Apache::loncommon::start_data_table_row()); # valign="$valign" ?!?" |
$r->print(&Apache::loncommon::start_data_table_row()); #SB valign="$valign" ?!? |
$r->print('<td nowrap="nowrap" valign="top">'); |
$r->print('<td valign="top"><span class="LC_nobreak">'); |
|
|
if ($env{'form.catalogmode'} eq 'interactive') { |
if ($env{'form.catalogmode'} eq 'interactive') { |
my $quotable_filelink = &Apache::loncommon::escape_single($filelink); |
my $quotable_filelink = &Apache::loncommon::escape_single($filelink); |
Line 963 sub display_line {
|
Line 967 sub display_line {
|
$quotable_filelink,"')\">"); |
$quotable_filelink,"')\">"); |
$r->print("<img alt=\"\" src='",$iconpath,"select.gif' class='LC_icon' /></a>". |
$r->print("<img alt=\"\" src='",$iconpath,"select.gif' class='LC_icon' /></a>". |
"\n"); |
"\n"); |
$r->print("</td><td nowrap='nowrap' valign='top'>"); |
$r->print('</span></td><td valign="top"><span class="LC_nobreak">'); |
} elsif ($env{'form.catalogmode'} eq 'import') { |
} elsif ($env{'form.catalogmode'} eq 'import') { |
$r->print("<form name='form$fnum' action=''>\n"); |
$r->print("<form name='form$fnum' action=''>\n"); |
$r->print("<input type='checkbox' name='filelink"."' ". |
$r->print("<input type='checkbox' name='filelink"."' ". |
Line 973 sub display_line {
|
Line 977 sub display_line {
|
$r->print("checked"); |
$r->print("checked"); |
} |
} |
$r->print(" />\n"); |
$r->print(" />\n"); |
$r->print("</form></td><td nowrap='nowrap' valign='top'>"); |
$r->print('</form></span></td><td valign="top"><span class="LC_nobreak">'); |
$hash{"pre_${fnum}_link"}=$filelink; |
$hash{"pre_${fnum}_link"}=$filelink; |
$hash{"pre_${fnum}_title"}=$title; |
$hash{"pre_${fnum}_title"}=$title; |
if (!$hash{"pre_${fnum}_title"}) { |
if (!$hash{"pre_${fnum}_title"}) { |
Line 1030 sub display_line {
|
Line 1034 sub display_line {
|
if ($filelink=~/\.(page|sequence)$/) { |
if ($filelink=~/\.(page|sequence)$/) { |
$r->print('</form>'); |
$r->print('</form>'); |
} |
} |
$r->print("</td>\n"); |
$r->print("</span></td>\n"); |
if ($hash{'display_attrs_0'} == 1) { |
if ($hash{'display_attrs_0'} == 1) { |
$r->print('<td> '.($title eq '' ? ' ' : $title). |
$r->print('<td> '.($title eq '' ? ' ' : $title). |
' </td>'."\n"); |
' </td>'."\n"); |
} |
} |
$r->print('<td align=right> ', |
$r->print('<td align="right"> ', |
$filecom[8]," </td>\n") |
$filecom[8]," </td>\n") |
if $hash{'display_attrs_1'} == 1; |
if $hash{'display_attrs_1'} == 1; |
$r->print('<td> '. |
$r->print('<td> '. |