123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106 |
- <?php /* Smarty version 2.6.17, created on 2018-04-25 15:06:56
- compiled from events_survey.html */ ?>
- <?php $_smarty_tpl_vars = $this->_tpl_vars;
- $this->_smarty_include(array('smarty_include_tpl_file' => "header.html", 'smarty_include_vars' => array()));
- $this->_tpl_vars = $_smarty_tpl_vars;
- unset($_smarty_tpl_vars);
- ?>
- <!--公用标题居中显示-->
- <?php $_smarty_tpl_vars = $this->_tpl_vars;
- $this->_smarty_include(array('smarty_include_tpl_file' => "common_header.html", 'smarty_include_vars' => array()));
- $this->_tpl_vars = $_smarty_tpl_vars;
- unset($_smarty_tpl_vars);
- ?>
- <!---->
- <div class="wrapper clear">
- <div class="v_hd_title clear">
- <div class="article_title center"><?php echo $this->_tpl_vars['surveyInfo']['events_name']; ?>
- </div>
- <div class="article_content"><?php echo $this->_tpl_vars['surveyInfo']['events_tips']; ?>
- </div>
- <div class="ac_btn_box center"><a class="submit_btn_style">参与问卷</a></div>
- </div>
-
- <div class="v_box_w clear">
- <?php if ($this->_tpl_vars['surveyInfo']['events_hd_tips']): ?>
- <div class="h3_title"><?php echo $this->_tpl_vars['surveyInfo']['events_hd_tips']; ?>
- </div>
- <?php endif; ?>
- <div class="pro_list_box pro_list_survey">
- <?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);
- if ($this->_foreach['survery']['total'] > 0):
- foreach ($_from as $this->_tpl_vars['data']):
- $this->_foreach['survery']['iteration']++;
- ?>
- <dl>
- <dt><img src="<?php echo $this->_tpl_vars['data']['img_url']; ?>
- "></dt>
- <dd>
- <p class="pro_name"><?php echo $this->_tpl_vars['data']['name']; ?>
- </p>
- <p class="pro_num"><?php echo $this->_tpl_vars['data']['num']; ?>
- <?php echo $this->_tpl_vars['data']['unit_name']; ?>
- </p>
- </dd>
- </dl>
- <?php endforeach; endif; unset($_from); ?>
- </div>
- <?php if ($this->_tpl_vars['surveyInfo']['share_button'] == 2): ?>
- <?php $_smarty_tpl_vars = $this->_tpl_vars;
- $this->_smarty_include(array('smarty_include_tpl_file' => "share_button.html", 'smarty_include_vars' => array()));
- $this->_tpl_vars = $_smarty_tpl_vars;
- unset($_smarty_tpl_vars);
- ?>
- <?php endif; ?>
-
- <?php if ($this->_tpl_vars['surveyInfo']['operationt_tips']): ?>
- <div class="h3_title"><?php echo $this->_tpl_vars['surveyInfo']['operationt_tips']; ?>
- </div>
- <?php endif; ?>
- <div class="article_content"><?php echo $this->_tpl_vars['surveyInfo']['events_rules']; ?>
- </div>
-
- </div>
-
-
- </div>
- <script type="text/javascript">
- KISSY.use('node, cookie', function (S, Node, Cookie) {
- var $ = S.all;
-
- //视频自适应
- var screenWidth = $(window).width();
- var baseWidth = 510;
- var video_scale = screenWidth / baseWidth;
- $(".video_iframe").each(function () {
- var new_width = $(this).width() * video_scale;
- $(this).width(new_width - 20);
- var new_height = $(this).height() * video_scale;
- $(this).height(new_height - 20);
- });
-
- $(".ac_btn_box").on('click', function () {
- Cookie.set('SURVEY_IS_UNDERWAY', 2, null, '<?php echo $_SERVER['HTTP_HOST']; ?>
- ', '/');
- window.location.reload();
- });
-
-
- });
- //有产品列表时添加整体body背景色
- $(body).addClass("bg_white");
- </script>
- <?php $_smarty_tpl_vars = $this->_tpl_vars;
- $this->_smarty_include(array('smarty_include_tpl_file' => "bottom.html", 'smarty_include_vars' => array()));
- $this->_tpl_vars = $_smarty_tpl_vars;
- unset($_smarty_tpl_vars);
- ?>
|