allow to add further options behind type, separated with a colon

This commit is contained in:
Ralf Becker 2009-08-26 17:09:07 +00:00
parent 6ca48d457d
commit eea731e906

View File

@ -69,7 +69,12 @@ class historylog_widget
} }
//echo $value.'/'.$cell['size']; _debug_array($status_widgets); //echo $value.'/'.$cell['size']; _debug_array($status_widgets);
$type = isset($status_widgets[$cell['size']]) ? $status_widgets[$cell['size']] : 'label'; $type = isset($status_widgets[$cell['size']]) ? $status_widgets[$cell['size']] : 'label';
$cell = etemplate::empty_cell($type,$cell['name'],array('readonly' => true)); $options = '';
if (!is_array($type) && strpos($type,':') !== false)
{
list($type,$options) = explode(':',$type,2);
}
$cell = etemplate::empty_cell($type,$cell['name'],array('readonly' => true,'size' => $options));
if (is_array($type)) if (is_array($type))
{ {
if (isset($type[0])) // numeric indexed array --> multiple values of 1:N releation if (isset($type[0])) // numeric indexed array --> multiple values of 1:N releation