activity_list.html 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. <{include file="./admin/header.html"}>
  2. <{include file="./admin/left.html"}>
  3. <{include file="./admin/nav.html"}>
  4. <{include file="get_kindeditor.html"}>
  5. <script type="text/javascript" src="<{$web_cfg.cdn}>/public/static/js/jquery-1.7.2.min.js"></script>
  6. <link rel="stylesheet" href="<{$web_cfg.cdn}>/public/static/js/jquery.minicolors.css" />
  7. <script type="text/javascript" src="<{$web_cfg.cdn}>/public/static/js/jquery.minicolors.js"></script>
  8. <style>
  9. .set-nav {
  10. margin: 0 auto;
  11. }
  12. .set-nav-hr {
  13. background-color: #ddd;
  14. height: 1px;
  15. position: relative;
  16. }
  17. .form-group label {
  18. font-weight: 600;
  19. }
  20. .checkbox-inline, .radio-inline {
  21. font-weight: 400!important;
  22. }
  23. .rowlabel {
  24. font-weight: 300!important;
  25. }
  26. .music_play_hide {
  27. display:none;
  28. }
  29. </style>
  30. <div class="panel panel-default">
  31. <div class="panel-body">
  32. <div class="row">
  33. <{if $eventsData}>
  34. <div class="col-md-2">暂无信息</div>
  35. <{/if}>
  36. <{foreach from=$allEventsData key=index item=item}>
  37. <div class="col-md-2">
  38. <div class="thumbnail">
  39. <div style="height: 20px;width:100%;background-color:#666; text-align: right;"><a id="<{$item.id}>" class="menu-list memberinfo del" href="javascript:;" style="margin-right: 10px;">删除</a></div>
  40. <img src="<{$item.img_url}>" alt="<{$item.events_name}>" >
  41. <div class="caption">
  42. <a class="ks-overflow" title="<{$item.events_name}>" href="<{$web_cfg.domain}>?c=Admin_Activity_SetBasics&a=PageShow&events_id=<{$index}>" >[<{$allTypeData[$item.type].desc}>] <{$item.events_name}></a>
  43. </div>
  44. </div>
  45. </div>
  46. <{/foreach}>
  47. </div>
  48. <div class="page"><{$page_html}></div>
  49. </div>
  50. </div>
  51. <script>
  52. KISSY.use('node, io', function (S, Node, IO) {
  53. var $ = S.all;
  54. // 删除活动
  55. $(".del").on('click', function() {
  56. var id = $(this).attr('id');
  57. var ck = window.confirm("您确定删除吗?");
  58. if(ck){
  59. new IO({
  60. type: "post"
  61. , url: VG.conf.root_domain + '/?c=Admin_Activity_ActivityList&a=ReqDel'//删除操作
  62. , data: {'id':id}
  63. , success: function (data) {
  64. alert('删除成功');
  65. location.reload();
  66. }
  67. , error: function (NULL, textStatus) {
  68. alert("请求服务器失败,原因:"+textStatus);
  69. }
  70. , dataType: "json"
  71. });
  72. }
  73. });
  74. var width = $(".col-md-2 img").width();
  75. $(".col-md-2 img").height(width/2);
  76. });
  77. </script>
  78. <{include file="./admin/bottom.html"}>