"; $param['DEFAULT_VALUE'][0]['value']=stripslashes($DEFAULT_VALUE); $param['TYPE'][0]['value'] = empty($TYPE) ? "text" : stripslashes($TYPE); if ($param['TYPE'][0]['value'] == "textarea") { $param['MAXSIZE'][0]['value'] = 65535; $param['SIZE'][0]['value'] = 255; } if($idchamp) { $merge_items = array(); $values = array(); $nb= 0; for($i=0; $i alert('".$ITEMS[$i]['value']." - ".$ITEMS[$i]['label'].". ".$msg["parperso_valeur_existe_liste"]."'); history.go(-1); "; exit(); } else { if($ITEMS[$i]['value'] && $ITEMS[$i]['label']){ $merge_items[$nb]['value'] = $ITEMS[$i]['value']; $merge_items[$nb]['label'] = stripslashes($ITEMS[$i]['label']); $merge_items[$nb]['order'] = ($ITEMS[$i]['order'] ? $ITEMS[$i]['order'] : 0); $values[] = $ITEMS[$i]['value']; $nb++; } } } $requete="delete from ".$_custom_prefixe_."_custom_lists where ".$_custom_prefixe_."_custom_champ=".$idchamp; pmb_mysql_query($requete); $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; $i ".$msg['procs_options_param'].$name."
"; $items = array(); if(!$first) { if (!$options) $options = ""; $param = _parser_text_no_function_("\n".$options, "OPTIONS"); if (!isset($param["FOR"]) || $param["FOR"] != "q_txt_i18n") { $param = array(); $param["FOR"] = "q_txt_i18n"; $param['SIZE'][0]['value'] = '50'; $param['MAXSIZE'][0]['value'] = '255'; $param['REPEATABLE'][0]['value'] = ''; $param['ISHTML'][0]['value'] = ''; $param['NUM_AUTO'][0]['value'] = ''; $param['UNSELECT_ITEM'][0]['VALUE']=''; $param['UNSELECT_ITEM'][0]['value']=''; $param['DEFAULT_VALUE'][0]['value']=''; $param['DEFAULT_LANG'][0]['value']=''; $param['TYPE'][0]['value'] = "text"; } //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))) { $items[$i]['value'] = $r[$_custom_prefixe_."_custom_list_value"]; $items[$i]['label'] = $r[$_custom_prefixe_."_custom_list_lib"]; $items[$i]['order'] = $r["ordre"]; $i++; } } } } else { $param['FOR'] = "q_txt_i18n"; $param['SIZE'][0]['value'] = stripslashes($SIZE*1); $param['MAXSIZE'][0]['value'] = stripslashes($MAXSIZE*1); $param['REPEATABLE'][0]['value'] = $REPEATABLE ? 1 : 0; $param['ISHTML'][0]['value'] = $ISHTML ? 1 : 0; $param['NUM_AUTO'][0]['value'] = ($NUM_AUTO=='yes' ? 'yes' : 'no'); $param['UNSELECT_ITEM'][0]['VALUE']=stripslashes($UNSELECT_ITEM_VALUE); $param['UNSELECT_ITEM'][0]['value']=stripslashes($UNSELECT_ITEM_LIB); $param['DEFAULT_VALUE'][0]['value']=stripslashes($DEFAULT_VALUE); $param['DEFAULT_LANG'][0]['value']=stripslashes($DEFAULT_LANG); $param['TYPE'][0]['value'] = empty($TYPE) ? "text" : stripslashes($TYPE); $options = array_to_xml($param, "OPTIONS"); if($first == 2) { for($i=0; $i0 && !in_array($ITEMS[$i]['value'],$checked))){ if($ITEMS[$i]['value'] && $ITEMS[$i]['label']){ $array= array( 'value' => $ITEMS[$i]['value'], 'label' => $ITEMS[$i]['label'], 'order' => ($ITEMS[$i]['order'] ? $ITEMS[$i]['order'] : 0) ); $items[]=$array; } } } } if($first == 3) { //Tri des options $opts = array(); for($i=0; $i$opt) { $array= array( 'value' => $ITEMS[$i]['value'], 'label' => $ITEMS[$i]['label'], 'order' => $i ); $items[]=$array; } } } if (!isset($langue_doc) || !count($langue_doc)) { $langue_doc = new marc_list('lang'); $langue_doc = $langue_doc->table; } if (empty($param['TYPE'][0]['value'])) { $param['TYPE'][0]['value'] = "text"; } //Formulaire ?>

> >
> >
>
".$msg['procs_options_text_max_help']."";?> >
>
>

"; } ?>
/>
:   :
:
"; } ?>
".$msg["parperso_options_list_before_rec"]."

" onclick="add_entry();return false;">  " onClick="this.form.first.value=2">  " onClick="this.form.first.value=3">