fetch_data(); } protected function fetch_data(){ } function gen_print($data,$tpl=""){ global $msg; $default_template = "\x1B\x40\x1B\x21\x16{{biblio.name}}\x1B\x21\x04 {{biblio.adr1}} {{biblio.town}} {{biblio.phone}} {{biblio.email}} ".$msg["fpdf_edite"]." ".formatdate(date("Y-m-d",time()))."\n Emprunteur: {% for empr in empr_list %} {{empr.name}} {{empr.fistname}} {% endfor %} {% for expl in expl_list %} {{expl.tit}} {{expl.cb}} {{expl.location}} / {{expl.section}} / {{expl.cote}} ".$msg["printer_pret_date"]."{{expl.date_pret}}. \x1B\x21\x14".$msg["printer_retour_date"]."{{expl.date_retour}} \x1B\x21\x04 ______________________________________ {% endfor %} \x1D\x56\x41 \x1B\x40"; return H2o::parseString($default_template)->render($data); } }