Diff for /loncom/interface/lonrequestcourse.pm between versions 1.95.2.4 and 1.95.2.7

version 1.95.2.4, 2019/07/26 17:57:12 version 1.95.2.7, 2021/12/14 02:54:52
Line 2395  sub print_cancel_request { Line 2395  sub print_cancel_request {
                       &Apache::loncommon::start_data_table_row().                        &Apache::loncommon::start_data_table_row().
                       '<td>'.$history{details}{'cdescr'}.'</td><td>'.                        '<td>'.$history{details}{'cdescr'}.'</td><td>'.
                       &Apache::lonlocal::locallocaltime($timestamp).'</td>'.                        &Apache::lonlocal::locallocaltime($timestamp).'</td>'.
                       '<td>'.$showtype.'</td>'.                        '<td>'.&mt($showtype).'</td>'.
                       &Apache::loncommon::end_data_table_row().                        &Apache::loncommon::end_data_table_row().
                       &Apache::loncommon::end_data_table().                        &Apache::loncommon::end_data_table().
                       '<br /><div class="LC_warning">';                        '<br /><div class="LC_warning">';
Line 2749  sub requestlog_display_filter { Line 2749  sub requestlog_display_filter {
                         $typename = $typenames->{$crstype};                          $typename = $typenames->{$crstype};
                     }                      }
                 }                  }
                 $output .= '<option value="'.$crstype.'"'.$selstr.'>'.$typename.'</option>'."\n";                  $output .= '<option value="'.$crstype.'"'.$selstr.'>'.&mt($typename).'</option>'."\n";
             }              }
             $output .= '</select></td>';              $output .= '</select></td>';
         }          }
Line 3198  sub clone_form { Line 3198  sub clone_form {
         '</label><br /><label>'.          '</label><br /><label>'.
         '<input type="radio" name="datemode" value="shift" checked="checked" /> '.          '<input type="radio" name="datemode" value="shift" checked="checked" /> '.
         $lt{'shd'}.'</label>'.          $lt{'shd'}.'</label>'.
         '<input type="text" size="5" name="dateshift" value="365" />'.          '<input type="text" size="5" name="dateshift" value="364" />'.
         &Apache::lonhtmlcommon::row_closure(1);          &Apache::lonhtmlcommon::row_closure(1);
     return $output;      return $output;
 }  }
Line 3237  sub coursecode_form { Line 3237  sub coursecode_form {
         }          }
         if (@{$codetitles} > 0) {          if (@{$codetitles} > 0) {
             my $lastitem = pop(@{$codetitles});              my $lastitem = pop(@{$codetitles});
             my $lastinput = '<input type="text" size="5" name="'.$sel.'_'.                                            $lastitem.'" />';              my $lastinput = '<input type="text" size="5" name="'.$sel.'_'.$lastitem.'" />';
             if (@{$codetitles} > 0) {              if (@{$codetitles} > 0) {
                 my $helplink;                  my $helplink;
                 if (defined($helpitem{$context})) {                  if (defined($helpitem{$context})) {
Line 3980  sub process_request { Line 3980  sub process_request {
             } elsif ($disposition eq 'pending') {              } elsif ($disposition eq 'pending') {
                 my $pendingform;                  my $pendingform;
                 if ($crstype ne 'official') {                  if ($crstype ne 'official') {
                     $pendingform = &pending_validation_form($dom,$cnum,$crstype,$now,$token,                      $pendingform = &pending_validation_form($r,$dom,$cnum,$crstype,$now,$token,
                                                             $lonhost,$env{'form.cdescr'});                                                              $lonhost,$env{'form.cdescr'});
                 }                  }
                 if ($pendingform) {                  if ($pendingform) {
Line 4298  sub notification_information { Line 4298  sub notification_information {
 }  }
   
 sub pending_validation_form {  sub pending_validation_form {
     my ($cdom,$cnum,$crstype,$now,$token,$lonhost,$cdesc) = @_;      my ($r,$cdom,$cnum,$crstype,$now,$token,$lonhost,$cdesc) = @_;
     my $output;      my $output;
     my %postvalues = (      my %postvalues = (
                       'owner'      => $env{'user.name'}.':'.$env{'user.domain'},                        'owner'      => $env{'user.name'}.':'.$env{'user.domain'},
Line 4334  sub pending_validation_form { Line 4334  sub pending_validation_form {
                 my $hostname = &Apache::lonnet::hostname($lonhost);                  my $hostname = &Apache::lonnet::hostname($lonhost);
                 my $protocol = $Apache::lonnet::protocol{$lonhost};                  my $protocol = $Apache::lonnet::protocol{$lonhost};
                 $protocol = 'http' if ($protocol ne 'https');                  $protocol = 'http' if ($protocol ne 'https');
                   my $alias = &Apache::lonnet::use_proxy_alias($r,$lonhost);
                   $hostname = $alias if ($alias ne '');
                 my $crscreator = $protocol.'://'.$hostname.'/cgi-bin/createpending.pl';                  my $crscreator = $protocol.'://'.$hostname.'/cgi-bin/createpending.pl';
                 $output .= '<input type="hidden" name="crscreator" value="'.$crscreator.'" />'."\n".                  $output .= '<input type="hidden" name="crscreator" value="'.$crscreator.'" />'."\n".
                            '<input type="hidden" name="token" value="'.$token.'" />'."\n".                             '<input type="hidden" name="token" value="'.$token.'" />'."\n".
Line 4822  sub print_textbook_form { Line 4824  sub print_textbook_form {
                   '</label><br /><label>'.                    '</label><br /><label>'.
                   '<input type="radio" name="owndatemode" value="shift" checked="checked" /> '.                    '<input type="radio" name="owndatemode" value="shift" checked="checked" /> '.
                   $lt{'shd'}.'</label>'.                    $lt{'shd'}.'</label>'.
                   '<input type="text" size="5" name="owndateshift" value="365" />'.                    '<input type="text" size="5" name="owndateshift" value="364" />'.
                   '</div>');                    '</div>');
     }      }
 #  #
Line 4837  sub print_textbook_form { Line 4839  sub print_textbook_form {
                   '</label><br /><label>'.                    '</label><br /><label>'.
                   '<input type="radio" name="colldatemode" value="shift" checked="checked" /> '.                    '<input type="radio" name="colldatemode" value="shift" checked="checked" /> '.
                   $lt{'shd'}.'</label>'.                    $lt{'shd'}.'</label>'.
                   '<input type="text" size="5" name="colldateshift" value="365" />'.                    '<input type="text" size="5" name="colldateshift" value="364" />'.
                   '</div>');                    '</div>');
     }      }
   

Removed from v.1.95.2.4  
changed lines
  Added in v.1.95.2.7


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