| Current Path : /home/users/unlimited/www/facebook.codeskitter.site/themes/sunshine/layout/page/ |
| Current File : /home/users/unlimited/www/facebook.codeskitter.site/themes/sunshine/layout/page/fields.phtml |
<div class="wow_form_fields">
<label for="fid_<?php echo $wo['field']['id'];?>"><?php echo $wo['field']['name']; ?></label>
<?php
$required = '';
if ($wo['field']['required'] == 'on') {
$required = 'required';
}
if ($wo['field']['type'] == 'selectbox') {
$options = @explode(',', $wo['field']['options']); ?>
<select name="fid_<?php echo $wo['field']['id'];?>" class="form-control" <?php echo $required ?>>
<?php
foreach ($options as $key => $value) {
?>
<option value="<?php echo $key + 1;?>"><?php echo $value;?></option>
<?php } ?>
</select>
<?php } else { if ($wo['field']['type'] == 'textbox') { ?>
<input id="fid_<?php echo $wo['field']['id'];?>" name="fid_<?php echo $wo['field']['id'];?>" type="text" class="form-control input-md" <?php echo $required ?>>
<?php } else if ($wo['field']['type'] == 'textarea') {?>
<textarea class="form-control" id="fid_<?php echo $wo['field']['id'];?>" name="fid_<?php echo $wo['field']['id'];?>" rows="3" <?php echo $required ?>></textarea>
<?php } } ?>
<span class="help-block"><?php echo $wo['field']['description'];?></span>
</div>