diff options
Diffstat (limited to 'views/admin/form/select.phtml')
| -rw-r--r-- | views/admin/form/select.phtml | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/views/admin/form/select.phtml b/views/admin/form/select.phtml new file mode 100644 index 0000000..70e040c --- /dev/null +++ b/views/admin/form/select.phtml @@ -0,0 +1,15 @@ +<div class="form-group">
+
+ <label class="col-sm-6 control-label" for="<?php echo $this->view['field_id']; ?>"><?php echo $this->view['field_label']; ?></label>
+
+ <div class="col-sm-6">
+
+ <select id="<?php echo $this->view['field_id']; ?>" name="<?php echo $this->view['field_name']; ?>">
+ <?php foreach ($this->view['field_values'] as $k => $v) { ?>
+ <option <?php echo (($k == $this->view['field_value'])?'selected="selected"':''); ?> value="<?php echo wpsg_hspc($k); ?>"><?php echo wpsg_hspc($v); ?></option>
+ <?php } ?>
+ </select>
+
+ </div>
+
+</div>
\ No newline at end of file |
