%%13^13E^13E3BAFF%%common_right.html.php 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. <?php /* Smarty version 2.6.17, created on 2018-05-26 12:07:42
  2. compiled from ./admin/activity/common_right.html */ ?>
  3. <?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
  4. smarty_core_load_plugins(array('plugins' => array(array('modifier', 'date_format', './admin/activity/common_right.html', 72, false),)), $this); ?>
  5. <div class="activity_right">
  6. <div id="" class="panel panel-default" >
  7. <div class="panel-heading"><h3 class="panel-title" id="panel-title">活动二维码</h3></div>
  8. <div class="panel-body" style="text-align: center;">
  9. <div class="ks-activity-right-tabs">
  10. <div class="ks-tabs-bar">
  11. <?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);
  12. if ($this->_foreach['qrcode']['total'] > 0):
  13. foreach ($_from as $this->_tpl_vars['qrcode']):
  14. $this->_foreach['qrcode']['iteration']++;
  15. ?>
  16. <?php if (($this->_foreach['qrcode']['iteration']-1) == 0): ?>
  17. <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']; ?>
  18. 列表</div>
  19. <?php endif; ?>
  20. <?php endforeach; endif; unset($_from); ?>
  21. </div>
  22. <div class="ks-tabs-body">
  23. <?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);
  24. if ($this->_foreach['qrcode']['total'] > 0):
  25. foreach ($_from as $this->_tpl_vars['qrcode']):
  26. $this->_foreach['qrcode']['iteration']++;
  27. ?>
  28. <?php if (($this->_foreach['qrcode']['iteration']-1) == 0): ?>
  29. <div class="ks-tabs-panel <?php if (($this->_foreach['qrcode']['iteration']-1) == 0): ?>ks-tabs-panel-selected<?php endif; ?>">
  30. <img src="<?php echo $this->_tpl_vars['qrcode']['img']; ?>
  31. " width="200">
  32. <div class="form-group" style="text-align:left;">
  33. <label class="control-label"><?php echo $this->_tpl_vars['qrcode']['name']; ?>
  34. 列表地址:</label>
  35. <input type="text" class="form-control activity_right_url_input" value="<?php echo $this->_tpl_vars['qrcode']['url']; ?>
  36. ">
  37. </div>
  38. </div>
  39. <?php endif; ?>
  40. <?php endforeach; endif; unset($_from); ?>
  41. </div>
  42. </div>
  43. </div>
  44. </div>
  45. <div id="activity_type_box" class="panel panel-default activity_info">
  46. <div class="panel-heading"><h3 class="panel-title" id="panel-title">活动信息</h3></div>
  47. <div class="panel-body" >
  48. <div class="">
  49. <label class="control-label">活动名称:</label>
  50. <input type="text" value="<?php echo $this->_tpl_vars['eventData']['events_name']; ?>
  51. " style="border:0px none;padding:0px;font-size:12px;" >
  52. </div>
  53. <div class="">
  54. <label class="control-label">活动类型:</label>
  55. <?php echo $this->_tpl_vars['typeData'][$this->_tpl_vars['eventData']['type']]['desc']; ?>
  56. </div>
  57. <div class="">
  58. <label class="control-label">进行状态:</label>
  59. <span class="text-muted">
  60. <?php if (time ( ) < $this->_tpl_vars['eventData']['begin_time']): ?>
  61. <span style="color:#5151A2;">未开始</span>
  62. <?php endif; ?>
  63. <?php if (time ( ) > $this->_tpl_vars['eventData']['begin_time'] && time ( ) < $this->_tpl_vars['eventData']['end_time']): ?>
  64. <span style="color:#00EC00;">进行中</span>
  65. <?php endif; ?>
  66. <?php if (time ( ) > $this->_tpl_vars['eventData']['end_time']): ?>
  67. <span style="color:red;">结束</span>
  68. <?php endif; ?>
  69. </span>
  70. </div>
  71. <div class="">
  72. <label class="control-label">发布状态:</label>
  73. <?php if ($this->_tpl_vars['displayDesc'][$this->_tpl_vars['eventData']['display']]['kw'] == 'EVENT_DISPLAY_SHOW'): ?>
  74. <span style="color:#00EC00"><?php echo $this->_tpl_vars['displayDesc'][$this->_tpl_vars['eventData']['display']]['desc']; ?>
  75. </span>
  76. <?php else: ?>
  77. <span style="color:red"><?php echo $this->_tpl_vars['displayDesc'][$this->_tpl_vars['eventData']['display']]['desc']; ?>
  78. </span>
  79. <?php endif; ?>
  80. </div>
  81. <div class="">
  82. <label class="control-label">是否出现在列表中:</label>
  83. <?php if ($this->_tpl_vars['pagePublicData']['listDisplayDesc'][$this->_tpl_vars['eventData']['list_display']]['kw'] == 'LIST_DISPLAY_SHOW'): ?>
  84. <span style="color:#00EC00"><?php echo $this->_tpl_vars['pagePublicData']['listDisplayDesc'][$this->_tpl_vars['eventData']['list_display']]['desc']; ?>
  85. </span>
  86. <?php else: ?>
  87. <span style="color:red"><?php echo $this->_tpl_vars['pagePublicData']['listDisplayDesc'][$this->_tpl_vars['eventData']['list_display']]['desc']; ?>
  88. </span>
  89. <?php endif; ?>
  90. </div>
  91. <div class="">
  92. <label class="control-label">开始时间:</label>
  93. <?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')); ?>
  94. </div>
  95. <?php if ($this->_tpl_vars['typeData'][$this->_tpl_vars['thisType']]['kw'] != 'TYPE_EVENTS_ARTICLE'): ?>
  96. <div>
  97. <label class="control-label">结束时间:</label>
  98. <?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')); ?>
  99. </div>
  100. <?php endif; ?>
  101. </div>
  102. </div>
  103. </div>
  104. <script>
  105. $('.create_a').on('click', function () {
  106. var url = $(this).attr('url');
  107. var requesrUrl = '<?php echo $this->_tpl_vars['web_cfg']['domain']; ?>
  108. ?c=Admin_Index&a=TMPCreateImg';
  109. $.ajax({
  110. type:'post',
  111. url: requesrUrl,
  112. data: {url: url},
  113. dataType: 'json',
  114. success: function(data) {
  115. alert('ok');
  116. location.reload();
  117. }
  118. });
  119. });
  120. </script>