$value ) { if($value === ""){ unset($VALUE[$key]); unset($ITEM[$key]); unset($ORDRE[$key]); } } //Pour que les clés se suivent $VALUE=array_merge($VALUE); $ITEM=array_merge($ITEM); $ORDRE=array_merge($ORDRE); //Pour tester si il y a des doublons $temp=array_flip($VALUE); if(is_array($VALUE) && (count($temp) != count($VALUE))){ ?> "; $param['DEFAULT_VALUE'][0]['value']=stripslashes($DEFAULT_VALUE); $param['CHECKBOX_NB_ON_LINE'][0]['value']=stripslashes($CHECKBOX_NB_ON_LINE); $options=array_to_xml($param,"OPTIONS"); ?> ".$msg['procs_options_param'].$name."
"; if (!$first) { if($options){ $param=_parser_text_no_function_("\n".$options,"OPTIONS"); } if (!isset($param["FOR"]) || $param["FOR"]!="list") { $param=array(); $param["FOR"]="list"; $param['MULTIPLE'][0]['value'] = ''; $param['AUTORITE'][0]['value'] = ''; $param['CHECKBOX'][0]['value'] = ''; $param['CHECKBOX_NB_ON_LINE'][0]['value'] = ''; $param['NUM_AUTO'][0]['value'] = ''; $param['UNSELECT_ITEM'][0]['VALUE'] = ''; $param['UNSELECT_ITEM'][0]['value'] = ''; $param['DEFAULT_VALUE'][0]['value'] = ''; } $MULTIPLE=$param['MULTIPLE'][0]['value']; $AUTORITE=$param['AUTORITE'][0]['value']; $CHECKBOX=$param['CHECKBOX'][0]['value']; $CHECKBOX_NB_ON_LINE=$param['CHECKBOX_NB_ON_LINE'][0]['value']; $NUM_AUTO=$param['NUM_AUTO'][0]['value']; $UNSELECT_ITEM_VALUE=$param['UNSELECT_ITEM'][0]['VALUE']; $UNSELECT_ITEM_LIB=$param['UNSELECT_ITEM'][0]['value']; $DEFAULT_VALUE=$param['DEFAULT_VALUE'][0]['value']; //Récupération des valeurs de la liste if ($idchamp) { $requete="select ".$_custom_prefixe_."_custom_list_value, ".$_custom_prefixe_."_custom_list_lib, ordre from ".$_custom_prefixe_."_custom_lists where ".$_custom_prefixe_."_custom_champ=$idchamp order by ordre"; $resultat=pmb_mysql_query($requete); if (pmb_mysql_num_rows($resultat)) { $i=0; while (($r=pmb_mysql_fetch_array($resultat))) { $ITEM[$i]=$r[$_custom_prefixe_."_custom_list_lib"]; $VALUE[$i]=$r[$_custom_prefixe_."_custom_list_value"]; $ORDRE[$i]=$r["ordre"]; $i++; } } } } else { $CHECKBOX_NB_ON_LINE=stripslashes($CHECKBOX_NB_ON_LINE); $UNSELECT_ITEM_VALUE=stripslashes($UNSELECT_ITEM_VALUE); $UNSELECT_ITEM_LIB=stripslashes($UNSELECT_ITEM_LIB); $DEFAULT_VALUE=stripslashes($DEFAULT_VALUE); for ($i=0; $i $value ) { if($value === ""){ unset($temp2[$key]); } } $temp=array_flip($temp2); } if(is_array($temp2) && (count($temp) != count($temp2))){ ?> $val) { $ITEM_REVERSE[$key]=convert_diacrit($ITEM_REVERSE[$key]); } /*asort($ITEM_REVERSE);*/ reset($ITEM_REVERSE); natcasesort($ITEM_REVERSE); reset($ITEM_REVERSE); $n_o=0; foreach ($ITEM_REVERSE as $key => $val) { $ORDRE[$key]=$n_o; $n_o++; } } } } ?>

>
>
/>  
>
:   :
:


\n"; $n=0; $requete="SELECT datatype FROM ".$_custom_prefixe_."_custom WHERE idchamp = $idchamp"; $resultat = pmb_mysql_query($requete); $dtype = pmb_mysql_result($resultat,0,0); for ($i=0; $iT != $VALUE[$i]){ $is_deletable=true; }elseif($objdel->C > 0){ $is_deletable=false; }else{ $is_deletable=true; } } } echo ""; echo ""; echo ""; $n++; } } } else { echo "".$msg["parperso_options_list_before_rec"].""; } ?>
".$msg["parperso_options_list_value"]."".$msg["parperso_options_list_lib"]."".$msg["parperso_options_list_order"]."
    " onClick="this.form.first.value=4">