Commit 4238417b authored by mbriand's avatar mbriand
Browse files

Gestion des écrans d'affichage : génèrer le pdf

parent 9f8af407
......@@ -31,6 +31,9 @@ require_once($topdir . "include/entities/affiche.inc.php");
require_once($topdir . "include/entities/asso.inc.php");
require_once($topdir . "include/entities/page.inc.php");
require_once($topdir."include/entities/files.inc.php");
require_once($topdir."include/entities/folder.inc.php");
$site = new site();
$affiche = new affiche($site->db, $site->dbrw);
......@@ -182,9 +185,6 @@ if ( !$site->user->is_valid() )
exit();
}
require_once($topdir."include/entities/files.inc.php");
require_once($topdir."include/entities/folder.inc.php");
$file = new dfile($site->db, $site->dbrw);
$site->start_page ("none", "Accueil affiches");
......
......@@ -285,7 +285,7 @@ class affiche extends stdentity
*/
function gen_pdf(){
$req = new requete($this->db, "SELECT id_file FROM `aff_affiches`
WHERE date_deb < NOW AND date_fin < NOW()");
WHERE date_deb < NOW() AND date_fin < NOW()");
$file = new dfile($site->db, $site->dbrw);
......
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