events_forms_template_new.html 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <{if $info.end == 2}>
  2. <h3>活动已结束!</h3>
  3. <p>感谢您的关注,期待您参与我们的其他活动</p>
  4. <section class="button-wrapper">
  5. <a class="button border" href="<{$listUrl}>">找找其他福利</a>
  6. <a class="button" href="<{$giftsUrl}>">查看我的奖品</a>
  7. </section>
  8. <{else}>
  9. <form id="ff">
  10. <{foreach from=$forms item=form}>
  11. <{if $form.type == 'text'}>
  12. <input name="<{$form.name}>" type="text" class="input_style" placeholder="<{$form.name}>" >
  13. <{/if}>
  14. <{if $form.type == 'textarea'}>
  15. <textarea name="<{$form.name}>" class="input_textarea" placeholder="<{$form.name}>"></textarea>
  16. <{/if}>
  17. <{if $form.type == 'select'}>
  18. <select name="<{$form.name}>">
  19. <option value="">请选择<{$form.name}></option>
  20. <{foreach from=$form.options item=option}>
  21. <option value="<{$option}>"><{$option}></option>
  22. <{/foreach}>
  23. </select>
  24. <{/if}>
  25. <{/foreach}>
  26. </form>
  27. <section class="button-wrapper">
  28. <a class="button" id="common_submit_btn">提交资料</a>
  29. </section>
  30. <script>
  31. $("select").on('change', function () {
  32. if ($(this).val() == '') {
  33. $(this).css({'color':'#999'});
  34. } else {
  35. $(this).css({'color':''});
  36. }
  37. });
  38. </script>
  39. <{/if}>