version 1.39, 2006/02/02 17:57:40
|
version 1.42, 2006/04/10 21:40:09
|
Line 42 sub handler {
|
Line 42 sub handler {
|
return OK if $r->header_only; |
return OK if $r->header_only; |
|
|
# ------------------------------------------------------------ Print the screen |
# ------------------------------------------------------------ Print the screen |
my $html=&Apache::lonxml::xmlbegin(); |
|
$r->print(<<ENDDOCUMENT); |
|
$html |
|
<head> |
|
<title>The LearningOnline Network with CAPA</title> |
|
</head> |
|
ENDDOCUMENT |
|
# Get parameters from query string |
# Get parameters from query string |
&Apache::loncommon::get_unprocessed_cgi |
&Apache::loncommon::get_unprocessed_cgi |
($ENV{'QUERY_STRING'},['domainfilter','descriptfilter', |
($ENV{'QUERY_STRING'},['domainfilter','descriptfilter', |
Line 102 ENDDOCUMENT
|
Line 96 ENDDOCUMENT
|
['-1','86400','604800','2592000','7776000', |
['-1','86400','604800','2592000','7776000', |
'15552000','31104000'])); |
'15552000','31104000'])); |
# if called from loncreateuser, report sections, then close |
# if called from loncreateuser, report sections, then close |
my ($loaditem,$seclist); |
my (%loaditem,$seclist); |
my $num_sections = 0; |
my $num_sections = 0; |
if ($env{'form.form'} eq 'cu' && $env{'form.pickedcourse'}) { |
if ($env{'form.form'} eq 'cu' && $env{'form.pickedcourse'}) { |
$loaditem = 'onLoad="setSections()"'; |
$loaditem{'onload'} ="setSections()"; |
my ($cdom,$cnum) = split/_/,$env{'form.pickedcourse'}; |
my ($cdom,$cnum) = split/_/,$env{'form.pickedcourse'}; |
my %sections_count = (); |
my %sections_count = (); |
$num_sections = &Apache::loncommon::get_sections($cdom,$cnum,\%sections_count); |
$num_sections = &Apache::loncommon::get_sections($cdom,$cnum,\%sections_count); |
Line 125 ENDDOCUMENT
|
Line 119 ENDDOCUMENT
|
$jscript = &Apache::loncommon::check_uncheck_jscript(); |
$jscript = &Apache::loncommon::check_uncheck_jscript(); |
$multelement = '<input type="hidden" name="multiple" value="'.$multiple.'" />'; |
$multelement = '<input type="hidden" name="multiple" value="'.$multiple.'" />'; |
} |
} |
$r->print(&Apache::loncommon::bodytag($title,undef,$loaditem,undef,undef,undef,undef,1)); |
$r->print(&Apache::loncommon::start_page($title,undef, |
|
{'add_entries' => \%loaditem, |
|
'no_nav_bar' => 1, })); |
my %lt=&Apache::lonlocal::texthash( |
my %lt=&Apache::lonlocal::texthash( |
'cac' => 'Course Activity', |
'cac' => 'Course Activity', |
'cde' => 'Course Description', |
'cde' => 'Course Description', |
Line 336 ENDSCRIPT
|
Line 332 ENDSCRIPT
|
} |
} |
$r->print("</form>\n"); |
$r->print("</form>\n"); |
} |
} |
$r->print('</body></html>'); |
$r->print(&Apache::loncommon::end_page()); |
return OK; |
return OK; |
} |
} |
|
|