Diff for /loncom/interface/lonpickcourse.pm between versions 1.73.2.3 and 1.76

version 1.73.2.3, 2008/09/20 16:57:18 version 1.76, 2009/03/02 11:21:57
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">'.                  '<fieldset>'
                 '<tr class="LC_pick_box_row">'.                 .'<legend>'.&mt('Action').'</legend>'
                 '<td class="LC_pick_box_title" rowspan="2">'.&mt('Action').'</td>'.                 .'<div class="LC_nobreak"><label>'
                 '<td class="LC_evenrow_value">'.                 .'<input type="radio" name="phase" value="ccrole"'.$ccrolechk.'/>'
                 '<span class="LC_nobreak"><label>'.                 .'&nbsp;'.&mt('Enter the course with the role of [_1].',$cctitle)
                 '<input type="radio" name="phase" value="ccrole"'.$ccrolechk.'/>'.                 .'</label></div>'
                 '&nbsp;'.&mt('Enter the course with the role of [_1].',$cctitle).                 .'<div class="LC_nobreak"><label>'
                 '</label>'.('&nbsp;'x3).'</span>'.                 .'<input type="radio" name="phase" value="menu"'.$menuchk.'/>&nbsp;'
                 '</td></tr>'.                 .&mt('View or modify course settings which only a [_1] may modify.',$dctitle)
                 '<tr class="LC_pick_box_row">'.                 .'</label></div>'
                 '<td class="LC_oddrow_value">'.                 .'</fieldset>'
                 '<span class="LC_nobreak"><label>'.                 .'<br />'
                 '<input type="radio" name="phase" value="menu"'.$menuchk.'/>&nbsp;'.              );
                 &mt('View or modify course settings which only a [_1] may modify.',$dctitle).  
                 '</label></span>'.  
                 '</td></tr></table>'.  
                 '<br />');  
         }          }
     }      }
     my %by_descrip;      my %by_descrip;
