1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- <?php /* Smarty version 2.6.17, created on 2018-05-29 09:51:54
- compiled from event_forms_template.html */ ?>
- <div class="join_submit_box">
- <form id="ff">
- <?php $_from = $this->_tpl_vars['forms']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
- foreach ($_from as $this->_tpl_vars['form']):
- ?>
- <?php if ($this->_tpl_vars['form']['type'] == 'text'): ?>
- <div class="submit_cell"><input name="<?php echo $this->_tpl_vars['form']['name']; ?>
- " type="text" class="input_style" placeholder="<?php echo $this->_tpl_vars['form']['name']; ?>
- " ></div>
- <?php endif; ?>
- <?php if ($this->_tpl_vars['form']['type'] == 'textarea'): ?>
- <div class="submit_cell submit_cell_area"><p><textarea name="<?php echo $this->_tpl_vars['form']['name']; ?>
- " class="input_textarea" placeholder="<?php echo $this->_tpl_vars['form']['name']; ?>
- "></textarea></p></div>
- <?php endif; ?>
- <?php if ($this->_tpl_vars['form']['type'] == 'select'): ?>
- <div class="submit_cell">
- <section class="container">
- <div class="dropdown">
- <select name="<?php echo $this->_tpl_vars['form']['name']; ?>
- " class="dropdown-select">
- <option value="">请选择<?php echo $this->_tpl_vars['form']['name']; ?>
- </option>
- <?php $_from = $this->_tpl_vars['form']['options']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
- foreach ($_from as $this->_tpl_vars['option']):
- ?>
- <option value="<?php echo $this->_tpl_vars['option']; ?>
- "><?php echo $this->_tpl_vars['option']; ?>
- </option>
- <?php endforeach; endif; unset($_from); ?>
- </select>
- </div>
- </section>
- </div>
- <?php endif; ?>
- <?php endforeach; endif; unset($_from); ?>
- <section class="button-wrapper">
- <a class="button" id="common_submit_btn">提交资料</a>
- </section>
- </form>
- </div>
- <script>
- $("select").on('change', function () {
- if ($(this).val() == '') {
- $(this).css({'color':'#999'});
- } else {
- $(this).css({'color':''});
- }
- });
- </script>
|