Skip to content
Snippets Groups Projects
prets.phtml 2.07 KiB
Newer Older
llaffont's avatar
llaffont committed
<?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>';
llaffont's avatar
llaffont committed

llaffont's avatar
llaffont committed
<table width="100%" class="tablesorter">
  <thead>
llaffont's avatar
llaffont committed
	<tr>
		<th style="text-align:left; white-space:nowrap"><?php echo $this->_('n°') ?></th>
llaffont's avatar
llaffont committed
		<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>
llaffont's avatar
llaffont committed
	</tr>
llaffont's avatar
llaffont committed
	</thead>
	<tbody>
llaffont's avatar
llaffont committed
	<?php
    $num=1;
llaffont's avatar
llaffont committed
    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')), 
llaffont's avatar
llaffont committed
																				 $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>';
llaffont's avatar
llaffont committed
					echo '</tr>';
			}
		}
	?>
llaffont's avatar
llaffont committed
  </tbody>
llaffont's avatar
llaffont committed
</table>

<?php $this->closeBoite(); ?>
<?php echo $this->abonne_RetourFiche(); ?>
llaffont's avatar
llaffont committed
<br/>
<br/>