* @package workflowfield * @version $Id$ * @link http://www.zentao.net */ ?> control, $config->workflowfield->optionControls)) $showFields[] = 'datasource'; if($field->type == 'file') $showFields = array(); if($field->type == 'varchar' || $field->type == 'char') $showFields[] = 'length'; if($field->control == 'formula') $showFields[] = 'expression'; if($field->type == 'decimal') { $showFields[] = 'integerDigits'; $showFields[] = 'decimalDigits'; list($integerDigits, $decimalDigits) = explode(',', $field->length); } ?>
| workflowfield->name;?> | name?> |
|---|---|
| workflowfield->field;?> | field?> |
| workflowfield->control;?> | workflowfield->controlTypeList, $field->control);?> |
| workflowfield->type;?> | type; foreach($config->workflowfield->typeList as $typeList) { foreach($typeList as $key => $value) { if($key == $field->type) $typeName = $value; } } echo $typeName; ?> |
| workflowfield->length;?> | length;?> |
| workflowfield->integerDigits;?> | |
| workflowfield->decimalDigits;?> | |
| workflowfield->datasource;?> | options) ? zget($datasources, $field->options) : 'custom';?> |
| workflowfield->options;?> | options, JSON_UNESCAPED_UNICODE);?> |
| workflowfield->sql;?> | sql;?> |
| workflowfield->expression;?> | workflowfield->getNumberFields($flow->module); $formulaLang = $lang->workflowfield->formula; $modules = array($flow->module => $flow->name); $moduleFields = array($flow->module => $numberFields); $expression = json_decode($field->expression, true); if($expression) { $expressionHtml = "{$field->name} = "; foreach($expression as $key => $current) { $text = $current['text']; if($current['type'] == 'target') { $text = zget($modules, current['module']) . '_' . zget(zget($moduleFields, current['module'], array()), current['field']); if(!empty($current['function'])) $text = sprintf($formulaLang->functions[$current['function']], zget($modules, $current['module']), zget(zget($moduleFields, current['module'], array()), current['field'])); } $expressionHtml .= "{$text}"; } echo $expressionHtml; } ?> |
| workflowfield->defaultValue;?> | default;?> |
| workflowfield->rules;?> | rules) as $ruleID) echo zget($rules, $ruleID, '') . ' ';?> |