Valid XHTML    Valid CSS2    

Listing du fichier drapeaux.php

 

00001     <?php
00002     
# (gH) -_- drapeaux.php ; TimeStamp (unix) : 12 Février 2010 vers 17:56
00003     
include_once("../std.php") ;
00004     
debutPage
("Drapeaux en Ajax","strict","taenbas","drapeaux.js") ;
00005     
blockquote() ;
00006     
debutSection
("90%") ;
00007     
###############################################
00008     
00009     
$modeDbg
= 0 ; # 0 en normal, 1 pour debug
00010     
00011     ###############################################
00012     
00013     
if (
$modeDbg==1) {
00014     
div
("haut") ;
00015     } ;
# fin de si
00016     
00017     ## --------------------------------------------
00018     
00019     
h1
("Fabriquez votre drapeau méthode 1") ;
00020     
00021     
form
("non.php","get") ;
00022     
00023     
table
(0,20) ; tr() ;
00024     
00025     
td
("L","valigntop") ;
00026     
table
(0,30) ;
00027     
tr() ;
00028     
td
("C","bgcolor_black_encadre","","onclick='ajouteCouleur(\"black\") ; return false'") ; nbsp(5) ; fintd() ;
00029     
td
("C","bgcolor_rouge_encadre","","onclick='ajouteCouleur(\"rouge\") ; return false'") ; nbsp(5) ; fintd() ;
00030     
td
("C","bgcolor_jaune_encadre","","onclick='ajouteCouleur(\"jaune\") ; return false'") ; nbsp(5) ; fintd() ;
00031     
td
("C","bgcolor_blanc_encadre","","onclick='ajouteCouleur(\"blanc\") ; return false'") ; nbsp(5) ; fintd() ;
00032     
fintr() ;
00033     
tr() ;
00034     
td
("C","bgcolor_bleu_encadre","","onclick='ajouteCouleur(\"bleu\") ; return false'") ; nbsp(5) ; fintd() ;
00035     
td
("C","bgcolor_vert_encadre","","onclick='ajouteCouleur(\"vert\") ; return false'") ; nbsp(5) ; fintd() ;
00036     
td
("C","bgcolor_gris_encadre","","onclick='ajouteCouleur(\"gris\") ; return false'") ; nbsp(5) ; fintd() ;
00037     
td
("C","bgcolor_orange_encadre","","onclick='ajouteCouleur(\"orange\") ; return false'") ; nbsp(5) ; fintd() ;
00038     
fintr() ;
00039     
fintable() ;
00040     
fintd() ;
00041     
00042     
td
("L","valigntop") ;
00043     
table() ;
00044     
tr
() ; td() ; nbsp() ; fintd() ; td() ; echo "" ; fintd() ; fintr() ;
00045     
tr
() ; td() ; nbsp() ; fintd() ; td() ; echo "" ; fintd() ; fintr() ;
00046     
tr
() ; td() ; input_radio("pp","1","gauche","","checked","p1") ; fintd() ; td() ; echo "(1)" ; fintd() ; fintr() ;
00047     
tr
() ; td() ; input_radio("pp","2","centre","","","p2") ; fintd() ; td() ; echo "(2)" ; fintd() ; fintr() ;
00048     
tr
() ; td() ; input_radio("pp","3","droite","","","p3") ; fintd() ; td() ; echo "(3)" ; fintd() ; fintr() ;
00049     
fintable() ;
00050     
fintd() ;
00051     
00052     
td
("L","valigntop") ;
00053     
table
(0,50) ;
00054     
tr
("","id='tr1'") ;
00055     
td
("C","bgcolor_blanc_encadre","","id='dp1'") ; echo 1 ; fintd() ;
00056     
# fintr() ; tr("","tr2") ;
00057     
td
("C","bgcolor_blanc_encadre","","id='dp2'") ; echo 2 ; fintd() ;
00058     
# fintr() ; tr("","tr3") ;
00059     
td
("C","bgcolor_blanc_encadre","","id='dp3'") ; echo 3 ; fintd() ;
00060     
fintr() ;
00061     
tr() ;
00062     
td
("C","",3) ;
00063     
# echo href("non.php","transposer","bouton_fin nou vert_pastel","bdt","onclick='transposerDrapeau() ; return false'") ;
00064     
fintd() ;
00065     
fintr() ;
00066     
fintable() ;
00067     
fintd() ;
00068     
00069     
fintr() ;
00070     
fintable() ;
00071     
00072     
finform() ;
00073     
00074     
h3
("Consulter ".href("drapeaux2.php")." pour une solution en glisser-déposer.") ;
00075     
00076     
###############################################
00077     ## --------------------------------------------
00078     
00079     
if (
$modeDbg==1) {
00080     
findiv() ;
00081     } ;
# fin de si
00082     
00083     ###############################################
00084     
00085     
if (
$modeDbg==1) {
00086     
div
("basfixe") ;
00087     } ;
# fin de si
00088     
00089     ## --------------------------------------------
00090     
00091     
blockquote() ;
00092     
p() ;
00093     
textarea
("dbg","cadre",10,100,"dbgjs") ;
00094      echo
"(vide pour l'instant)\n" ;
00095     
fintextarea() ;
00096     
finp() ;
00097     
finblockquote() ;
00098     
00099     
## --------------------------------------------
00100     
00101     
if (
$modeDbg==1) {
00102     
findiv() ;
00103     } ;
# fin de si
00104     
00105     ###############################################
00106     
finSection() ;
00107     
finblockquote() ;
00108     
finPage() ;

Pour ne pas voir les numéros de ligne, ajoutez &nl=non à la suite du nom du fichier.

 

 

retour gH    Retour à la page principale de   (gH)