Diff for /loncom/interface/lonparmset.pm between versions 1.366.2.1 and 1.370

version 1.366.2.1, 2007/06/20 21:08:15 version 1.370, 2007/06/19 22:35:11
Line 2047  sub crsenv { Line 2047  sub crsenv {
  #   #
         # Deal with the emails          # Deal with the emails
         if ($name =~ /\.email$/) {          if ($name =~ /\.email$/) {
     foreach my $specifier (split(',',$value)) {      my ($user,$domain) = split(/:/,$value);
  my ($user,$sections_or_groups)=      if (!defined($user) || !defined($domain)) {
     ($specifier=~/^([^\(]+)\(([^\)]+)\)/);   $setoutput.= '<br /> <span class="LC_error">'.
  if (!$sections_or_groups) {      &mt("Invalid email address specified, address must be of the form username:domain").
     $user = $specifier;      '</span>';
  }   undef($value);
  my ($name,$domain) = split(':',$user);      } elsif (&Apache::lonnet::homeserver($user,$domain) eq 'no_host') {
  if (!defined($user) || !defined($domain)) {   $setoutput.= '<br /> <span class="LC_error">'.
     $setoutput.= '<br /> <span class="LC_error">'.      &mt("Invalid email address specified, user [_1] is unknown.",$value).
  &mt("Invalid email address specified, address must be of the form username:domain what was specified was ([_1])",$user).      '</span>';
  '</span>';   undef($value);
     undef($value);  
  } elsif (&Apache::lonnet::homeserver($user,$domain) eq 'no_host') {  
     $setoutput.= '<br /> <span class="LC_error">'.  
  &mt("Invalid email address specified, user [_1] is unknown.",$name).  
  '</span>';  
     undef($value);  
  }  
     }      }
         }          }
         # Get existing cloners          # Get existing cloners
Line 2233  sub crsenv { Line 2226  sub crsenv {
                     ' Tabloid [11x17 in], Executive [7 1/2x10 in], A2 [420x594 mm],'.                       ' Tabloid [11x17 in], Executive [7 1/2x10 in], A2 [420x594 mm],'. 
                     ' A3 [297x420 mm], A4 [210x297 mm], A5 [148x210 mm], A6 [105x148 mm])',                      ' A3 [297x420 mm], A4 [210x297 mm], A5 [148x210 mm], A6 [105x148 mm])',
      'print_header_format'       'print_header_format'
          => '<b>Print header format; substitutions</b>:  %n student name %c course id %a assignment note, numbers after the % limit the field size',           => &mtn('<b> Print header format; substitutions </b>:  %n student name %c course id %a assignment note, numbers after the % limit the field size.').'</b>',
              'anonymous_quiz'  
                  => '<b>'.&mt('Anonymous quiz/exam').'</b><br />'.  
                     ' (<tt><b>'.&mt('yes').'</b> '.&mt('to avoid print students names').' </tt>)',  
              'default_enrollment_start_date' => '<b>'.&mt('Default beginning date for student access.').'</b>',               'default_enrollment_start_date' => '<b>'.&mt('Default beginning date for student access.').'</b>',
              'default_enrollment_end_date'   => '<b>'.&mt('Default ending date for student access.').'</b>',               'default_enrollment_end_date'   => '<b>'.&mt('Default ending date for student access.').'</b>',
              'nothideprivileged'   => '<b>'.&mt('Privileged users that should not be hidden on staff listings').'</b>'.               'nothideprivileged'   => '<b>'.&mt('Privileged users that should not be hidden on staff listings').'</b>'.
Line 2256  sub crsenv { Line 2246  sub crsenv {
              'externalsyllabus'               'externalsyllabus'
                  => '<b>'.&mt('URL of Syllabus (not using internal handler)').'</b>',                   => '<b>'.&mt('URL of Syllabus (not using internal handler)').'</b>',
      'tthoptions'       'tthoptions'
          => '<b>'.&mt('Default set of options to pass to tth/m when converting tex').'</b>'           => '<b>'.&mt('Default set of options to pass to tth/m when converting tex').'</b>',
   
        'texengine'
            => '<b>'.&mt('Force all students in the course to use a specific math rendering engine.').'</b><br />'.&mt('(Valid options are [_1].)','"tth", "jsMath", "mimetex"').'</b>',
              );                ); 
         my @Display_Order = ('url','description','courseid','cloners','grading',          my @Display_Order = ('url','description','courseid','cloners','grading',
                              'externalsyllabus',                               'externalsyllabus',
Line 2283  sub crsenv { Line 2276  sub crsenv {
                              'default_enrollment_start_date',                               'default_enrollment_start_date',
                              'default_enrollment_end_date',                               'default_enrollment_end_date',
      'tthoptions',       'tthoptions',
        'texengine',
      'disablesigfigs',       'disablesigfigs',
      'disableexampointprint',       'disableexampointprint',
      'task_messages'       'task_messages'
Line 2366  $start_header_row Line 2360  $start_header_row
 $end_header_row  $end_header_row
 $output  $output
 $end_table  $end_table
 <input type="submit" name="crsenv" value="$lt{'sce'}">  <input type="submit" name="crsenv" value="$lt{'sce'}" />
 </form>  </form>
 $end_page  $end_page
 ENDENV  ENDENV

Removed from v.1.366.2.1  
changed lines
  Added in v.1.370


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