Diff for /loncom/interface/lonrequestcourse.pm between versions 1.36 and 1.36.2.1

version 1.36, 2009/09/13 03:13:55 version 1.36.2.1, 2009/09/23 15:58:26
Line 238  sub handler { Line 238  sub handler {
                                     foreach my $item (@code_order) {                                      foreach my $item (@code_order) {
                                         $crosslistcode .= $env{'form.crosslist_'.$i.'_'.$item};                                           $crosslistcode .= $env{'form.crosslist_'.$i.'_'.$item}; 
                                     }                                      }
                                     if ($crosslistcode ne '') {                                       if ($crosslistcode ne '') {
                                          ($codechk{$i}, my $rest) =                                           ($codechk{$i}, my $rest) =
                                             &Apache::lonnet::auto_validate_instcode('',$dom,$crosslistcode);                                              &Apache::lonnet::auto_validate_instcode('',$dom,$crosslistcode);
                                     }                                      }
                                     unless ($codechk{$i} eq 'valid') {                                      unless ($codechk{$i} eq 'valid') {
Line 627  sub check_can_request { Line 627  sub check_can_request {
 }  }
   
 sub course_types {  sub course_types {
     my @types = ('official','unofficial','community');      my @types = ('unofficial'); 
     my %typename = (      my %typename = (
                          official   => 'Official course',                           official   => 'Official course',
                          unofficial => 'Unofficial course',                           unofficial => 'Unofficial course',
Line 730  END Line 730  END
              '<div>'.               '<div>'.
               &Apache::lonhtmlcommon::start_pick_box().                &Apache::lonhtmlcommon::start_pick_box().
               &Apache::lonhtmlcommon::row_title(&mt('Course Domain')).                &Apache::lonhtmlcommon::row_title(&mt('Course Domain')).
               '<form name="domforcourse" method="post" action="/adm/requestcourse">'.                '<form name="domforcourse" method="post" action="/adm/requestcourse">');
               &Apache::loncommon::select_dom_form($dom,'showdom','',1,$onchange));      $r->print('GCI Web Center Concept Test Delivery (gcitest)'."\n".
     if (!$onchange) {                '<input type="hidden" value="gcitest" name="showdom" />');
         $r->print('&nbsp;<input type="submit" name="godom" value="'.  
                    &mt('Change').'" />');  
     }  
     $r->print('</form>'.&Apache::lonhtmlcommon::row_closure());      $r->print('</form>'.&Apache::lonhtmlcommon::row_closure());
   
     my $formname = 'requestcrs';      my $formname = 'requestcrs';
Line 745  END Line 742  END
 <select size="1" name="action" >  <select size="1" name="action" >
  <option value="new">'.&mt('New request').'</option>   <option value="new">'.&mt('New request').'</option>
  <option value="view">'.&mt('View/Modify/Cancel pending requests').'</option>   <option value="view">'.&mt('View/Modify/Cancel pending requests').'</option>
  <option value="log">'.&mt('View request history').'</option>  
 </select></form>'.  </select></form>'.
               &Apache::lonhtmlcommon::row_closure(1).                &Apache::lonhtmlcommon::row_closure(1).
               &Apache::lonhtmlcommon::row_title(&mt('Course Type')).'                &Apache::lonhtmlcommon::row_title(&mt('Course Type')).
 <form name="mainmenu_coursetype" method="post" action="">                &mt($typename->{'unofficial'})."\n".
 <select size="1" name="crstype">                '<form name="mainmenu_coursetype" method="post" action="">'."\n".
  <option value="any">'.&mt('All types').'</option>');                '<input type="hidden" name="crstype" value="unofficial" ></form>'."\n".
     if ((ref($types) eq 'ARRAY') && (ref($typename) eq 'HASH')) {  
         foreach my $type (@{$types}) {  
             my $selected = '';  
             if ($type eq 'official') {  
                 $selected = ' selected="selected"';  
             }  
             $r->print('<option value="'.$type.'"'.$selected.'>'.&mt($typename->{$type}).  
                       '</option>'."\n");  
         }  
     }  
     $r->print('</select></form>'."\n".  
               &Apache::lonhtmlcommon::row_closure(1)."\n".                &Apache::lonhtmlcommon::row_closure(1)."\n".
               &Apache::lonhtmlcommon::end_pick_box().'</div>'."\n".                &Apache::lonhtmlcommon::end_pick_box().'</div>'."\n".
               '<div><form name="'.$formname.'" method="post" action="">'."\n".                '<div><form name="'.$formname.'" method="post" action="">'."\n".

Removed from v.1.36  
changed lines
  Added in v.1.36.2.1


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