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);