Visualisation du fichier func_fiche_portrait.php

<?php
function startPortrait ($parser$name$attrs){
    switch (
$name) {
    case 
"PORTRAIT":
        
// Un nouveau Portrait, il faut passer qqs lignes et créer toute la table
        // Il faut vérifier si ce portrait fait bien parti de la liste demandée (avec les prénoms)
        //----------------------------------------------------------------------------------------
        
echo "\n <tr>\n\t\t<td>\n\t\t\t<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"500\" align=\"center\">";
        echo 
"\n\t\t\t <tr>";
        echo 
"\n\t\t\t\t <td> \n\t\t\t\t\t <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"275\">";
        echo 
"\n\t\t\t\t\t <tr>";        
        break;
    case 
"TITRE":
        echo 
"\t\t\t\t\t\t <td width=\"8\"><img src=\"img/hg_gris.jpg\" width=\"8\" height=\"15\" alt=\"\"/></td>";
        echo 
"\n\t\t\t\t\t\t <td width=\"250\" class=\"bgtiny\">";
        break;
    case 
"PHOTO":
        
// La photo de ce raid
        //--------------------
        
echo "\t\t\t\t\t\t <td><img src=\"img/gauche_gris.jpg\" width=\"5\" height=\"150\"/></td>";
        echo 
"\n\t\t\t\t\t\t <td width=\"150\" align=\"center\"><img src=\"";
        break;
    case 
"NOM":
        echo 
"\t\t\t\t\t\t\t <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"385\">";
        echo 
"\n\t\t\t\t\t\t\t <tr>";
        echo 
"\n\t\t\t\t\t\t\t\t <td align=\"left\"> <b> Nom : </b>";
        break;
    case 
"PRENOM":
        echo 
"\t\t\t\t\t\t\t <tr>";
        echo 
"\n\t\t\t\t\t\t\t\t<td> <b> Prénom</b> : ";
        break;
    case 
"PSEUDO":
        echo 
"\t\t\t\t\t\t\t <tr>";
        echo 
"\n\t\t\t\t\t\t\t\t<td> <b> Pseudo</b> : ";
        break;
    case 
"NE_APPRO":
        echo 
"\t\t\t\t\t\t\t <tr>";
        echo 
"\n\t\t\t\t\t\t\t\t<td>  <b> Né le</b> :";
        break;
    case 
"DISCIPLINE":
        echo 
"\t\t\t\t\t\t\t <tr>";
        echo 
"\n\t\t\t\t\t\t\t\t<td> <b> Discipline</b> :";
        break;
    case 
"RAIDS_EFFECTUES":
        echo 
"\t\t\t\t\t\t\t <tr valign=\"top\">";
        echo 
"\n\t\t\t\t\t\t\t\t<td> <b> Raids effectués</b> :";
        break;
    case 
"RAID":
        echo 
"<a href=\"".array_shift($attrs)."\">";
        break;
    case 
"DESCRIPT":
        
// Le dernier élément de ce tableau
        //---------------------------------
        
echo "\t\t\t\t\t <tr valign=\"top\">";
        echo 
"\n\t\t\t\t\t\t <td><img src=\"img/gauche_gris.jpg\" width=\"5\" height=\"60\"/></td>";
        echo 
"\n\t\t\t\t\t\t <td colspan=\"2\">";
        break;
    case 
"DOCUMENT":
        
// Le dernier élément de ce tableau
        //---------------------------------
        
$nom array_shift($attrs);
        echo 
"\t\t\t\t\t <tr>";
        echo 
"\n\t\t\t\t\t\t <td width=\"8\"><img src=\"img/bg_gris.jpg\" width=\"11\" height=\"15\"/></td>";
        echo 
"\n\t\t\t\t\t\t <td align=\"center\" class=\"bgtiny\"><a href=\"small_word.php?nom=".$nom."\" onclick=\"return popup(this.href, 'popup', 700, 750, 'yes');\"><b>Son petit mot</b></a>";
        break;
    }
}

