Les 156 fonctions de std.php (version 3.43)
Choisissez la fonction :
abbr afficheRubrique ahref aname ancre anonymousConnect b blockquote bouton br center cmt code comptageSqlSimple datatable dd debutPage debutPageGeneral debutPageMinimal debutPageMinimale debutPageRedir debutSection debutdd debutdl debutdt debutli debutobjet div dt em entetesTableau fieldset finPage finPageGeneral finPageMinimal finPageMinimale finSection finabbr finblockquote finbouton fincenter fincode findatatable findd findiv findl findt finfieldset finform finli finnoscript finobjet finol finp finpre finselect finspan finsvg fintable fintbody fintd fintdk fintextarea finth finthead fintr finul fonctionSqlSimple form gbleu gbleuf ghBleu ghOrange ghRouge ghVert grouge gvert gvertf h h1 h2 h3 h4 h5 hh1 hh2 hh3 hr href img imgh input_checkbox input_checkboxOnClick input_file input_hidden input_option input_password input_radio input_reset input_select input_select_fin input_submit input_text input_textNoId js jsf kbd label legende li listeSelectFromChampMySql listeSelectFromTxt menu nbsp noscript objet ol p pct pj pre pre_fichier ptexte pvide rect rubriqueParNumero s_gbleu s_nbsp s_span sbr sdl setNumcrub showurl showurlbr showurlcmt showurlcmtbr snbsp span sub sup svg table tableauDar tbody td tdk tdvide textarea textarea_fichier th thead titre tr ul wikien wikifr
Exemples d'utilisation de la fonction debutPage debutPage("COURS \"TECHNOLOGIE INTERNET\"","strict","a.css b.css","d.js e.js") ; debutPage("EXERCICES DU COURS \"TECHNOLOGIE INTERNET\"","strict") ; debutPage("serveurs Deneb et Pegase") ; debutPage("Solutions des exercices") ; debutPage($tg,"strict","","voirpage.js") ; debutPage("Table des matières cliquables en Php objet") ; debutPage("L3SEN VAMAX ","strict","std","sen_valmax2.js") ; debutPage("L3SEN Début et moitié","strict","std","sen_dm.js") ; debutPage("COURS INFORMATIQUE WEB","strict") ; debutPage("RDV médecin","strict","skel.css") ; debutPage("compter en Titanic ") ; debutPage("Statistiques pour l'Ecole Doctorale","strict","../std.css") ; debutPage($tit,"strict","","statghfns.js") ; debutPage($tit,"strict") ; Corps de la fonction debutPage function debutPage($titre="",$grm="strict",$styl="",$js="",$favicon="",$mathjax="off",$xml="off",$enc="iso") { ########################################################### if ($enc=="iso") { $encod = "ISO-8859-1" ; } else { $encod = "utf" ; } ; if ($grm=="svg") { header("Content-type: image/svg+xml") ; } ; if ($xml=="on") { echo "<"."?xml version=\"1.0\" encoding=\"$encod\" ?".">\n" ; } ; #if ($grm!="html5") { echo "<"."?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?".">\n" ; } ; if (($grm=="strict") and ($enc=="iso")) { header("Content-Type: text/html;charset=$encod") ; } ; if ($grm=="std") { echo "<!DOCTYPE html \n" ; echo " PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \n" ; echo " \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\"> \n" ; echo "<html xmlns=\"http://www.w3.org/1999/xhtml\" lang=\"fr\" xml:lang=\"fr\"> \n" ; } elseif ($grm=="svg") { echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">'."\n" ; #echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN" "http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd">'."\n" ; echo '<html xmlns="http://www.w3.org/1999/xhtml" xmlns:svg="http://www.w3.org/2000/svg">'."\n" ; } elseif ($grm=="html5") { echo "<!doctype html>\n" ; echo "<html>\n" ; } else { echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">'."\n" ; echo "<html xmlns=\"http://www.w3.org/1999/xhtml\" lang=\"fr\" xml:lang=\"fr\">\n" ; } ; # fin de si echo "<head> \n" ; echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=$encod\" />\n" ; # chargement éventuel de mathajx if ($mathjax=="on") { echo "<script type='text/x-mathjax-config'>\n" ; #echo " MathJax.Hub.Config({ tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']]} }) ; \n" ; echo " MathJax.Hub.Config({ tex2jax: {inlineMath: [['$','$']] } }) ; \n" ; echo "</script>\n" ; echo '<script type="text/javascript" src="http://cdn.mathjax.org/mathjax/1.1-latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML-full"></script>'."\n" ; } ; # fin si # chargement d'un ou plusieurs fichiers javascript if ($js!="") { $tjs = preg_split("/\s+/",trim($js)) ; foreach($tjs as $fjs) { echo "<script type='text/javascript' src='$fjs'></script>\n" ; } ; # fin pour } ; # fin de si if ($favicon!="") { echo "<link rel='icon' type='image/png' href='$favicon' />\n" ; } ; # fin de si # chargement du style standard echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"std.css\" title=\"gh\" />\n" ; # chargement de style(s) personnalisé(s) if ($styl!="") { $tstyl = preg_split("/\s+/",trim($styl)) ; foreach ($tstyl as $fstyl) { echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"$fstyl\" title=\"gh\" /> \n" ; } ; # fin pour } ; # fin de si echo "<title>\n" ; echo " $titre" ; echo "</title>\n" ; echo "</head>\n" ; #if ($grm=="std") { echo "<body class=\"beige_jpg\">\n" ; #} ; # fin de si echo "<blockquote>\n" ; echo "<p> </p>\n" ; if ($grm=="std") { echo "<p align=\"right\">\n" ; } else { echo "<p class='align_right'>\n" ; } ; # fin de si echo "<a href=\"http://validator.w3.org/check?uri=".$_SERVER['SERVER_NAME'].$_SERVER['PHP_SELF']."\">\n" ; echo "<img src=\"valid.png\" height=\"31\" width=\"88\" alt=\"Valid XHTML\" />\n" ; echo "</a>\n" ; echo " " ; $std = "http://forge.info.univ-angers.fr/~gh/std.css" ; echo "<a href='http://jigsaw.w3.org/css-validator/validator?uri=".urlencode($std)."'>\n" ; echo "<img src=\"css.gif\" height=\"31\" width=\"88\" alt=\"Valid CSS2\" />\n" ; echo "</a>\n" ; echo " " ; echo "</p>\n" ; } # fin de fonction debutPage Vous pouvez cliquer ici pour revenir à la page de départ. Largeur d'affichage du code : forcer la largeur code-source de la page archive du code-source de std.php
debutPage("COURS \"TECHNOLOGIE INTERNET\"","strict","a.css b.css","d.js e.js") ; debutPage("EXERCICES DU COURS \"TECHNOLOGIE INTERNET\"","strict") ; debutPage("serveurs Deneb et Pegase") ; debutPage("Solutions des exercices") ; debutPage($tg,"strict","","voirpage.js") ; debutPage("Table des matières cliquables en Php objet") ; debutPage("L3SEN VAMAX ","strict","std","sen_valmax2.js") ; debutPage("L3SEN Début et moitié","strict","std","sen_dm.js") ; debutPage("COURS INFORMATIQUE WEB","strict") ; debutPage("RDV médecin","strict","skel.css") ; debutPage("compter en Titanic ") ; debutPage("Statistiques pour l'Ecole Doctorale","strict","../std.css") ; debutPage($tit,"strict","","statghfns.js") ; debutPage($tit,"strict") ;
function debutPage($titre="",$grm="strict",$styl="",$js="",$favicon="",$mathjax="off",$xml="off",$enc="iso") { ########################################################### if ($enc=="iso") { $encod = "ISO-8859-1" ; } else { $encod = "utf" ; } ; if ($grm=="svg") { header("Content-type: image/svg+xml") ; } ; if ($xml=="on") { echo "<"."?xml version=\"1.0\" encoding=\"$encod\" ?".">\n" ; } ; #if ($grm!="html5") { echo "<"."?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?".">\n" ; } ; if (($grm=="strict") and ($enc=="iso")) { header("Content-Type: text/html;charset=$encod") ; } ; if ($grm=="std") { echo "<!DOCTYPE html \n" ; echo " PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \n" ; echo " \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\"> \n" ; echo "<html xmlns=\"http://www.w3.org/1999/xhtml\" lang=\"fr\" xml:lang=\"fr\"> \n" ; } elseif ($grm=="svg") { echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">'."\n" ; #echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN" "http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd">'."\n" ; echo '<html xmlns="http://www.w3.org/1999/xhtml" xmlns:svg="http://www.w3.org/2000/svg">'."\n" ; } elseif ($grm=="html5") { echo "<!doctype html>\n" ; echo "<html>\n" ; } else { echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">'."\n" ; echo "<html xmlns=\"http://www.w3.org/1999/xhtml\" lang=\"fr\" xml:lang=\"fr\">\n" ; } ; # fin de si echo "<head> \n" ; echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=$encod\" />\n" ; # chargement éventuel de mathajx if ($mathjax=="on") { echo "<script type='text/x-mathjax-config'>\n" ; #echo " MathJax.Hub.Config({ tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']]} }) ; \n" ; echo " MathJax.Hub.Config({ tex2jax: {inlineMath: [['$','$']] } }) ; \n" ; echo "</script>\n" ; echo '<script type="text/javascript" src="http://cdn.mathjax.org/mathjax/1.1-latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML-full"></script>'."\n" ; } ; # fin si # chargement d'un ou plusieurs fichiers javascript if ($js!="") { $tjs = preg_split("/\s+/",trim($js)) ; foreach($tjs as $fjs) { echo "<script type='text/javascript' src='$fjs'></script>\n" ; } ; # fin pour } ; # fin de si if ($favicon!="") { echo "<link rel='icon' type='image/png' href='$favicon' />\n" ; } ; # fin de si # chargement du style standard echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"std.css\" title=\"gh\" />\n" ; # chargement de style(s) personnalisé(s) if ($styl!="") { $tstyl = preg_split("/\s+/",trim($styl)) ; foreach ($tstyl as $fstyl) { echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"$fstyl\" title=\"gh\" /> \n" ; } ; # fin pour } ; # fin de si echo "<title>\n" ; echo " $titre" ; echo "</title>\n" ; echo "</head>\n" ; #if ($grm=="std") { echo "<body class=\"beige_jpg\">\n" ; #} ; # fin de si echo "<blockquote>\n" ; echo "<p> </p>\n" ; if ($grm=="std") { echo "<p align=\"right\">\n" ; } else { echo "<p class='align_right'>\n" ; } ; # fin de si echo "<a href=\"http://validator.w3.org/check?uri=".$_SERVER['SERVER_NAME'].$_SERVER['PHP_SELF']."\">\n" ; echo "<img src=\"valid.png\" height=\"31\" width=\"88\" alt=\"Valid XHTML\" />\n" ; echo "</a>\n" ; echo " " ; $std = "http://forge.info.univ-angers.fr/~gh/std.css" ; echo "<a href='http://jigsaw.w3.org/css-validator/validator?uri=".urlencode($std)."'>\n" ; echo "<img src=\"css.gif\" height=\"31\" width=\"88\" alt=\"Valid CSS2\" />\n" ; echo "</a>\n" ; echo " " ; echo "</p>\n" ; } # fin de fonction debutPage
Vous pouvez cliquer ici pour revenir à la page de départ.
Largeur d'affichage du code : forcer la largeur
code-source de la page archive du code-source de std.php
® (gH) Gilles HUNAULT 2007