Example #1
0
<?php

echo Form::input_wrap($name, is_numeric($value) ? date($pretty_format, $value) : $value, $attributes + Form::attributes($field), isset($label) ? $label : '', isset($errors) ? $errors : '', isset($tip) ? $tip : '');
Example #2
0
<?php

if (!isset($show_date) || $show_date) {
    echo Form::input_wrap($name . '[date]', is_numeric($value) ? Date::format('DMYYYY', $value) : $value, $attributes + array('class' => 'date', 'maxlength' => 10) + Form::attributes($field), isset($label_date) ? $label_date : '', isset($errors) ? Arr::get($errors, $name) : '', isset($tip_date) ? $tip_date : '');
}
if (!isset($show_time) || $show_time) {
    /*echo Form::input_wrap(
    		$name . '[time]',
    		is_numeric($value) ? Date::format('HHMM', $value) : $value,
    		$attributes + array('class' => 'time', 'maxlength' => 5) + Form::attributes($field),
    		isset($label_time) ? $label_time : '',
    		isset($errors) ? Arr::get($errors, $name) : '',
    		isset($tip_time) ? $tip_time : ''
    	);*/
    echo Form::select_wrap($name . '[time]', Date::hours_minutes(30, true), is_numeric($value) ? Date::format('HHMM', $value) : (empty($value) && isset($default_time) ? $default_time : $value), $attributes + array('class' => 'time') + Form::attributes($field), isset($label_time) ? $label_time : '', isset($errors) ? Arr::get($errors, $name) : '', isset($tip_time) ? $tip_time : '');
}
Example #3
0
<?php

echo isset($input) && $input == 'radio' ? Form::radios_wrap($name, $choices, $value, $attributes + Form::attributes($field), isset($label) ? $label : '', isset($errors) ? $errors : '', isset($tip) ? $tip : '') : Form::select_wrap($name, $choices, $value, $attributes + Form::attributes($field), isset($label) ? $label : '', isset($errors) ? $errors : '', isset($tip) ? $tip : '');
Example #4
0
<?php

echo Form::radios_wrap($name, array($true => $label_true, $false => $label_false), $value ? $true : $false, $attributes + Form::attributes($field), isset($label) ? $label : '', isset($errors) ? $errors : '', isset($tip) ? $tip : '', 'horizontal');
Example #5
0
<?php

echo Form::select_wrap($name, $field->null ? array('' => '') + $options : $options, $value->id(), $attributes + Form::attributes($field), isset($label) ? $label : '', isset($errors) ? $errors : '', isset($tip) ? $tip : '');
Example #6
0
<?php

echo Form::input_wrap($name, $value, $attributes + Form::attributes($field), isset($label) ? $label : '', isset($errors) ? $errors : '', isset($tip) ? $tip : '');
Example #7
0
<?php

echo Form::textarea_wrap($name, $value, $attributes + Form::attributes($field), true, isset($label) ? $label : '', isset($errors) ? $errors : '', isset($tip) ? $tip : '', isset($bbcode));