Liens suppression (+ modification bouton "changer l'image")

This commit is contained in:
Georges Dupéron 2010-07-19 03:14:39 +02:00
parent 4559e56df3
commit ad3fcb83d4
3 changed files with 7 additions and 2 deletions

View File

@ -20,6 +20,7 @@ class GalerieEvenement extends Page {
if ($nom_vue == "edition") { if ($nom_vue == "edition") {
$ret .= '<a href="' . $this->url('nouveau') . '">Nouvelle photo.</a>'; $ret .= '<a href="' . $this->url('nouveau') . '">Nouvelle photo.</a>';
$ret .= '<a href="' . $this->url('supprimer') . '">Supprmier cet évènement.</a>';
} }
return $ret; return $ret;

View File

@ -19,6 +19,7 @@ class GaleriePeriode extends Page {
if ($nom_vue == "edition") { if ($nom_vue == "edition") {
$ret .= '<a href="' . $this->url('nouveau') . '">Nouvel évènement.</a>'; $ret .= '<a href="' . $this->url('nouveau') . '">Nouvel évènement.</a>';
$ret .= '<a href="' . $this->url('supprimer') . '">Supprmier cette période.</a>';
} }
return $ret; return $ret;

View File

@ -8,11 +8,14 @@ class GaleriePhoto extends Page {
return '<img src="' . $this->url($this->get_prop("image_mini")) . '"/>'; return '<img src="' . $this->url($this->get_prop("image_mini")) . '"/>';
} }
$ret = '<img src="' . $this->get_prop("image") . '"/>';
if ($nom_vue == "edition") { if ($nom_vue == "edition") {
return '<a href="' . $this->url('nouveau') . '">Changer la photo</a>'; $ret .= '<input type="file" value="' . . '" /><input type="button" value="Changer la photo">';
$ret .= '<a href="' . $this->url('supprimer') . '">Supprmier cet évènement.</a>';
} }
return '<img src="' . $this->get_prop("image") . '"/>'; return $ret;
} }
} }