Lines Matching refs:vals
114 $vals = explode(',', $line[1]);
115 foreach ($vals as $val) {
378 foreach ($data['cols'] as $key => $vals) {
380 $content = $vals['multi'] ? implode(', ', $data['data'][$key]) : $data['data'][$key];
381 if (is_array($vals['type'])) {
382 $vals['basetype'] = $vals['type']['type'];
383 if (isset($vals['type']['enum'])) {
384 $vals['enum'] = $vals['type']['enum'];
386 $vals['type'] = $vals['origtype'];
388 $vals['basetype'] = $vals['type'];
391 if ($vals['type'] === 'hidden') {
397 if (isset($vals['enum'])) {
398 $values = preg_split('/\s*,\s*/', $vals['enum']);
399 if (!$vals['multi']) {
406 $vals['title'],
409 ($vals['multi'] ? ['multiple' => 'multiple'] : [])
412 $classes = 'data_type_' . $vals['type'] . ($vals['multi'] ? 's' : '') . ' '
413 . 'data_type_' . $vals['basetype'] . ($vals['multi'] ? 's' : '');
416 if ($vals['basetype'] == 'date' && !$vals['multi']) {
424 $vals['title'],
431 hsc($vals['title']) . ':',
433 '<span title="' . hsc($vals['comment']) . '">' . hsc($vals['comment']) . '</span>'
436 $renderer->form->addHidden($fieldid . "[$field]", $vals[$field]);
439 $renderer->form->addHidden($fieldid . "[title]", $vals['origkey']);
441 $check_data = $vals['multi'] ? ['checked' => 'checked'] : [];
443 form_makeField('text', $fieldid . '[title]', $vals['origkey'], $this->getLang('title')),
451 $vals['type'],
471 $vals['comment'],
475 ['readonly' => 1, 'title' => $vals['comment']]
534 foreach ($data['cols'] as $key => $vals) {
536 $content = $vals['multi'] ? implode(', ', $data['data'][$key]) : $data['data'][$key];
537 if (is_array($vals['type'])) {
538 $vals['basetype'] = $vals['type']['type'];
539 if (isset($vals['type']['enum'])) {
540 $vals['enum'] = $vals['type']['enum'];
542 $vals['type'] = $vals['origtype'];
544 $vals['basetype'] = $vals['type'];
547 if ($vals['type'] === 'hidden') {
553 if (isset($vals['enum'])) {
554 $values = preg_split('/\s*,\s*/', $vals['enum']);
555 if (!$vals['multi']) {
562 $vals['title']
565 $el->attrs(($vals['multi'] ? ['multiple' => 'multiple'] : []));
569 $classes = 'data_type_' . $vals['type'] . ($vals['multi'] ? 's' : '') . ' '
570 . 'data_type_' . $vals['basetype'] . ($vals['multi'] ? 's' : '');
573 if ($vals['basetype'] == 'date' && !$vals['multi']) {
577 $el = new InputElement('text', $fieldid . '[value]', $vals['title']);
584 hsc($vals['title']) . ':', $el,
585 '<span title="' . hsc($vals['comment'] ?? '') . '">' . hsc($vals['comment'] ?? '') . '</span>'
588 $renderer->form->setHiddenField($fieldid . "[$field]", $vals[$field] ?? '');
591 $renderer->form->setHiddenField($fieldid . "[title]", $vals['origkey'] ?? '');
593 $check_data = $vals['multi'] ? ['checked' => 'checked'] : [];
597 $el->val($vals['origkey'] ?? '');
608 $el->val($vals['type']);
621 $el->attrs(['readonly' => '1', 'title' => $vals['comment'] ?? '']);
622 $el->val($vals['comment'] ?? '');