Commit fa7d87d9 authored by mbriand's avatar mbriand
Browse files

Gestion des écrans d'affichage : soumission et modération des affiches

parent c378c65e
......@@ -120,8 +120,8 @@ if (isset($_REQUEST['id_affiche']) &&
$form->add_text_field ("aff_title", "Titre de l'affiche :",$affiche->titre, true,"80");
/* dates */
$form->add_datetime_field("aff_deb","Date et heure de début");
$form->add_datetime_field("aff_fin","Date et heure de fin");
$form->add_datetime_field("aff_deb","Date et heure de début", $affiche->date_deb, true);
$form->add_datetime_field("aff_fin","Date et heure de fin", $affiche->date_fin, true);
$form->add_submit("accept", "Accepter");
$form->add_submit("delete", "Supprimer");
......
......@@ -96,13 +96,11 @@ class affiche extends stdentity
*/
function get_contents ()
{
$file = new dfile($this->db, $this->dbrw);
$file->load_by_id($this->id_file);
$image = new image($this->titre, $file->get_html_link());
$image = new image($this->titre, "http://ae.utbm.fr/d.php?action=download&download=preview&id_file=".$this->id_file);
$cts = new contents("Affiche : ".$this->titre);
$cts->add($image);
$cts->add_paragraph("Affichée du ".textual_plage_horraire($this->date_deb)."au ".textual_plage_horraire($this->date_fin));
$cts->add_paragraph("Affichée du ".textual_plage_horraire($this->date_deb, $this->date_fin));
return $cts;
}
......
Markdown is supported
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