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())); ?>
method == 'browse'):?> type, $config->workflowfield->numberTypes) && strpos(",{$config->workflowlayout->noTotalFields},", ",{$field->field},") === false):?> workflowlayout->require})";?> |
workflowlayout->summary;?>
workflowlayout->summaryList, !empty($field->summary) ? $field->summary: 0, "class='form-control chosen' multiple $disabled");?>
|
method != 'view'):?> method !== 'browse' && strpos($action->method, 'batch') === false) && !$widthDisabled):?> control, array('decimal','integer','formula','file','input','date','datetime')) ? '' : "readonly";?> |
workflowlayout->width;?>
width, "id='width{$key}' class='form-control' $widthDisabled");?>
|
method != 'browse' && $action->method != 'view' && !is_numeric($key)):?>
workflowlayout->layoutRules;?>
layoutRules, "class='form-control chosen' multiple='multiple' $disabled");?>
|
control != 'file'):?>
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;?>
|
method == 'browse' or ($action->type == 'batch' && $action->batchMode == 'different')):?>
workflowlayout->mobileShow;?>
workflowlayout->mobileList, !empty($field->mobileShow) ? $field->mobileShow : 0, "class='form-control' $disabled");?>
|
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'):?> |
readonly ? "checked='checked'" : '';?>
control == 'file') ? "disabled='disabled'" : '';?>
/>
|
workflowlayout->show : $lang->workflowlayout->hide;?> |