version 1.22, 2001/08/03 16:55:00
|
version 1.28, 2001/11/05 19:28:54
|
Line 5
|
Line 5
|
# |
# |
# 05/29/00,05/30 Gerd Kortemeyer) |
# 05/29/00,05/30 Gerd Kortemeyer) |
# 08/30,08/31,09/06,09/14,09/15,09/16,09/19,09/20,09/21,09/23, |
# 08/30,08/31,09/06,09/14,09/15,09/16,09/19,09/20,09/21,09/23, |
# 10/02,10/10,10/14,10/16,10/18,10/19,10/31,11/6,11/14,11/16 Gerd Kortemeyer |
# 10/02,10/10,10/14,10/16,10/18,10/19,10/31,11/6,11/14,11/16, |
|
# 08/13/01,08/30,10/1 Gerd Kortemeyer |
|
|
package Apache::lonpage; |
package Apache::lonpage; |
|
|
Line 247 sub handler {
|
Line 248 sub handler {
|
$xmlbody=$token->[4]; |
$xmlbody=$token->[4]; |
} |
} |
} elsif ($token->[1] eq 'meta') { |
} elsif ($token->[1] eq 'meta') { |
|
if ($token->[4] !~ m:/>$:) { |
$allmeta.="\n".$token->[4].'</meta>'; |
$allmeta.="\n".$token->[4].'</meta>'; |
|
} else { |
|
$allmeta.="\n".$token->[4]; |
|
} |
} elsif (($token->[1] eq 'script') && |
} elsif (($token->[1] eq 'script') && |
($bodydef==0)) { |
($bodydef==0)) { |
$allscript.="\n\n" |
$allscript.="\n\n" |
Line 275 sub handler {
|
Line 280 sub handler {
|
$output=~s/(\"|\'|\=\s*)$_(\"|\'|\s|\>)/$1$newlocation$2/; |
$output=~s/(\"|\'|\=\s*)$_(\"|\'|\s|\>)/$1$newlocation$2/; |
} |
} |
} @rlinks; |
} @rlinks; |
$output=~s/\<\s*applet/\<applet codebase=\"$thisdir\" /gi; |
# -------------------------------------------------- Deal with Applet codebases |
|
$output=~s/(\<applet[^\>]+)(codebase\=[^\S\>]+)*([^\>]*)\>/$1.($2?$2:' codebase="'.$thisdir.'"').$3.'>'/gei; |
$ssibody{$_}=$output; |
$ssibody{$_}=$output; |
# ---------------------------------------------------------------- End SSI cell |
# ---------------------------------------------------------------- End SSI cell |
} |
} |
Line 307 sub handler {
|
Line 313 sub handler {
|
$r->print("\n<script language='JavaScript'>\n". |
$r->print("\n<script language='JavaScript'>\n". |
$allscript."\n</script>\n"); |
$allscript."\n</script>\n"); |
} |
} |
$r->print(&Apache::lonxml::registerurl); |
$r->print(&Apache::lonxml::registerurl(1)); |
$r->print("\n</head>\n"); |
$r->print("\n</head>\n"); |
# ------------------------------------------------------------------ Start body |
# ------------------------------------------------------------------ Start body |
if ($isxml) { |
if ($isxml) { |
Line 331 sub handler {
|
Line 337 sub handler {
|
my $avespan=$lcm/($#colcont+1); |
my $avespan=$lcm/($#colcont+1); |
for ($j=0;$j<=$#colcont;$j++) { |
for ($j=0;$j<=$#colcont;$j++) { |
my $rid=$colcont[$j]; |
my $rid=$colcont[$j]; |
my $metainfo='';#'<a href="'. |
my $metainfo='<a href="'. |
#$metalink{$rid}.'" target="LONcatInfo">'. |
$metalink{$rid}.'" target="LONcatInfo">'. |
#'<img src="/adm/lonMisc/cat_button.gif" border=0>'. |
'<img src="/adm/lonMisc/cat_button.gif" border=0>'. |
#'</img></a><br></br>'; |
'</img></a>'; |
|
if ( |
|
($hash{'src_'.$rid}=~/\.(problem|exam|quiz|assess|survey|form)$/) && |
|
(&Apache::lonnet::allowed('mgr',$ENV{'request.course.id'}))) { |
|
my ($mapid,$resid)=split(/\./,$rid); |
|
my $symb= |
|
&Apache::lonnet::declutter($hash{'map_id_'.$mapid}). |
|
'___'.$resid.'___'. |
|
&Apache::lonnet::declutter($hash{'src_'.$rid}); |
|
$metainfo.= |
|
'<a href="/adm/grades?symb='.$symb. |
|
'&command=submission" target="LONcatInfo">'. |
|
'<img src="/adm/lonMisc/subm_button.gif" border=0>'. |
|
'</img></a>'. |
|
'<a href="/adm/grades?symb='.$symb. |
|
'&command=viewgrades" target="LONcatInfo">'. |
|
'<img src="/adm/lonMisc/pgrd_button.gif" border=0>'. |
|
'</img></a>'. |
|
'<a href="/adm/parmset?symb='.$symb.'" target="LONcatInfo">'. |
|
'<img src="/adm/lonMisc/pprm_button.gif" border=0>'. |
|
'</img></a>'; |
|
} |
|
$metainfo.='<br></br>'; |
$r->print('<td colspan="'.$avespan.'"'); |
$r->print('<td colspan="'.$avespan.'"'); |
if ($cellemb{$rid} eq 'ssi') { |
if ($cellemb{$rid} eq 'ssi') { |
if ($ssibgcolor{$rid}) { |
if ($ssibgcolor{$rid}) { |
Line 375 sub handler {
|
Line 403 sub handler {
|
'<input name="all_submit" value="Submit All" type="'. |
'<input name="all_submit" value="Submit All" type="'. |
(($nforms>1)?'submit':'hidden').'"></input></form>'); |
(($nforms>1)?'submit':'hidden').'"></input></form>'); |
} |
} |
$r->print('</body></html>'); |
$r->print('</body>'.&Apache::lonxml::xmlend()); |
# -------------------------------------------------------------------- End page |
# -------------------------------------------------------------------- End page |
} |
} |
# ------------------------------------------------------------- End render page |
# ------------------------------------------------------------- End render page |