You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
corbeille/corbeille_fonctions.php

26 lines
538 B
PHP

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

<?php
/**
* Plugin Corbeille 3.0
*
* Collectif
* Licence GPL
*/
if (!defined('_ECRIRE_INC_VERSION')) { return;
}
/**
* Corbeille_icone_poubelle() affiche l'icone poubelle (vide ou pleine)
* @param $total_table nb d'elŽments supprimable pour un objet donnŽ
*/
function corbeille_icone_poubelle($total_table) {
if (empty($total_table)) {
return "<img src='" . chemin_image('trash-empty-32.png') . "' alt='trash empty'/>";
} else {
return "<img src='" . chemin_image('trash-full-32.png') . "' alt='trash full'/>";
}
}