".$msg["visionneuse_admin_update"].""; } //on récup les infos déjà existantes $params = $params_values = array(); $rqt = "SELECT visionneuse_params_parameters FROM visionneuse_params WHERE visionneuse_params_class LIKE '".$quoi."'"; if($res = pmb_mysql_query($rqt)){ if(pmb_mysql_num_rows($res)) { $paramToUnserialize = htmlspecialchars_decode(pmb_mysql_result($res, 0, 0)); $params_values = $current_class->unserializeParams($paramToUnserialize); } $current_class->getTabParam(); } $form = $message."
"; return $form; } function update_params(){ global $quoi; global $current_class; global $charset; $paramsToSerialize =array(); $current_class->getTabParam(); foreach ($_POST as $key => $value){ if(isset($current_class->tabParam[$key])){ $paramsToSerialize[$key] = $value; } } $serializedParams = $current_class->serializeParams($paramsToSerialize); $rqt = "SELECT visionneuse_params_class FROM visionneuse_params WHERE visionneuse_params_class LIKE '$quoi'"; if($res=pmb_mysql_query($rqt)){ if(pmb_mysql_num_rows($res)) $requete = "UPDATE visionneuse_params SET visionneuse_params_parameters='".htmlspecialchars($serializedParams,ENT_QUOTES,$charset)."' WHERE visionneuse_params_class='$quoi'"; else $requete= "INSERT INTO visionneuse_params SET visionneuse_params_class='$quoi', visionneuse_params_parameters='".htmlspecialchars($serializedParams,ENT_QUOTES,$charset)."'"; } $res = pmb_mysql_query($requete); } ?>