render($data); } public function gen_print_transactions($data,$tpl=''){ global $msg,$pmb_gestion_devise; $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 data in empr_list %} ".$msg["transactype_ticket_solde"]."{{compte_autre.solde}} ".$pmb_gestion_devise." {% endfor %} \x1D\x56\x41 \x1B\x40"; if(!$tpl) { $tpl = $default_template; } return H2o::parseString($tpl)->render($data); } public function gen_print_card($data,$tpl=''){ global $msg; $default_template = "\x1B\x40 {% for empr in empr_list %} \x1B\x21\x16 {{empr.name}} {{empr.fistname}} \x1B\x21\x04 \x1D\x48\x2\x1D\x66\x1\x1D\x68\xA0\x1D\x6B\x04{{empr.cb}}\x00 {% endfor %} \x1D\x56\x41 \x1B\x40"; if(!$tpl) { $tpl = $default_template; } return H2o::parseString($tpl)->render($data); } }