68 print
'<select class="flat" id="'.$htmlname.
'" name="'.$htmlname.
'">';
70 print
'<option value="-1"> </option>';
72 $arrayoflabels = $tmpep->statuts;
74 $arrayoflabels = $tmpep->statuts_short;
76 foreach ($arrayoflabels as $key => $val) {
77 if ($selected !=
'' && $selected == $key) {
78 print
'<option value="'.$key.
'" selected>';
80 print
'<option value="'.$key.
'">';
82 print $langs->trans($val);
101 global $langs, $user;
102 $langs->load(
"trips");
106 $out .=
'<select class="flat" name="'.$htmlname.
'" id="'.$htmlname.
'">';
108 $out .=
'<option value="-1"';
109 if ($selected == -1) {
112 $out .=
'> </option>';
115 $sql =
"SELECT c.id, c.code, c.label as type FROM ".$this->db->prefix().
"c_type_fees as c";
117 $sql .=
" WHERE c.active = ".((int) $active);
119 $sql .=
" ORDER BY c.label ASC";
126 $obj = $this->
db->fetch_object(
$resql);
127 $out .=
'<option value="'.$obj->id.
'"';
128 if ($obj->code == $selected || $obj->id == $selected) {
132 if ($obj->code != $langs->trans($obj->code)) {
133 $out .= $langs->trans($obj->code);
135 $out .= $langs->trans($obj->type);
ajax_combobox($htmlname, $events=array(), $minLengthToAutocomplete=0, $forcefocus=0, $widthTypeOfAutocomplete='resolve', $idforemptyvalue='-1', $morecss='')
Convert a html select field into an ajax combobox.
Class to manage Trips and Expenses.
if(isModEnabled('facture') &&!empty($user->rights->facture->lire)) if((isModEnabled('fournisseur') &&empty($conf->global->MAIN_USE_NEW_SUPPLIERMOD) && $user->hasRight("fournisseur", "facture", "lire"))||(isModEnabled('supplier_invoice') && $user->hasRight("supplier_invoice", "lire"))) if(isModEnabled('don') &&!empty($user->rights->don->lire)) if(isModEnabled('tax') &&!empty($user->rights->tax->charges->lire)) if(isModEnabled('facture') &&isModEnabled('commande') && $user->hasRight("commande", "lire") &&empty($conf->global->WORKFLOW_DISABLE_CREATE_INVOICE_FROM_ORDER)) $resql
Social contributions to pay.
$conf db
API class for accounts.