Diff for /loncom/interface/lonprintout.pm between versions 1.1 and 1.2

version 1.1, 2001/01/03 16:20:59 version 1.2, 2001/08/21 15:59:08
Line 15  package Apache::lonprintout; Line 15  package Apache::lonprintout;
   
 use strict;  use strict;
 use Apache::Constants qw(:common);  use Apache::Constants qw(:common);
   use Apache::lonxml;
   use Apache::lonnet;
   
 sub handler {  sub handler {
     my $r = shift;      my $r = shift;
Line 22  sub handler { Line 24  sub handler {
     $r->send_http_header;      $r->send_http_header;
     return OK if $r->header_only;      return OK if $r->header_only;
   
 # --------------------------------------------------- Print login screen header  #--- my developmental space begin (Alex)
     $r->print(<<ENDDOCUMENT);  #-- local menu
 <html>      
 <head>  
 <title>The LearningOnline Network with CAPA</title>  
 </head>  
 <body bgcolor="#FFFFFF">  #-- core
 <h1>Printout</h1>      my $result = '';
 <img src="/adm/lonKaputt/lonconstruct.gif">      my %mystyle;
 </body>  
 </html>      my $file=&Apache::lonnet::filelocation("",$ENV{'form.postdata'});
 ENDDOCUMENT  
       my $filecontents=&Apache::lonnet::getfile($file);
   
       $result = &Apache::lonxml::xmlparse('tex',$filecontents,'',%mystyle);
       
       $r->print($result);
   
     return OK;      return OK;
   
   #--- my developmental space end (Alex)
   
   # --------------------------------------------------- Print login screen header
   #    $r->print(<<ENDDOCUMENT);
   #<html>
   #<head>
   #<title>The LearningOnline Network with CAPA</title>
   #</head>
   #<body bgcolor="#FFFFFF">
   #<h1>Printout</h1>
   #<img src="/adm/lonKaputt/lonconstruct.gif">
   
   #</body>
   #</html>
   #ENDDOCUMENT
   #    return OK;
 }   } 
   
 1;  1;

Removed from v.1.1  
changed lines
  Added in v.1.2


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>