%%80^804^80487B52%%events_survey.html.php 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. <?php /* Smarty version 2.6.17, created on 2018-04-25 15:06:56
  2. compiled from events_survey.html */ ?>
  3. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  4. $this->_smarty_include(array('smarty_include_tpl_file' => "header.html", 'smarty_include_vars' => array()));
  5. $this->_tpl_vars = $_smarty_tpl_vars;
  6. unset($_smarty_tpl_vars);
  7. ?>
  8. <!--公用标题居中显示-->
  9. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  10. $this->_smarty_include(array('smarty_include_tpl_file' => "common_header.html", 'smarty_include_vars' => array()));
  11. $this->_tpl_vars = $_smarty_tpl_vars;
  12. unset($_smarty_tpl_vars);
  13. ?>
  14. <!---->
  15. <div class="wrapper clear">
  16. <div class="v_hd_title clear">
  17. <div class="article_title center"><?php echo $this->_tpl_vars['surveyInfo']['events_name']; ?>
  18. </div>
  19. <div class="article_content"><?php echo $this->_tpl_vars['surveyInfo']['events_tips']; ?>
  20. </div>
  21. <div class="ac_btn_box center"><a class="submit_btn_style">参与问卷</a></div>
  22. </div>
  23. <div class="v_box_w clear">
  24. <?php if ($this->_tpl_vars['surveyInfo']['events_hd_tips']): ?>
  25. <div class="h3_title"><?php echo $this->_tpl_vars['surveyInfo']['events_hd_tips']; ?>
  26. </div>
  27. <?php endif; ?>
  28. <div class="pro_list_box pro_list_survey">
  29. <?php $_from = $this->_tpl_vars['surveyInfo']['survery_prize']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['survery'] = array('total' => count($_from), 'iteration' => 0);
  30. if ($this->_foreach['survery']['total'] > 0):
  31. foreach ($_from as $this->_tpl_vars['data']):
  32. $this->_foreach['survery']['iteration']++;
  33. ?>
  34. <dl>
  35. <dt><img src="<?php echo $this->_tpl_vars['data']['img_url']; ?>
  36. "></dt>
  37. <dd>
  38. <p class="pro_name"><?php echo $this->_tpl_vars['data']['name']; ?>
  39. </p>
  40. <p class="pro_num"><?php echo $this->_tpl_vars['data']['num']; ?>
  41. <?php echo $this->_tpl_vars['data']['unit_name']; ?>
  42. </p>
  43. </dd>
  44. </dl>
  45. <?php endforeach; endif; unset($_from); ?>
  46. </div>
  47. <?php if ($this->_tpl_vars['surveyInfo']['share_button'] == 2): ?>
  48. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  49. $this->_smarty_include(array('smarty_include_tpl_file' => "share_button.html", 'smarty_include_vars' => array()));
  50. $this->_tpl_vars = $_smarty_tpl_vars;
  51. unset($_smarty_tpl_vars);
  52. ?>
  53. <?php endif; ?>
  54. <?php if ($this->_tpl_vars['surveyInfo']['operationt_tips']): ?>
  55. <div class="h3_title"><?php echo $this->_tpl_vars['surveyInfo']['operationt_tips']; ?>
  56. </div>
  57. <?php endif; ?>
  58. <div class="article_content"><?php echo $this->_tpl_vars['surveyInfo']['events_rules']; ?>
  59. </div>
  60. </div>
  61. </div>
  62. <script type="text/javascript">
  63. KISSY.use('node, cookie', function (S, Node, Cookie) {
  64. var $ = S.all;
  65. //视频自适应
  66. var screenWidth = $(window).width();
  67. var baseWidth = 510;
  68. var video_scale = screenWidth / baseWidth;
  69. $(".video_iframe").each(function () {
  70. var new_width = $(this).width() * video_scale;
  71. $(this).width(new_width - 20);
  72. var new_height = $(this).height() * video_scale;
  73. $(this).height(new_height - 20);
  74. });
  75. $(".ac_btn_box").on('click', function () {
  76. Cookie.set('SURVEY_IS_UNDERWAY', 2, null, '<?php echo $_SERVER['HTTP_HOST']; ?>
  77. ', '/');
  78. window.location.reload();
  79. });
  80. });
  81. //有产品列表时添加整体body背景色
  82. $(body).addClass("bg_white");
  83. </script>
  84. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  85. $this->_smarty_include(array('smarty_include_tpl_file' => "bottom.html", 'smarty_include_vars' => array()));
  86. $this->_tpl_vars = $_smarty_tpl_vars;
  87. unset($_smarty_tpl_vars);
  88. ?>