Example #1
0
            ?>
				</label>
			<?php 
        }
        ?>
		</div>
		<?php 
        break;
        ?>

	<?php 
    default:
        ?>

		<?php 
        echo form_helper::text($name, form_helper::setValue($name, isset($value[$name]) ? $value[$name] : ''), array('class' => 'text input-xlarge', 'style' => isset($field['style']) && $field['style'] ? $field['style'] : '', 'id' => $id));
        ?>
		<?php 
        break;
        ?>

<?php 
}
?>

<?php 
if (isset($errors) && $errors && (!isset($error) || $error)) {
    ?>
	<?php 
    echo form_helper::error($name);
}
Example #2
0
_<?php 
                echo $keyword;
                ?>
">
									<?php 
                echo isset($default[$section][$group][$type][$keyword]) ? $default[$section][$group][$type][$keyword] : "!{$section}-{$group}-{$keyword}!";
                ?>
								</label>
								<div class="field" <?php 
                echo config::item('devmode', 'system') == 2 ? 'style="position:relative"' : '';
                ?>
>

									<div class="input-wrap">
										<?php 
                echo form_helper::text($group . '_' . $keyword, form_helper::setValue($group . '_' . $keyword, isset($value) ? $value : ''), array('class' => 'text input-wide ' . (uri::segment(6) == 'english' || isset($default[$section][$group][$type][$keyword]) && utf8::strcasecmp($default[$section][$group][$type][$keyword], $value) ? 'translated' : 'untranslated'), 'id' => 'input_edit_' . $group . '_' . $keyword));
                ?>
										<?php 
                if (config::item('devmode', 'system') == 2) {
                    ?>
											<?php 
                    echo form_helper::text($group . '_' . $keyword . '___key', $keyword, array('class' => 'text', 'style' => 'width:130px;position:absolute;right:-160px;top:0;'));
                    ?>
										<?php 
                }
                ?>
									</div>

									<?php 
                if (form_helper::error($group . '_' . $keyword)) {
                    ?>
Example #3
0
if (isset($hidden['style'])) {
    ?>
				<?php 
    echo form_helper::hidden('style', isset($field['style']) ? $field['style'] : $hidden['style'], array('id' => 'input_edit_system_field_style'));
    ?>
			<?php 
} else {
    ?>
				<div class="row" id="input_row_system_field_style">
					<label for="input_edit_system_field_style"><?php 
    echo __('style', 'system_fields');
    ?>
</label>
					<div class="field">
						<?php 
    echo form_helper::text('style', form_helper::setValue('style', isset($field['style']) ? $field['style'] : ''), array('class' => 'text input-xlarge', 'id' => 'input_edit_system_field_style'));
    ?>
						<?php 
    echo form_helper::error('style');
    ?>
					</div>
				</div>
			<?php 
}
?>

			<div class="row actions">
				<?php 
view::load('system/elements/button');
?>
			</div>
Example #4
0
        break;
        ?>

	<?php 
    default:
        ?>

		<?php 
        if (!isset($wrap) || $wrap) {
            ?>
			<div class="input-wrap">
		<?php 
        }
        ?>
			<?php 
        echo form_helper::text($name, form_helper::setValue($name, isset($value[$name]) ? $value[$name] : ''), array('class' => 'text ' . (isset($field['class']) && $field['class'] ? $field['class'] : 'input-wide'), 'id' => $id, 'style' => isset($field['style']) && $field['style'] ? $field['style'] : '', 'placeholder' => isset($field['placeholder']) && $field['placeholder'] ? $field['placeholder'] : '', 'maxlength' => isset($field['config']['max_length']) && $field['config']['max_length'] ? $field['config']['max_length'] : (isset($field['max_length']) && $field['max_length'] ? $field['max_length'] : '255')));
        ?>
		<?php 
        if (!isset($wrap) || $wrap) {
            ?>
			</div>
		<?php 
        }
        ?>
		<?php 
        break;
        ?>

<?php 
}
?>