70 if (!empty($readonly)) {
71 if ($selected ==
'command') {
72 $out =
img_picto(
'',
'terminal',
'class="pictofixedwidth marginrightonly"').
'<span class="">'.$langs->trans(
'CronType_command').
'</span>';
73 } elseif ($selected ==
'method') {
74 $out =
img_picto(
'',
'code',
'class="pictofixedwidth marginrightonly"').
'<span class="">'.$langs->trans(
'CronType_method').
'</span>';
77 $out =
'<SELECT class="flat" name="'.$htmlname.
'" id="'.$htmlname.
'" />';
79 if ($selected ==
'command') {
80 $selected_attr =
' selected ';
84 $out .=
'<OPTION value="command" '.$selected_attr.
'>'.$langs->trans(
'CronType_command').
'</OPTION>';
86 if ($selected ==
'method') {
87 $selected_attr =
' selected ';
91 $out .=
'<OPTION value="method" '.$selected_attr.
'>'.$langs->trans(
'CronType_method').
'</OPTION>';
95 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, $allowothertags=array())
Show picto whatever it's its name (generic function)