version 1.120, 2005/06/05 07:10:32
|
version 1.121, 2005/06/05 07:57:28
|
Line 511 ENDHEADER
|
Line 511 ENDHEADER
|
$sortkey=$role; |
$sortkey=$role; |
} elsif ($trest) { |
} elsif ($trest) { |
$ttype='Course'; |
$ttype='Course'; |
if ($tsection) { |
|
$ttype.='<br>'.&mt('Section/Group').': '.$tsection; |
|
} |
|
my $tcourseid=$tdom.'_'.$trest; |
my $tcourseid=$tdom.'_'.$trest; |
if ($env{'course.'.$tcourseid.'.description'}) { |
if ($env{'course.'.$tcourseid.'.description'}) { |
$twhere=$env{'course.'.$tcourseid.'.description'}; |
$twhere=$env{'course.'.$tcourseid.'.description'}; |
Line 538 ENDHEADER
|
Line 535 ENDHEADER
|
$sortkey=$role."\0".$tdom."\0".$twhere."\0".$envkey; |
$sortkey=$role."\0".$tdom."\0".$twhere."\0".$envkey; |
} |
} |
} |
} |
|
if ($tsection) { |
|
$twhere.='<br />'.&mt('Section/Group').': '.$tsection; |
|
} |
|
|
if ($role ne 'st') { $twhere.="<br />".&mt('Domain').":".$tdom; } |
if ($role ne 'st') { $twhere.="<br />".&mt('Domain').":".$tdom; } |
} elsif ($tdom) { |
} elsif ($tdom) { |
$ttype='Domain'; |
$ttype='Domain'; |
Line 583 ENDHEADER
|
Line 584 ENDHEADER
|
} |
} |
$r->print('<br /><table><tr>'); |
$r->print('<br /><table><tr>'); |
unless ($nochoose) { $r->print('<th> </th>'); } |
unless ($nochoose) { $r->print('<th> </th>'); } |
$r->print('<th>'.&mt('User Role').'</th><th colspan=2>'.&mt('Extent'). |
$r->print('<th>'.&mt('User Role').'</th><th>'.&mt('Extent'). |
'</th><th>'.&mt('Start').'</th><th>'.&mt('End').'</th><th>'. |
'</th><th>'.&mt('Start').'</th><th>'.&mt('End').'</th><th>'. |
&mt('Remarks and Calendar Announcements').'</th></tr>'."\n"); |
&mt('Remarks and Calendar Announcements').'</th></tr>'."\n"); |
my $doheaders=-1; |
my $doheaders=-1; |
Line 611 ENDHEADER
|
Line 612 ENDHEADER
|
} |
} |
} |
} |
if ($output) { |
if ($output) { |
$r->print("<tr bgcolor='#BBffBB'><td align='center' colspan='7'>". |
$r->print("<tr bgcolor='#BBffBB'><td align='center' colspan='6'>". |
&mt('Recent Roles')."</td>"); |
&mt('Recent Roles')."</td>"); |
$r->print($output); |
$r->print($output); |
$r->print("</tr>"); |
$r->print("</tr>"); |
Line 638 ENDHEADER
|
Line 639 ENDHEADER
|
if ($output) { |
if ($output) { |
if ($doheaders > 0) { |
if ($doheaders > 0) { |
$r->print("<tr bgcolor='#BBffBB'>". |
$r->print("<tr bgcolor='#BBffBB'>". |
"<td align='center' colspan='7'>".&mt($type)."</td></tr>"); |
"<td align='center' colspan='6'>".&mt($type)."</td></tr>"); |
} |
} |
$r->print($output); |
$r->print($output); |
} |
} |
Line 660 ENDHEADER
|
Line 661 ENDHEADER
|
$r->print('<td> </td>'); |
$r->print('<td> </td>'); |
} |
} |
} |
} |
$r->print('<td colspan=5><font color="'.$tfont.'">'.&mt('No role specified'). |
$r->print('<td colspan="4"><font color="'.$tfont.'">'.&mt('No role specified'). |
'</font></td><td><font color="'.$tfont.'">'.$tremark. |
'</font></td><td><font color="'.$tfont.'">'.$tremark. |
' </font></td></tr>'."\n"); |
' </font></td></tr>'."\n"); |
|
|
Line 789 sub build_roletext {
|
Line 790 sub build_roletext {
|
|
|
|
|
$roletext.='<td><font color="'.$tfont.'">'.$trole. |
$roletext.='<td><font color="'.$tfont.'">'.$trole. |
'</font></td><td><font color="'.$tfont.'">'.$ttype. |
'</font></td><td><font color="'.$tfont.'">'.$twhere. |
'</font></td><td><font color="'.$tfont.'">'.$twhere. |
|
'</font></td><td><font color="'.$tfont.'">'.$tpstart. |
'</font></td><td><font color="'.$tfont.'">'.$tpstart. |
'</font></td><td><font color="'.$tfont.'">'.$tpend. |
'</font></td><td><font color="'.$tfont.'">'.$tpend. |
'</font></td><td><font color="'.$tfont.'">'.$tremark. |
'</font></td><td><font color="'.$tfont.'">'.$tremark. |
Line 953 sub allcourses_row {
|
Line 953 sub allcourses_row {
|
'onClick="verifyCoursePick(this)">'. |
'onClick="verifyCoursePick(this)">'. |
'<input type="hidden" name="pick_'.$dcdom.'" value="1"></td>'. |
'<input type="hidden" name="pick_'.$dcdom.'" value="1"></td>'. |
'<td><font color="#002200">'. |
'<td><font color="#002200">'. |
$ccrole.'</font></td><td>'.&mt('Course').'</td>'. |
$ccrole.'</font></td>'. |
'<td><font color="#002200">'.&mt('All courses').':<b> '. |
'<td><font color="#002200">'.&mt('All courses').':<b> '. |
$selectlink.'</b>'. |
$selectlink.'</b>'. |
'<br />'.&mt('Domain').':'.$dcdom.'</font>'. |
'<br />'.&mt('Domain').':'.$dcdom.'</font>'. |
'<td colspan="4"><font color="#002200">'. |
'<td colspan="3"><font color="#002200">'. |
&mt('Course Coordinator access to all courses in domain'). |
&mt('Course Coordinator access to all courses in domain'). |
': <b>'.$dcdom.'</b></font></td></tr>'."\n"; |
': <b>'.$dcdom.'</b></font></td></tr>'."\n"; |
return $output; |
return $output; |