Diff for /rat/lonratmenu.pm between versions 1.7 and 1.14

version 1.7, 2006/06/19 09:42:56 version 1.14, 2009/06/09 15:01:28
Line 2 Line 2
 # Build menu bar for Advanced RAT. Uses javascript code originally in  # Build menu bar for Advanced RAT. Uses javascript code originally in
 # static file: rat/client/code.html, now in  rat/client/ratcode.js    # static file: rat/client/code.html, now in  rat/client/ratcode.js  
 #  #
   # $Id$
   #
 # Copyright Michigan State University Board of Trustees  # Copyright Michigan State University Board of Trustees
 #  #
 # This file is part of the LearningOnline Network with CAPA (LON-CAPA).  # This file is part of the LearningOnline Network with CAPA (LON-CAPA).
Line 39  sub handler { Line 41  sub handler {
     $r->send_http_header('text/html');      $r->send_http_header('text/html');
     my $js = join('',<$jsh>);      my $js = join('',<$jsh>);
     my %loaditem = ('onunload' => "leave();",);      my %loaditem = ('onunload' => "leave();",);
     my $start_page =      my $brcrum = [{'href' => &Apache::loncommon::authorspace(),
  &Apache::loncommon::start_page('Advanced Editor',$js,                    'text' => 'Construction Space'},
        {'add_entries' => \%loaditem,}).                   {'href' => '',
  &Apache::loncommon::help_open_menu('','Sequence_Advanced_Editor_Creation','Sequence_Advanced_Editor_Creation','',6,'RAT');                    'text' => 'RAT'},
     $r->print($start_page);                   {'href' => '',
                     'text' => 'Advanced Editor'}];
   
       $r->print(&Apache::loncommon::start_page('Advanced Editor',$js,
                     {'add_entries' => \%loaditem,
                      'bread_crumbs' => $brcrum,})
                .&Apache::loncommon::head_subbox(
                     &Apache::loncommon::CSTR_pageheader())
       );
     my $readfile=$r->uri;      my $readfile=$r->uri;
     $readfile=~s/\/loadonly\/adveditmenu$//;      $readfile=~s/\/loadonly\/adveditmenu$//;
     $r->print(&print_html($readfile));      $r->print(&print_html($readfile));
Line 53  sub handler { Line 63  sub handler {
   
 sub print_html {  sub print_html {
     my $readfile=shift;      my $readfile=shift;
       my $help=&Apache::loncommon::help_open_menu('Sequence_Advanced_Editor_Creation','Sequence_Advanced_Editor_Creation',6,'RAT');
   
     my $pagetext = <<"END";      my $pagetext = <<"END";
 <table border=0><tr><td bgcolor="#aaaaaa">  <table border="0"><tr><td bgcolor="#AAAAAA">
 <table border=0><tr>  <table border="0"><tr>
   <td bgcolor="#ffffcc">$help</td>
 <td bgcolor="#ffffcc"><a href="javascript:togglemode();"><font size="-2">Toggle display</font></a></td>  <td bgcolor="#ffffcc"><a href="javascript:togglemode();"><font size="-2">Toggle display</font></a></td>
 <td bgcolor="#ffffcc"><a href="javascript:if (zscale>1) { zscale--; draw();}"><font size="-2">Zoom out</font></a></td>  <td bgcolor="#ffffcc"><a href="javascript:if (zscale>1) { zscale--; draw();}"><font size="-2">Zoom out</font></a></td>
 <td bgcolor="#ffffcc"><a href="javascript:if (zscale<3) { zscale++; draw();}"><font size="-2">Zoom in</font></a></td>  <td bgcolor="#ffffcc"><a href="javascript:if (zscale<3) { zscale++; draw();}"><font size="-2">Zoom in</font></a></td>

Removed from v.1.7  
changed lines
  Added in v.1.14


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