%%B8^B87^B87F013F%%delivery_channels_list.html.php 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. <?php /* Smarty version 2.6.17, created on 2018-05-26 12:08:32
  2. compiled from admin/activity/delivery_channels_list.html */ ?>
  3. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  4. $this->_smarty_include(array('smarty_include_tpl_file' => "./admin/header.html", 'smarty_include_vars' => array()));
  5. $this->_tpl_vars = $_smarty_tpl_vars;
  6. unset($_smarty_tpl_vars);
  7. ?>
  8. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  9. $this->_smarty_include(array('smarty_include_tpl_file' => "./admin/left.html", 'smarty_include_vars' => array()));
  10. $this->_tpl_vars = $_smarty_tpl_vars;
  11. unset($_smarty_tpl_vars);
  12. ?>
  13. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  14. $this->_smarty_include(array('smarty_include_tpl_file' => "./admin/nav.html", 'smarty_include_vars' => array()));
  15. $this->_tpl_vars = $_smarty_tpl_vars;
  16. unset($_smarty_tpl_vars);
  17. ?>
  18. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  19. $this->_smarty_include(array('smarty_include_tpl_file' => "get_kindeditor.html", 'smarty_include_vars' => array()));
  20. $this->_tpl_vars = $_smarty_tpl_vars;
  21. unset($_smarty_tpl_vars);
  22. ?>
  23. <style>
  24. .set-nav {
  25. margin: 0 auto;
  26. }
  27. .set-nav-hr {
  28. background-color: #ddd;
  29. height: 1px;
  30. position: relative;
  31. }
  32. .form-group label {
  33. font-weight: 600;
  34. }
  35. .checkbox-inline, .radio-inline {
  36. font-weight: 400!important;
  37. }
  38. .rowlabel {
  39. font-weight: 300!important;
  40. }
  41. .music_play_hide {
  42. display:none;
  43. }
  44. .popup {
  45. display: none;
  46. position: absolute;
  47. top: 0;
  48. width: 160px;
  49. z-index: 100;
  50. }
  51. </style>
  52. <div id="activity_container">
  53. <form id="activity_form">
  54. <div class="activity_center">
  55. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  56. $this->_smarty_include(array('smarty_include_tpl_file' => "./admin/activity/common_nav.html", 'smarty_include_vars' => array()));
  57. $this->_tpl_vars = $_smarty_tpl_vars;
  58. unset($_smarty_tpl_vars);
  59. ?>
  60. <input name="events_id" type="hidden" value="<?php echo $this->_tpl_vars['eventData']['events']['id']; ?>
  61. ">
  62. <div class="panel panel-default">
  63. <div class="panel-heading"><h3 class="panel-title" id="panel-title">投放渠道</h3></div>
  64. <div class="panel-body">
  65. <p><a href="<?php echo $this->_tpl_vars['web_cfg']['domain']; ?>
  66. /?c=Admin_Activity_DeliveryChannels&a=PageAddDeliveryChannels&events_id=<?php echo $this->_tpl_vars['eventData']['id']; ?>
  67. " class="button button-primary button-small " style="width:150px;"><i class="fa fa-refresh fa-spin" style="display:none;"></i> 添加渠道 </a></p>
  68. <div class="form-group">
  69. <div>
  70. <table class="table table-hover">
  71. <thead>
  72. <tr>
  73. <th>渠道名称</th>
  74. <th>所在列表</th>
  75. <th>URL</th>
  76. <th>二维码</th>
  77. <th>渠道PV</th>
  78. </tr>
  79. </thead>
  80. <tbody>
  81. <?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);
  82. if ($this->_foreach['qrcode']['total'] > 0):
  83. foreach ($_from as $this->_tpl_vars['qrcode']):
  84. $this->_foreach['qrcode']['iteration']++;
  85. ?>
  86. <tr>
  87. <td>默认</td>
  88. <td><?php echo $this->_tpl_vars['qrcode']['name']; ?>
  89. </td>
  90. <td><?php echo $this->_tpl_vars['qrcode']['url']; ?>
  91. </td>
  92. <td style="position:relative;">
  93. <img class="pop" width="80px" alt="<?php echo $this->_tpl_vars['qrcode']['name']; ?>
  94. " src="<?php echo $this->_tpl_vars['qrcode']['img']; ?>
  95. ">
  96. <img class="popup" alt="<?php echo $this->_tpl_vars['qrcode']['name']; ?>
  97. " src="<?php echo $this->_tpl_vars['qrcode']['img']; ?>
  98. ">
  99. </td>
  100. <td><?php if ($this->_tpl_vars['qrcode']['pv']): ?><?php echo $this->_tpl_vars['qrcode']['pv']; ?>
  101. <?php else: ?>0<?php endif; ?></td>
  102. </tr>
  103. <?php endforeach; endif; unset($_from); ?>
  104. <tr></tr>
  105. <?php $_from = $this->_tpl_vars['deliveryChannelsData']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
  106. foreach ($_from as $this->_tpl_vars['data']):
  107. ?>
  108. <tr>
  109. <td><?php echo $this->_tpl_vars['data']['str_name']; ?>
  110. </td>
  111. <?php if ($this->_tpl_vars['data']['platform_id']): ?>
  112. <td><?php echo $this->_tpl_vars['platFormData'][$this->_tpl_vars['data']['platform_id']]['name']; ?>
  113. </td>
  114. <?php else: ?>
  115. <td>无</td>
  116. <?php endif; ?>
  117. <td><?php echo $this->_tpl_vars['data']['url']; ?>
  118. </td>
  119. <td style="position:relative;">
  120. <img class="pop" width="80px" alt="<?php echo $this->_tpl_vars['data']['str_name']; ?>
  121. " src="<?php echo $this->_tpl_vars['data']['img_url']; ?>
  122. ">
  123. <img class="popup" alt="<?php echo $this->_tpl_vars['data']['str_name']; ?>
  124. " src="<?php echo $this->_tpl_vars['data']['img_url']; ?>
  125. ">
  126. </td>
  127. <td><?php echo $this->_tpl_vars['data']['pv_num']; ?>
  128. </td>
  129. </tr>
  130. <?php endforeach; endif; unset($_from); ?>
  131. </tbody>
  132. </table>
  133. <?php echo $this->_tpl_vars['page_html']; ?>
  134. </div>
  135. </div>
  136. </div>
  137. </div>
  138. </div>
  139. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  140. $this->_smarty_include(array('smarty_include_tpl_file' => "./admin/activity/common_right.html", 'smarty_include_vars' => array()));
  141. $this->_tpl_vars = $_smarty_tpl_vars;
  142. unset($_smarty_tpl_vars);
  143. ?>
  144. <div style="clear:both;"></div>
  145. </form>
  146. </div>
  147. <script>
  148. KISSY.use('node, io, event', function (S, Node, IO, Event) {
  149. var $ = S.all;
  150. $(".pop").on('mouseenter', function () {
  151. $(this).next(".popup").css({'display':'block'});
  152. });
  153. $(".popup").on('mouseleave', function () {
  154. $(this).css({'display':'none'});
  155. });
  156. });
  157. </script>
  158. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  159. $this->_smarty_include(array('smarty_include_tpl_file' => "./admin/bottom.html", 'smarty_include_vars' => array()));
  160. $this->_tpl_vars = $_smarty_tpl_vars;
  161. unset($_smarty_tpl_vars);
  162. ?>