Example #1
0
<table class="tbl">

<tr>
  <th class="title" colspan="5">Version de PHP</th>
</tr>

<tr>
  <th>Numéro de version</th>
  <th>Description</th>
  <th>Obligatoire ?</th>
  <th>Utilité</th>
  <th>Installation ?</th>
</tr>
<?php 
$version = new CPHPVersion();
foreach ($version->getAll() as $prereq) {
    ?>
  <tr>
    <td><strong><?php 
    echo $prereq->name;
    ?>
</strong></td>
    <td class="text"><?php 
    echo nl2br($prereq->description);
    ?>
</td>
    <td>
      <?php 
    if ($prereq->mandatory) {
        ?>
      Oui