--- loncom/homework/imagechoice.pm 2005/08/25 19:33:14 1.9 +++ loncom/homework/imagechoice.pm 2006/04/13 18:49:29 1.10 @@ -1,4 +1,4 @@ -# $Id: imagechoice.pm,v 1.9 2005/08/25 19:33:14 albertel Exp $ +# $Id: imagechoice.pm,v 1.10 2006/04/13 18:49:29 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -37,20 +37,31 @@ sub closewindow { if ($needimage) { $needimage=""; } - $r->print(<<"ENDSUBM"); - - - +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

Position Selected

$display $needimage - - +$end_page ENDSUBM } @@ -121,9 +132,16 @@ sub getcoord { $heading='Click to select a Coordinate or click Finish to store current selection.'; $nextstage=''; } + + 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"); - - +$start_page

$heading

$nextstage @@ -131,8 +149,7 @@ $nextstage
- - +$end_page END }