".$msg["visionneuse_admin_update"].""; //on récup les infos déjà existantes $params = array(); $rqt = "SELECT visionneuse_params_parameters FROM visionneuse_params WHERE visionneuse_params_class LIKE '$quoi'"; if($res=mysql_query($rqt)){ if(mysql_num_rows($res)) $paramToUnserialize= htmlspecialchars_decode(mysql_result($res,0,0)); $params_values=$current_class->unserializeParams($paramToUnserialize); $current_class->getTabParam(); } $form=" $message

$quoi

"; foreach($current_class->tabParam as $key =>$tabParam){ $form.=" "; $i++; } $form.="
Nom Valeur Description
$key ".$tabParam['desc']."
"; 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=mysql_query($rqt)){ if(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 = mysql_query($requete); } ?>