';
if (! in_array($year,$arrayyears)) $arrayyears[$year]=$year;
if (! in_array($nowyear,$arrayyears)) $arrayyears[$nowyear]=$nowyear;
arsort($arrayyears);
- print $form->selectarray('year',$arrayyears,$year,0);
+ print Form::selectarray('year',$arrayyears,$year,0);
print '';
print '
';
print '';
diff --git a/htdocs/compta/bank/card.php b/htdocs/compta/bank/card.php
index b33b0438552..420fc2e4687 100644
--- a/htdocs/compta/bank/card.php
+++ b/htdocs/compta/bank/card.php
@@ -302,7 +302,7 @@ if ($action == 'create')
// Status
print '
'.$langs->trans("Status").' ';
print '';
- print $form->selectarray("clos", $account->status,(isset($_POST["clos"])?$_POST["clos"]:$account->clos));
+ print Form::selectarray("clos", $account->status,(isset($_POST["clos"])?$_POST["clos"]:$account->clos));
print ' ';
// Country
@@ -861,7 +861,7 @@ else
// Status
print '
'.$langs->trans("Status").' ';
print '';
- print $form->selectarray("clos", $account->status,(isset($_POST["clos"])?$_POST["clos"]:$account->clos));
+ print Form::selectarray("clos", $account->status,(isset($_POST["clos"])?$_POST["clos"]:$account->clos));
print ' ';
// Country
diff --git a/htdocs/compta/deplacement/stats/index.php b/htdocs/compta/deplacement/stats/index.php
index 216988b6a7a..cbef490948b 100644
--- a/htdocs/compta/deplacement/stats/index.php
+++ b/htdocs/compta/deplacement/stats/index.php
@@ -249,7 +249,7 @@ print '';
print '
'.$langs->trans("Year").' ';
if (! in_array($year,$arrayyears)) $arrayyears[$year]=$year;
arsort($arrayyears);
-print $form->selectarray('year',$arrayyears,$year,0);
+print Form::selectarray('year',$arrayyears,$year,0);
print ' ';
print '
';
print '';
diff --git a/htdocs/compta/facture.php b/htdocs/compta/facture.php
index 7298eb18135..88ec64f0a7b 100644
--- a/htdocs/compta/facture.php
+++ b/htdocs/compta/facture.php
@@ -2194,7 +2194,7 @@ if ($action == 'create')
{
print '
';
$arraylist = array('amount' => 'FixAmount','variable' => 'VarAmount');
- print $form->selectarray('typedeposit', $arraylist, GETPOST('typedeposit'), 0, 0, 0, '', 1);
+ print Form::selectarray('typedeposit', $arraylist, GETPOST('typedeposit'), 0, 0, 0, '', 1);
print ' ';
print '
' . $langs->trans('Value') . ': ';
}
@@ -2409,7 +2409,7 @@ if ($action == 'create')
print ' ';
include_once DOL_DOCUMENT_ROOT . '/core/modules/facture/modules_facture.php';
$liste = ModelePDFFactures::liste_modeles($db);
- print $form->selectarray('model', $liste, $conf->global->FACTURE_ADDON_PDF);
+ print Form::selectarray('model', $liste, $conf->global->FACTURE_ADDON_PDF);
print " ";
// Multicurrency
diff --git a/htdocs/compta/facture/fiche-rec.php b/htdocs/compta/facture/fiche-rec.php
index e833c0629b3..9aa6aca1663 100644
--- a/htdocs/compta/facture/fiche-rec.php
+++ b/htdocs/compta/facture/fiche-rec.php
@@ -343,7 +343,7 @@ if ($action == 'create')
// Frequency
print "
".$form->textwithpicto($langs->trans("Frequency"), $langs->transnoentitiesnoconv('toolTipFrequency'))." ";
- print " ".$form->selectarray('unit_frequency', array('d'=>$langs->trans('Day'), 'm'=>$langs->trans('Month'), 'y'=>$langs->trans('Year')), (GETPOST('unit_frequency')?GETPOST('unit_frequency'):'m'));
+ print " ".Form::selectarray('unit_frequency', array('d'=>$langs->trans('Day'), 'm'=>$langs->trans('Month'), 'y'=>$langs->trans('Year')), (GETPOST('unit_frequency')?GETPOST('unit_frequency'):'m'));
print " ";
// First date of execution for cron
@@ -360,7 +360,7 @@ if ($action == 'create')
// Auto validate the invoice
print "
".$langs->trans("StatusOfGeneratedInvoices")." ";
$select = array('0'=>$langs->trans('BillStatusDraft'),'1'=>$langs->trans('BillStatusValidated'));
- print $form->selectarray('auto_validate', $select, GETPOST('auto_validate'));
+ print Form::selectarray('auto_validate', $select, GETPOST('auto_validate'));
print " ";
print "";
@@ -749,7 +749,7 @@ else
print '
';
print '
';
diff --git a/htdocs/compta/facture/list.php b/htdocs/compta/facture/list.php
index d227d127f69..982dbeb421e 100644
--- a/htdocs/compta/facture/list.php
+++ b/htdocs/compta/facture/list.php
@@ -860,7 +860,7 @@ if ($resql)
$moreforfilter.='
';
$moreforfilter.=$langs->trans('IncludingProductWithTag'). ': ';
$cate_arbo = $form->select_all_categories(Categorie::TYPE_PRODUCT, null, 'parent', null, null, 1);
- $moreforfilter.=$form->selectarray('search_product_category', $cate_arbo, $search_product_category, 1, 0, 0, '', 0, 0, 0, 0, '', 1);
+ $moreforfilter.=Form::selectarray('search_product_category', $cate_arbo, $search_product_category, 1, 0, 0, '', 0, 0, 0, 0, '', 1);
$moreforfilter.='
';
}
$parameters=array();
@@ -921,7 +921,7 @@ if ($resql)
print '
';
print '
';
$liststatus=array('0'=>$langs->trans("BillShortStatusDraft"), '1'=>$langs->trans("BillShortStatusNotPaid"), '2'=>$langs->trans("BillShortStatusPaid"), '3'=>$langs->trans("BillShortStatusCanceled"));
- print $form->selectarray('search_status', $liststatus, $search_status, 1);
+ print Form::selectarray('search_status', $liststatus, $search_status, 1);
print ' ';
print '
';
$searchpitco=$form->showFilterAndCheckAddButtons(1, 'checkforselect', 1);
diff --git a/htdocs/compta/facture/stats/index.php b/htdocs/compta/facture/stats/index.php
index 14f8c8d18f6..41bd70d4c12 100644
--- a/htdocs/compta/facture/stats/index.php
+++ b/htdocs/compta/facture/stats/index.php
@@ -240,7 +240,7 @@ print '';
print '
'.$langs->trans("ThirdParty").' ';
if ($mode == 'customer') $filter='s.client in (1,2,3)';
if ($mode == 'supplier') $filter='s.fournisseur = 1';
- print $form->selectarray('socid', $companies, $socid, 1, 0, 0, 'style="width: 95%"', 0, 0, 0, '', '', 1);
+ print Form::selectarray('socid', $companies, $socid, 1, 0, 0, 'style="width: 95%"', 0, 0, 0, '', '', 1);
print ' ';
// User
print '
'.$langs->trans("CreatedBy").' ';
@@ -251,7 +251,7 @@ print '';
if (! in_array($year,$arrayyears)) $arrayyears[$year]=$year;
if (! in_array($nowyear,$arrayyears)) $arrayyears[$nowyear]=$nowyear;
arsort($arrayyears);
- print $form->selectarray('year',$arrayyears,$year,0);
+ print Form::selectarray('year',$arrayyears,$year,0);
print '
';
print '
';
print '';
diff --git a/htdocs/compta/prelevement/card.php b/htdocs/compta/prelevement/card.php
index 9dd841e0add..e229a3a5d75 100644
--- a/htdocs/compta/prelevement/card.php
+++ b/htdocs/compta/prelevement/card.php
@@ -217,7 +217,7 @@ if ($id > 0)
print $form->select_date('','','','','',"userfile",1,1);
print '
';
print '
'.$langs->trans("TransMetod").' ';
- print $form->selectarray("methode",$bon->methodes_trans);
+ print Form::selectarray("methode",$bon->methodes_trans);
print ' ';
/* print '
'.$langs->trans("File").' ';
print ' ';
diff --git a/htdocs/compta/prelevement/ligne.php b/htdocs/compta/prelevement/ligne.php
index d43ba27ef26..c62c8c1c283 100644
--- a/htdocs/compta/prelevement/ligne.php
+++ b/htdocs/compta/prelevement/ligne.php
@@ -205,13 +205,13 @@ if ($id)
//Reason
print ' '.$langs->trans("RefusedReason").' ';
print '';
- print $form->selectarray("motif", $rej->motifs);
+ print Form::selectarray("motif", $rej->motifs);
print ' ';
//Facturer
print '
'.$langs->trans("RefusedInvoicing").' ';
print '';
- print $form->selectarray("facturer", $rej->facturer);
+ print Form::selectarray("facturer", $rej->facturer);
print ' ';
print '
';
diff --git a/htdocs/compta/ventilation/card.php b/htdocs/compta/ventilation/card.php
index 59ed7fe9cde..1dc2925bd57 100644
--- a/htdocs/compta/ventilation/card.php
+++ b/htdocs/compta/ventilation/card.php
@@ -129,7 +129,7 @@ if($_GET["id"])
if($objp->fk_code_ventilation == 0)
{
- print $form->selectarray("codeventil",$cgs, $objp->fk_code_ventilation);
+ print Form::selectarray("codeventil",$cgs, $objp->fk_code_ventilation);
}
else
{
diff --git a/htdocs/compta/ventilation/fournisseur/card.php b/htdocs/compta/ventilation/fournisseur/card.php
index dc376de7c06..0542bd7c68b 100644
--- a/htdocs/compta/ventilation/fournisseur/card.php
+++ b/htdocs/compta/ventilation/fournisseur/card.php
@@ -113,7 +113,7 @@ if($_GET["id"])
if($objp->fk_code_ventilation == 0)
{
- print $form->selectarray("codeventil",$cgs, $objp->fk_code_ventilation);
+ print Form::selectarray("codeventil",$cgs, $objp->fk_code_ventilation);
}
else
{
diff --git a/htdocs/contact/canvas/actions_contactcard_common.class.php b/htdocs/contact/canvas/actions_contactcard_common.class.php
index 3d6b792d99b..9d4543f702a 100644
--- a/htdocs/contact/canvas/actions_contactcard_common.class.php
+++ b/htdocs/contact/canvas/actions_contactcard_common.class.php
@@ -309,7 +309,7 @@ abstract class ActionsContactCardCommon
// Public or private
$selectarray=array('0'=>$langs->trans("ContactPublic"),'1'=>$langs->trans("ContactPrivate"));
- $this->tpl['select_visibility'] = $form->selectarray('priv',$selectarray,$this->object->priv,0);
+ $this->tpl['select_visibility'] = Form::selectarray('priv',$selectarray,$this->object->priv,0);
}
if ($action == 'view' || $action == 'edit' || $action == 'delete')
diff --git a/htdocs/contact/card.php b/htdocs/contact/card.php
index fca007bfd1f..fc6196370d3 100644
--- a/htdocs/contact/card.php
+++ b/htdocs/contact/card.php
@@ -655,7 +655,7 @@ else
// Visibility
print '
'.$langs->trans("ContactVisibility").' ';
$selectarray=array('0'=>$langs->trans("ContactPublic"),'1'=>$langs->trans("ContactPrivate"));
- print $form->selectarray('priv',$selectarray,(GETPOST("priv",'alpha')?GETPOST("priv",'alpha'):$object->priv),0);
+ print Form::selectarray('priv',$selectarray,(GETPOST("priv",'alpha')?GETPOST("priv",'alpha'):$object->priv),0);
print ' ';
// Categories
@@ -891,7 +891,7 @@ else
// Visibility
print '
'.$langs->trans("ContactVisibility").' ';
$selectarray=array('0'=>$langs->trans("ContactPublic"),'1'=>$langs->trans("ContactPrivate"));
- print $form->selectarray('priv',$selectarray,$object->priv,0);
+ print Form::selectarray('priv',$selectarray,$object->priv,0);
print ' ';
// Note Public
diff --git a/htdocs/contact/list.php b/htdocs/contact/list.php
index cee89d0970f..1dfd6acb8bc 100644
--- a/htdocs/contact/list.php
+++ b/htdocs/contact/list.php
@@ -553,7 +553,7 @@ if ($result)
{
print '
';
$selectarray=array('0'=>$langs->trans("ContactPublic"),'1'=>$langs->trans("ContactPrivate"));
- print $form->selectarray('search_priv',$selectarray,$search_priv,1);
+ print Form::selectarray('search_priv',$selectarray,$search_priv,1);
print ' ';
}
// Extra fields
@@ -587,7 +587,7 @@ if ($result)
if (! empty($arrayfields['p.statut']['checked']))
{
print '
';
- print $form->selectarray('search_status', array('-1'=>'', '0'=>$langs->trans('ActivityCeased'),'1'=>$langs->trans('InActivity')),$search_status);
+ print Form::selectarray('search_status', array('-1'=>'', '0'=>$langs->trans('ActivityCeased'),'1'=>$langs->trans('InActivity')),$search_status);
print ' ';
}
print '
';
diff --git a/htdocs/contrat/list.php b/htdocs/contrat/list.php
index df6e0007023..505775be4df 100644
--- a/htdocs/contrat/list.php
+++ b/htdocs/contrat/list.php
@@ -217,7 +217,7 @@ if ($resql)
$moreforfilter.='';
$moreforfilter.=$langs->trans('IncludingProductWithTag'). ': ';
$cate_arbo = $form->select_all_categories(Categorie::TYPE_PRODUCT, null, 'parent', null, null, 1);
- $moreforfilter.=$form->selectarray('search_product_category', $cate_arbo, $search_product_category, 1, 0, 0, '', 0, 0, 0, 0, '', 1);
+ $moreforfilter.=Form::selectarray('search_product_category', $cate_arbo, $search_product_category, 1, 0, 0, '', 0, 0, 0, 0, '', 1);
$moreforfilter.='
';
}
diff --git a/htdocs/contrat/services.php b/htdocs/contrat/services.php
index 2f1c3697058..589b2944e21 100644
--- a/htdocs/contrat/services.php
+++ b/htdocs/contrat/services.php
@@ -216,14 +216,14 @@ if ($resql)
print ' ';
print '
';
$arrayofoperators=array('<'=>'<','>'=>'>');
- print $form->selectarray('filter_op1',$arrayofoperators,$filter_op1,1);
+ print Form::selectarray('filter_op1',$arrayofoperators,$filter_op1,1);
print ' ';
$filter_date1=dol_mktime(0,0,0,$op1month,$op1day,$op1year);
print $form->select_date($filter_date1,'op1',0,0,1,'',1,0,1);
print ' ';
print '
';
$arrayofoperators=array('<'=>'<','>'=>'>');
- print $form->selectarray('filter_op2',$arrayofoperators,$filter_op2,1);
+ print Form::selectarray('filter_op2',$arrayofoperators,$filter_op2,1);
print ' ';
$filter_date2=dol_mktime(0,0,0,$op2month,$op2day,$op2year);
print $form->select_date($filter_date2,'op2',0,0,1,'',1,0,1);
@@ -236,7 +236,7 @@ if ($resql)
'4&filter=expired'=>$langs->trans("ServiceStatusLate"),
'5'=>$langs->trans("ServiceStatusClosed")
);
- print $form->selectarray('search_status',$arrayofstatus,(strstr($search_status, ',')?-1:$search_status),1);
+ print Form::selectarray('search_status',$arrayofstatus,(strstr($search_status, ',')?-1:$search_status),1);
print ' ';
print '
';
$searchpitco=$form->showFilterAndCheckAddButtons(0);
diff --git a/htdocs/core/class/conf.class.php b/htdocs/core/class/conf.class.php
index 0b55e2cc814..4431b8c3336 100644
--- a/htdocs/core/class/conf.class.php
+++ b/htdocs/core/class/conf.class.php
@@ -30,7 +30,8 @@
/**
* Class to stock current configuration
*/
-class Conf
+class
+Conf
{
/** \public */
//! To store properties found in conf file
@@ -582,5 +583,15 @@ class Conf
if (empty($conf->loghandlers[$handler])) $this->loghandlers[$handler]=$loghandlerinstance;
}
}
+
+ public function setConstant()
+ {
+
+ }
+
+ public function getConstant()
+ {
+
+ }
}
diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php
index d06677d97af..8e88fd31c99 100644
--- a/htdocs/core/class/html.form.class.php
+++ b/htdocs/core/class/html.form.class.php
@@ -185,7 +185,7 @@ class Form
$tmp=explode(':',$val);
$arraylist[$tmp[0]]=$tmp[1];
}
- $ret.=$this->selectarray($htmlname,$arraylist,$value);
+ $ret.= Form::selectarray($htmlname,$arraylist,$value);
}
else if (preg_match('/^ckeditor/',$typeofdata))
{
@@ -3249,7 +3249,7 @@ class Form
{
$more.=' ';
if (! empty($input['label'])) $more.=$input['label'].' ';
- $more.=$this->selectarray($input['name'],$input['values'],$input['default'],1);
+ $more.= Form::selectarray($input['name'],$input['values'],$input['default'],1);
$more.=' '."\n";
}
else if ($input['type'] == 'checkbox')
@@ -4650,7 +4650,7 @@ class Form
* @return string HTML select string.
* @see multiselectarray
*/
- static function selectarray($htmlname, $array, $id='', $show_empty=0, $key_in_label=0, $value_as_key=0, $moreparam='', $translate=0, $maxlen=0, $disabled=0, $sort='', $morecss='', $addjscombo=0, $moreparamonempty='')
+ public static function selectarray($htmlname, $array, $id='', $show_empty=0, $key_in_label=0, $value_as_key=0, $moreparam='', $translate=0, $maxlen=0, $disabled=0, $sort='', $morecss='', $addjscombo=0, $moreparamonempty='')
{
global $conf, $langs;
diff --git a/htdocs/core/class/html.formactions.class.php b/htdocs/core/class/html.formactions.class.php
index 0316fb461cf..cf46547b9d5 100644
--- a/htdocs/core/class/html.formactions.class.php
+++ b/htdocs/core/class/html.formactions.class.php
@@ -277,7 +277,7 @@ class FormActions
}
else
{
- print $form->selectarray($htmlname, $arraylist, $selected);
+ print Form::selectarray($htmlname, $arraylist, $selected);
}
if ($user->admin && empty($onlyautoornot) && $hideinfohelp <= 0)
diff --git a/htdocs/core/class/html.formfile.class.php b/htdocs/core/class/html.formfile.class.php
index 339ba9c6b5e..a70c6f3f40c 100644
--- a/htdocs/core/class/html.formfile.class.php
+++ b/htdocs/core/class/html.formfile.class.php
@@ -512,7 +512,7 @@ class FormFile
$arraykeys=array_keys($modellist);
$modelselected=$arraykeys[0];
}
- $out.= $form->selectarray('model', $modellist, $modelselected, $showempty, 0, 0, '', 0, 0, 0, '', '');
+ $out.= Form::selectarray('model', $modellist, $modelselected, $showempty, 0, 0, '', 0, 0, 0, '', '');
$out.= '';
}
else
diff --git a/htdocs/core/class/html.formmail.class.php b/htdocs/core/class/html.formmail.class.php
index 9d540a37bb6..2cd001bcf8b 100644
--- a/htdocs/core/class/html.formmail.class.php
+++ b/htdocs/core/class/html.formmail.class.php
@@ -313,7 +313,7 @@ class FormMail extends Form
if (count($modelmail_array)>0)
{
$out.= '
'."\n";
- $out.= $langs->trans('SelectMailModel').': '.$this->selectarray('modelmailselected', $modelmail_array, 0, 1);
+ $out.= $langs->trans('SelectMailModel').': '.Form::selectarray('modelmailselected', $modelmail_array, 0, 1);
if ($user->admin) $out.= info_admin($langs->trans("YouCanChangeValuesForThisListFromDictionarySetup"),1);
$out.= ' ';
$out.= '
';
@@ -477,7 +477,7 @@ class FormMail extends Form
if (! empty($this->withto) && is_array($this->withto))
{
if (! empty($this->withtofree)) $out.= " ".$langs->trans("or")." ";
- $out.= $form->selectarray("receiver", $this->withto, GETPOST("receiver"), 1);
+ $out.= Form::selectarray("receiver", $this->withto, GETPOST("receiver"), 1);
}
if (isset($this->withtosocid) && $this->withtosocid > 0) // deprecated. TODO Remove this. Instead, fill withto with array before calling method.
{
@@ -489,7 +489,7 @@ class FormMail extends Form
$liste[$key]=$value;
}
if ($this->withtofree) $out.= " ".$langs->trans("or")." ";
- $out.= $form->selectarray("receiver", $liste, GETPOST("receiver"), 1);
+ $out.= Form::selectarray("receiver", $liste, GETPOST("receiver"), 1);
}
}
$out.= "\n";
@@ -511,7 +511,7 @@ class FormMail extends Form
if (! empty($this->withtocc) && is_array($this->withtocc))
{
$out.= " ".$langs->trans("or")." ";
- $out.= $form->selectarray("receivercc", $this->withtocc, GETPOST("receivercc"), 1);
+ $out.= Form::selectarray("receivercc", $this->withtocc, GETPOST("receivercc"), 1);
}
}
$out.= "\n";
@@ -533,7 +533,7 @@ class FormMail extends Form
if (! empty($this->withtoccc) && is_array($this->withtoccc))
{
$out.= " ".$langs->trans("or")." ";
- $out.= $form->selectarray("receiverccc", $this->withtoccc, GETPOST("receiverccc"), 1);
+ $out.= Form::selectarray("receiverccc", $this->withtoccc, GETPOST("receiverccc"), 1);
}
}
diff --git a/htdocs/core/class/html.formorder.class.php b/htdocs/core/class/html.formorder.class.php
index 4ecbef60b58..593d38e2296 100644
--- a/htdocs/core/class/html.formorder.class.php
+++ b/htdocs/core/class/html.formorder.class.php
@@ -138,7 +138,7 @@ class FormOrder
return -1;
}
- print $form->selectarray($htmlname,$listofmethods,$selected,$addempty);
+ print Form::selectarray($htmlname,$listofmethods,$selected,$addempty);
return 1;
}
diff --git a/htdocs/core/class/html.formsms.class.php b/htdocs/core/class/html.formsms.class.php
index 35736b56228..2ba92da0916 100644
--- a/htdocs/core/class/html.formsms.class.php
+++ b/htdocs/core/class/html.formsms.class.php
@@ -262,7 +262,7 @@ function limitChars(textarea, limit, infodiv)
}
print " ".$langs->trans("or")." ";
//var_dump($_REQUEST);exit;
- print $form->selectarray("receiver", $liste, GETPOST("receiver"), 1);
+ print Form::selectarray("receiver", $liste, GETPOST("receiver"), 1);
}
print ' '.$langs->trans("SmsInfoNumero");
}
diff --git a/htdocs/core/lib/admin.lib.php b/htdocs/core/lib/admin.lib.php
index 5c6b9613c17..8026f6104c2 100644
--- a/htdocs/core/lib/admin.lib.php
+++ b/htdocs/core/lib/admin.lib.php
@@ -1156,7 +1156,7 @@ function form_constantes($tableau,$strictw3c=0)
{
$arrayoflabels[$codecards]=$_Avery_Labels[$codecards]['name'];
}
- print $form->selectarray('constvalue'.(empty($strictw3c)?'':'[]'),$arrayoflabels,($obj->value?$obj->value:'CARD'),1,0,0);
+ print Form::selectarray('constvalue'.(empty($strictw3c)?'':'[]'),$arrayoflabels,($obj->value?$obj->value:'CARD'),1,0,0);
print '
';
print '';
}
diff --git a/htdocs/core/lib/company.lib.php b/htdocs/core/lib/company.lib.php
index 7e3b5ea2810..ee7a711919f 100644
--- a/htdocs/core/lib/company.lib.php
+++ b/htdocs/core/lib/company.lib.php
@@ -677,7 +677,7 @@ function show_contacts($conf,$langs,$db,$object,$backtopage='')
// Status
print '
';
- print $form->selectarray('search_status', array('-1'=>'','0'=>$contactstatic->LibStatut(0,1),'1'=>$contactstatic->LibStatut(1,1)),$search_status);
+ print Form::selectarray('search_status', array('-1'=>'','0'=>$contactstatic->LibStatut(0,1),'1'=>$contactstatic->LibStatut(1,1)),$search_status);
print ' ';
// Add to agenda
diff --git a/htdocs/core/modules/propale/doc/doc_generic_proposal_odt.modules.php b/htdocs/core/modules/propale/doc/doc_generic_proposal_odt.modules.php
index f651c56e028..a4158bd686b 100644
--- a/htdocs/core/modules/propale/doc/doc_generic_proposal_odt.modules.php
+++ b/htdocs/core/modules/propale/doc/doc_generic_proposal_odt.modules.php
@@ -161,19 +161,19 @@ class doc_generic_proposal_odt extends ModelePDFPropales
$texte.= '
';
$texte.= ''.$langs->trans("DefaultModelPropalCreate").' ';
$texte.= '';
- $texte.= $form->selectarray('value2',$liste,$conf->global->PROPALE_ADDON_PDF_ODT_DEFAULT);
+ $texte.= Form::selectarray('value2',$liste,$conf->global->PROPALE_ADDON_PDF_ODT_DEFAULT);
$texte.= " ";
$texte.= '
';
$texte.= ''.$langs->trans("DefaultModelPropalToBill").' ';
$texte.= '';
- $texte.= $form->selectarray('value3',$liste,$conf->global->PROPALE_ADDON_PDF_ODT_TOBILL);
+ $texte.= Form::selectarray('value3',$liste,$conf->global->PROPALE_ADDON_PDF_ODT_TOBILL);
$texte.= " ";
$texte.= '
';
$texte.= ''.$langs->trans("DefaultModelPropalClosed").' ';
$texte.= '';
- $texte.= $form->selectarray('value4',$liste,$conf->global->PROPALE_ADDON_PDF_ODT_CLOSED);
+ $texte.= Form::selectarray('value4',$liste,$conf->global->PROPALE_ADDON_PDF_ODT_CLOSED);
$texte.= " ";
$texte.= '';
}
diff --git a/htdocs/core/modules/supplier_proposal/doc/doc_generic_supplier_proposal_odt.modules.php b/htdocs/core/modules/supplier_proposal/doc/doc_generic_supplier_proposal_odt.modules.php
index ab906617b07..2a37b0c6b87 100644
--- a/htdocs/core/modules/supplier_proposal/doc/doc_generic_supplier_proposal_odt.modules.php
+++ b/htdocs/core/modules/supplier_proposal/doc/doc_generic_supplier_proposal_odt.modules.php
@@ -161,19 +161,19 @@ class doc_generic_supplier_proposal_odt extends ModelePDFSupplierProposal
$texte.= '
';
$texte.= ''.$langs->trans("DefaultModelSupplierProposalCreate").' ';
$texte.= '';
- $texte.= $form->selectarray('value2',$liste,$conf->global->SUPPLIER_PROPOSAL_ADDON_PDF_ODT_DEFAULT);
+ $texte.= Form::selectarray('value2',$liste,$conf->global->SUPPLIER_PROPOSAL_ADDON_PDF_ODT_DEFAULT);
$texte.= " ";
$texte.= '
';
$texte.= ''.$langs->trans("DefaultModelSupplierProposalToBill").' ';
$texte.= '';
- $texte.= $form->selectarray('value3',$liste,$conf->global->SUPPLIER_PROPOSAL_ADDON_PDF_ODT_TOBILL);
+ $texte.= Form::selectarray('value3',$liste,$conf->global->SUPPLIER_PROPOSAL_ADDON_PDF_ODT_TOBILL);
$texte.= " ";
$texte.= '
';
$texte.= ''.$langs->trans("DefaultModelSupplierProposalClosed").' ';
$texte.= '';
- $texte.= $form->selectarray('value4',$liste,$conf->global->SUPPLIER_PROPOSAL_ADDON_PDF_ODT_CLOSED);
+ $texte.= Form::selectarray('value4',$liste,$conf->global->SUPPLIER_PROPOSAL_ADDON_PDF_ODT_CLOSED);
$texte.= " ";
$texte.= '';
}
diff --git a/htdocs/core/tpl/admin_extrafields_add.tpl.php b/htdocs/core/tpl/admin_extrafields_add.tpl.php
index 25b86cdc0bf..8bf6ac5f8a1 100644
--- a/htdocs/core/tpl/admin_extrafields_add.tpl.php
+++ b/htdocs/core/tpl/admin_extrafields_add.tpl.php
@@ -85,7 +85,7 @@
trans("AttributeCode"); ?> (trans("AlphaNumOnlyLowerCharsAndNoSpace"); ?>)
trans("Type"); ?>
-selectarray('type',$type2label,GETPOST('type')); ?>
+
trans("Size"); ?>
diff --git a/htdocs/cron/list.php b/htdocs/cron/list.php
index eb365dbd5b8..9b08e68297d 100644
--- a/htdocs/cron/list.php
+++ b/htdocs/cron/list.php
@@ -230,7 +230,7 @@ print '
';
print '
';
print '
';
print '
';
-print $form->selectarray('status', array('0'=>$langs->trans("Disabled"), '1'=>$langs->trans("Enabled"), '-2'=>$langs->trans("EnabledAndDisabled"), '2'=>$langs->trans("Archived")), $status, 1);
+print Form::selectarray('status', array('0'=>$langs->trans("Disabled"), '1'=>$langs->trans("Enabled"), '-2'=>$langs->trans("EnabledAndDisabled"), '2'=>$langs->trans("Archived")), $status, 1);
print ' ';
print ' ';
print ' ';
diff --git a/htdocs/don/stats/index.php b/htdocs/don/stats/index.php
index 7da3fadcc6e..81da7484b71 100644
--- a/htdocs/don/stats/index.php
+++ b/htdocs/don/stats/index.php
@@ -252,7 +252,7 @@ print '';
if (! in_array($year,$arrayyears)) $arrayyears[$year]=$year;
if (! in_array($nowyear,$arrayyears)) $arrayyears[$nowyear]=$nowyear;
arsort($arrayyears);
- print $form->selectarray('year',$arrayyears,$year,0);
+ print Form::selectarray('year',$arrayyears,$year,0);
print '
';
print '
';
print '';
diff --git a/htdocs/expedition/card.php b/htdocs/expedition/card.php
index 4c71256baf3..1e3c08bd5fa 100644
--- a/htdocs/expedition/card.php
+++ b/htdocs/expedition/card.php
@@ -680,7 +680,7 @@ if ($action == 'create')
print "
".$langs->trans("DeliveryMethod")." ";
print '';
$expe->fetch_delivery_methods();
- print $form->selectarray("shipping_method_id",$expe->meths,GETPOST('shipping_method_id','int'),1,0,0,"",1);
+ print Form::selectarray("shipping_method_id",$expe->meths,GETPOST('shipping_method_id','int'),1,0,0,"",1);
if ($user->admin) print info_admin($langs->trans("YouCanChangeValuesForThisListFromDictionarySetup"),1);
print " \n";
@@ -714,7 +714,7 @@ if ($action == 'create')
print '
';
include_once DOL_DOCUMENT_ROOT . '/core/modules/expedition/modules_expedition.php';
$liste = ModelePdfExpedition::liste_modeles($db);
- print $form->selectarray('model', $liste, $conf->global->EXPEDITION_ADDON_PDF);
+ print Form::selectarray('model', $liste, $conf->global->EXPEDITION_ADDON_PDF);
print " \n";
print "";
@@ -1455,7 +1455,7 @@ else if ($id || $ref)
print '
';
print '
';
$object->fetch_delivery_methods();
- print $form->selectarray("shipping_method_id",$object->meths,$object->shipping_method_id,1,0,0,"",1);
+ print Form::selectarray("shipping_method_id",$object->meths,$object->shipping_method_id,1,0,0,"",1);
if ($user->admin) print info_admin($langs->trans("YouCanChangeValuesForThisListFromDictionarySetup"),1);
print '
';
print '';
diff --git a/htdocs/expedition/list.php b/htdocs/expedition/list.php
index 288a1b92f37..4b08afabb21 100644
--- a/htdocs/expedition/list.php
+++ b/htdocs/expedition/list.php
@@ -216,7 +216,7 @@ if ($resql)
}
// Status
print '
';
- print $form->selectarray('viewstatut', array('0'=>$langs->trans('StatusSendingDraftShort'),'1'=>$langs->trans('StatusSendingValidatedShort'),'2'=>$langs->trans('StatusSendingProcessedShort')),$viewstatut,1);
+ print Form::selectarray('viewstatut', array('0'=>$langs->trans('StatusSendingDraftShort'),'1'=>$langs->trans('StatusSendingValidatedShort'),'2'=>$langs->trans('StatusSendingProcessedShort')),$viewstatut,1);
print ' ';
print '
';
$searchpitco=$form->showFilterAndCheckAddButtons(0);
diff --git a/htdocs/expedition/stats/index.php b/htdocs/expedition/stats/index.php
index cc5e770d02a..c7c7a561787 100644
--- a/htdocs/expedition/stats/index.php
+++ b/htdocs/expedition/stats/index.php
@@ -251,7 +251,7 @@ print '';
if (! in_array($year,$arrayyears)) $arrayyears[$year]=$year;
if (! in_array($nowyear,$arrayyears)) $arrayyears[$nowyear]=$nowyear;
arsort($arrayyears);
- print $form->selectarray('year',$arrayyears,$year,0);
+ print Form::selectarray('year',$arrayyears,$year,0);
print '
';
print '
';
print '';
diff --git a/htdocs/expensereport/stats/index.php b/htdocs/expensereport/stats/index.php
index 6c515192f78..905a3c45291 100644
--- a/htdocs/expensereport/stats/index.php
+++ b/htdocs/expensereport/stats/index.php
@@ -231,7 +231,7 @@ print '';
print '
'.$langs->trans("Year").' ';
if (! in_array($year,$arrayyears)) $arrayyears[$year]=$year;
arsort($arrayyears);
-print $form->selectarray('year',$arrayyears,$year,0);
+print Form::selectarray('year',$arrayyears,$year,0);
print ' ';
print '
';
print '';
diff --git a/htdocs/fichinter/card.php b/htdocs/fichinter/card.php
index 71fec224137..19dfd0f3fc2 100644
--- a/htdocs/fichinter/card.php
+++ b/htdocs/fichinter/card.php
@@ -1107,7 +1107,7 @@ if ($action == 'create')
print '
'.$langs->trans("DefaultModel").' ';
print '
';
$liste=ModelePDFFicheinter::liste_modeles($db);
- print $form->selectarray('model',$liste,$conf->global->FICHEINTER_ADDON_PDF);
+ print Form::selectarray('model',$liste,$conf->global->FICHEINTER_ADDON_PDF);
print " ";
// Public note
diff --git a/htdocs/fichinter/list.php b/htdocs/fichinter/list.php
index d86c2b86274..c72a2081e36 100644
--- a/htdocs/fichinter/list.php
+++ b/htdocs/fichinter/list.php
@@ -198,7 +198,7 @@ if ($result)
}
print '
';
$liststatus=$interventionstatic->statuts_short;
- print $form->selectarray('search_status', $liststatus, $search_status, 1, 0, 0, '', 1);
+ print Form::selectarray('search_status', $liststatus, $search_status, 1, 0, 0, '', 1);
print ' ';
print '
';
$searchpitco=$form->showFilterAndCheckAddButtons(0);
diff --git a/htdocs/fichinter/stats/index.php b/htdocs/fichinter/stats/index.php
index 5cdd7923cbd..428f55bc5cd 100644
--- a/htdocs/fichinter/stats/index.php
+++ b/htdocs/fichinter/stats/index.php
@@ -254,7 +254,7 @@ print '';
if (! in_array($year,$arrayyears)) $arrayyears[$year]=$year;
if (! in_array($nowyear,$arrayyears)) $arrayyears[$nowyear]=$nowyear;
arsort($arrayyears);
- print $form->selectarray('year',$arrayyears,$year,0);
+ print Form::selectarray('year',$arrayyears,$year,0);
print '
';
print '
';
print '';
diff --git a/htdocs/fourn/commande/card.php b/htdocs/fourn/commande/card.php
index 6c7d3ef1b35..2da648e01cd 100644
--- a/htdocs/fourn/commande/card.php
+++ b/htdocs/fourn/commande/card.php
@@ -3016,7 +3016,7 @@ elseif (! empty($object->id))
$liv['nev'] = $langs->trans("NeverReceived");
$liv['can'] = $langs->trans("Canceled");
- print $form->selectarray("type",$liv);
+ print Form::selectarray("type",$liv);
print '';
print '
'.$langs->trans("Comment").' ';
diff --git a/htdocs/fourn/commande/orderstoinvoice.php b/htdocs/fourn/commande/orderstoinvoice.php
index 3f75bca3a35..a4d08a2ac75 100644
--- a/htdocs/fourn/commande/orderstoinvoice.php
+++ b/htdocs/fourn/commande/orderstoinvoice.php
@@ -364,7 +364,7 @@ if ($action == 'create' && !$error) {
print '
' . $langs->trans('Model') . ' ';
print '';
$liste = ModelePDFSuppliersInvoices::liste_modeles($db);
- print $html->selectarray('model', $liste, $conf->global->INVOICE_SUPPLIER_ADDON_PDF);
+ print Form::selectarray('model', $liste, $conf->global->INVOICE_SUPPLIER_ADDON_PDF);
print " ";
// Public note
diff --git a/htdocs/fourn/facture/list.php b/htdocs/fourn/facture/list.php
index dafe95e419d..34d8a0e13e4 100644
--- a/htdocs/fourn/facture/list.php
+++ b/htdocs/fourn/facture/list.php
@@ -338,7 +338,7 @@ if ($resql)
print '
';
print '
';
$liststatus=array('0'=>$langs->trans("Draft"),'1'=>$langs->trans("Unpaid"), '2'=>$langs->trans("Paid"));
- print $form->selectarray('filtre', $liststatus, $search_status, 1);
+ print Form::selectarray('filtre', $liststatus, $search_status, 1);
print ' ';
print '
';
$searchpitco=$form->showFilterAndCheckAddButtons(0);
diff --git a/htdocs/holiday/card.php b/htdocs/holiday/card.php
index 8cae9592033..eb7604cc2af 100644
--- a/htdocs/holiday/card.php
+++ b/htdocs/holiday/card.php
@@ -812,7 +812,7 @@ if (empty($id) || $action == 'add' || $action == 'request' || $action == 'create
$labeltoshow .= ($val['delay'] > 0 ? ' ('.$langs->trans("NoticePeriod").': '.$val['delay'].' '.$langs->trans("days").')':'');
$arraytypeleaves[$val['rowid']]=$labeltoshow;
}
- print $form->selectarray('type', $arraytypeleaves, (GETPOST('type')?GETPOST('type'):''), 1);
+ print Form::selectarray('type', $arraytypeleaves, (GETPOST('type')?GETPOST('type'):''), 1);
if ($user->admin) print info_admin($langs->trans("YouCanChangeValuesForThisListFromDictionarySetup"),1);
print ' ';
print '';
@@ -829,7 +829,7 @@ if (empty($id) || $action == 'add' || $action == 'request' || $action == 'create
$form->select_date($tmpdate,'date_debut_');
}
print ' ';
- print $form->selectarray('starthalfday', $listhalfday, (GETPOST('starthalfday')?GETPOST('starthalfday'):'morning'));
+ print Form::selectarray('starthalfday', $listhalfday, (GETPOST('starthalfday')?GETPOST('starthalfday'):'morning'));
print '';
print '';
@@ -845,7 +845,7 @@ if (empty($id) || $action == 'add' || $action == 'request' || $action == 'create
$form->select_date($tmpdate,'date_fin_');
}
print ' ';
- print $form->selectarray('endhalfday', $listhalfday, (GETPOST('endhalfday')?GETPOST('endhalfday'):'afternoon'));
+ print Form::selectarray('endhalfday', $listhalfday, (GETPOST('endhalfday')?GETPOST('endhalfday'):'afternoon'));
print '';
print '';
@@ -1037,7 +1037,7 @@ else
print '
';
$form->select_date($cp->date_debut,'date_debut_');
print ' ';
- print $form->selectarray('starthalfday', $listhalfday, (GETPOST('starthalfday')?GETPOST('starthalfday'):$starthalfday));
+ print Form::selectarray('starthalfday', $listhalfday, (GETPOST('starthalfday')?GETPOST('starthalfday'):$starthalfday));
print ' ';
print '';
}
@@ -1059,7 +1059,7 @@ else
print '
';
$form->select_date($cp->date_fin,'date_fin_');
print ' ';
- print $form->selectarray('endhalfday', $listhalfday, (GETPOST('endhalfday')?GETPOST('endhalfday'):$endhalfday));
+ print Form::selectarray('endhalfday', $listhalfday, (GETPOST('endhalfday')?GETPOST('endhalfday'):$endhalfday));
print ' ';
print '';
}
diff --git a/htdocs/holiday/document.php b/htdocs/holiday/document.php
index 63d07cebddf..e06b74217a6 100644
--- a/htdocs/holiday/document.php
+++ b/htdocs/holiday/document.php
@@ -153,7 +153,7 @@ if ($object->id)
print '
';
$form->select_date($object->date_debut,'date_debut_');
print ' ';
- print $form->selectarray('starthalfday', $listhalfday, (GETPOST('starthalfday')?GETPOST('starthalfday'):$starthalfday));
+ print Form::selectarray('starthalfday', $listhalfday, (GETPOST('starthalfday')?GETPOST('starthalfday'):$starthalfday));
print ' ';
print '';
}
@@ -175,7 +175,7 @@ if ($object->id)
print '
';
$form->select_date($object->date_fin,'date_fin_');
print ' ';
- print $form->selectarray('endhalfday', $listhalfday, (GETPOST('endhalfday')?GETPOST('endhalfday'):$endhalfday));
+ print Form::selectarray('endhalfday', $listhalfday, (GETPOST('endhalfday')?GETPOST('endhalfday'):$endhalfday));
print ' ';
print '';
}
diff --git a/htdocs/hrm/establishment/card.php b/htdocs/hrm/establishment/card.php
index fb6f41f4f39..e548b3d2403 100644
--- a/htdocs/hrm/establishment/card.php
+++ b/htdocs/hrm/establishment/card.php
@@ -224,7 +224,7 @@ if ($action == 'create')
print '
';
print ''.fieldLabel('Status','status',1).' ';
print '';
- print $form->selectarray('status',$status2label,GETPOST('status'));
+ print Form::selectarray('status',$status2label,GETPOST('status'));
print ' ';
print '';
@@ -296,7 +296,7 @@ else if ($id)
// Status
print '
'.fieldLabel('Status','status',1).' ';
- print $form->selectarray('status',$status2label,$object->status);
+ print Form::selectarray('status',$status2label,$object->status);
print ' ';
print '';
diff --git a/htdocs/opensurvey/list.php b/htdocs/opensurvey/list.php
index b440b5ee43e..5ab76133748 100644
--- a/htdocs/opensurvey/list.php
+++ b/htdocs/opensurvey/list.php
@@ -106,7 +106,7 @@ print '
';
print '
';
print '
';
$arraystatus=array(''=>' ','expired'=>$langs->trans("Expired"),'opened'=>$langs->trans("Opened"));
-print '
'. $form->selectarray('status', $arraystatus, $status).' ';
+print '
'. Form::selectarray('status', $arraystatus, $status).' ';
print '
';
$searchpitco=$form->showFilterAndCheckAddButtons(0);
print $searchpitco;
diff --git a/htdocs/opensurvey/results.php b/htdocs/opensurvey/results.php
index 5c14a20de23..d51a308e679 100644
--- a/htdocs/opensurvey/results.php
+++ b/htdocs/opensurvey/results.php
@@ -527,7 +527,7 @@ if (GETPOST('ajoutsujet'))
print $langs->trans("AddNewColumn") .': ';
print $langs->trans("Title").' ';
$tmparray=array('checkbox'=>$langs->trans("CheckBox"),'yesno'=>$langs->trans("YesNoList"),'foragainst'=>$langs->trans("PourContreList"));
- print $langs->trans("Type").' '.$form->selectarray("typecolonne", $tmparray, GETPOST('typecolonne')).' ';
+ print $langs->trans("Type").' '.Form::selectarray("typecolonne", $tmparray, GETPOST('typecolonne')).' ';
print ' ';
print ' ';
print ' ';
@@ -850,12 +850,12 @@ while ($compteur < $num)
if (! empty($listofanswers[$i]['format']) && $listofanswers[$i]['format'] == 'yesno')
{
$arraychoice=array('2'=>' ','0'=>$langs->trans("No"),'1'=>$langs->trans("Yes"));
- print $form->selectarray("choix".$i, $arraychoice, $car);
+ print Form::selectarray("choix".$i, $arraychoice, $car);
}
if (! empty($listofanswers[$i]['format']) && $listofanswers[$i]['format'] == 'foragainst')
{
$arraychoice=array('2'=>' ','0'=>$langs->trans("Against"),'1'=>$langs->trans("For"));
- print $form->selectarray("choix".$i, $arraychoice, $car);
+ print Form::selectarray("choix".$i, $arraychoice, $car);
}
print ' '."\n";
}
@@ -948,12 +948,12 @@ if (empty($testligneamodifier))
if (! empty($listofanswers[$i]['format']) && $listofanswers[$i]['format'] == 'yesno')
{
$arraychoice=array('2'=>' ','0'=>$langs->trans("No"),'1'=>$langs->trans("Yes"));
- print $form->selectarray("choix".$i, $arraychoice);
+ print Form::selectarray("choix".$i, $arraychoice);
}
if (! empty($listofanswers[$i]['format']) && $listofanswers[$i]['format'] == 'foragainst')
{
$arraychoice=array('2'=>' ','0'=>$langs->trans("Against"),'1'=>$langs->trans("For"));
- print $form->selectarray("choix".$i, $arraychoice);
+ print Form::selectarray("choix".$i, $arraychoice);
}
print ''."\n";
}
diff --git a/htdocs/opensurvey/wizard/choix_autre.php b/htdocs/opensurvey/wizard/choix_autre.php
index a415d6b4987..8e41b2398e1 100644
--- a/htdocs/opensurvey/wizard/choix_autre.php
+++ b/htdocs/opensurvey/wizard/choix_autre.php
@@ -137,7 +137,7 @@ for ($i = 0; $i < $_SESSION["nbrecases"]; $i++) {
}
print '
'. $langs->trans("TitleChoice") .' '.$j.': ';
$tmparray=array('checkbox'=>$langs->trans("CheckBox"),'yesno'=>$langs->trans("YesNoList"),'foragainst'=>$langs->trans("PourContreList"));
- print ' '.$langs->trans("Type").' '.$form->selectarray("typecolonne[]", $tmparray, $_SESSION["typecolonne$i"]);
+ print ' '.$langs->trans("Type").' '.Form::selectarray("typecolonne[]", $tmparray, $_SESSION["typecolonne$i"]);
print ''."\n";
}
diff --git a/htdocs/paypal/admin/paypal.php b/htdocs/paypal/admin/paypal.php
index f794989c59e..6e34fb836b0 100644
--- a/htdocs/paypal/admin/paypal.php
+++ b/htdocs/paypal/admin/paypal.php
@@ -157,7 +157,7 @@ print '';
$var=!$var;
print '
';
print $langs->trans("PAYPAL_SSLVERSION").' ';
-print $form->selectarray("PAYPAL_SSLVERSION",array('1'=> $langs->trans('TLSv1'),'6'=> $langs->trans('TLSv1.2')),$conf->global->PAYPAL_SSLVERSION);
+print Form::selectarray("PAYPAL_SSLVERSION",array('1'=> $langs->trans('TLSv1'),'6'=> $langs->trans('TLSv1.2')),$conf->global->PAYPAL_SSLVERSION);
print ' ';
// Usage Parameters
@@ -170,7 +170,7 @@ print "\n";
$var=!$var;
print '
';
print $langs->trans("PAYPAL_API_INTEGRAL_OR_PAYPALONLY").' ';
-print $form->selectarray("PAYPAL_API_INTEGRAL_OR_PAYPALONLY",array('integral'=> $langs->trans('PaypalModeIntegral'),'paypalonly'=> $langs->trans('PaypalModeOnlyPaypal')),$conf->global->PAYPAL_API_INTEGRAL_OR_PAYPALONLY);
+print Form::selectarray("PAYPAL_API_INTEGRAL_OR_PAYPALONLY",array('integral'=> $langs->trans('PaypalModeIntegral'),'paypalonly'=> $langs->trans('PaypalModeOnlyPaypal')),$conf->global->PAYPAL_API_INTEGRAL_OR_PAYPALONLY);
print ' ';
/*$var=!$var;
diff --git a/htdocs/product/admin/dynamic_prices.php b/htdocs/product/admin/dynamic_prices.php
index 7c9a46d8972..c8230f8421e 100644
--- a/htdocs/product/admin/dynamic_prices.php
+++ b/htdocs/product/admin/dynamic_prices.php
@@ -290,7 +290,7 @@ if ($action == 'create_updater' || $action == 'edit_updater') {
foreach ($price_globals->listGlobalVariables() as $entry) {
$globals_list[$entry->id]=$entry->code;
}
- print $form->selectarray('fk_variable', $globals_list, (empty($price_updaters->fk_variable)?0:$price_updaters->fk_variable));
+ print Form::selectarray('fk_variable', $globals_list, (empty($price_updaters->fk_variable)?0:$price_updaters->fk_variable));
print '';
//Description
print '
';
@@ -305,7 +305,7 @@ if ($action == 'create_updater' || $action == 'edit_updater') {
foreach ($price_updaters->types as $val) {
$type_list[$val] = $langs->trans("GlobalVariableUpdaterType".$val);
}
- print $form->selectarray('type', $type_list, $type);
+ print Form::selectarray('type', $type_list, $type);
// This code submits form when type is changed
print '