55 lines
1.7 KiB
PHTML
55 lines
1.7 KiB
PHTML
<style type="text/css">
|
|
#utilisateur { border-collapse:collapse; width:100%;}
|
|
#utilisateur tr.titre td { background-color: #D9EEF1; font-weight:bold; }
|
|
#utilisateur tr.border td {
|
|
border:1px dashed #939393; padding:5px; margin:0; vertical-align:top; }
|
|
#utilisateur tr.actif { background-color:#D9EEF1; }
|
|
#utilisateur tr.noactif { background-color:#F0F0F6; }
|
|
.cadreinfo {display:none;}
|
|
</style>
|
|
<div id="center">
|
|
<h1>Prestations fichier client (idClient=<?=$this->idClient?>)</h1>
|
|
<div class="paragraph">
|
|
<a href="<?=$this->url(array('controller'=>'dashboard','action'=>'prestation'))?>">Ajouter une prestation</a>
|
|
</div>
|
|
|
|
<h2>Liste</h2>
|
|
<div class="paragraph">
|
|
<?php if (count($this->prestations) > 0) { ?>
|
|
<table id="utilisateur" >
|
|
<tr class="border titre">
|
|
<td class="StyleInfoLib">Nom</td>
|
|
<td class="StyleInfoLib">Type</td>
|
|
<td class="StyleInfoLib">Debut</td>
|
|
<td class="StyleInfoLib">Fin</td>
|
|
<td class="StyleInfoLib"></td>
|
|
</tr>
|
|
<?php
|
|
foreach ($this->prestations as $prestation) {
|
|
if ($prestation->active == 'Oui') {
|
|
$class = 'actif';
|
|
} else {
|
|
$class = 'noactif';
|
|
}
|
|
?>
|
|
<tr class="border <?=$class?>">
|
|
<td><?=$prestation->identifiant?></td>
|
|
<td><?=$prestation->type?></td>
|
|
<td><?=$prestation->dateDebut?></td>
|
|
<td><?=$prestation->dateFin?></td>
|
|
<td><?php if ($prestation->active == 'Oui') { ?>
|
|
<a href="<?=$this->url(array('controller'=>'dashboard','action'=>'prestation','id'=>$prestation->id))?>">
|
|
<img src="/themes/default/images/interfaces/editer_trans.png" title="Editer" width="16" height="16"/>
|
|
</a><?php } ?>
|
|
</td>
|
|
</tr>
|
|
<?php
|
|
}
|
|
} else {
|
|
?>
|
|
Aucune prestation.
|
|
<?php }?>
|
|
</table>
|
|
</div>
|
|
|
|
</div>
|