Line 273  sub display_matched_courses { Line 269  sub display_matched_courses {
         $r->print(&Apache::loncommon::start_data_table());          $r->print(&Apache::loncommon::start_data_table());
         $r->print(&Apache::loncommon::start_data_table_header_row());          $r->print(&Apache::loncommon::start_data_table_header_row());
         $r->print('<th>'.&mt('Select').'</th>'          $r->print('<th>'.&mt('Select').'</th>'
                  .'<th>'.&mt('Course Description').'</th>'                   .'<th>'.&mt('Course Title').'</th>'
                  .'<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 318  sub display_matched_courses { Line 314  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 437  sub build_filters { Line 433  sub build_filters {
   
     my %lt = (      my %lt = (
               'cac' => &mt("$type Activity"),                'cac' => &mt("$type Activity"),
               'cde' => &mt("$type Description"),                'cde' => &mt("$type Title"),
               'cdo' => &mt("$type Domain"),                'cdo' => &mt("$type Domain"),
               'cin' => &mt('Course Institutional Code'),                'cin' => &mt('Course Institutional Code'),
               'cow' => &mt("$type Owner's Username),                'cow' => &mt("$type Owner's Username"),
               'cod' => &mt("$type Owner's Domain"),                'cod' => &mt("$type Owner's Domain"),
               'cog' => &mt('Course Type')                'cog' => &mt('Course Type')
              );               );
Line 481  $multelement Line 477  $multelement
             $output .= '<input type="hidden" name="setroles" value="'.$env{'form.setroles'}.'" />';              $output .= '<input type="hidden" name="setroles" value="'.$env{'form.setroles'}.'" />';
         }          }
     }      }
   
       $output .= "<br />\n".&Apache::lonhtmlcommon::start_pick_box();
     if ($sincefilterform) {       if ($sincefilterform) { 
         $output .= $lt{'cac'}.': '.$sincefilterform.'<br />'."\n";          $output .= &Apache::lonhtmlcommon::row_title($lt{'cac'})
                     .$sincefilterform
                     .&Apache::lonhtmlcommon::row_closure();
     }      }
     if ($domainselectform) {      if ($domainselectform) {
         $output .= $lt{'cdo'}.': '.$domainselectform.'<br />'."\n";          $output .= &Apache::lonhtmlcommon::row_title($lt{'cdo'})
                     .$domainselectform
                     .&Apache::lonhtmlcommon::row_closure();
       }
       if ($typeselectform) {
           $output .= &Apache::lonhtmlcommon::row_title($lt{'cog'})
                     .$typeselectform
                     .&Apache::lonhtmlcommon::row_closure();
     }      }
 #    if ($typeselectform) {  
 #        $output .= $lt{'cog'}.': '.$typeselectform.'<br />'."\n";  
 #    }  
     if ($instcodeform) {      if ($instcodeform) {
         $output .= $lt{'cin'}.': '.$instcodeform.'<br />'."\n";          $output .= &Apache::lonhtmlcommon::row_title($lt{'cin'})
                     .$instcodeform
                     .&Apache::lonhtmlcommon::row_closure();
     }      }
     if (exists($filter->{'ownerfilter'})) {      if (exists($filter->{'ownerfilter'})) {
         $output .= $lt{'cow'}.': '.          $output .= &Apache::lonhtmlcommon::row_title($lt{'cow'})
                    '<input type="text" name="ownerfilter" size="10" value="'.                    .'<input type="text" name="ownerfilter" size="10" value="'
                    $list->{'ownerfilter'}.'" /><br />'."\n".                    .$list->{'ownerfilter'}.'" />'
                    $lt{'cod'}.': '.$ownerdomselectform.'<br />'."\n";                    .&Apache::lonhtmlcommon::row_closure()
                     .&Apache::lonhtmlcommon::row_title($lt{'cod'})
                     .$ownerdomselectform
                     .&Apache::lonhtmlcommon::row_closure();
     }      }
     if (exists($filter->{'coursefilter'})) {      if (exists($filter->{'coursefilter'})) {
         $output .= &mt('LON-CAPA course ID').': '.          $output .= &Apache::lonhtmlcommon::row_title(&mt('LON-CAPA course ID'))
                    '<input type="text" name="coursefilter" size="25" value="'.                    .'<input type="text" name="coursefilter" size="25" value="'
                     $list->{'coursefilter'}.'" /><br />';                    .$list->{'coursefilter'}.'" />'
                     .&Apache::lonhtmlcommon::row_closure();
     }      }
     if (exists($filter->{'descriptfilter'})) {      if (exists($filter->{'descriptfilter'})) {
         $output .=$lt{'cde'}.': '.          $output .= &Apache::lonhtmlcommon::row_title($lt{'cde'})
                   '<input type="text" name="descriptfilter" size="40" value="'.                    .'<input type="text" name="descriptfilter" size="40" value="'
                   $list->{'descriptfilter'}.'" />'."\n";                    .$list->{'descriptfilter'}.'" />'
                     .&Apache::lonhtmlcommon::row_closure(1);
     }      }
       $output .= &Apache::lonhtmlcommon::end_pick_box();
     $output .= '<p><input type="submit" name="gosearch" value="'.       $output .= '<p><input type="submit" name="gosearch" value="'. 
                &mt('Search').'" /></p>'."\n".'</form>'."\n".'<hr />'."\n";                 &mt('Search').'" /></p>'."\n".'</form>'."\n".'<hr />'."\n";
     return $output;       return $output; 
Line 701  Course Owner's Username - the username o Line 713  Course Owner's Username - the username o
 Course Owner's Domain - the domain of the owner of the course  Course Owner's Domain - the domain of the owner of the course
   
 =item *   =item * 
 Course Description - text which appears in the Course Description (or title), as set in the Course Parameters.  Course Title - text which appears in the Course Title, as set in the Course Parameters.
   
 =item *  =item *
 Course ID - the internal course number (course ID part after initial 'domain_') used by LON-CAPA (this criterion is only displayed to Domain Coordinators selecting a course in the same domain as their DC role).  Course ID - the internal course number (course ID part after initial 'domain_') used by LON-CAPA (this criterion is only displayed to Domain Coordinators selecting a course in the same domain as their DC role).

Removed from v.1.73.2.3  
changed lines
  Added in v.1.76


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