Diff for /loncom/interface/lonpickcourse.pm between versions 1.72 and 1.73.2.4

version 1.72, 2008/05/31 00:50:00 version 1.73.2.4, 2008/09/21 16:41:47
Line 228  sub display_matched_courses { Line 228  sub display_matched_courses {
                  $menuchk = ' checked="checked" ';                   $menuchk = ' checked="checked" ';
             }              }
             $r->print(              $r->print(
                   '<table class="LC_pick_box">'.
                   '<tr class="LC_pick_box_row">'.
                   '<td class="LC_pick_box_title" rowspan="2">'.&mt('Action').'</td>'.
                   '<td class="LC_evenrow_value">'.
                 '<span class="LC_nobreak"><label>'.                  '<span class="LC_nobreak"><label>'.
                 '<input type="radio" name="phase" value="ccrole"'.$ccrolechk.'/>'.                  '<input type="radio" name="phase" value="ccrole"'.$ccrolechk.'/>'.
                 '&nbsp;'.&mt('Enter the course with the role of [_1].',$cctitle).                  '&nbsp;'.&mt('Enter the course with the role of [_1].',$cctitle).
                 '</label>'.('&nbsp;'x3).'</span><br />'.                  '</label>'.('&nbsp;'x3).'</span>'.
                   '</td></tr>'.
                   '<tr class="LC_pick_box_row">'.
                   '<td class="LC_oddrow_value">'.
                 '<span class="LC_nobreak"><label>'.                  '<span class="LC_nobreak"><label>'.
                 '<input type="radio" name="phase" value="menu"'.$menuchk.'/>&nbsp;'.                  '<input type="radio" name="phase" value="menu"'.$menuchk.'/>&nbsp;'.
                 &mt('View or modify course settings which only a [_1] may modify.',$dctitle).                  &mt('View or modify course settings which only a [_1] may modify.',$dctitle).
                 '</label></span><br /><br />');                  '</label></span>'.
                   '</td></tr></table>'.
                   '<br />');
         }          }
     }      }
     my %by_descrip;      my %by_descrip;
Line 268  sub display_matched_courses { Line 277  sub display_matched_courses {
                  .'<th>'.&mt('Domain').'</th>'                   .'<th>'.&mt('Domain').'</th>'
                  .'<th>'.&mt('Course Code').'</th>'                   .'<th>'.&mt('Course Code').'</th>'
                  .'<th>'.&mt('Owner/Co-owner(s)').'</th>'                   .'<th>'.&mt('Owner/Co-owner(s)').'</th>'
                  .'<th>'.&mt('Type').'</th>'  #                 .'<th>'.&mt('Type').'</th>'
                  );                   );
         $r->print(&Apache::loncommon::end_data_table_header_row());          $r->print(&Apache::loncommon::end_data_table_header_row());
     }      }
Line 309  sub display_matched_courses { Line 318  sub display_matched_courses {
             }              }
             $r->print('</td>');              $r->print('</td>');
             $r->print('<td>'.$ownerstr.'</td>');              $r->print('<td>'.$ownerstr.'</td>');
             $r->print('<td>');  #            $r->print('<td>');
             if ($ttype ne '') {  #            if ($ttype ne '') {
                 $r->print(&mt(&unescape($ttype)));  #                $r->print(&mt(&unescape($ttype)));
             } else {  #            } else {
                 $r->print('&nbsp;');  #                $r->print('&nbsp;');
             }  #            }
             $r->print('</td>');  #            $r->print('</td>');
             if ($multiple) { $r->print("</label>\n"); }              if ($multiple) { $r->print("</label>\n"); }
             $r->print(&Apache::loncommon::end_data_table_row());              $r->print(&Apache::loncommon::end_data_table_row());
             # $r->print("<br />\n");              # $r->print("<br />\n");
Line 427  sub build_filters { Line 436  sub build_filters {
                       '15552000','31104000']));                        '15552000','31104000']));
   
     my %lt = (      my %lt = (
               'cac' => &mt('[_1] Activity',$type),                'cac' => &mt("$type Activity"),
               'cde' => &mt('[_1] Description',$type),                'cde' => &mt("$type Description"),
               'cdo' => &mt('[_1] Domain',$type),                'cdo' => &mt("$type Domain"),
               'cin' => &mt('Course Institutional Code'),                'cin' => &mt('Course Institutional Code'),
               'cow' => &mt("[_1] Owner's Username",$type),                'cow' => &mt("$type Owner's Username"),
               'cod' => &mt("[_1] Owner's Domain", $type),                'cod' => &mt("$type Owner's Domain"),
               'cog' => &mt('Course Type')                'cog' => &mt('Course Type')
              );               );
   
Line 444  sub build_filters { Line 453  sub build_filters {
     }      }
     foreach my $posstype ('Course','Non-standard Course') {      foreach my $posstype ('Course','Non-standard Course') {
         $typeselectform.='<option value="'.$posstype.'"'.          $typeselectform.='<option value="'.$posstype.'"'.
             ($posstype eq $type ? ' selected="selected" ' : ''). ">$posstype</option>\n";              ($posstype eq $type ? ' selected="selected" ' : ''). ">".&mt($posstype)."</option>\n";
     }      }
     $typeselectform.="</select>";      $typeselectform.="</select>";
     my $output = qq|      my $output = qq|
Line 478  $multelement Line 487  $multelement
     if ($domainselectform) {      if ($domainselectform) {
         $output .= $lt{'cdo'}.': '.$domainselectform.'<br />'."\n";          $output .= $lt{'cdo'}.': '.$domainselectform.'<br />'."\n";
     }      }
     if ($typeselectform) {  #    if ($typeselectform) {
         $output .= $lt{'cog'}.': '.$typeselectform.'<br />'."\n";  #        $output .= $lt{'cog'}.': '.$typeselectform.'<br />'."\n";
     }  #    }
     if ($instcodeform) {      if ($instcodeform) {
         $output .= $lt{'cin'}.': '.$instcodeform.'<br />'."\n";          $output .= $lt{'cin'}.': '.$instcodeform.'<br />'."\n";
     }      }

Removed from v.1.72  
changed lines
  Added in v.1.73.2.4


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