Exemplo n.º 1
0
            echo form_helper::select($name . '[month]', date_helper::months(true, true), form_helper::setSelect($name . '[month]', isset($value[$name]) && $value[$name] ? date('m', $value[$name]) : ''), array('class' => 'select ' . (isset($field['class']) && $field['class'] ? $field['class'] : ''), 'style' => isset($field['style']) && $field['style'] ? $field['style'] : '', 'id' => $id . '_month'));
            ?>
		<?php 
        } else {
            ?>
			<?php 
            echo form_helper::select($name . '[month]', date_helper::months(true, true), form_helper::setSelect($name . '[month]', isset($value[$name]) && $value[$name] ? date('m', $value[$name]) : ''), array('class' => 'select ' . (isset($field['class']) && $field['class'] ? $field['class'] : ''), 'style' => isset($field['style']) && $field['style'] ? $field['style'] : '', 'id' => $id . '_month'));
            ?>
			<?php 
            echo form_helper::select($name . '[day]', date_helper::days(true, true), form_helper::setSelect($name . '[day]', isset($value[$name]) && $value[$name] ? date('d', $value[$name]) : ''), array('class' => 'select ' . (isset($field['class']) && $field['class'] ? $field['class'] : ''), 'style' => isset($field['style']) && $field['style'] ? $field['style'] : '', 'id' => $id . '_day'));
            ?>
		<?php 
        }
        ?>
		<?php 
        echo form_helper::select($name . '[year]', date_helper::years(date('Y'), date('Y') + 10, true), form_helper::setSelect($name . '[year]', isset($value[$name]) && $value[$name] ? date('Y', $value[$name]) : ''), array('class' => 'select ' . (isset($field['class']) && $field['class'] ? $field['class'] : ''), 'style' => isset($field['style']) && $field['style'] ? $field['style'] : '', 'id' => $id . '_year'));
        ?>
		<?php 
        break;
        ?>

	<?php 
    case 'checkmark':
        ?>

		<div class="checkbox inline1 <?php 
        echo isset($field['class']) && $field['class'] ? $field['class'] : '';
        ?>
" <?php 
        echo isset($field['style']) && $field['style'] ? 'style="' . $field['style'] . '"' : '';
        ?>