<?php $this->openBoite("Prêts en cours"); echo '<div class="abonneTitre">'.$this->fiche["nom_aff"].'</div>'; if($this->fiche["message"]) echo '<p class="error">'.$this->fiche["message"].'</p>'; if($this->fiche["erreur"]) echo '<p class="error">' . $this->fiche["erreur"] . '</p>'; ?> <table width="100%" class="tablesorter"> <thead> <tr> <th style="text-align:left; white-space:nowrap"><?php echo $this->_('n°') ?></th> <th style="text-align:left"><?php echo $this->_('Titre') ?></th> <th style="text-align:left"><?php echo $this->_('Auteur') ?></th> <th style="text-align:left"><?php echo $this->_('Bibliothèque') ?></th> <th style="text-align:center"><?php echo $this->_('Retour prévu') ?></th> <th style="text-align:center"><?php echo $this->_('Informations') ?></th> </tr> </thead> <tbody> <?php $num=1; if(isset($this->fiche["fiche"])) { foreach($this->fiche["fiche"]->getEmprunts() as $emprunt) { $class_retard = $emprunt->enRetard() ? 'class="pret_en_retard"' : ''; echo '<tr '.$class_retard.'>'; echo '<td width="15px" align="center"><b>'.$num++.'</b></td>'; echo '<td>'.$this->tagAnchor($this->url(array('controller' => 'recherche', 'action' => 'viewnotice', 'id' => $emprunt->getNoticeOPACId(), 'retour_abonne' => 'prets')), $emprunt->getTitre()).'</td>'; echo '<td>'.$emprunt->getAuteur().'</td>'; echo '<td>'.$emprunt->getBibliotheque().'</td>'; echo '<td class="date_retour">'.$emprunt->getDateRetour().' '; if ($emprunt->isRenewable()) echo $this->tagAnchor($this->url(array('action' => 'prolongerPret', 'id_pret' => $emprunt->getId())), $this->_('Prolonger')); echo '</td>'; echo '<td>'.$emprunt->getType().'</td>'; echo '</tr>'; } } ?> </tbody> </table> <?php $this->closeBoite(); ?> <?php echo $this->abonne_RetourFiche(); ?> <br/> <br/>