method, $config->workflowaction->defaultActions) ? zget($config->workflowlayout->disabledFields, $action->method, '') : $config->workflowlayout->disabledFields['custom']; $controlList = array('select', 'multi-select', 'checkbox', 'radio', 'date', 'datetime'); $dateControlList = array('date', 'datetime'); $requiredFields = zget($config->workflowlayout->default->required, $action->action, array()); if($flow->approval == 'enabled') $requiredFields = array_merge($requiredFields, zget($config->workflowlayout->approval->required, $action->action, array())); ?> $field):?> show) continue; if(strpos(",{$disabledFields},", ",{$key},") !== false) continue; $required = in_array($key, $requiredFields); $fixed = $required ? 'required' : 'enabled'; $show = $field->show == '1'; $subTable = isset($subTables[$key]); $disabled = $mode == 'edit' ? '' : "disabled='disabled'"; ?> ' data-fixed='' data-module='module;?>' data-field='field;?>' data-control='control;?>'> method == 'browse'):?> type, $config->workflowfield->numberTypes) && strpos(",{$config->workflowlayout->noTotalFields},", ",{$field->field},") === false):?> method != 'view'):?> method !== 'browse' && strpos($action->method, 'batch') === false) && !$widthDisabled):?> control, array('decimal','integer','formula','file','input','date','datetime')) ? '' : "readonly";?> method != 'browse' && $action->method != 'view' && !is_numeric($key)):?> control != 'file'):?> method == 'browse' or ($action->type == 'batch' && $action->batchMode == 'different')):?> method == 'view' or $action->method == 'browse' or $action->layout == 'side'):?> method == 'view' ? 'w-200px' : 'w-140px';?> type == 'single' && !in_array($action->method, $config->workflowaction->readonlyActions) && $field->field != 'actions' && $action->method != 'browse'):?>
name;?> workflowlayout->require})";?>
workflowlayout->summary;?> workflowlayout->summaryList, !empty($field->summary) ? $field->summary: 0, "class='form-control chosen' multiple $disabled");?>
workflowlayout->width;?> width, "id='width{$key}' class='form-control' $widthDisabled");?>
workflowlayout->layoutRules;?> layoutRules, "class='form-control chosen' multiple='multiple' $disabled");?>
workflowlayout->defaultValue;?> module}' data-field='{$field->field}'"; if($field->control == 'multi-select' or $field->control == 'checkbox') { echo html::select("defaultValue[$key][]", $field->options, $field->defaultValue, "id='defaultValue{$key}' class='form-control picker-select' multiple $data $disabled"); } else { echo html::select("defaultValue[$key]", array('' => '') + $field->options, $field->defaultValue, "id='defaultValue{$key}' class='form-control picker-select' $data $disabled"); } echo ""; if(in_array($field->control, $dateControlList)) { $class = 'form-' . $field->control; echo html::input("defaultValue[$key]", ($field->defaultValue && $field->defaultValue != 'currentTime') ? $field->defaultValue : '', "id='defaultValue{$key}' class='form-control $class' $disabled"); } else { echo html::input("defaultValue[$key]", (isset($field->defaultValue) && strpos(',currentUser,currentDept,currentTime,', ",$field->defaultValue,") === false) ? $field->defaultValue : '', "id='defaultValue{$key}' class='form-control' disabled='disabled'"); } $checked = ''; if(!in_array($field->control, $controlList)) $checked .= "checked='checked'"; if(in_array($field->control, $dateControlList) && !empty($field->defaultValue) && $field->defaultValue != 'currentTime') $checked .= "checked='checked'"; if(!in_array($field->control, $dateControlList)) $checked .= "disabled='disabled'"; ?>
/>
workflowlayout->defaultValue;?>
workflowlayout->mobileShow;?> workflowlayout->mobileList, !empty($field->mobileShow) ? $field->mobileShow : 0, "class='form-control' $disabled");?>
method == 'view' and $index == 1):?> workflowlayout->position;?> position) ? $field->position : zget($defaultPositions, $field->field, ''), "class='form-control' $disabled");?>
readonly ? "checked='checked'" : '';?> control == 'file') ? "disabled='disabled'" : '';?>
/>
workflowlayout->show : $lang->workflowlayout->hide;?>