--- loncom/interface/lonsource.pm 2004/06/12 01:08:11 1.1
+++ loncom/interface/lonsource.pm 2004/07/07 00:02:00 1.4
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
-# Publication Handler
+# Souce Code handler
#
-# $Id: lonsource.pm,v 1.1 2004/06/12 01:08:11 taceyjo1 Exp $
+# $Id: lonsource.pm,v 1.4 2004/07/07 00:02:00 taceyjo1 Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -42,58 +42,203 @@ use Apache::lonlocal;
use HTML::Entities;
sub make_link {
- my ($filename) = @_;
- my $sourcelink = "http://".$ENV{'SERVER_NAME'}."/adm/source/?filename=".$filename;
-
-
-return $sourcelink;
-
+ my ($filename, $listname) = @_;
+ my $sourcelink = "http://".$ENV{'SERVER_NAME'}.
+ "/adm/source/?filename=".$filename."&listname=".$listname;
+
+ return $sourcelink;
}
sub stage_2 {
- my ($r, $filename) = @_;
- $r->print("Comming Soon");
+ my ($r, $filename, $author, $listname) = @_;
+ $filename = $filename;
+ &Apache::loncommon::content_type($r,'text/html');
+ my ($uname, $udom) = &Apache::loncacc::constructaccess('/~'.$author.'/',$r->dir_config('lonDefDomain'));
+ $r->send_http_header;
+ $r->print('
LON-CAPA Move source to construction space');
+ $r->print(&Apache::loncommon::bodytag('Problem source code moving operation'));
+ $r->print("Please enter the directory that you would like the source code to go into, a default has also been provided ");
+ $r->print("Also note, the path is in reference to the root of your construction space, and new directories will be automatically created.