%%D6^D66^D663A78A%%activity_del_list.html.php 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. <?php /* Smarty version 2.6.17, created on 2018-04-18 10:22:15
  2. compiled from admin/activity/activity_del_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 ReductionDel" 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. $(".ReductionDel").on('click', function() {
  88. var id = $(this).attr('id');
  89. new IO({
  90. type: "post"
  91. , url: VG.conf.root_domain + '/?c=Admin_Activity_ActivityList&a=ReqReductionDel'//恢复操作
  92. , data: {'id':id}
  93. , success: function (data) {
  94. alert('恢复成功');
  95. location.reload();
  96. }
  97. , error: function (NULL, textStatus) {
  98. alert("请求服务器失败,原因:"+textStatus);
  99. }
  100. , dataType: "json"
  101. });
  102. });
  103. var width = $(".col-md-2 img").width();
  104. $(".col-md-2 img").height(width/2);
  105. });
  106. </script>
  107. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  108. $this->_smarty_include(array('smarty_include_tpl_file' => "./admin/bottom.html", 'smarty_include_vars' => array()));
  109. $this->_tpl_vars = $_smarty_tpl_vars;
  110. unset($_smarty_tpl_vars);
  111. ?>