function projetstatus($startTime, $endTime)
{
    $prcent = prcent($startTime, $endTime);
    if ($prcent == 10 or $prcent == 0) {
        echo 'Todo';
    } elseif ($prcent > 0 && $prcent < 100) {
        echo 'In progress';
    } elseif ($prcent == 100) {
        echo 'Done';
    }
}
    ?>
</td>
                                <td>Entre <?php 
    echo $this->vars['data']['datedebut'];
    ?>
 et <?php 
    echo $this->vars['data']['datefin'];
    ?>
</td>
                                <td>
                                    <?php 
    echo projetstatus($this->vars['data']['datefin'], $this->vars['data']['datedebut']);
    ?>
                                    <div id="filled-text"><div class="progress">
            <div role="progressbar" aria-valuetransitiongoal="<?php 
    echo prcent($this->vars['data']['datefin'], $this->vars['data']['datedebut']);
    ?>
" class="progress-bar progress-bar-success"></div></div></div></td>
                                
                                <td>
                                    <?php 
    if ($this->vars['level'] == "0") {
        ?>
                                    <a href="projets-modifier-<?php 
        echo $this->vars['data']['id'];
        ?>
.html" class="btn btn-xs btn-success filter-submit">
                                        <i class="fa fa-edit"></i>
                                        Update
                                    </a>
                                    <a href="projets-supprimer-<?php