123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124 |
- <?php /* Smarty version 2.6.17, created on 2018-05-26 12:07:42
- compiled from ./admin/activity/common_right.html */ ?>
- <?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
- smarty_core_load_plugins(array('plugins' => array(array('modifier', 'date_format', './admin/activity/common_right.html', 72, false),)), $this); ?>
- <div class="activity_right">
- <div id="" class="panel panel-default" >
- <div class="panel-heading"><h3 class="panel-title" id="panel-title">活动二维码</h3></div>
- <div class="panel-body" style="text-align: center;">
- <div class="ks-activity-right-tabs">
- <div class="ks-tabs-bar">
- <?php $_from = $this->_tpl_vars['pagePublicData']['EventsDefaultCode']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['qrcode'] = array('total' => count($_from), 'iteration' => 0);
- if ($this->_foreach['qrcode']['total'] > 0):
- foreach ($_from as $this->_tpl_vars['qrcode']):
- $this->_foreach['qrcode']['iteration']++;
- ?>
- <?php if (($this->_foreach['qrcode']['iteration']-1) == 0): ?>
- <div class="ks-tabs-tab <?php if (($this->_foreach['qrcode']['iteration']-1) == 0): ?>ks-tabs-tab-selected<?php endif; ?>"><?php echo $this->_tpl_vars['qrcode']['name']; ?>
- 列表</div>
- <?php endif; ?>
- <?php endforeach; endif; unset($_from); ?>
- </div>
- <div class="ks-tabs-body">
- <?php $_from = $this->_tpl_vars['pagePublicData']['EventsDefaultCode']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['qrcode'] = array('total' => count($_from), 'iteration' => 0);
- if ($this->_foreach['qrcode']['total'] > 0):
- foreach ($_from as $this->_tpl_vars['qrcode']):
- $this->_foreach['qrcode']['iteration']++;
- ?>
- <?php if (($this->_foreach['qrcode']['iteration']-1) == 0): ?>
- <div class="ks-tabs-panel <?php if (($this->_foreach['qrcode']['iteration']-1) == 0): ?>ks-tabs-panel-selected<?php endif; ?>">
- <img src="<?php echo $this->_tpl_vars['qrcode']['img']; ?>
- " width="200">
- <div class="form-group" style="text-align:left;">
- <label class="control-label"><?php echo $this->_tpl_vars['qrcode']['name']; ?>
- 列表地址:</label>
- <input type="text" class="form-control activity_right_url_input" value="<?php echo $this->_tpl_vars['qrcode']['url']; ?>
- ">
- </div>
- </div>
- <?php endif; ?>
- <?php endforeach; endif; unset($_from); ?>
- </div>
- </div>
- </div>
- </div>
- <div id="activity_type_box" class="panel panel-default activity_info">
- <div class="panel-heading"><h3 class="panel-title" id="panel-title">活动信息</h3></div>
- <div class="panel-body" >
- <div class="">
- <label class="control-label">活动名称:</label>
- <input type="text" value="<?php echo $this->_tpl_vars['eventData']['events_name']; ?>
- " style="border:0px none;padding:0px;font-size:12px;" >
- </div>
- <div class="">
- <label class="control-label">活动类型:</label>
- <?php echo $this->_tpl_vars['typeData'][$this->_tpl_vars['eventData']['type']]['desc']; ?>
- </div>
- <div class="">
- <label class="control-label">进行状态:</label>
- <span class="text-muted">
- <?php if (time ( ) < $this->_tpl_vars['eventData']['begin_time']): ?>
- <span style="color:#5151A2;">未开始</span>
- <?php endif; ?>
- <?php if (time ( ) > $this->_tpl_vars['eventData']['begin_time'] && time ( ) < $this->_tpl_vars['eventData']['end_time']): ?>
- <span style="color:#00EC00;">进行中</span>
- <?php endif; ?>
- <?php if (time ( ) > $this->_tpl_vars['eventData']['end_time']): ?>
- <span style="color:red;">结束</span>
- <?php endif; ?>
- </span>
- </div>
- <div class="">
- <label class="control-label">发布状态:</label>
- <?php if ($this->_tpl_vars['displayDesc'][$this->_tpl_vars['eventData']['display']]['kw'] == 'EVENT_DISPLAY_SHOW'): ?>
- <span style="color:#00EC00"><?php echo $this->_tpl_vars['displayDesc'][$this->_tpl_vars['eventData']['display']]['desc']; ?>
- </span>
- <?php else: ?>
- <span style="color:red"><?php echo $this->_tpl_vars['displayDesc'][$this->_tpl_vars['eventData']['display']]['desc']; ?>
- </span>
- <?php endif; ?>
- </div>
- <div class="">
- <label class="control-label">是否出现在列表中:</label>
- <?php if ($this->_tpl_vars['pagePublicData']['listDisplayDesc'][$this->_tpl_vars['eventData']['list_display']]['kw'] == 'LIST_DISPLAY_SHOW'): ?>
- <span style="color:#00EC00"><?php echo $this->_tpl_vars['pagePublicData']['listDisplayDesc'][$this->_tpl_vars['eventData']['list_display']]['desc']; ?>
- </span>
- <?php else: ?>
- <span style="color:red"><?php echo $this->_tpl_vars['pagePublicData']['listDisplayDesc'][$this->_tpl_vars['eventData']['list_display']]['desc']; ?>
- </span>
- <?php endif; ?>
- </div>
- <div class="">
- <label class="control-label">开始时间:</label>
- <?php echo ((is_array($_tmp=$this->_tpl_vars['eventData']['begin_time'])) ? $this->_run_mod_handler('date_format', true, $_tmp, '%Y-%m-%d %H:%M:%S') : smarty_modifier_date_format($_tmp, '%Y-%m-%d %H:%M:%S')); ?>
- </div>
- <?php if ($this->_tpl_vars['typeData'][$this->_tpl_vars['thisType']]['kw'] != 'TYPE_EVENTS_ARTICLE'): ?>
- <div>
- <label class="control-label">结束时间:</label>
- <?php echo ((is_array($_tmp=$this->_tpl_vars['eventData']['end_time'])) ? $this->_run_mod_handler('date_format', true, $_tmp, '%Y-%m-%d %H:%M:%S') : smarty_modifier_date_format($_tmp, '%Y-%m-%d %H:%M:%S')); ?>
- </div>
- <?php endif; ?>
- </div>
- </div>
- </div>
- <script>
- $('.create_a').on('click', function () {
- var url = $(this).attr('url');
- var requesrUrl = '<?php echo $this->_tpl_vars['web_cfg']['domain']; ?>
- ?c=Admin_Index&a=TMPCreateImg';
- $.ajax({
- type:'post',
- url: requesrUrl,
- data: {url: url},
- dataType: 'json',
- success: function(data) {
- alert('ok');
- location.reload();
- }
- });
- });
- </script>
|