66 $langs->load(
'cron@cron');
68 if (!empty($readonly)) {
69 if ($selected ==
'command') {
70 $out = $langs->trans(
'CronType_command');
71 $out .=
'<SELECT name="'.$htmlname.
'" id="'.$htmlname.
'" style="display:none"/>';
72 $out .=
'<OPTION value="command" selected>'.$langs->trans(
'CronType_command').
'</OPTION>';
74 } elseif ($selected ==
'method') {
75 $out = $langs->trans(
'CronType_method');
76 $out .=
'<SELECT name="'.$htmlname.
'" id="'.$htmlname.
'" style="display:none"/>';
77 $out .=
'<OPTION value="method" selected>'.$langs->trans(
'CronType_method').
'</OPTION>';
81 $out =
'<SELECT class="flat" name="'.$htmlname.
'" id="'.$htmlname.
'" />';
83 if ($selected ==
'command') {
84 $selected_attr =
' selected ';
88 $out .=
'<OPTION value="command" '.$selected_attr.
'>'.$langs->trans(
'CronType_command').
'</OPTION>';
90 if ($selected ==
'method') {
91 $selected_attr =
' selected ';
95 $out .=
'<OPTION value="method" '.$selected_attr.
'>'.$langs->trans(
'CronType_method').
'</OPTION>';
99 if (empty($readonly)) {
ajax_combobox($htmlname, $events=array(), $minLengthToAutocomplete=0, $forcefocus=0, $widthTypeOfAutocomplete='resolve', $idforemptyvalue='-1', $morecss='')
Convert a html select field into an ajax combobox.
$conf db
API class for accounts.