version 1.40, 2002/03/25 19:27:17
|
version 1.42, 2002/05/31 21:50:30
|
Line 200 END
|
Line 200 END
|
# by default (ie. if $mode is undefined). This is the easy |
# by default (ie. if $mode is undefined). This is the easy |
# way out. Hopefully in the future I'll find a way to get |
# way out. Hopefully in the future I'll find a way to get |
# the calls dealt with in a more comprehensive manner. |
# the calls dealt with in a more comprehensive manner. |
|
|
|
# |
|
# There is now also mode "simple", which is for the simple version of the rat |
|
# |
|
# |
if (!defined($mode) || ($mode ne 'edit' && $mode ne 'parmset')) { |
if (!defined($mode) || ($mode ne 'edit' && $mode ne 'parmset')) { |
my $location = "/adm/groupsort?catalogmode=groupimport&"; |
my $location = "/adm/groupsort?catalogmode=groupimport&"; |
|
$location .= "mode=".$mode."&"; |
$location .= "acts="; |
$location .= "acts="; |
$catalogmodefunctions=<<"END"; |
$catalogmodefunctions=<<"END"; |
function select_data(title,url) { |
function select_data(title,url) { |
Line 368 ENDHEADER
|
Line 374 ENDHEADER
|
} |
} |
|
|
# ---------------------------------------------------------------- output title |
# ---------------------------------------------------------------- output title |
$r->print('<h2><font color="#888888">The LearningOnline With CAPA '. |
$r->print( |
|
'<h2><font color="#888888">The Learning<i>Online</i> Network with CAPA '. |
'Network Directory Browser</font></h2>'."\n"); |
'Network Directory Browser</font></h2>'."\n"); |
# ---------------------------------- get state of file attributes to be showing |
# ---------------------------------- get state of file attributes to be showing |
if ($ENV{'form.attrs'} ne "") { |
if ($ENV{'form.attrs'} ne "") { |
Line 736 sub display_line {
|
Line 743 sub display_line {
|
$title = &Apache::lonnet::metadata($filelink,'title') |
$title = &Apache::lonnet::metadata($filelink,'title') |
if ($metafile == 1); |
if ($metafile == 1); |
$title=$listname unless $title; |
$title=$listname unless $title; |
my $titleesc=$title; |
my $titleesc=HTML::Entities::encode($title); |
$titleesc=~s/\'/\\'/; #' (clean up this spare quote |
$titleesc=~s/\'/\\'/; #' (clean up this spare quote) |
$r->print("<a href=\"javascript:select_data(\'", |
$r->print("<a href=\"javascript:select_data(\'", |
$titleesc,"','",$filelink,"')\">"); |
$titleesc,"','",$filelink,"')\">"); |
$r->print("<img src='",$iconpath,"select.gif' border='0' /></a>". |
$r->print("<img src='",$iconpath,"select.gif' border='0' /></a>". |
Line 749 sub display_line {
|
Line 756 sub display_line {
|
$title = &Apache::lonnet::metadata($filelink,'title') |
$title = &Apache::lonnet::metadata($filelink,'title') |
if ($metafile == 1); |
if ($metafile == 1); |
$title=$listname unless $title; |
$title=$listname unless $title; |
|
my $titleesc=&HTML::Entities::encode($title); |
$r->print("<form name='form$fnum'>\n"); |
$r->print("<form name='form$fnum'>\n"); |
$r->print("<input type='checkbox' name='filelink"."' ". |
$r->print("<input type='checkbox' name='filelink"."' ". |
"value='$filelink' onClick='". |
"value='$filelink' onClick='". |
Line 758 sub display_line {
|
Line 766 sub display_line {
|
} |
} |
$r->print(">\n"); |
$r->print(">\n"); |
$r->print("<input type='hidden' name='title"."' ". |
$r->print("<input type='hidden' name='title"."' ". |
"value='$title'>\n"); |
"value='$titleesc'>\n"); |
$r->print("</form>\n"); |
$r->print("</form>\n"); |
$r->print("</td><td valign='bottom' nowrap bgcolor=$fileclr>"); |
$r->print("</td><td valign='bottom' nowrap bgcolor=$fileclr>"); |
$hash{"pre_${fnum}_link"}=$filelink; |
$hash{"pre_${fnum}_link"}=$filelink; |
$hash{"pre_${fnum}_title"}=$title; |
$hash{"pre_${fnum}_title"}=$titleesc; |
$fnum++; |
$fnum++; |
} |
} |
|
|