version 1.38, 2005/06/06 02:29:46
|
version 1.41, 2006/04/08 06:59:34
|
Line 34 use Apache::loncommon;
|
Line 34 use Apache::loncommon;
|
use Apache::lonnet; |
use Apache::lonnet; |
use Apache::lontexconvert; |
use Apache::lontexconvert; |
use Apache::lonfeedback; |
use Apache::lonfeedback; |
|
use Apache::lonrss(); |
use Apache::lonlocal; |
use Apache::lonlocal; |
|
use Apache::lonmsgdisplay(); |
|
|
sub handler { |
sub handler { |
my $r = shift; |
my $r = shift; |
Line 43 sub handler {
|
Line 45 sub handler {
|
return OK if $r->header_only; |
return OK if $r->header_only; |
my $target=$env{'form.grade_target'}; |
my $target=$env{'form.grade_target'}; |
# ------------------------------------------------------------ Print the screen |
# ------------------------------------------------------------ Print the screen |
if ($target ne 'tex') { |
if ($target eq 'tex') { |
my $html=&Apache::lonxml::xmlbegin(); |
|
$r->print(<<ENDDOCUMENT); |
|
$html |
|
<head> |
|
<title>The LearningOnline Network with CAPA</title> |
|
ENDDOCUMENT |
|
} else { |
|
$r->print(&Apache::lonprintout::print_latex_header($env{'form.latex_type'})); |
$r->print(&Apache::lonprintout::print_latex_header($env{'form.latex_type'})); |
} |
} |
my (undef,undef,$cdom,$cnum)=split(/\//,$r->uri); |
my (undef,undef,$cdom,$cnum)=split(/\//,$r->uri); |
# Is this even a user? |
# Is this even a user? |
if (&Apache::lonnet::homeserver($cnum,$cdom) eq 'no_host') { |
if (&Apache::lonnet::homeserver($cnum,$cdom) eq 'no_host') { |
$r->print('</head><body>'. |
&Apache::loncommon::simple_error_page($r,'No info', |
&mt('No user information available').'</body></html>'); |
'No user information available'); |
return OK; |
return OK; |
} |
} |
# --------------------------------------------------------- The syllabus fields |
# --------------------------------------------------------- The syllabus fields |
Line 83 ENDDOCUMENT
|
Line 78 ENDDOCUMENT
|
# --------------------------------------- There is such a user, get environment |
# --------------------------------------- There is such a user, get environment |
my %courseenv=&Apache::lonnet::dump('environment',$cdom,$cnum); |
my %courseenv=&Apache::lonnet::dump('environment',$cdom,$cnum); |
if ($target ne 'tex') { |
if ($target ne 'tex') { |
$r->print('</head>'.&Apache::loncommon::bodytag |
my $start_page = |
("Personal Information",$forcestudent,$addentries,'',$cdom, |
&Apache::loncommon::start_page("Personal Information",undef, |
$env{'form.register'})); |
{'function' => $forcestudent, |
|
'add_entries' => $addentries, |
|
'domain' => $cdom, |
|
'force_register' => |
|
$env{'form.register'},}); |
|
$r->print($start_page); |
$r->print('<h1>'.&Apache::loncommon::plainname($cnum,$cdom).'</h1>'); |
$r->print('<h1>'.&Apache::loncommon::plainname($cnum,$cdom).'</h1>'); |
} else { |
} else { |
$r->print('\noindent{\large\textbf{'.&Apache::loncommon::plainname($cnum,$cdom).'}}\\\\\\\\'); |
$r->print('\noindent{\large\textbf{'.&Apache::loncommon::plainname($cnum,$cdom).'}}\\\\\\\\'); |
Line 97 ENDDOCUMENT
|
Line 97 ENDDOCUMENT
|
} |
} |
if ($target ne 'tex') { |
if ($target ne 'tex') { |
$r->print('<h3>'.$Apache::lonnet::domaindescription{$cdom}.'</h3>'. |
$r->print('<h3>'.$Apache::lonnet::domaindescription{$cdom}.'</h3>'. |
'<p>'.&Apache::loncommon::messagewrapper('Send me a message',$cnum,$cdom).'</p>'); |
'<p>'.&Apache::loncommon::messagewrapper('Send me a message',$cnum,$cdom).'</p>'.&Apache::lonrss::advertisefeeds($cnum,$cdom)); |
} else { |
} else { |
$r->print('\textbf{'.$Apache::lonnet::domaindescription{$cdom}.'}\\\\'); |
$r->print('\textbf{'.$Apache::lonnet::domaindescription{$cdom}.'}\\\\'); |
} |
} |
Line 219 ENDDOCUMENT
|
Line 219 ENDDOCUMENT
|
&mt('Shared by course faculty and staff'). |
&mt('Shared by course faculty and staff'). |
&Apache::loncommon::help_open_topic("Course_Face_To_Face_Records,Course_Critical_Message"). |
&Apache::loncommon::help_open_topic("Course_Face_To_Face_Records,Course_Critical_Message"). |
'<br />'); |
'<br />'); |
&Apache::lonmsg::disfacetoface($r,$cnum,$cdom); |
&Apache::lonmsgdisplay::disfacetoface($r,$cnum,$cdom); |
$r->print('<hr />'); |
$r->print('<hr />'); |
if (&Apache::lonnet::allowed('vsa', |
if (&Apache::lonnet::allowed('vsa', |
$env{'request.course.id'}) || |
$env{'request.course.id'}) || |
Line 233 ENDDOCUMENT
|
Line 233 ENDDOCUMENT
|
$r->print(&Apache::loncommon::noteswrapper('Add Records',$cnum,$cdom)); |
$r->print(&Apache::loncommon::noteswrapper('Add Records',$cnum,$cdom)); |
} else { |
} else { |
$r->print('\\\\\textbf{'.&mt('User Notes, Records of Face-To-Face Discussions, and Critical Messages in Course').'}\\\\'.&mt('Shared by course faculty and staff').'\\\\\\\\'); |
$r->print('\\\\\textbf{'.&mt('User Notes, Records of Face-To-Face Discussions, and Critical Messages in Course').'}\\\\'.&mt('Shared by course faculty and staff').'\\\\\\\\'); |
&Apache::lonmsg::disfacetoface($r,$cnum,$cdom); |
&Apache::lonmsgdisplay::disfacetoface($r,$cnum,$cdom); |
} |
} |
} |
} |
} |
} |
if ($target ne 'tex') {$r->print('</body></html>');} else {$r->print('\end{document}');} |
if ($target ne 'tex') { |
|
$r->print(&Apache::loncommon::end_page()); |
|
} else { |
|
$r->print('\end{document}'); |
|
} |
return OK; |
return OK; |
} |
} |
|
|