Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?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%">
<tr>
<th style="text-align:left"><?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>
</tr>
<?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())),
$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 '</tr>';
}
}
?>
</table>
<?php $this->closeBoite(); ?>
<?php echo $this->abonne_RetourFiche(); ?>