Annotation of rat/lonpage.pm, revision 1.48
1.1 www 1: # The LearningOnline Network with CAPA
2: # Page Handler
3: #
1.48 ! harris41 4: # $Id: lonpage.pm,v 1.47 2002/11/26 16:21:35 sakharuk Exp $
1.29 www 5: #
6: # Copyright Michigan State University Board of Trustees
7: #
8: # This file is part of the LearningOnline Network with CAPA (LON-CAPA).
9: #
10: # LON-CAPA is free software; you can redistribute it and/or modify
11: # it under the terms of the GNU General Public License as published by
12: # the Free Software Foundation; either version 2 of the License, or
13: # (at your option) any later version.
14: #
15: # LON-CAPA is distributed in the hope that it will be useful,
16: # but WITHOUT ANY WARRANTY; without even the implied warranty of
17: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18: # GNU General Public License for more details.
19: #
20: # You should have received a copy of the GNU General Public License
21: # along with LON-CAPA; if not, write to the Free Software
22: # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
23: #
24: # /home/httpd/html/adm/gpl.txt
25: #
26: # http://www.lon-capa.org/
27: #
1.1 www 28: # (TeX Content Handler
29: #
1.30 harris41 30: # YEAR=2000
1.1 www 31: # 05/29/00,05/30 Gerd Kortemeyer)
1.10 www 32: # 08/30,08/31,09/06,09/14,09/15,09/16,09/19,09/20,09/21,09/23,
1.24 www 33: # 10/02,10/10,10/14,10/16,10/18,10/19,10/31,11/6,11/14,11/16,
1.30 harris41 34: # YEAR=2001
1.27 www 35: # 08/13/01,08/30,10/1 Gerd Kortemeyer
1.33 www 36: # YEAR=2002
37: # 03/19 Gerd Kortemeyer
1.30 harris41 38: #
39: ###
1.1 www 40:
41: package Apache::lonpage;
42:
43: use strict;
44: use Apache::Constants qw(:common :http);
45: use Apache::lonnet();
1.30 harris41 46: use Apache::loncommon();
1.21 www 47: use Apache::lonxml();
1.6 www 48: use HTML::TokeParser;
1.1 www 49: use GDBM_File;
1.39 www 50: use Apache::lonsequence;
1.1 www 51:
1.2 www 52: # -------------------------------------------------------------- Module Globals
53: my %hash;
54: my @rows;
1.6 www 55:
56: # ------------------------------------------------------------------ Euclid gcd
57:
58: sub euclid {
59: my ($e,$f)=@_;
60: my $a; my $b; my $r;
61: if ($e>$f) { $b=$e; $r=$f; } else { $r=$e; $b=$f; }
62: while ($r!=0) {
63: $a=$b; $b=$r;
64: $r=$a%$b;
65: }
66: return $b;
67: }
1.2 www 68:
69: # ------------------------------------------------------------ Build page table
70:
71: sub tracetable {
72: my ($sofar,$rid,$beenhere)=@_;
73: my $further=$sofar;
74: unless ($beenhere=~/\&$rid\&/) {
75: $beenhere.=$rid.'&';
76:
77: if (defined($hash{'is_map_'.$rid})) {
78: if ((defined($hash{'map_start_'.$hash{'src_'.$rid}})) &&
79: (defined($hash{'map_finish_'.$hash{'src_'.$rid}}))) {
1.4 www 80: my $frid=$hash{'map_finish_'.$hash{'src_'.$rid}};
81: $sofar=
1.2 www 82: &tracetable($sofar,$hash{'map_start_'.$hash{'src_'.$rid}},
1.3 www 83: '&'.$frid.'&');
1.4 www 84: $sofar++;
85: if ($hash{'src_'.$frid}) {
1.3 www 86: my $brepriv=&Apache::lonnet::allowed('bre',$hash{'src_'.$frid});
87: if (($brepriv eq '2') || ($brepriv eq 'F')) {
88: if (defined($rows[$sofar])) {
89: $rows[$sofar].='&'.$frid;
90: } else {
91: $rows[$sofar]=$frid;
92: }
93: }
1.4 www 94: }
1.2 www 95: }
96: } else {
1.4 www 97: $sofar++;
98: if ($hash{'src_'.$rid}) {
1.3 www 99: my $brepriv=&Apache::lonnet::allowed('bre',$hash{'src_'.$rid});
100: if (($brepriv eq '2') || ($brepriv eq 'F')) {
101: if (defined($rows[$sofar])) {
1.2 www 102: $rows[$sofar].='&'.$rid;
1.3 www 103: } else {
1.2 www 104: $rows[$sofar]=$rid;
1.3 www 105: }
106: }
1.4 www 107: }
1.2 www 108: }
109:
110: if (defined($hash{'to_'.$rid})) {
1.11 www 111: my $mincond=1;
112: my $next='';
1.30 harris41 113: foreach (split(/\,/,$hash{'to_'.$rid})) {
1.11 www 114: my $thiscond=
115: &Apache::lonnet::directcondval($hash{'condid_'.$hash{'undercond_'.$_}});
116: if ($thiscond>=$mincond) {
117: if ($next) {
118: $next.=','.$_.':'.$thiscond;
119: } else {
120: $next=$_.':'.$thiscond;
121: }
122: if ($thiscond>$mincond) { $mincond=$thiscond; }
123: }
1.30 harris41 124: }
125: foreach (split(/\,/,$next)) {
1.11 www 126: my ($linkid,$condval)=split(/\:/,$_);
127: if ($condval>=$mincond) {
128: my $now=&tracetable($sofar,$hash{'goesto_'.$linkid},$beenhere);
129: if ($now>$further) { $further=$now; }
130: }
1.30 harris41 131: }
1.11 www 132:
1.2 www 133: }
134: }
135: return $further;
136: }
137:
1.1 www 138: # ================================================================ Main Handler
139:
140: sub handler {
141: my $r=shift;
142:
1.3 www 143: # ------------------------------------------- Set document type for header only
1.1 www 144:
1.3 www 145: if ($r->header_only) {
146: if ($ENV{'browser.mathml'}) {
147: $r->content_type('text/xml');
148: } else {
1.40 sakharuk 149: $r->content_type('text/html');
1.3 www 150: }
151: $r->send_http_header;
152: return OK;
153: }
1.43 sakharuk 154:
1.39 www 155: &Apache::loncommon::get_unprocessed_cgi($ENV{'QUERY_STRING'},
156: ['forceselect','launch']);
1.43 sakharuk 157: my $number_of_columns = 1;
1.37 sakharuk 158: my $requrl=$r->uri;
159: my $target = $ENV{'form.grade_target'};
1.1 www 160: # ----------------------------------------------------------------- Tie db file
1.39 www 161: if (($ENV{'request.course.fn'}) && (!$ENV{'form.forceselect'})) {
1.1 www 162: my $fn=$ENV{'request.course.fn'};
163: if (-e "$fn.db") {
1.44 albertel 164: if (tie(%hash,'GDBM_File',"$fn.db",&GDBM_READER(),0640)) {
1.1 www 165: # ------------------------------------------------------------------- Hash tied
166: my $firstres=$hash{'map_start_'.$requrl};
167: my $lastres=$hash{'map_finish_'.$requrl};
168: if (($firstres) && ($lastres)) {
169: # ----------------------------------------------------------------- Render page
170:
1.3 www 171: @rows=();
1.2 www 172:
1.45 www 173: &tracetable(0,$firstres,'&');
1.2 www 174:
1.9 www 175: # ------------------------------------------------------------ Add to symb list
176:
1.2 www 177: my $i;
1.9 www 178: my %symbhash=();
179: for ($i=0;$i<=$#rows;$i++) {
180: if ($rows[$i]) {
181: my @colcont=split(/\&/,$rows[$i]);
1.30 harris41 182: foreach (@colcont) {
1.9 www 183: $symbhash{$hash{'src_'.$_}}='';
1.30 harris41 184: }
1.9 www 185: }
186: }
187: &Apache::lonnet::symblist($requrl,%symbhash);
188:
189: # ------------------------------------------------------------------ Page parms
190:
1.4 www 191: my $j;
1.6 www 192: my $lcm=1;
193: my $contents=0;
1.7 www 194: my $nforms=0;
1.6 www 195:
196: my %ssibody=();
197: my %ssibgcolor=();
198: my %ssitext=();
199: my %ssilink=();
200: my %ssivlink=();
201: my %ssialink=();
1.14 www 202:
203: my %metalink=();
204:
1.6 www 205: my %cellemb=();
1.3 www 206:
1.7 www 207: my $allscript='';
208: my $allmeta='';
209:
210: my $isxml=0;
211: my $xmlheader='';
212: my $xmlbody='';
213:
1.3 www 214: # --------------------------------------------- Get SSI output, post parameters
215:
1.2 www 216: for ($i=0;$i<=$#rows;$i++) {
1.4 www 217: if ($rows[$i]) {
1.6 www 218: $contents++;
1.3 www 219: my @colcont=split(/\&/,$rows[$i]);
1.6 www 220: $lcm*=($#colcont+1)/euclid($lcm,($#colcont+1));
1.30 harris41 221: foreach (@colcont) {
1.3 www 222: my $src=$hash{'src_'.$_};
1.5 www 223: $src=~/\.(\w+)$/;
1.14 www 224: $metalink{$_}=$src.'.meta';
1.30 harris41 225: $cellemb{$_}=Apache::loncommon::fileembstyle($1);
1.3 www 226: if ($cellemb{$_} eq 'ssi') {
227: # --------------------------------------------------------- This is an SSI cell
1.5 www 228: my $prefix=$_.'_';
229: my %posthash=('request.prefix' => $prefix);
1.8 www 230: if (($ENV{'form.'.$prefix.'submit'})
1.7 www 231: || ($ENV{'form.all_submit'})) {
1.30 harris41 232: foreach (keys %ENV) {
1.5 www 233: if ($_=~/^form.$prefix/) {
234: my $name=$_;
235: $name=~s/^form.$prefix//;
236: $posthash{$name}=$ENV{$_};
237: }
1.30 harris41 238: }
1.7 www 239: }
1.5 www 240: my $output=Apache::lonnet::ssi($src,%posthash);
1.46 sakharuk 241: if ($target eq 'tex') {
242: $output =~ s/^([^&]+)\\begin{document}//;
243: $output =~ s/\\end{document}//;
244: $output = '\parbox{\minipagewidth}{ '.$output.' }';
245: #some additional cleanup necessary for LateX (due to limitations of table environment
246: $output =~ s/(\\vskip\s*\d+mm)\s*(\\\\)+/$1/g;
247: }
1.6 www 248: my $parser=HTML::TokeParser->new(\$output);
249: my $token;
1.12 www 250: my $thisdir=$src;
1.6 www 251: my $bodydef=0;
1.7 www 252: my $thisxml=0;
1.12 www 253: my @rlinks=();
1.7 www 254: if ($output=~/\?xml/) {
255: $isxml=1;
256: $thisxml=1;
257: $output=~
258: /((?:\<(?:\?xml|\!DOC|html)[^\>]*(?:\>|\>\]\>)\s*)+)\<body[^\>]*\>/si;
259: $xmlheader=$1;
260: }
1.12 www 261: while ($token=$parser->get_token) {
262: if ($token->[0] eq 'S') {
263: if ($token->[1] eq 'a') {
264: if ($token->[2]->{'href'}) {
265: $rlinks[$#rlinks+1]=
266: $token->[2]->{'href'};
267: }
268: } elsif ($token->[1] eq 'img') {
269: $rlinks[$#rlinks+1]=
270: $token->[2]->{'src'};
271: } elsif ($token->[1] eq 'embed') {
272: $rlinks[$#rlinks+1]=
273: $token->[2]->{'src'};
274: } elsif ($token->[1] eq 'base') {
275: $thisdir=$token->[2]->{'href'};
276: } elsif ($token->[1] eq 'body') {
1.7 www 277: $bodydef=1;
278: $ssibgcolor{$_}=$token->[2]->{'bgcolor'};
279: $ssitext{$_}=$token->[2]->{'text'};
280: $ssilink{$_}=$token->[2]->{'link'};
281: $ssivlink{$_}=$token->[2]->{'vlink'};
282: $ssialink{$_}=$token->[2]->{'alink'};
283: if ($thisxml) {
284: $xmlbody=$token->[4];
285: }
1.12 www 286: } elsif ($token->[1] eq 'meta') {
1.28 albertel 287: if ($token->[4] !~ m:/>$:) {
1.7 www 288: $allmeta.="\n".$token->[4].'</meta>';
1.28 albertel 289: } else {
290: $allmeta.="\n".$token->[4];
291: }
1.12 www 292: } elsif (($token->[1] eq 'script') &&
293: ($bodydef==0)) {
1.7 www 294: $allscript.="\n\n"
295: .$parser->get_text('/script');
1.6 www 296: }
1.12 www 297: }
298: }
1.6 www 299: if ($output=~/\<body[^\>]*\>(.*)/si) {
300: $output=$1;
301: }
302: $output=~s/\<\/body\>.*//si;
1.7 www 303: if ($output=~/\<form/si) {
304: $nforms++;
305: $output=~s/\<form[^\>]*\>//gsi;
306: $output=~s/\<\/form[^\>]*\>//gsi;
1.17 www 307: $output=~
1.18 www 308: s/\<((?:input|select|button|textarea)[^\>]+)name\s*\=\s*[\'\"]*([\w\.\:]+)[\'\"]*([^\>]*)\>/\<$1 name="$prefix$2" $3\>/gsi;
1.7 www 309: }
1.12 www 310: $thisdir=~s/\/[^\/]*$//;
1.30 harris41 311: foreach (@rlinks) {
1.12 www 312: unless (($_=~/^http:\/\//i) ||
1.31 albertel 313: ($_=~/^\//) ||
314: ($_=~/^javascript:/i) ||
315: ($_=~/^mailto:/i) ||
316: ($_=~/^\#/)) {
1.12 www 317: my $newlocation=
318: &Apache::lonnet::hreflocation($thisdir,$_);
319: $output=~s/(\"|\'|\=\s*)$_(\"|\'|\s|\>)/$1$newlocation$2/;
320: }
1.30 harris41 321: }
1.24 www 322: # -------------------------------------------------- Deal with Applet codebases
323: $output=~s/(\<applet[^\>]+)(codebase\=[^\S\>]+)*([^\>]*)\>/$1.($2?$2:' codebase="'.$thisdir.'"').$3.'>'/gei;
1.5 www 324: $ssibody{$_}=$output;
1.3 www 325: # ---------------------------------------------------------------- End SSI cell
326: }
1.30 harris41 327: }
1.4 www 328: }
1.2 www 329: }
1.6 www 330: unless ($contents) {
1.3 www 331: $r->content_type('text/html');
332: $r->send_http_header;
333: $r->print('<html><body>Empty page.</body></html>');
334: } else {
335: # ------------------------------------------------------------------ Build page
1.7 www 336:
337: # ---------------------------------------------------------------- Send headers
1.37 sakharuk 338: unless ($target eq 'tex') {
339: if ($isxml) {
340: $r->content_type('text/xml');
341: $r->send_http_header;
342: $r->print($xmlheader);
343: } else {
344: $r->content_type('text/html');
345: $r->send_http_header;
346: $r->print('<html>');
347: }
1.7 www 348: # ------------------------------------------------------------------------ Head
1.37 sakharuk 349: $r->print("\n<head>\n".$allmeta);
350: $allscript=~
351: s/\/\/ BEGIN LON\-CAPA Internal.+\/\/ END LON\-CAPA Internal\s//gs;
352: if ($allscript) {
353: $r->print("\n<script language='JavaScript'>\n".
354: $allscript."\n</script>\n");
355: }
356: $r->print(&Apache::lonxml::registerurl(1,undef));
357: $r->print("\n</head>\n");
1.7 www 358: # ------------------------------------------------------------------ Start body
1.37 sakharuk 359: if ($isxml) {
360: $r->print($xmlbody);
361: } else {
362: $r->print('<body bgcolor="#FFFFFF" onLoad="'.&Apache::lonxml::loadevents.'" onUnload="'.&Apache::lonxml::unloadevents.'">');
363: }
1.7 www 364: # ------------------------------------------------------------------ Start form
1.37 sakharuk 365: if ($nforms) {
366: $r->print('<form method="post" action="'.
367: $requrl.'">');
1.40 sakharuk 368: }
369: } else {
1.47 sakharuk 370: $r->print('\documentclass{article}
1.40 sakharuk 371: \newcommand{\keephidden}[1]{}
372: \usepackage[dvips]{graphicx}
373: \usepackage{epsfig}
374: \usepackage{calc}
1.42 sakharuk 375: \usepackage{longtable}
1.40 sakharuk 376: \begin{document}');
377: }
1.7 www 378: # ----------------------------------------------------------------- Start table
1.40 sakharuk 379: if ($target eq 'tex') {
1.42 sakharuk 380: $r->print('\begin{longtable}INSERTTHEHEADOFLONGTABLE\endfirsthead\endhead ');
1.43 sakharuk 381: if ($number_of_columns le $lcm) {$number_of_columns=$lcm;};
1.40 sakharuk 382: } else {
1.37 sakharuk 383: $r->print('<table cols="'.$lcm.'" border="0">');
384: }
1.5 www 385: for ($i=0;$i<=$#rows;$i++) {
386: if ($rows[$i]) {
1.37 sakharuk 387: unless ($target eq 'tex') {
388: $r->print("\n<tr>");
389: }
1.4 www 390: my @colcont=split(/\&/,$rows[$i]);
1.6 www 391: my $avespan=$lcm/($#colcont+1);
392: for ($j=0;$j<=$#colcont;$j++) {
393: my $rid=$colcont[$j];
1.23 www 394: my $metainfo='<a href="'.
395: $metalink{$rid}.'" target="LONcatInfo">'.
396: '<img src="/adm/lonMisc/cat_button.gif" border=0>'.
1.34 www 397: '</img></a><a href="/adm/evaluate?postdata='.
1.35 www 398: &Apache::lonnet::escape(&Apache::lonnet::declutter($hash{'src_'.$rid}))
399: .'" target="LONcatInfo">'.
1.33 www 400: '<img src="/adm/lonMisc/eval_button.gif" border=0>'.
401: '</img></a>';
1.27 www 402: if (
403: ($hash{'src_'.$rid}=~/\.(problem|exam|quiz|assess|survey|form)$/) &&
404: (&Apache::lonnet::allowed('mgr',$ENV{'request.course.id'}))) {
405: my ($mapid,$resid)=split(/\./,$rid);
406: my $symb=
407: &Apache::lonnet::declutter($hash{'map_id_'.$mapid}).
408: '___'.$resid.'___'.
409: &Apache::lonnet::declutter($hash{'src_'.$rid});
410: $metainfo.=
1.36 www 411: '<a href="/adm/grades?symb='.&Apache::lonnet::escape($symb).
1.27 www 412: '&command=submission" target="LONcatInfo">'.
413: '<img src="/adm/lonMisc/subm_button.gif" border=0>'.
414: '</img></a>'.
1.36 www 415: '<a href="/adm/grades?symb='.&Apache::lonnet::escape($symb).
1.38 albertel 416: '&command=gradingmenu" target="LONcatInfo">'.
1.27 www 417: '<img src="/adm/lonMisc/pgrd_button.gif" border=0>'.
418: '</img></a>'.
1.36 www 419: '<a href="/adm/parmset?symb='.&Apache::lonnet::escape($symb).
420: '" target="LONcatInfo">'.
1.27 www 421: '<img src="/adm/lonMisc/pprm_button.gif" border=0>'.
422: '</img></a>';
423: }
424: $metainfo.='<br></br>';
1.37 sakharuk 425: unless ($target eq 'tex') {
426: $r->print('<td colspan="'.$avespan.'"');
427: }
1.6 www 428: if ($cellemb{$rid} eq 'ssi') {
1.37 sakharuk 429: unless ($target eq 'tex') {
430: if ($ssibgcolor{$rid}) {
431: $r->print(' bgcolor="'.
432: $ssibgcolor{$rid}.'"');
433: }
434: $r->print('>'.$metainfo.'<font');
435:
436: if ($ssitext{$rid}) {
437: $r->print(' text="'.$ssitext{$rid}.'"');
438: }
439: if ($ssilink{$rid}) {
440: $r->print(' link="'.$ssilink{$rid}.'"');
441: }
442: if ($ssitext{$rid}) {
443: $r->print(' vlink="'.$ssivlink{$rid}.'"');
444: }
445: if ($ssialink{$rid}) {
446: $r->print(' alink="'.$ssialink{$rid}.'"');
447: }
448: $r->print('>');
449: }
450: $r->print($ssibody{$rid});
451: unless ($target eq 'tex') {
452: $r->print('</font>');
1.41 www 453: }
454: if ($ENV{'course.'.
455: $ENV{'request.course.id'}.
456: '.pageseparators'} eq 'yes') {
457: unless($target eq 'tex') {
458: $r->print('<hr />');
459: } else {
460: $r->print('\hline');
461: }
1.37 sakharuk 462: }
463: } elsif ($cellemb{$rid} eq 'img') {
1.14 www 464: $r->print('>'.$metainfo.'<img src="'.
1.7 www 465: $hash{'src_'.$rid}.'"></img>');
1.13 www 466: } elsif ($cellemb{$rid} eq 'emb') {
1.14 www 467: $r->print('>'.$metainfo.'<embed src="'.
1.13 www 468: $hash{'src_'.$rid}.'"></embed>');
469: }
1.37 sakharuk 470: unless ($target eq 'tex') {
471: $r->print('</td>');
1.40 sakharuk 472: } else {
1.43 sakharuk 473: for (my $incol=1;$incol<=$avespan;$incol++) {
474: $r->print(' & ');
475: }
1.37 sakharuk 476: }
1.4 www 477: }
1.37 sakharuk 478: unless ($target eq 'tex') {
479: $r->print('</tr>');
1.40 sakharuk 480: } else {
1.42 sakharuk 481: $r->print('REMOVETHEHEADOFLONGTABLE\\\\');
1.37 sakharuk 482: }
1.5 www 483: }
1.4 www 484: }
1.37 sakharuk 485: unless ($target eq 'tex') {
486: $r->print("\n</table>");
1.40 sakharuk 487: } else {
1.47 sakharuk 488: $r->print('\end{longtable}\strut');
1.37 sakharuk 489: }
1.7 www 490: # ---------------------------------------------------------------- Submit, etc.
491: if ($nforms) {
492: $r->print(
493: '<input name="all_submit" value="Submit All" type="'.
494: (($nforms>1)?'submit':'hidden').'"></input></form>');
495: }
1.40 sakharuk 496: unless ($target eq 'tex') {
497: $r->print('</body>'.&Apache::lonxml::xmlend());
498: } else {
499: $r->print('\end{document}'.$number_of_columns);
500: }
1.3 www 501: # -------------------------------------------------------------------- End page
502: }
1.1 www 503: # ------------------------------------------------------------- End render page
504: } else {
1.3 www 505: $r->content_type('text/html');
506: $r->send_http_header;
1.39 www 507: &Apache::lonsequence::viewmap($r,$requrl);
1.1 www 508: }
509: # ------------------------------------------------------------------ Untie hash
510: unless (untie(%hash)) {
511: &Apache::lonnet::logthis("<font color=blue>WARNING: ".
512: "Could not untie coursemap $fn (browse).</font>");
513: }
514: # -------------------------------------------------------------------- All done
515: return OK;
516: # ----------------------------------------------- Errors, hash could no be tied
517: }
518: }
519: }
1.39 www 520: $r->content_type('text/html');
521: $r->send_http_header;
522: &Apache::lonsequence::viewmap($r,$requrl);
523: return OK;
1.1 www 524: }
525:
526: 1;
527: __END__
528:
1.30 harris41 529: =head1 NAME
530:
531: Apache::lonpage - Page Handler
532:
533: =head1 SYNOPSIS
534:
535: Invoked by /etc/httpd/conf/srm.conf:
536:
537: <LocationMatch "^/res/.*\.page$>
538: SetHandler perl-script
539: PerlHandler Apache::lonpage
540: </LocationMatch>
541:
542: =head1 INTRODUCTION
543:
544: This module renders a .page resource.
545:
546: This is part of the LearningOnline Network with CAPA project
547: described at http://www.lon-capa.org.
548:
549: =head1 HANDLER SUBROUTINE
550:
551: This routine is called by Apache and mod_perl.
552:
553: =over 4
554:
555: =item *
556:
557: set document type for header only
558:
559: =item *
560:
561: tie db file
562:
563: =item *
564:
565: render page
566:
567: =item *
568:
569: add to symb list
570:
571: =item *
572:
573: page parms
574:
575: =item *
576:
577: Get SSI output, post parameters
578:
579: =item *
580:
581: SSI cell rendering
582:
583: =item *
584:
585: Deal with Applet codebases
586:
587: =item *
588:
589: Build page
590:
591: =item *
592:
593: send headers
594:
595: =item *
596:
597: start body
598:
599: =item *
600:
601: start form
602:
603: =item *
604:
605: start table
606:
607: =item *
608:
609: submit element, etc, render page, untie hash
610:
611: =back
612:
613: =head1 OTHER SUBROUTINES
614:
615: =over 4
616:
617: =item *
618:
619: euclid() : Euclid's method for determining the greatest common denominator.
620:
621: =item *
622:
623: tracetable() : Build page table.
1.1 www 624:
1.30 harris41 625: =back
1.1 www 626:
1.30 harris41 627: =cut
1.1 www 628:
629:
630:
631:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>