function print_expl($cb_doc) { global $charset; $expl = get_info_expl($cb_doc); $xml_expl .= "<text style=\"p1\"></text>"; $titre = substr($expl->tit, 0, 25); $xml_expl .= "<text style=\"t1_s\">" . htmlspecialchars($titre, ENT_QUOTES, $charset) . "</text>"; $xml_expl .= "<text style=\"t1\" x=\"360\">" . htmlspecialchars($expl->aff_pret_retour, ENT_QUOTES, $charset) . "</text>"; $xml_expl .= "<text style=\"p1\">" . htmlspecialchars($expl->expl_cb . ". " . $msg['fpdf_date_pret'] . " " . $expl->aff_pret_date, ENT_QUOTES, $charset) . "</text>"; $xml_expl .= "<text style=\"ps1\">" . htmlspecialchars($expl->location_libelle . " / " . $expl->section_libelle . " / " . $expl->expl_cote, ENT_QUOTES, $charset) . "</text>"; return $xml_expl; }
public function get_data_expl($cb_doc) { $expl = get_info_expl($cb_doc); $i = count($this->data["expl_list"]); $this->data["expl_list"][$i]["tit"] = $expl->tit; $this->data["expl_list"][$i]["header_aut"] = $expl->header_aut; $this->data["expl_list"][$i]["cb"] = $expl->expl_cb; $this->data["expl_list"][$i]["id_location"] = $expl->expl_location; $this->data["expl_list"][$i]["location"] = $expl->location_libelle; $this->data["expl_list"][$i]["section"] = $expl->section_libelle; $this->data["expl_list"][$i]["cote"] = $expl->expl_cote; $this->data["expl_list"][$i]["date_pret"] = $expl->aff_pret_date; $this->data["expl_list"][$i]["date_retour"] = $expl->aff_pret_retour; return $this->data["expl_list"][$i]; }