version 1.71, 2008/05/19 21:40:26
|
version 1.73.2.1, 2008/07/01 04:22:59
|
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.'/>'. |
' '.&mt('Enter the course with the role of [_1].',$cctitle). |
' '.&mt('Enter the course with the role of [_1].',$cctitle). |
'</label>'.(' 'x3).'</span><br />'. |
'</label>'.(' '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.'/> '. |
'<input type="radio" name="phase" value="menu"'.$menuchk.'/> '. |
&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 267 sub display_matched_courses {
|
Line 276 sub display_matched_courses {
|
.'<th>'.&mt('Course Description').'</th>' |
.'<th>'.&mt('Course Description').'</th>' |
.'<th>'.&mt('Domain').'</th>' |
.'<th>'.&mt('Domain').'</th>' |
.'<th>'.&mt('Course Code').'</th>' |
.'<th>'.&mt('Course Code').'</th>' |
.'<th>'.&mt('Owner:Domain').'</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()); |
} |
} |
foreach my $description (sort { lc($a) cmp lc($b) } (keys(%by_descrip))) { |
foreach my $description (sort { lc($a) cmp lc($b) } (keys(%by_descrip))) { |
$r->print(&Apache::loncommon::start_data_table_row()); |
|
foreach my $course (@{$by_descrip{$description}}) { |
foreach my $course (@{$by_descrip{$description}}) { |
|
$r->print(&Apache::loncommon::start_data_table_row()); |
my $cleandesc=&HTML::Entities::encode($description,'<>&"'); |
my $cleandesc=&HTML::Entities::encode($description,'<>&"'); |
$cleandesc=~s/'/\\'/g; |
$cleandesc=~s/'/\\'/g; |
my ($cdom,$cnum)=split(/\_/,$course); |
my ($cdom,$cnum)=split(/\_/,$course); |
Line 294 sub display_matched_courses {
|
Line 303 sub display_matched_courses {
|
($descr,$instcode,$singleowner,$ttype)=split(/:/,$courses{$course}); |
($descr,$instcode,$singleowner,$ttype)=split(/:/,$courses{$course}); |
push(@owners,&unescape($singleowner)); |
push(@owners,&unescape($singleowner)); |
} |
} |
my $owner = join(', ',@owners); |
my $ownerstr = join(', ',@owners); |
$r->print('<td>'.&course_chooser($multiple,$cdom,$cnum,$cleandesc).'</td>'); |
$r->print('<td>'.&course_chooser($multiple,$cdom,$cnum,$cleandesc).'</td>'); |
$r->print('<td>'.$description.'</td>'); |
$r->print('<td>'.$description.'</td>'); |
$r->print('<td>'); |
$r->print('<td>'); |
Line 308 sub display_matched_courses {
|
Line 317 sub display_matched_courses {
|
$r->print(' '); |
$r->print(' '); |
} |
} |
$r->print('</td>'); |
$r->print('</td>'); |
$r->print('<td>'); |
$r->print('<td>'.$ownerstr.'</td>'); |
if (@owners > 1) { |
|
# $r->print(', '.&mt('owners').' - ',join(', ',@owners)); |
|
$r->print(join(', ',@owners)); |
|
} elsif (@owners == 1) { |
|
# $r->print(', '.&mt('owner').' - '.$owner); |
|
$r->print($owner); |
|
} |
|
$r->print('</td>'); |
|
$r->print('<td>'); |
$r->print('<td>'); |
if ($ttype ne '') { |
if ($ttype ne '') { |
$r->print(&mt(&unescape($ttype))); |
$r->print(&mt(&unescape($ttype))); |
Line 325 sub display_matched_courses {
|
Line 326 sub display_matched_courses {
|
} |
} |
$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("<br />\n"); |
# $r->print("<br />\n"); |
} |
} |
$r->print(&Apache::loncommon::end_data_table_row()); |
|
} |
} |
$r->print(&Apache::loncommon::end_data_table()); |
if (%courses) { |
|
$r->print(&Apache::loncommon::end_data_table()); |
|
} |
|
|
if (!%courses) { |
if (!%courses) { |
$r->print(&mt('None found')); |
$r->print(&mt('None found')); |
Line 449 sub build_filters {
|
Line 452 sub build_filters {
|
$list->{'instcodefilter'}.'" />'; |
$list->{'instcodefilter'}.'" />'; |
} |
} |
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 484 $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"; |
} |
} |