69 if (!empty($readonly)) {
70 if ($selected ==
'command') {
71 $out =
img_picto(
'',
'terminal',
'class="pictofixedwidth marginrightonly"').
'<span class="">'.$langs->trans(
'CronType_command').
'</span>';
72 } elseif ($selected ==
'method') {
73 $out =
img_picto(
'',
'code',
'class="pictofixedwidth marginrightonly"').
'<span class="">'.$langs->trans(
'CronType_method').
'</span>';
76 $out =
'<SELECT class="flat" name="'.$htmlname.
'" id="'.$htmlname.
'" />';
78 if ($selected ==
'command') {
79 $selected_attr =
' selected ';
83 $out .=
'<OPTION value="command" '.$selected_attr.
'>'.$langs->trans(
'CronType_command').
'</OPTION>';
85 if ($selected ==
'method') {
86 $selected_attr =
' selected ';
90 $out .=
'<OPTION value="method" '.$selected_attr.
'>'.$langs->trans(
'CronType_method').
'</OPTION>';
94 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.
img_picto($titlealt, $picto, $moreatt='', $pictoisfullpath=0, $srconly=0, $notitle=0, $alt='', $morecss='', $marginleftonlyshort=2)
Show picto whatever it's its name (generic function)