public function execute_ajax() { global $id_cp; $id_cp += 0; if ($id_cp) { $response['content'] .= "\r\n\t\t\t<div class='colonne3'>\r\n\t\t\t<label>" . $this->format_text($this->msg['cms_module_common_selector_record_cp_val_cp_val_label']) . "</label>\r\n\t\t\t</div>\r\n\t\t\t<div class='colonne_suite'>"; //on regarde la nature du CP... $query = "select type from notices_custom where idchamp = '" . $id_cp . "'"; $pp = new parametres_perso("notices"); $pp->get_values(0); $response['content'] .= $pp->get_field_form($id_cp, $this->get_form_value_name("cp_val"), $this->parameters['cp_val']); } else { $response['content'] = ""; } $response['content-type'] = "text/html"; return $response; }