function 
endPortrait ($parser$name){
    switch (
$name) {
    case 
"PORTRAIT":
        echo 
"\t\t\t </table>";
        echo 
"\n\t\t </td>";
        echo 
"\n\t </tr>";
        break;
    case 
"TITRE":
        
// fin du cadre droit du titre
        
echo "</td>";
        echo 
"\n\t\t\t\t\t\t <td align=\"left\"><img src=\"img/dh_gris.jpg\" width=\"7\" height=\"15\" alt=\"\"/></td>";
        echo 
"\n\t\t\t\t\t </tr>";
        echo 
"\n\t\t\t\t\t </table>";        
        
// La ligne du haut de la fiche
        
echo "\n\t\t\t\t </td>\n\t\t\t</tr>";
        echo 
"\n\t\t\t <tr>\n\t\t\t\t <td valign=\"top\"><img width=\"565\" height=\"1\" src=\"img/haut_gris.gif\"/></td>\n\t\t\t</tr>";
        echo 
"\n\t\t\t <tr> \n\t\t\t\t <td>";
        echo 
"\n\t\t\t\t\t <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"450\">";
        echo 
"\n\t\t\t\t\t <tr valign=\"center\">";
        break;
    case 
"PHOTO":
        echo 
"\"></td>\n\t\t\t\t\t\t<td>";
        break;
    case 
"NOM":
        echo 
"</td>";
        echo 
"\n\t\t\t\t\t\t\t\t<td align=\"right\"><img width=\"1\" height=\"20\" src=\"img/droit_gris.gif\"></td>";
        echo 
"\n\t\t\t\t\t\t\t</tr>";
        break;
    case 
"PRENOM":
        echo 
"</td>";
        echo 
"\n\t\t\t\t\t\t\t\t <td align=\"right\"><img width=\"1\" height=\"20\" src=\"img/droit_gris.gif\"/></td>";
        echo 
"\n\t\t\t\t\t\t\t</tr>";
        break;
    case 
"PSEUDO":
        echo 
"</td>";
        echo 
"\n\t\t\t\t\t\t\t\t <td align=\"right\"><img width=\"1\" height=\"20\" src=\"img/droit_gris.gif\"/></td>";
        echo 
"\n\t\t\t\t\t\t\t</tr>";
        break;
    case 
"NE_APPRO":
        echo 
"</td>";
        echo 
"\n\t\t\t\t\t\t\t\t<td align=\"right\"><img width=\"1\" height=\"20\" src=\"img/droit_gris.gif\"/></td>";
        echo 
"\n\t\t\t\t\t\t\t</tr>";
        break;
    case 
"DISCIPLINE":
        echo 
"</td>";
        echo 
"\n\t\t\t\t\t\t\t\t<td align=\"right\"><img width=\"1\" height=\"20\" src=\"img/droit_gris.gif\"/></td>";
        echo 
"\n\t\t\t\t\t\t\t</tr>";        
        break;
    case 
"RAIDS_EFFECTUES":
        echo 
"</td>";
        echo 
"\n\t\t\t\t\t\t\t\t <td align=\"right\"><img width=\"1\" height=\"50\" src=\"img/droit_gris.gif\"/></td>";
        echo 
"\n\t\t\t\t\t\t\t </tr>";
        echo 
"\n\t\t\t\t\t\t\t </table>";
        echo 
"\n\t\t\t\t\t\t </td>";
        echo 
"\n\t\t\t\t\t </tr>";
        echo 
"\n\t\t\t\t\t <tr>";
        echo 
"\n\t\t\t\t\t\t <td><img src=\"img/gauche_gris.jpg\" width=\"5\" height=\"4\"/></td>";
        echo 
"\n\t\t\t\t\t\t <td colspan=\"2\"><img width=\"549\" height=\"4\" src=\"img/bas_gris.gif\"/></td>";
        echo 
"\n\t\t\t\t\t\t <td align=\"left\"><img src=\"img/droit_gris.gif\" width=\"1\" height=\"4\"/></td>";
        echo 
"\n\t\t\t\t\t </tr>";
        break;
    case 
"RAID":
        echo 
"</a>, ";
        break;
    case 
"DESCRIPT":
        echo 
"</td>";
        echo 
"\n\t\t\t\t\t\t <td align=\"right\"><img src=\"img/droit_gris.gif\" width=\"1\" height=\"60\"/></td>";
        echo 
"\n\t\t\t\t\t </tr>";
        echo 
"<tr><td><img src=\"img/bas_gauche_gris.jpg\" width=\"11\" height=\"4\"/></td><td colspan=\"2\" valign=\"top\"><img src=\"img/bas_gris.jpg\" width=\"100%\" height=\"4\"/></td></tr>";
        break;
    case 
"DOCUMENT":
        echo 
"\t\t\t\t\t\t </td>";
        echo 
"\n\t\t\t\t\t\t <td align=\"left\"><img src=\"img/db_gris.jpg\" width=\"7\" height=\"15\"/></td>";
        echo 
"\n\t\t\t\t\t </tr>";
        echo 
"\n\t\t\t\t\t <tr>";
        echo 
"\n\t\t\t\t\t\t <td></td>";
        echo 
"\n\t\t\t\t\t\t <td><img width=\"168\" height=\"4\" src=\"img/bas_gris.jpg\"/></td>";
        echo 
"\n\t\t\t\t\t\t <td></td>";
        echo 
"\n\t\t\t\t\t </tr>";
        echo 
"\n\t\t\t\t\t </table>";
        echo 
"\n\t\t\t\t </td>";
        echo 
"\n\t\t\t </tr>";
        break;
    }
}
function 
cdataPortrait ($parser$data_text){
    echo 
$data_text;    
}

function 
defautPortrait (){return true;}
?>