104 |
|
|
105 |
if ($selected > 0 && $selected == $obj->rowid) |
if ($selected > 0 && $selected == $obj->rowid) |
106 |
{ |
{ |
107 |
print '<option value="'.$obj->rowid.'" selected>'; |
print '<option value="'.$obj->rowid.'" selected="true">'; |
108 |
} |
} |
109 |
else |
else |
110 |
{ |
{ |
164 |
|
|
165 |
if ($selected > 0 && $selected == $obj->code) |
if ($selected > 0 && $selected == $obj->code) |
166 |
{ |
{ |
167 |
print '<option value="'.$obj->code.'" selected>'.$obj->libelle.'</option>'; |
print '<option value="'.$obj->code.'" selected="true">'.$obj->libelle.'</option>'; |
168 |
} |
} |
169 |
else |
else |
170 |
{ |
{ |
212 |
if ($selected > 0 && $selected == $obj->rowid) |
if ($selected > 0 && $selected == $obj->rowid) |
213 |
{ |
{ |
214 |
$foundselected=true; |
$foundselected=true; |
215 |
print '<option value="'.$obj->rowid.'" selected>'; |
print '<option value="'.$obj->rowid.'" selected="true">'; |
216 |
} |
} |
217 |
else |
else |
218 |
{ |
{ |
256 |
{ |
{ |
257 |
if ($selected == $langs_available[$i]) |
if ($selected == $langs_available[$i]) |
258 |
{ |
{ |
259 |
print '<option value="'.$langs_available[$i].'" selected>'.$langs_available[$i].'</option>'; |
print '<option value="'.$langs_available[$i].'" selected="true">'.$langs_available[$i].'</option>'; |
260 |
} |
} |
261 |
else |
else |
262 |
{ |
{ |
291 |
{ |
{ |
292 |
if ($selected == $type_available[$i]) |
if ($selected == $type_available[$i]) |
293 |
{ |
{ |
294 |
print '<option value="'.$type_available[$i].'" selected>'.$langs->trans("BankType".$type_available[$i]).'</option>'; |
print '<option value="'.$type_available[$i].'" selected="true">'.$langs->trans("BankType".$type_available[$i]).'</option>'; |
295 |
} |
} |
296 |
else |
else |
297 |
{ |
{ |
331 |
$obj = $this->db->fetch_object($resql); |
$obj = $this->db->fetch_object($resql); |
332 |
if ($selected > 0 && $selected == $obj->idp) |
if ($selected > 0 && $selected == $obj->idp) |
333 |
{ |
{ |
334 |
print '<option value="'.$obj->idp.'" selected>'.$obj->nom.'</option>'; |
print '<option value="'.$obj->idp.'" selected="true">'.$obj->nom.'</option>'; |
335 |
} |
} |
336 |
else |
else |
337 |
{ |
{ |
375 |
|
|
376 |
if ($selected && $selected == $obj->idp) |
if ($selected && $selected == $obj->idp) |
377 |
{ |
{ |
378 |
print '<option value="'.$obj->idp.'" selected>'.$obj->name.' '.$obj->firstname.'</option>'; |
print '<option value="'.$obj->idp.'" selected="true">'.$obj->name.' '.$obj->firstname.'</option>'; |
379 |
} |
} |
380 |
else |
else |
381 |
{ |
{ |
421 |
$obj = $this->db->fetch_object(); |
$obj = $this->db->fetch_object(); |
422 |
if (!empty($selected) && $selected == $obj->rowid) |
if (!empty($selected) && $selected == $obj->rowid) |
423 |
{ |
{ |
424 |
print '<option value="'.$obj->rowid.'" selected>'.$obj->title.'</option>'; |
print '<option value="'.$obj->rowid.'" selected="true">'.$obj->title.'</option>'; |
425 |
} |
} |
426 |
else |
else |
427 |
{ |
{ |
460 |
if ($result) |
if ($result) |
461 |
{ |
{ |
462 |
print '<select class="flat" name="'.$htmlname.'">'; |
print '<select class="flat" name="'.$htmlname.'">'; |
463 |
print "<option value=\"0\" selected> </option>"; |
print "<option value=\"0\" selected=\"true\"> </option>"; |
464 |
|
|
465 |
$num = $this->db->num_rows($result); |
$num = $this->db->num_rows($result); |
466 |
$i = 0; |
$i = 0; |
510 |
$obj = $this->db->fetch_object($result); |
$obj = $this->db->fetch_object($result); |
511 |
if ($selected == $obj->code) |
if ($selected == $obj->code) |
512 |
{ |
{ |
513 |
print '<option value="'.$obj->id.'" selected>'; |
print '<option value="'.$obj->id.'" selected="true">'; |
514 |
} |
} |
515 |
else |
else |
516 |
{ |
{ |
556 |
$obj = $this->db->fetch_object($result); |
$obj = $this->db->fetch_object($result); |
557 |
if ($selected == $obj->rowid) |
if ($selected == $obj->rowid) |
558 |
{ |
{ |
559 |
print '<option value="'.$obj->rowid.'" selected>'; |
print '<option value="'.$obj->rowid.'" selected="true">'; |
560 |
} |
} |
561 |
else |
else |
562 |
{ |
{ |
600 |
$obj = $this->db->fetch_object(); |
$obj = $this->db->fetch_object(); |
601 |
if ($selected == $obj->code) |
if ($selected == $obj->code) |
602 |
{ |
{ |
603 |
print '<option value="'.$obj->code.'" selected>'; |
print '<option value="'.$obj->code.'" selected="true">'; |
604 |
} |
} |
605 |
else |
else |
606 |
{ |
{ |
668 |
|
|
669 |
if ($selected > 0 && $selected == $obj->code) |
if ($selected > 0 && $selected == $obj->code) |
670 |
{ |
{ |
671 |
print '<option value="'.$obj->code.'" selected>'; |
print '<option value="'.$obj->code.'" selected="true">'; |
672 |
} |
} |
673 |
else |
else |
674 |
{ |
{ |
885 |
if ($selected && $selected == $obj->code_iso) |
if ($selected && $selected == $obj->code_iso) |
886 |
{ |
{ |
887 |
$foundselected=true; |
$foundselected=true; |
888 |
print '<option value="'.$obj->code_iso.'" selected>'; |
print '<option value="'.$obj->code_iso.'" selected="true">'; |
889 |
} |
} |
890 |
else |
else |
891 |
{ |
{ |
942 |
else |
else |
943 |
{ |
{ |
944 |
$txtva[0] = '19.6'; |
$txtva[0] = '19.6'; |
945 |
$libtva[0] = ''; |
$libtva[0] = '19.6'; |
946 |
$txtva[1] = '5.5'; |
$txtva[1] = '5.5'; |
947 |
$libtva[1] = ''; |
$libtva[1] = '5.5'; |
948 |
$txtva[2] = '0'; |
$txtva[2] = '0'; |
949 |
$libtva[2] = ''; |
$libtva[2] = '0'; |
950 |
} |
} |
951 |
|
|
952 |
if ($defaulttx == '') |
if ($defaulttx == '') |
964 |
print '<option value="'.$txtva[$i].'"'; |
print '<option value="'.$txtva[$i].'"'; |
965 |
if ($txtva[$i] == $defaulttx) |
if ($txtva[$i] == $defaulttx) |
966 |
{ |
{ |
967 |
print ' selected>'.$libtva[$i].'</option>'; |
print ' selected="true"'; |
|
} |
|
|
else |
|
|
{ |
|
|
print '>'.$libtva[$i].'</option>'; |
|
968 |
} |
} |
969 |
|
print '>'.$libtva[$i].'%</option>'; |
970 |
} |
} |
971 |
print '</select>'; |
print '</select>'; |
972 |
} |
} |
1031 |
$shour = 0; |
$shour = 0; |
1032 |
$smin = 0; |
$smin = 0; |
1033 |
|
|
1034 |
print '<option value="0" selected>'; |
print '<option value="0" selected="true"></option>'; |
1035 |
} |
} |
1036 |
|
|
1037 |
for ($day = 1 ; $day <= 31; $day++) |
for ($day = 1 ; $day <= 31; $day++) |
1038 |
{ |
{ |
1039 |
if ($day == $sday) |
if ($day == $sday) |
1040 |
{ |
{ |
1041 |
print "<option value=\"$day\" selected>$day"; |
print "<option value=\"$day\" selected=\"true\">$day"; |
1042 |
} |
} |
1043 |
else |
else |
1044 |
{ |
{ |
1045 |
print "<option value=\"$day\">$day"; |
print "<option value=\"$day\">$day"; |
1046 |
} |
} |
1047 |
} |
print "</option>"; |
1048 |
|
} |
1049 |
|
|
1050 |
print "</select>"; |
print "</select>"; |
1051 |
|
|
1052 |
print '<select class="flat" name="'.$prefix.'month">'; |
print '<select class="flat" name="'.$prefix.'month">'; |
1053 |
if ($empty || $set_time == -1) |
if ($empty || $set_time == -1) |
1054 |
{ |
{ |
1055 |
print '<option value="0" selected>'; |
print '<option value="0" selected="true"></option>'; |
1056 |
} |
} |
1057 |
|
|
1058 |
// Mois |
// Mois |
1059 |
for ($month = 1 ; $month <= 12 ; $month++) |
for ($month = 1 ; $month <= 12 ; $month++) |
1060 |
{ |
{ |
1061 |
if ($month == $smonth) |
if ($month == $smonth) |
1062 |
{ |
{ |
1063 |
print "<option value=\"$month\" selected>" . $strmonth[$month]; |
print "<option value=\"$month\" selected=\"true\">" . $strmonth[$month]; |
1064 |
} |
} |
1065 |
else |
else |
1066 |
{ |
{ |
1067 |
print "<option value=\"$month\">" . $strmonth[$month]; |
print "<option value=\"$month\">" . $strmonth[$month]; |
1068 |
} |
} |
1069 |
} |
print "</option>"; |
1070 |
|
} |
1071 |
print "</select>"; |
print "</select>"; |
1072 |
|
|
1073 |
// Année |
// Année |
1080 |
print '<select class="flat" name="'.$prefix.'year">'; |
print '<select class="flat" name="'.$prefix.'year">'; |
1081 |
|
|
1082 |
for ($year = $syear - 3; $year < $syear + 5 ; $year++) |
for ($year = $syear - 3; $year < $syear + 5 ; $year++) |
1083 |
{ |
{ |
1084 |
if ($year == $syear) |
if ($year == $syear) |
1085 |
{ |
{ |
1086 |
print "<option value=\"$year\" selected>$year"; |
print "<option value=\"$year\" selected=\"true\">$year"; |
1087 |
} |
} |
1088 |
else |
else |
1089 |
{ |
{ |
1090 |
print "<option value=\"$year\">$year"; |
print "<option value=\"$year\">$year"; |
1091 |
} |
} |
1092 |
} |
print "</option>"; |
1093 |
print "</select>\n"; |
} |
1094 |
|
print "</select>\n"; |
1095 |
} |
} |
1096 |
|
|
1097 |
if ($h) |
if ($h) |
1098 |
{ |
{ |
1099 |
print '<select class="flat" name="'.$prefix.'hour">'; |
print '<select class="flat" name="'.$prefix.'hour">'; |
1100 |
|
|
1101 |
for ($hour = 0; $hour < 24 ; $hour++) |
for ($hour = 0; $hour < 24 ; $hour++) |
1102 |
{ |
{ |
1103 |
if (strlen($hour) < 2) |
if (strlen($hour) < 2) |
1104 |
{ |
{ |
1105 |
$hour = "0" . $hour; |
$hour = "0" . $hour; |
1106 |
} |
} |
1107 |
if ($hour == $shour) |
if ($hour == $shour) |
1108 |
{ |
{ |
1109 |
print "<option value=\"$hour\" selected>$hour"; |
print "<option value=\"$hour\" selected=\"true\">$hour"; |
1110 |
} |
} |
1111 |
else |
else |
1112 |
{ |
{ |
1113 |
print "<option value=\"$hour\">$hour"; |
print "<option value=\"$hour\">$hour"; |
1114 |
} |
} |
1115 |
|
print "</option>"; |
1116 |
} |
} |
1117 |
print "</select>H\n"; |
print "</select>H\n"; |
1118 |
|
|
1120 |
{ |
{ |
1121 |
print '<select class="flat" name="'.$prefix.'min">'; |
print '<select class="flat" name="'.$prefix.'min">'; |
1122 |
|
|
1123 |
for ($min = 0; $min < 60 ; $min++) |
for ($min = 0; $min < 60 ; $min++) |
1124 |
{ |
{ |
1125 |
if (strlen($min) < 2) |
if (strlen($min) < 2) |
1126 |
{ |
{ |
1127 |
$min = "0" . $min; |
$min = "0" . $min; |
1128 |
} |
} |
1129 |
if ($min == $smin) |
if ($min == $smin) |
1130 |
{ |
{ |
1131 |
print "<option value=\"$min\" selected>$min"; |
print "<option value=\"$min\" selected=\"true\">$min"; |
1132 |
} |
} |
1133 |
else |
else |
1134 |
{ |
{ |
1135 |
print "<option value=\"$min\">$min"; |
print "<option value=\"$min\">$min"; |
1136 |
} |
} |
1137 |
} |
print "</option>"; |
1138 |
print "</select>M\n"; |
} |
1139 |
|
print "</select>M\n"; |
1140 |
} |
} |
1141 |
|
|
1142 |
} |
} |
1166 |
print "<option value=\"$row[0]\" "; |
print "<option value=\"$row[0]\" "; |
1167 |
if ($id == $row[0]) |
if ($id == $row[0]) |
1168 |
{ |
{ |
1169 |
print "selected"; |
print 'selected="true"'; |
1170 |
} |
} |
1171 |
print ">$row[1]</option>\n"; |
print ">$row[1]</option>\n"; |
1172 |
$i++; |
$i++; |
1221 |
// Si il faut présélectionner une valeur |
// Si il faut présélectionner une valeur |
1222 |
if ($id && $id == $key) |
if ($id && $id == $key) |
1223 |
{ |
{ |
1224 |
print "selected"; |
print 'selected="true"'; |
1225 |
} |
} |
1226 |
|
|
1227 |
if ($key_libelle) |
if ($key_libelle) |
1270 |
print '<select class="flat" name="'.$name.'">'."\n"; |
print '<select class="flat" name="'.$name.'">'."\n"; |
1271 |
if (("$value" == 'yes') || ($value == 1)) |
if (("$value" == 'yes') || ($value == 1)) |
1272 |
{ |
{ |
1273 |
print '<option value="'.$yes.'" selected>'.$langs->trans("yes").'</option>'."\n"; |
print '<option value="'.$yes.'" selected="true">'.$langs->trans("yes").'</option>'."\n"; |
1274 |
print '<option value="'.$no.'">'.$langs->trans("no").'</option>'."\n"; |
print '<option value="'.$no.'">'.$langs->trans("no").'</option>'."\n"; |
1275 |
} |
} |
1276 |
else |
else |
1277 |
{ |
{ |
1278 |
print '<option value="'.$yes.'">'.$langs->trans("yes").'</option>'."\n"; |
print '<option value="'.$yes.'">'.$langs->trans("yes").'</option>'."\n"; |
1279 |
print '<option value="'.$no.'" selected>'.$langs->trans("no").'</option>'."\n"; |
print '<option value="'.$no.'" selected="true">'.$langs->trans("no").'</option>'."\n"; |
1280 |
} |
} |
1281 |
print '</select>'."\n"; |
print '</select>'."\n"; |
1282 |
} |
} |