[LON-CAPA-cvs] cvs: loncom /publisher lonupload.pm

bisitz bisitz@source.lon-capa.org
Mon, 06 Jul 2009 10:19:23 -0000


bisitz		Mon Jul  6 10:19:23 2009 EDT

  Modified files:              
    /loncom/publisher	lonupload.pm 
  Log:
  Changes related to modification of LON-CAPA screen header.
  - Added breadcrumbs
  - Added standard CSTR page header
  
  - Replaced button text "Save" by "Upload" to make clearer what will be done.
  
  
Index: loncom/publisher/lonupload.pm
diff -u loncom/publisher/lonupload.pm:1.46 loncom/publisher/lonupload.pm:1.47
--- loncom/publisher/lonupload.pm:1.46	Thu May 14 14:24:18 2009
+++ loncom/publisher/lonupload.pm	Mon Jul  6 10:19:22 2009
@@ -2,7 +2,7 @@
 # The LearningOnline Network with CAPA
 # Handler to upload files into construction space
 #
-# $Id: lonupload.pm,v 1.46 2009/05/14 14:24:18 bisitz Exp $
+# $Id: lonupload.pm,v 1.47 2009/07/06 10:19:22 bisitz Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -198,7 +198,7 @@
 <br />
 <br />
 ');
-            $r->print('<input type="button" value="'.&mt('Save').'" onClick="javascript:verifyForm()"/></form>');
+            $r->print('<input type="button" value="'.&mt('Upload').'" onClick="javascript:verifyForm()"/></form>');
 	    # Check for bad extension and warn user
 	    if ($fn=~/\.(\w+)$/ && 
 		(&Apache::loncommon::fileembstyle($1) eq 'hdn')) {
@@ -440,8 +440,17 @@
    $javascript = "<script type=\"text/javascript\">\n//<!--\n".
 	$javascript."\n// --></script>\n";
 
+    # Breadcrumbs
+    my $brcrum = [{'href' => &Apache::loncommon::authorspace(),
+                   'text' => 'Construction Space'},
+                  {'href' => '/adm/upload',
+                   'text' => 'Upload file to Construction Space'}];
     $r->print(&Apache::loncommon::start_page('Upload file to Construction Space',
-					     $javascript));
+                                             $javascript,
+                                             {'bread_crumbs' => $brcrum,})
+             .&Apache::loncommon::head_subbox(
+                &Apache::loncommon::CSTR_pageheader())
+    );
   
     if (($uname ne $env{'user.name'}) || ($udom ne $env{'user.domain'})) {
         $r->print('<p class="LC_warning">'