Diff for /loncom/interface/loncommon.pm between versions 1.890 and 1.897

version 1.890, 2009/09/25 13:51:58 version 1.897, 2009/10/13 13:18:24
Line 493  sub coursebrowser_javascript { Line 493  sub coursebrowser_javascript {
     $output .= <<"ENDSTDBRW";      $output .= <<"ENDSTDBRW";
     function opencrsbrowser(formname,uname,udom,desc,extra_element,multflag,crstype) {      function opencrsbrowser(formname,uname,udom,desc,extra_element,multflag,crstype) {
         var url = '/adm/pickcourse?';          var url = '/adm/pickcourse?';
           var formid = getFormIdByName(formname);
         var domainfilter = getDomainFromSelectbox(formname,udom);          var domainfilter = getDomainFromSelectbox(formname,udom);
         if (domainfilter != null) {          if (domainfilter != null) {
            if (domainfilter != '') {             if (domainfilter != '') {
Line 2954  sub messagewrapper { Line 2955  sub messagewrapper {
 sub noteswrapper {  sub noteswrapper {
     my ($link,$un,$do)=@_;      my ($link,$un,$do)=@_;
     return       return 
 "<a href='/adm/email?recordftf=retrieve&recname=$un&recdom=$do'>$link</a>";  "<a href='/adm/email?recordftf=retrieve&amp;recname=$un&amp;recdom=$do'>$link</a>";
 }  }
   
 # ------------------------------------------------------------- Aboutme Wrapper  # ------------------------------------------------------------- Aboutme Wrapper
Line 2964  sub aboutmewrapper { Line 2965  sub aboutmewrapper {
     if (!defined($username)  && !defined($domain)) {      if (!defined($username)  && !defined($domain)) {
         return;          return;
     }      }
     return '<a href="/adm/'.$domain.'/'.$username.'/aboutme"'.      return '<a href="/adm/'.$domain.'/'.$username.'/aboutme?forcestudent=1"'.
  ($target?' target="$target"':'').' title="'.&mt("View this user's personal information page").'">'.$link.'</a>';   ($target?' target="$target"':'').' title="'.&mt("View this user's personal information page").'">'.$link.'</a>';
 }  }
   
Line 4046  sub determinedomain { Line 4047  sub determinedomain {
     my $domain=shift;      my $domain=shift;
     if (! $domain) {      if (! $domain) {
         # Determine domain if we have not been given one          # Determine domain if we have not been given one
         $domain = $Apache::lonnet::perlvar{'lonDefDomain'};          $domain = &Apache::lonnet::default_login_domain();
         if ($env{'user.domain'}) { $domain=$env{'user.domain'}; }          if ($env{'user.domain'}) { $domain=$env{'user.domain'}; }
         if ($env{'request.role.domain'}) {           if ($env{'request.role.domain'}) { 
             $domain=$env{'request.role.domain'};               $domain=$env{'request.role.domain'}; 
Line 4440  sub bodytag { Line 4441  sub bodytag {
   
     if ($env{'environment.remote'} eq 'off') {      if ($env{'environment.remote'} eq 'off') {
         # No Remote          # No Remote
  if ($env{'request.state'} eq 'construct') {          if ($env{'request.state'} eq 'construct') {
     $forcereg=1;              $forcereg=1;
  }          }
   
 #    if ($env{'request.state'} eq 'construct') {      #    if ($env{'request.state'} eq 'construct') {
 #        $titleinfo = &CSTR_pageheader(); #FIXME: Will be removed once all scripts have their own calls      #        $titleinfo = &CSTR_pageheader(); #FIXME: Will be removed once all scripts have their own calls
 #    }      #    }
   
         my $titletable = '<table id="LC_title_bar">'          my $titletable = '<table id="LC_title_bar">'
                         ."<tr><td> $titleinfo $dc_info</td>"                              ."<tr><td> $titleinfo $dc_info</td>"
                         .'</tr></table>';                              .'</tr></table>';
   
  if ($no_nav_bar) {          if ($no_nav_bar) {
     $bodytag .= $titletable;              $bodytag .= $titletable;
  } else {          } else {
         $bodytag .= qq|<div id="LC_nav_bar">$name $role<br />              $bodytag .= qq|<div id="LC_nav_bar">$name $role<br />
             <em>$realm</em> $dc_info</div>| unless $env{'form.inhibitmenu'};                  <em>$realm</em> $dc_info</div>| unless $env{'form.inhibitmenu'};
   
     if ($env{'request.state'} eq 'construct') {  #SD $titletable is obsolete
                 $bodytag .= &Apache::lonmenu::menubuttons($forcereg,$titletable);  #SD            if ($env{'request.state'} eq 'construct') {
             } else {  #SD                $bodytag .= &Apache::lonmenu::menubuttons($forcereg,$titletable);
                 $bodytag .= &Apache::lonmenu::menubuttons($forcereg).$titletable;  #SD            } else {
             }  #SD                $bodytag .= &Apache::lonmenu::menubuttons($forcereg).$titletable;
   #SD            }
                  if (   $env{'form.inhibitmenu'} eq 'yes' 
                      || $ENV{'REQUEST_URI'} eq '/adm/logout'
                      || $env{'request.noversionuri'} =~ m{^/res/adm/pages/}) {
                      
                      return $bodytag;
                  }
   
                  $bodytag .= Apache::lonhtmlcommon::scripttag(
                                   Apache::lonmenu::utilityfunctions(),
                                   'start');
                  $bodytag .= Apache::lonmenu::primary_menu();
                  $bodytag .= Apache::lonmenu::secondary_menu();
                  #SD remove next line
                  #$bodytag .= Apache::lonmenu::menubuttons($forcereg);
                  $bodytag .= Apache::lonmenu::serverform();
                  $bodytag .= Apache::lonhtmlcommon::scripttag('', 'end'); 
                  $bodytag .= Apache::lonmenu::innerregister($forcereg) if $forcereg;
         }          }
         return $bodytag;          return $bodytag;
     }      }
Line 4482  sub bodytag { Line 4501  sub bodytag {
        :'<a href="/adm/remote?action=collapse" target="_top">'.&mt('Switch to Inline Menu Mode').'</a>');         :'<a href="/adm/remote?action=collapse" target="_top">'.&mt('Switch to Inline Menu Mode').'</a>');
     $bodytag .= qq|<div id="LC_nav_bar">$name $role      $bodytag .= qq|<div id="LC_nav_bar">$name $role
             <em>$realm</em> $dc_info </div>              <em>$realm</em> $dc_info </div>
             <ol class="LC_smallMenu LC_right">              <ol class="LC_primary_menu LC_right">
                 <li>$menu</li>                  <li>$menu</li>
             </ol>| unless $env{'form.inhibitmenu'};              </ol>| unless $env{'form.inhibitmenu'};
     #      #
Line 4653  a:focus { Line 4672  a:focus {
   background: yellow     background: yellow 
 }  }
   
 hr {  
   clear: both;  
   color: $tabbg;  
   background-color: $tabbg;  
   height: 3px;  
   border: none;  
 }  
   
 form, .inline {   form, .inline { 
    display: inline;      display: inline; 
 }  }
Line 5819  div.LC_createcourse { Line 5830  div.LC_createcourse {
 # --------------------------*/  # --------------------------*/
   
 a:hover,  a:hover,
 ol.LC_smallMenu a:hover,  ol.LC_primary_menu a:hover,
 ol#LC_MenuBreadcrumbs a:hover,  ol#LC_MenuBreadcrumbs a:hover,
 ol#LC_PathBreadcrumbs a:hover,  ol#LC_PathBreadcrumbs a:hover,
 ul#LC_TabMainMenuContent a:hover,  ul#LC_secondary_menu a:hover,
 .LC_FormSectionClearButton input:hover  .LC_FormSectionClearButton input:hover
 ul.LC_TabContent   li:hover a {  ul.LC_TabContent   li:hover a {
  color:#BF2317;   color:#BF2317;
Line 5899  fieldset > legend { Line 5910  fieldset > legend {
     font-style: normal;      font-style: normal;
 }  }
   
 ol.LC_smallMenu {  ol.LC_primary_menu {
     float: right;      float: right;
     margin: 0.2em 0 0 0;      margin: 0.2em 0 0 0;
 }  }
Line 5908  ol#LC_PathBreadcrumbs { Line 5919  ol#LC_PathBreadcrumbs {
  margin: 0;   margin: 0;
 }  }
   
 ol.LC_smallMenu li {  ol.LC_primary_menu li {
  display: inline;   display: inline;
  padding: 5px 5px 0 10px;   padding: 5px 5px 0 10px;
  vertical-align: top;   vertical-align: top;
 }  }
   
 ol.LC_smallMenu li img {  ol.LC_primary_menu li img {
  vertical-align: bottom;   vertical-align: bottom;
 }  }
   
 ol.LC_smallMenu a {  ol.LC_primary_menu a {
  font-size: 90%;   font-size: 90%;
  color: RGB(80, 80, 80);   color: RGB(80, 80, 80);
  text-decoration: none;   text-decoration: none;
 }  }
   
 ul#LC_TabMainMenuContent {  ul#LC_secondary_menu {
     clear: both;      clear: both;
     color: $fontmenu;      color: $fontmenu;
     background: $tabbg;      background: $tabbg;
Line 5934  ul#LC_TabMainMenuContent { Line 5945  ul#LC_TabMainMenuContent {
     width: 100%;      width: 100%;
 }  }
   
 ul#LC_TabMainMenuContent li {  ul#LC_secondary_menu li {
     font-weight: bold;      font-weight: bold;
     line-height: 1.8em;      line-height: 1.8em;
     padding: 0 0.8em;       padding: 0 0.8em; 
Line 5957  ul.LC_TabContentBigger li { Line 5968  ul.LC_TabContentBigger li {
  float:left;   float:left;
 }  }
   
 ul#LC_TabMainMenuContent li a {  ul#LC_secondary_menu li a {
     color: $fontmenu;      color: $fontmenu;
  text-decoration: none;   text-decoration: none;
 }  }

Removed from v.1.890  
changed lines
  Added in v.1.897


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