68 print '<select class="flat" id="'.$htmlname.
'" name="'.$htmlname.
'">';
69 if ($useempty)
print '<option value="-1"> </option>';
70 $arrayoflabels = $tmpep->statuts;
71 if ($useshortlabel) $arrayoflabels = $tmpep->statuts_short;
72 foreach ($arrayoflabels as $key => $val)
74 if ($selected !=
'' && $selected == $key)
76 print '<option value="'.$key.
'" selected>';
78 print '<option value="'.$key.
'">';
80 print $langs->trans($val);
100 $langs->load(
"trips");
104 $out .=
'<select class="flat" name="'.$htmlname.
'" id="'.$htmlname.
'">';
107 $out .=
'<option value="-1"';
108 if ($selected == -1) $out .=
' selected';
109 $out .=
'> </option>';
112 $sql =
"SELECT c.id, c.code, c.label as type FROM ".MAIN_DB_PREFIX.
"c_type_fees as c";
113 if ($active >= 0) $sql .=
" WHERE c.active = ".$active;
114 $sql .=
" ORDER BY c.label ASC";
123 $obj = $this->
db->fetch_object(
$resql);
124 $out .=
'<option value="'.$obj->id.
'"';
125 if ($obj->code == $selected || $obj->id == $selected) $out .=
' selected';
127 if ($obj->code != $langs->trans($obj->code)) $out .= $langs->trans($obj->code);
128 else $out .= $langs->trans($obj->type);
ajax_combobox($htmlname, $events=array(), $minLengthToAutocomplete=0, $forcefocus=0, $widthTypeOfAutocomplete= 'resolve')
Convert a html select field into an ajax combobox.
$conf db
API class for accounts.
Class to manage Trips and Expenses.
print
Draft customers invoices.
if(!empty($conf->facture->enabled)&&$user->rights->facture->lire) if((!empty($conf->fournisseur->enabled)&&empty($conf->global->MAIN_USE_NEW_SUPPLIERMOD)||!empty($conf->supplier_invoice->enabled))&&$user->rights->fournisseur->facture->lire) if(!empty($conf->don->enabled)&&$user->rights->don->lire) if(!empty($conf->tax->enabled)&&$user->rights->tax->charges->lire) if(!empty($conf->facture->enabled)&&!empty($conf->commande->enabled)&&$user->rights->commande->lire &&empty($conf->global->WORKFLOW_DISABLE_CREATE_INVOICE_FROM_ORDER)) if(!empty($conf->facture->enabled)&&$user->rights->facture->lire) if((!empty($conf->fournisseur->enabled)&&empty($conf->global->MAIN_USE_NEW_SUPPLIERMOD)||!empty($conf->supplier_invoice->enabled))&&$user->rights->fournisseur->facture->lire) $resql
Social contributions to pay.