Skip to content
Snippets Groups Projects
Commit 3cf443d9 authored by gloas's avatar gloas
Browse files

Skin: modification affichage panier, ajout d un scroll sur la liste,...

Skin: modification affichage panier, ajout d un scroll sur la liste, suppresion de colonnes, detachement du lien de modification sur le libelle du panier en lien modifier
parent 7b9319a0
Branches
Tags
No related merge requests found
<tr class="<?php echo $this->_item_class; ?>">
<td style="text-align:right"><?php echo $this->panier->getId(); ?></td>
<td style="text-align:center"><?php echo $this->panier->getDateMaj(); ?></td>
<td style="text-align:left">
<a href="<?php echo $this->url(['action' => 'index',
'id_panier' => $this->panier->getId()]); ?>">
<?php echo $this->panier->getLibelle(); ?>
</a>
<?php echo $this->panier->getLibelle(); ?>
<?php
if ($this->panier->hasCatalogues()) {
......@@ -21,8 +17,11 @@
echo '<div>'.implode(', ', $catalogue_links).'</div>';
}
?>
<td style="text-align:right"><?php echo $this->panier->numberOfNotices(); ?></td>
<td style="text-align:center"><?php echo $this->panier->getDateMaj(); ?></td>
<td style="text-align:center;width:120px"><?php echo $this->panier->numberOfNotices(); ?></td>
<td style="text-align:left">
<a href="<?php echo $this->url(['action' => 'index',
'id_panier' => $this->panier->getId()]); ?>">Modifier le contenu </a>
<td style="text-align:left">
<?php
echo $this->tagAnchor(['module' => 'opac',
......@@ -30,14 +29,12 @@
'action' => 'simple',
'id_panier' => $this->panier->getId(),
'retour_panier' => $this->panier->getId()],
'<img src="'.URL_ADMIN_IMG.'picto/show.gif" title="'.$this->_('Afficher le panier').'" alt="'.$this->_('Afficher le panier').'" />');
'Afficher en résultat de recherche');
?>
<?php if ($this->panier->isUserEquals(Class_Users::getIdentity())) { ?>
<a href="<?php echo $this->url(['action' => 'supprimerpanier', 'id_panier' => $this->panier->getId()]) ?>" onclick="return confirm('<?php echo $this->traduire("Etes-vous sûr de vouloir supprimer ce panier ?"); ?>')">
<img title="<?php echo $this->_('Supprimer') ?>" src="<?php echo URL_IMG; ?>suppression.gif" />
</a>
<a href="<?php echo $this->url(['action' => 'supprimerpanier', 'id_panier' => $this->panier->getId()]) ?>" onclick="return confirm('<?php echo $this->traduire("Etes-vous sûr de vouloir supprimer ce panier ?"); ?>')"> Supprimer </a>
<?php } ?>
</td>
</tr>
......
......@@ -15,18 +15,18 @@ if ($this->ajout_panier_form)
<?php $this->openBoite(''); ?>
<table style="width:90%" class="panier_notices">
<tr class="soustitre">
<th style="text-align:right"><?php echo $this->_('n°') ?></th>
<th style="text-align:center"><?php echo $this->_('Date') ?></th>
<th style="text-align:left"><?php echo $this->_('Libellé') ?></th>
<th style="text-align:right"><?php echo $this->_('Notices') ?></th>
<th style="text-align:left;"><?php echo $this->_('Nom du panier') ?></th>
<th style="text-align:right;"><?php echo $this->_('Date') ?></th>
<th style="text-align:center;"><?php echo $this->_('Nb de notices') ?></th>
<th style="visibility:hidden;"><?php echo $this->_('Modifier') ?></th>
<th style="visibility:hidden;"><?php echo $this->_('Afficher') ?></th>
<th></th>
</tr>
</table>
<div style="width:90%" class="panier_notices_container">
<table class="panier_notices">
<?php
echo $this->partialCycle('panier/_panier_row.phtml',
'panier',
......@@ -34,6 +34,7 @@ if ($this->ajout_panier_form)
array('first', 'second'));
?>
</table>
</div>
<?php $this->closeBoite(); ?>
......@@ -62,24 +63,22 @@ if($this->panier_courant) {
// Contenu panier
if($nombre_notices > 0) {
print('<table width="90%">');
print('<table width="80%">');
print('<tr>');
print('<th width="1%">&nbsp;</th>');
printf('<th style="text-align:left">%s</th>', $this->_('Titre'));
printf('<th style="text-align:left">%s</th>', $this->_('Nom de la notice'));
printf('<th style="text-align:left">%s</th>', $this->_('Auteur'));
printf('<th width="5%%">%s</th>', $this->_('Suppr.'));
printf('<th width="5%%">%s</th>', $this->_('Supprimer'));
print('</tr>');
$notices = $this->panier_courant->getNoticesAsArray();
foreach($notices as $notice) {
print('<tr>');
print('<td>'.$this->iconeSupport($notice->getTypeDoc()).'</td>');
print('<td style="padding-right:5px;">'.$this->iconeSupport($notice->getTypeDoc()).'</td>');
print('<td><a href="'.$this->urlNotice($notice,$this->panier_courant->getId()).'">'.$notice->getTitrePrincipal().'</a></td>');
print('<td>'.$notice->getAuteurPrincipal().'</td>');
?>
<td style="text-align:center">
<a href="<?php echo $this->url(['action' => 'paniersupprimernotice', 'id_panier' => $this->panier_courant->getId(),'id_notice' => $notice->getId()]); ?>" onclick="return confirm('<?php echo $this->traduire("Etes-vous sûr de vouloir supprimer cette notice du panier ?"); ?>')">
<img border="0" title="<?php echo $this->_('Supprimer') ?>" src="<?php echo URL_IMG; ?>suppression.gif" />
</a>
<a href="<?php echo $this->url(['action' => 'paniersupprimernotice', 'id_panier' => $this->panier_courant->getId(),'id_notice' => $notice->getId()]); ?>" onclick="return confirm('<?php echo $this->traduire("Etes-vous sûr de vouloir supprimer cette notice du panier ?"); ?>')"> Supprimer </a>
</td>
<?php
print('</tr>');
......
......@@ -1576,6 +1576,11 @@ div.entete_notice {
display: inline;
}
div.panier_notices_container{
overflow:auto;
height:300px;
margin-bottom:20px;
}
table.panier_notices td {
vertical-align: top;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment