示例#1
0
文件: select.php 项目: Kekos/booya
echo $name;
?>
" id="<?php 
echo $form_name . '_' . $flat_name;
?>
"<?php 
echo $attributes;
?>
>
<?php 
foreach ($options as $value => $text) {
    ?>
      <option value="<?php 
    echo uh($value);
    ?>
"<?php 
    formStatePost($name, 'select', $value, $default_value);
    ?>
><?php 
    echo uh($text);
    ?>
</option>
<?php 
}
?>
    </select>
    <?php 
echo $errors_html . PHP_EOL;
?>
  </p>
示例#2
0
文件: radio.php 项目: Kekos/booya
  <p class="form-control-group">
    <span class="form-radio-label"><?php 
echo $label;
?>
</span>
<?php 
foreach ($options as $value => $text) {
    ?>
    <label>
      <input type="radio" name="<?php 
    echo $name;
    ?>
" value="<?php 
    echo uh($value);
    ?>
"<?php 
    formStatePost($name, 'radio', $value, $default_value);
    ?>
>
      <?php 
    echo uh($text) . PHP_EOL;
    ?>
    </label>
<?php 
}
?>
    <?php 
echo $errors_html . PHP_EOL;
?>
  </p>