Présentation
Documentation
L'équipe
Sérialisation
 
Programmes
Objets
Libs Utilitaires
Libs Internes
   
 
Editeur
Syntaxes
Windows
Versions
   

SCR/AL1 - TOME III. Les librairies utilitaires

20. Le groupe s_html

20.1 HtmlInit (file s_html.c:35)

Syntax

int HtmlInit(html, title)
FILE *html;
char *title;

Description

Fonction d'initialisation d'une page HTML. Génére les sections <HEAD> et <TITLE>.

Exemple

    MyHtmlForm()
{
FILE *html = stdout;
U_ch **mtype = SCR_vtom("Type1,Type2,Type3", ',');
U_ch **mlang = SCR_vtom("Français,Néerlandais,Anglais", ',');

HtmlInit(html, "Automatic form generation");
fprintf(html, "<Body>\n");
HtmlFormInit(html, "/htbin/dw_update");
HtmlFormText(html, "crdate", 10, "10/06/96");
HtmlFormText(html, "docname", 64, "c:/usr/doc/test.dwt");
HtmlFormMenu(html, "ftype", mtype, 2);
HtmlFormRadio(html,"lang", mlang, 2);
HtmlFormTextArea(html, "abstract",
"This is a test\nThis is a test\n", 3, 64);
HtmlFormEnd(html, "OK", "Clear");
fprintf(html, "</Body>\n");
HtmlEnd(html, "Last updated 09/05/06");
SCR_free_tbl(mtype);
SCR_free_tbl(mlang);
}

Voir également

Html*()

20.1.1 File s_html.c

int HtmlEnd(html, footer)
int HtmlFormButton(html, name, text)
int HtmlFormEnd(html, submit, reset)
int HtmlFormHidden(html, name, text)
int HtmlFormInit(html, action)
int HtmlFormMenu(html, name, options, choice)
int HtmlFormPassword(html, name)
int HtmlFormRadio(html, name, options, choice)
int HtmlFormText(html, name, lg, value)
int HtmlFormTextArea(html, name, value, nl, nc)
int HtmlInit(html, title)

Copyright © 1998-2015 Jean-Marc Paul and Bernard PAUL - Envoyez vos remarques ou commentaires à bernard@xon.be