\n";
$retval .= "| {$routine['item_param_name'][$i]} | \n";
$retval .= "{$routine['item_param_type'][$i]} | \n";
if ($cfg['ShowFunctionFields']) {
$retval .= "\n";
if (stristr($routine['item_param_type'][$i], 'enum')
|| stristr($routine['item_param_type'][$i], 'set')
|| in_array(
mb_strtolower($routine['item_param_type'][$i]),
$no_support_types
)
) {
$retval .= "--\n";
} else {
$field = array(
'True_Type' => mb_strtolower(
$routine['item_param_type'][$i]
),
'Type' => '',
'Key' => '',
'Field' => '',
'Default' => '',
'first_timestamp' => false
);
$retval .= "";
}
$retval .= " | \n";
}
// Append a class to date/time fields so that
// jQuery can attach a datepicker to them
$class = '';
if ($routine['item_param_type'][$i] == 'DATETIME'
|| $routine['item_param_type'][$i] == 'TIMESTAMP'
) {
$class = 'datetimefield';
} elseif ($routine['item_param_type'][$i] == 'DATE') {
$class = 'datefield';
}
$retval .= "\n";
if (in_array($routine['item_param_type'][$i], array('ENUM', 'SET'))) {
if ($routine['item_param_type'][$i] == 'ENUM') {
$input_type = 'radio';
} else {
$input_type = 'checkbox';
}
foreach ($routine['item_param_length_arr'][$i] as $value) {
$value = htmlentities(Util::unquote($value), ENT_QUOTES);
$retval .= ""
. $value . " \n";
}
} elseif (in_array(
mb_strtolower($routine['item_param_type'][$i]),
$no_support_types
)) {
$retval .= "\n";
} else {
$retval .= "\n";
}
$retval .= " | \n";
$retval .= "
\n";
}
$retval .= "\n