version 1.165, 2007/06/28 22:28:22
|
version 1.169, 2007/07/06 08:34:37
|
Line 357 function checkAll() {
|
Line 357 function checkAll() {
|
var fieldName = document.forms[i].elements[j].name; |
var fieldName = document.forms[i].elements[j].name; |
if (fieldName == 'filelink') { |
if (fieldName == 'filelink') { |
document.forms[i].elements[j].checked = true; |
document.forms[i].elements[j].checked = true; |
|
queue(document.forms[i].name); |
} |
} |
} |
} |
} |
} |
Line 369 function uncheckAll() {
|
Line 370 function uncheckAll() {
|
var fieldName = document.forms[i].elements[j].name; |
var fieldName = document.forms[i].elements[j].name; |
if (fieldName == 'filelink') { |
if (fieldName == 'filelink') { |
document.forms[i].elements[j].checked = false; |
document.forms[i].elements[j].checked = false; |
|
queue(document.forms[i].name); |
} |
} |
} |
} |
} |
} |
Line 918 sub display_line {
|
Line 920 sub display_line {
|
|
|
# display file |
# display file |
if (($fnptr == 0 and $filecom[3] ne '') or $absolute) { |
if (($fnptr == 0 and $filecom[3] ne '') or $absolute) { |
|
my $title; |
my $filelink = $pathprefix.$filecom[0]; |
my $filelink = $pathprefix.$filecom[0]; |
|
if ($hash{'display_attrs_0'} == 1) { |
|
$title = &Apache::lonnet::gettitle($filelink); |
|
} |
my @file_ext = split (/\./,$listname); |
my @file_ext = split (/\./,$listname); |
my $curfext = $file_ext[-1]; |
my $curfext = $file_ext[-1]; |
if (@Omit) { |
if (@Omit) { |
Line 951 sub display_line {
|
Line 957 sub display_line {
|
$r->print(" />\n"); |
$r->print(" />\n"); |
$r->print("</form></td><td nowrap='nowrap' valign='top'>"); |
$r->print("</form></td><td nowrap='nowrap' valign='top'>"); |
$hash{"pre_${fnum}_link"}=$filelink; |
$hash{"pre_${fnum}_link"}=$filelink; |
$hash{"pre_${fnum}_title"}=&Apache::lonnet::gettitle($filelink,'title'); |
$hash{"pre_${fnum}_title"}=$title; |
if (!$hash{"pre_${fnum}_title"}) { |
if (!$hash{"pre_${fnum}_title"}) { |
$hash{"pre_${fnum}_title"} = 'Untitled'; |
$hash{"pre_${fnum}_title"} = 'Not_retrieved'; |
} |
} |
$fnum++; |
$fnum++; |
} |
} |
Line 1008 sub display_line {
|
Line 1014 sub display_line {
|
} |
} |
$r->print("</td>\n"); |
$r->print("</td>\n"); |
if ($hash{'display_attrs_0'} == 1) { |
if ($hash{'display_attrs_0'} == 1) { |
my $title = &Apache::lonnet::gettitle($filelink,'title'); |
|
$r->print('<td> '.($title eq '' ? ' ' : $title). |
$r->print('<td> '.($title eq '' ? ' ' : $title). |
' </td>'."\n"); |
' </td>'."\n"); |
} |
} |
Line 1132 sub display_line {
|
Line 1137 sub display_line {
|
my $filelink = $startdir.$filecom[0].'/default'; |
my $filelink = $startdir.$filecom[0].'/default'; |
|
|
if ($hash{'display_attrs_0'} == 1) { |
if ($hash{'display_attrs_0'} == 1) { |
my $title = &Apache::lonnet::gettitle($filelink,'title'); |
my $title = &Apache::lonnet::gettitle($filelink); |
$r->print('<td> '.($title eq '' ? ' ' : $title). |
$r->print('<td> '.($title eq '' ? ' ' : $title). |
' </td>'."\n"); |
' </td>'."\n"); |
} |
} |