events_forms_template_new.html 1.4 KB

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