Valid XHTML     Valid CSS2    

Listing du fichier webmatadj.php

 

00001     <?php
00002     
# # (gH) -_- webmatadj.php ; TimeStamp (unix) : 08 Août 2014 vers 13:36
00003     
error_reporting(E_ALL | E_NOTICE ) ;
00004     include(
"std.php") ;
00005     
$titre
= "Graphe&nbsp;: matrice d'ajacence et visualisation" ;
00006     
debutPage
($titre,"strict") ;
00007     
debutSection() ;
00008     
h1
($titre) ;
00009     
00010     
p
("texte") ;
00011      echo
"Vous devez fournir une liste d'arcs au format " ;
00012      echo
b
(" origine [ destination1 [ destination2 destination3... ]]")."&nbsp;;" ;
00013      echo
" les crochets indiquent que les valeurs ne sont pas obligatoires." ;
00014     
finp() ;
00015     
00016     
p
("texte") ;
00017      echo
"Utilisez les boutons d'exemple pour voir des listes d'arcs pr&ecirc;tes à l'emploi." ;
00018     
finp() ;
00019     
00020     
$envoiData
= "&nbsp;envoyer les données&nbsp;" ;
00021     
$xmp1
= "&nbsp;exemple&nbsp;1&nbsp;" ;
00022     
$xmp2
= "&nbsp;exemple&nbsp;2&nbsp;" ;
00023     
$xmp3
= "&nbsp;exemple&nbsp;3&nbsp;" ;
00024     
$efface
= "&nbsp;effacer&nbsp;" ;
00025     
00026     
form
("webmatadj_exec.php","post") ;
00027     
00028     
p() ;
00029     
textarea
("edges","cadre",15,80) ;
00030     
$data
= "" ;
00031      if (isset(
$_GET
["data"])) { $data = $_GET["data"] ;
00032      if (
$data
=="1") {
00033      echo
" html head body \n" ;
00034      echo
" head title \n" ;
00035      echo
" body \n" ;
00036      echo
" title \n" ;
00037      } ;
# fin si
00038     
if (
$data=="2") {
00039      echo
" 0 1 4 \n" ;
00040      echo
" 1 2 6 \n" ;
00041      echo
" 2 \n" ;
00042      echo
" 3 2 6 \n" ;
00043      echo
" 4 \n" ;
00044      echo
" 5 0 2 \n" ;
00045      echo
" 6 \n" ;
00046      echo
" 7 6 \n" ;
00047      } ;
# fin si
00048     
if (
$data=="3") {
00049      echo
" A B \n" ;
00050      echo
" B C \n" ;
00051      echo
" C A \n" ;
00052      } ;
# fin si
00053     
} ; # fin si
00054     
fintextarea() ;
00055     
br() ;
00056     
nbsp
(20) ;
00057     
input_submit
($envoiData,"bouton_fin vert_pastel") ;
00058     
nbsp
(20) ;
00059      echo
href
("webmatadj.php?data=0",$efface,"bouton_fin orange_pastel nou") ;
00060     
finp() ;
00061     
00062     
p
("texte") ;
00063      echo
"Voici quelques exemples de démonstration : ";
00064     
finp() ;
00065     
00066     
p() ;
00067     
nbsp
(10) ; echo href("webmatadj.php?data=1",$xmp1, "bouton_fin vert_pastel nou") ;
00068     
nbsp
(10) ; echo href("webmatadj.php?data=2",$xmp2, "bouton_fin vert_pastel nou") ;
00069     
nbsp
(10) ; echo href("webmatadj.php?data=3",$xmp3, "bouton_fin vert_pastel nou") ;
00070     
finp() ;
00071     
00072     
finform() ;
00073     
00074     
p() ;
00075     echo
href
("montresource.php?nomfic=webmatadj.php","Code-source PHP de cette page","orange_stim nou")."." ;
00076     
finp() ;
00077     
00078     
finSection() ;
00079     
finPage() ;
00080     
?>

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)