Diff for /loncom/homework/imagechoice.pm between versions 1.9 and 1.10

version 1.9, 2005/08/25 19:33:14 version 1.10, 2006/04/13 18:49:29
Line 37  sub closewindow { Line 37  sub closewindow {
     if ($needimage) {      if ($needimage) {
  $needimage="<img name=\"pickimg\" src=\"$filename\" />";   $needimage="<img name=\"pickimg\" src=\"$filename\" />";
     }      }
     $r->print(<<"ENDSUBM");      my $js=<<"ENDSUBM";
 <html>  <script type="text/javascript">
 <script>  
     function submitthis() {      function submitthis() {
  $output   $output
  self.close();   self.close();
     }      }
 </script>  </script>
 <body bgcolor="#FFFFFF" onLoad="submitthis()">  ENDSUBM
   
       my $start_page =
           &Apache::loncommon::start_page('Close Window',$js,
          {'bgcolor'     => '#FFFFFF',
    'only_body'   => 1,
    'add_entries' => {
       onload => 'submitthis();'},});
   
       my $end_page =
           &Apache::loncommon::end_page();
   
       my $js=<<"ENDSUBM";
   $start_page
 <h3>Position Selected</h3>  <h3>Position Selected</h3>
 $display  $display
 $needimage  $needimage
 </body>  $end_page
 </html>  
 ENDSUBM  ENDSUBM
 }  }
   
Line 121  sub getcoord { Line 132  sub getcoord {
  $heading='Click to select a Coordinate or click Finish to store current selection.';   $heading='Click to select a Coordinate or click Finish to store current selection.';
  $nextstage='<input type="submit" name="finish" value="Finish" />';   $nextstage='<input type="submit" name="finish" value="Finish" />';
     }      }
   
       my $start_page =
           &Apache::loncommon::start_page('Get Coordinates',undef,
          {'bgcolor'     => '#FFFFFF',
    'only_body'   => 1,});
   
       my $end_page =
           &Apache::loncommon::end_page();
     $r->print(<<"END");      $r->print(<<"END");
 <html>  $start_page
 <body bgcolor="#FFFFFF">  
 <h3>$heading</h3>  <h3>$heading</h3>
 <form method="POST" action="/adm/imagechoice?token=$id">  <form method="POST" action="/adm/imagechoice?token=$id">
 $nextstage  $nextstage
Line 131  $nextstage Line 149  $nextstage
 <br />  <br />
 <input name="image" type="image" src="$filename" />  <input name="image" type="image" src="$filename" />
 </form>  </form>
 </body>  $end_page
 </html>  
 END  END
 }  }
   

Removed from v.1.9  
changed lines
  Added in v.1.10


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