version 1.120, 2005/06/05 07:10:32
|
version 1.123, 2005/06/07 00:24:08
|
Line 262 ENDENTERKEY
|
Line 262 ENDENTERKEY
|
$furl = "/adm/helper/course.initialization.helper"; |
$furl = "/adm/helper/course.initialization.helper"; |
} |
} |
# Send the user to the course they selected |
# Send the user to the course they selected |
&redirect_user($r,&mt('Entering Course'), |
if (($env{'request.course.fn'}) |
|
&& ($role eq 'cc' && ($env{'environment.course_init_display'} ne 'firstres'))) { |
|
$msg = &mt('Entering course ....'); |
|
&redirect_user($r,&mt('New in course'), |
|
'/adm/whatsnew',$msg, |
|
$env{'environment.remotenavmap'}); |
|
} else { |
|
&redirect_user($r,&mt('Entering Course'), |
$furl,$msg, |
$furl,$msg, |
$env{'environment.remotenavmap'}); |
$env{'environment.remotenavmap'}); |
|
} |
return OK; |
return OK; |
} |
} |
} |
} |
Line 511 ENDHEADER
|
Line 519 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 543 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 592 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 620 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 647 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 669 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 798 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 961 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; |