version 1.183, 2008/09/19 09:08:53
|
version 1.184, 2008/12/05 10:23:56
|
Line 957 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 967 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 977 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 1034 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> '. |