%%40^40B^40BC05C2%%activity_list.html.php 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. <?php /* Smarty version 2.6.17, created on 2018-05-26 12:09:19
  2. compiled from admin/activity/activity_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. <script type="text/javascript" src="<?php echo $this->_tpl_vars['web_cfg']['cdn']; ?>
  24. /public/static/js/jquery-1.7.2.min.js"></script>
  25. <link rel="stylesheet" href="<?php echo $this->_tpl_vars['web_cfg']['cdn']; ?>
  26. /public/static/js/jquery.minicolors.css" />
  27. <script type="text/javascript" src="<?php echo $this->_tpl_vars['web_cfg']['cdn']; ?>
  28. /public/static/js/jquery.minicolors.js"></script>
  29. <style>
  30. .set-nav {
  31. margin: 0 auto;
  32. }
  33. .set-nav-hr {
  34. background-color: #ddd;
  35. height: 1px;
  36. position: relative;
  37. }
  38. .form-group label {
  39. font-weight: 600;
  40. }
  41. .checkbox-inline, .radio-inline {
  42. font-weight: 400!important;
  43. }
  44. .rowlabel {
  45. font-weight: 300!important;
  46. }
  47. .music_play_hide {
  48. display:none;
  49. }
  50. </style>
  51. <div class="panel panel-default">
  52. <div class="panel-body">
  53. <div class="row">
  54. <?php if ($this->_tpl_vars['eventsData']): ?>
  55. <div class="col-md-2">暂无信息</div>
  56. <?php endif; ?>
  57. <?php $_from = $this->_tpl_vars['allEventsData']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
  58. foreach ($_from as $this->_tpl_vars['index'] => $this->_tpl_vars['item']):
  59. ?>
  60. <div class="col-md-2">
  61. <div class="thumbnail">
  62. <div style="height: 20px;width:100%;background-color:#666; text-align: right;"><a id="<?php echo $this->_tpl_vars['item']['id']; ?>
  63. " class="menu-list memberinfo del" href="javascript:;" style="margin-right: 10px;">删除</a></div>
  64. <img src="<?php echo $this->_tpl_vars['item']['img_url']; ?>
  65. " alt="<?php echo $this->_tpl_vars['item']['events_name']; ?>
  66. " >
  67. <div class="caption">
  68. <a class="ks-overflow" title="<?php echo $this->_tpl_vars['item']['events_name']; ?>
  69. " href="<?php echo $this->_tpl_vars['web_cfg']['domain']; ?>
  70. ?c=Admin_Activity_SetBasics&a=PageShow&events_id=<?php echo $this->_tpl_vars['index']; ?>
  71. " >[<?php echo $this->_tpl_vars['allTypeData'][$this->_tpl_vars['item']['type']]['desc']; ?>
  72. ] <?php echo $this->_tpl_vars['item']['events_name']; ?>
  73. </a>
  74. </div>
  75. </div>
  76. </div>
  77. <?php endforeach; endif; unset($_from); ?>
  78. </div>
  79. <div class="page"><?php echo $this->_tpl_vars['page_html']; ?>
  80. </div>
  81. </div>
  82. </div>
  83. <script>
  84. KISSY.use('node, io', function (S, Node, IO) {
  85. var $ = S.all;
  86. // 删除活动
  87. $(".del").on('click', function() {
  88. var id = $(this).attr('id');
  89. var ck = window.confirm("您确定删除吗?");
  90. if(ck){
  91. new IO({
  92. type: "post"
  93. , url: VG.conf.root_domain + '/?c=Admin_Activity_ActivityList&a=ReqDel'//删除操作
  94. , data: {'id':id}
  95. , success: function (data) {
  96. alert('删除成功');
  97. location.reload();
  98. }
  99. , error: function (NULL, textStatus) {
  100. alert("请求服务器失败,原因:"+textStatus);
  101. }
  102. , dataType: "json"
  103. });
  104. }
  105. });
  106. var width = $(".col-md-2 img").width();
  107. $(".col-md-2 img").height(width/2);
  108. });
  109. </script>
  110. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  111. $this->_smarty_include(array('smarty_include_tpl_file' => "./admin/bottom.html", 'smarty_include_vars' => array()));
  112. $this->_tpl_vars = $_smarty_tpl_vars;
  113. unset($_smarty_tpl_vars);
  114. ?>