<tr><td>Charisme <?php 
    getValeurCaracM($tab[2]);
    ?>
 : </td><td> <?php 
    echo $tab[2];
    ?>
 </td></tr>
                    <tr><td>Adresse <?php 
    getValeurCaracF($tab[3]);
    ?>
 : </td><td> <?php 
    echo $tab[3];
    ?>
	</td></tr>
                    <tr><td>Force <?php 
    getValeurCaracF($tab[4]);
    ?>
 : </td><td> <?php 
    echo $tab[4];
    ?>
 </td></tr>
                    <tr>
                        <td colspan='4'>
                            <br>
                            <form method='get' action='index.php'>
                                <input type='hidden' name='etape' value='2' />
                                <input type='hidden' name='ctrl' value='nouvelAventurier' />
                                <input type='hidden' name='COU' value='<?php 
    echo $tab[0];
    ?>
' />
    public function printAsTable()
    {
        $aventurier = $this;
        ?>
        <style>
        td
        {
            padding:5px;
        }
    </style>
    <table style='margin:auto;border-collapse:collapse;background-image:url("image/bg3.png");border: 1px #900000 solid;'>
    <tr><td colspan='2'  style='border-bottom:1px #900000 solid;text-align:center;'><?php 
        echo $aventurier->NOM;
        ?>
</td></tr>
        <tr>
            <td colspan='2'  style='border-bottom:1px #900000 solid;text-align:center;'>
                <?php 
        echo $aventurier->ORIGINE->NOM . " ";
        if ($aventurier->METIER->NOM == "Aucun") {
            echo "sans profession";
        } else {
            if ($aventurier->METIER->NOM == "Mage") {
                echo $aventurier->METIER->NOM . " (" . $aventurier->magie . ")";
            } else {
                if ($aventurier->METIER->NOM == "Pretre" || $aventurier->METIER->NOM == "Paladin") {
                    $temp = $aventurier->METIER;
                    if (in_array(substr($aventurier->dieu, 0, 1), array("A", "E", "I", "O", "U", "Y"))) {
                        $temp .= " d'" . $aventurier->dieu;
                    } else {
                        $temp .= " de " . $aventurier->dieu;
                    }
                    echo $temp;
                } else {
                    echo $aventurier->METIER->NOM;
                }
            }
        }
        ?>
            </td>
        </tr>
    <tr><td style='vertical-align:top;'>
        <table style='background-image:url("image/bg3.png");margin:auto;border-collapse:collapse;'>
        
        <tr><td>Courage <?php 
        getValeurCaracM($aventurier->COU);
        ?>
 : </td><td> <?php 
        echo $aventurier->COU;
        ?>
 </td></tr>
        <tr><td>Intelligence <?php 
        getValeurCaracF($aventurier->INT);
        ?>
 : </td><td> <?php 
        echo $aventurier->INT;
        ?>
 </td></tr>
        <tr><td>Charisme <?php 
        getValeurCaracM($aventurier->CHA);
        ?>
 : </td><td> <?php 
        echo $aventurier->CHA;
        ?>
 </td></tr>
        <tr><td>Adresse <?php 
        getValeurCaracF($aventurier->AD);
        ?>
 : </td><td> <?php 
        echo $aventurier->AD;
        ?>
	</td></tr>
        <tr><td style='border-bottom:1px #900000 solid;'>Force <?php 
        getValeurCaracF($aventurier->FO);
        ?>
 : </td><td style='border-bottom:1px #900000 solid;'> <?php 
        echo $aventurier->FO;
        ?>
 </td></tr>
        <tr><td>Energie Vitale (EV) :</td><td> <?php 
        echo $aventurier->EV;
        ?>
 </td></tr>
        <?php 
        if ($aventurier->EA != 0) {
            ?>
                    <tr><td>Energie Astrale (EA)</td><td> <?php 
            echo $aventurier->EA;
            ?>
 </td></tr>
                <?php 
        }
        if ($aventurier->MAGIEPSY != 0) {
            ?>
                    <tr><td>Score de Magie Psychique : </td><td> <?php 
            echo $aventurier->MAGIEPSY;
            ?>
 </td></tr>
                <?php 
        }
        if ($aventurier->MAGIEPHYS != 0) {
            ?>
                    <tr><td>Score de Magie Physique : </td><td> <?php 
            echo $aventurier->MAGIEPHYS;
            ?>
 </td></tr>
                <?php 
        }
        if ($aventurier->bonus_degat != 0) {
            ?>
                    <tr><td style='border-top:1px #900000 solid;'>Bonus aux degats : </td><td style='border-top:1px #900000 solid;'> <?php 
            echo $aventurier->bonus_degat;
            ?>
 </td></tr>
                <?php 
        }
        ?>
        <tr><td style='border-top:1px #900000 solid;'>Attaque :</td><td style='border-top:1px #900000 solid;'> <?php 
        echo $aventurier->AT;
        ?>
 </td></tr>
        <tr><td>Parade :</td><td> <?php 
        echo $aventurier->PRD;
        ?>
 </td></tr>
        <tr><td>Protection maximum : </td><td> <?php 
        if ($aventurier->PR_MAX == 0) {
            echo "pas de limite";
        } else {
            echo $aventurier->PR_MAX;
        }
        ?>
 </td></tr>
        <tr><td style='border-top:1px #900000 solid;'>Résistance Magique :</td><td style='border-top:1px #900000 solid;'> <?php 
        echo $aventurier->RESISTMAG;
        ?>
 </td></tr>
        </table>
        </td>
        <td style='vertical-align:top;border-left:1px #900000 solid;'>
        <table style='background-image:url("image/bg3.png");margin:auto;border-collapse:collapse;'>    
        <?php 
        if (count($aventurier->COMPETENCESLIEES) > 0) {
            echo "<tr><td colspan='2' style='border-bottom:1px #900000 dotted;text-align:center;'>Competences héritées</td></tr>";
        }
        foreach ($aventurier->COMPETENCESLIEES as $competence) {
            echo "<tr><td colspan='2'>" . $competence->NOM . "</td></tr>";
        }
        if (count($aventurier->COMPETENCESCHOISIES) > 0) {
            echo "<tr><td colspan='2' style='border-top:1px #900000 solid;border-bottom:1px #900000 dotted;text-align:center;'>Competences choisies</td></tr>";
        }
        foreach ($aventurier->COMPETENCESCHOISIES as $competence) {
            echo "<tr><td colspan='2'>" . $competence->NOM . "</td></tr>";
        }
        if (!empty($this->OR != 0)) {
            echo "<tr><td style='border-top:1px #900000 solid;'>Or possédé : </td><td style='border-top:1px #900000 solid;'>" . $this->OR . "</td></tr>";
        }
        if (!empty($this->DESTIN != null)) {
            echo "<tr><td >Point(s) de destin : </td><td>" . $this->DESTIN . "</td></tr>";
        }
        ?>
        
        </table>
    </td>
    </tr>
    </table><br>
        <?php 
    }
    <tr><td>Charisme <?php 
getValeurCaracM($aventurier->CHA);
?>
 : </td><td> <?php 
echo $aventurier->CHA;
?>
 </td></tr>
    <tr><td>Adresse <?php 
getValeurCaracF($aventurier->AD);
?>
 : </td><td> <?php 
echo $aventurier->AD;
?>
	</td></tr>
    <tr><td style='border-bottom:1px #900000 solid;'>Force <?php 
getValeurCaracF($aventurier->FO);
?>
 : </td><td style='border-bottom:1px #900000 solid;'> <?php 
echo $aventurier->FO;
?>
 </td></tr>
    <tr><td>Energie Vitale (EV) :</td><td> <?php 
echo $aventurier->EV;
?>
 </td></tr>
    <?php 
if ($aventurier->EA != 0) {
    ?>
                <tr><td>Energie Astrale (EA)</td><td> <?php 
    echo $aventurier->EA;
    ?>