diff options
Diffstat (limited to 'htmlform.txi')
-rw-r--r-- | htmlform.txi | 116 |
1 files changed, 95 insertions, 21 deletions
diff --git a/htmlform.txi b/htmlform.txi index 47dceaf..c16818f 100644 --- a/htmlform.txi +++ b/htmlform.txi @@ -10,26 +10,117 @@ to the port @var{*html:output-port*}. @var{*html:output-port*} is initially the -@defun html:atval txt +@defun make-atval txt Returns a string with character substitutions appropriate to send @var{txt} as an @dfn{attribute-value}. @cindex attribute-value @end defun -@defun html:plain txt +@defun make-plain txt Returns a string with character substitutions appropriate to send @var{txt} as an @dfn{plain-text}. @cindex plain-text @end defun -@defun html:comment line @dots{} -Writes (using @code{html:printf}) the strings @var{lines} as HTML +@defun html:start-page title backlink @dots{} +Outputs headers for an HTML page named @var{title}. +@end defun + + +@defun html:end-page +Outputs HTML codes to end a page. +@end defun + + +@defun html:pre line1 line @dots{} +Writes (using @code{html:printf}) the strings @var{line1}, @var{lines} as +@dfn{PRE}formmated plain text (rendered in fixed-width font). +@cindex PRE +Newlines are inserted between @var{line1}, @var{lines}. HTML tags (@samp{<tag>}) +within @var{lines} will be visible verbatim. +@end defun + + +@defun html:comment line1 line @dots{} +Writes (using @code{html:printf}) the strings @var{line1} as HTML comments. @end defun +@section HTML Tables + +@defun html:start-table caption + +@end defun + + +@defun html:end-table + +@end defun + + +@defun html:heading columns +Outputs a heading row for the currently-started table. +@end defun + + +@defun html:href-heading columns urls +Outputs a heading row with column-names @var{columns} linked to URLs @var{urls}. +@end defun + + +@defun make-row-converter k foreigns + + +The positive integer @var{k} is the primary-key-limit (number of +primary-keys) of the table. @var{foreigns} is a list of the filenames of +foreign-key field pages and #f for non foreign-key fields. + +@code{make-row-converter} returns a procedure taking a row for its single argument. This +returned procedure prints the table row to @var{*html:output-port*}. +@end defun + + +@defun table-name->filename table-name + +Returns the symbol @var{table-name} converted to a filename. +@end defun + + + +@defun table->html caption db table-name match-key1 @dots{} + +Writes HTML for @var{db} table @var{table-name} to @var{*html:output-port*}. + +The optional @var{match-key1} @dots{} arguments restrict actions to a subset of +the table. @xref{Table Operations, match-key}. +@end defun + + +@defun table->page db table-name index-filename + +Writes a complete HTML page to @var{*html:output-port*}. The string +@var{index-filename} names the page which refers to this one. +@end defun + + +@defun catalog->html db caption + +Writes HTML for the catalog table of @var{db} to @var{*html:output-port*}. +@end defun + + +@defun catalog->page db caption + +Writes a complete HTML page for the catalog of @var{db} to +@var{*html:output-port*}. +@end defun + + +@section HTML Forms + @@ -52,16 +143,6 @@ appears on the button which submits the form. @end defun -@defun html:start-page title -Outputs headers for an HTML page named @var{title}. -@end defun - - -@defun html:end-page -Outputs HTML codes to end a page. -@end defun - - @defun command->html rdb command-table command method action The symbol @var{command-table} names a command table in the @var{rdb} relational @@ -129,15 +210,8 @@ parameters and invokes the @var{rdb} command named by the parameter -@defvar http:crlf -@end defvar - -@defun http:send-status-line status-code reason -@defunx http:send-header alist -@end defun - |