%%2A^2AF^2AF8404C%%event_forms_template.html.php 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <?php /* Smarty version 2.6.17, created on 2018-05-29 09:51:54
  2. compiled from event_forms_template.html */ ?>
  3. <div class="join_submit_box">
  4. <form id="ff">
  5. <?php $_from = $this->_tpl_vars['forms']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
  6. foreach ($_from as $this->_tpl_vars['form']):
  7. ?>
  8. <?php if ($this->_tpl_vars['form']['type'] == 'text'): ?>
  9. <div class="submit_cell"><input name="<?php echo $this->_tpl_vars['form']['name']; ?>
  10. " type="text" class="input_style" placeholder="<?php echo $this->_tpl_vars['form']['name']; ?>
  11. " ></div>
  12. <?php endif; ?>
  13. <?php if ($this->_tpl_vars['form']['type'] == 'textarea'): ?>
  14. <div class="submit_cell submit_cell_area"><p><textarea name="<?php echo $this->_tpl_vars['form']['name']; ?>
  15. " class="input_textarea" placeholder="<?php echo $this->_tpl_vars['form']['name']; ?>
  16. "></textarea></p></div>
  17. <?php endif; ?>
  18. <?php if ($this->_tpl_vars['form']['type'] == 'select'): ?>
  19. <div class="submit_cell">
  20. <section class="container">
  21. <div class="dropdown">
  22. <select name="<?php echo $this->_tpl_vars['form']['name']; ?>
  23. " class="dropdown-select">
  24. <option value="">请选择<?php echo $this->_tpl_vars['form']['name']; ?>
  25. </option>
  26. <?php $_from = $this->_tpl_vars['form']['options']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
  27. foreach ($_from as $this->_tpl_vars['option']):
  28. ?>
  29. <option value="<?php echo $this->_tpl_vars['option']; ?>
  30. "><?php echo $this->_tpl_vars['option']; ?>
  31. </option>
  32. <?php endforeach; endif; unset($_from); ?>
  33. </select>
  34. </div>
  35. </section>
  36. </div>
  37. <?php endif; ?>
  38. <?php endforeach; endif; unset($_from); ?>
  39. <section class="button-wrapper">
  40. <a class="button" id="common_submit_btn">提交资料</a>
  41. </section>
  42. </form>
  43. </div>
  44. <script>
  45. $("select").on('change', function () {
  46. if ($(this).val() == '') {
  47. $(this).css({'color':'#999'});
  48. } else {
  49. $(this).css({'color':''});
  50. }
  51. });
  52. </script>