fml 8 tutorial
Prev | Chapter 38. Internal Of CGI Process | Next

# Screen Of CGI And The Method

fml8 CGI script creates the screen:

              header
    space     menu        space
    bar 1     main        bar 2
    space     menu        space
              footer

The bar 1 and 2 are called as navigation bar.

html_start() generates header part(DOCTYPE ... BODY of HTML, NOT HTTP HEADER). html_end() generates footer part.

Instead, BODY content generates 3 x 3 tables by using methods drived by run_cgi().

9 sub methods called by run_cgi() generetes the following 9 pieces on the screen.

    nw   north  ne
    west center east
    sw   south  se

## Screen Of The Current CGI

CGI screen generates 3 x 3 table structure. The following methods generates the corresponding part of the screen.

    run_cgi_main
    			run_cgi_title
    run_cgi_navigator	run_cgi_menu	run_cgi_command_help
    run_cgi_options

These methods use TABLE to create 3 x 3 matrix. These methods are defined in hash table. run_cgi() executes them sequentially.

run_cgi_main() print nothing if nothing to do. In almost cases, print just "OK ..." message. If needed, it shows error messages. run_cgi_main() runs before all other methonds to print out the latest information.

run_cgi_main() is adapter layer defined at FML::CGI::Menu::Admin. Each command is executed via this layer.

In a few cases such as showing log, listing up addresses, run_cgi_menu() print out the data.

Prev | Home | Next
Internal Of CGI Process | Up | Screen And Trampolin Mechanism

fml 8.0 (fml-devel) project homepage is www.fml.org/software/fml8/.
fml 4.0 project homepage is www.fml.org/software/fml4/.
about one floppy bsd routers, see www.bsdrouter.org/.
other free softwares are found at www.fml.org/software/.

author's homepage is www.fml.org/home/fukachan/.
Also, visit nuinui's world :) at www.nuinui.net.

For questions about FML, e-mail <fml-bugs@fml.org>.