common_right.html 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. <div class="activity_right">
  2. <div id="" class="panel panel-default" >
  3. <div class="panel-heading"><h3 class="panel-title" id="panel-title">活动二维码</h3></div>
  4. <div class="panel-body" style="text-align: center;">
  5. <div class="ks-activity-right-tabs">
  6. <div class="ks-tabs-bar">
  7. <{foreach from=$pagePublicData.EventsDefaultCode item=qrcode name=qrcode}>
  8. <{if $smarty.foreach.qrcode.index == 0}>
  9. <div class="ks-tabs-tab <{if $smarty.foreach.qrcode.index == 0}>ks-tabs-tab-selected<{/if}>"><{$qrcode.name}>列表</div>
  10. <{/if}>
  11. <{/foreach}>
  12. </div>
  13. <div class="ks-tabs-body">
  14. <{foreach from=$pagePublicData.EventsDefaultCode item=qrcode name=qrcode}>
  15. <{if $smarty.foreach.qrcode.index == 0}>
  16. <div class="ks-tabs-panel <{if $smarty.foreach.qrcode.index == 0}>ks-tabs-panel-selected<{/if}>">
  17. <img src="<{$qrcode.img}>" width="200">
  18. <div class="form-group" style="text-align:left;">
  19. <label class="control-label"><{$qrcode.name}>列表地址:</label>
  20. <input type="text" class="form-control activity_right_url_input" value="<{$qrcode.url}>">
  21. </div>
  22. </div>
  23. <{/if}>
  24. <{/foreach}>
  25. </div>
  26. </div>
  27. </div>
  28. </div>
  29. <div id="activity_type_box" class="panel panel-default activity_info">
  30. <div class="panel-heading"><h3 class="panel-title" id="panel-title">活动信息</h3></div>
  31. <div class="panel-body" >
  32. <div class="">
  33. <label class="control-label">活动名称:</label>
  34. <input type="text" value="<{$eventData.events_name}>" style="border:0px none;padding:0px;font-size:12px;" >
  35. </div>
  36. <div class="">
  37. <label class="control-label">活动类型:</label>
  38. <{$typeData[$eventData.type].desc}>
  39. </div>
  40. <div class="">
  41. <label class="control-label">进行状态:</label>
  42. <span class="text-muted">
  43. <{if time() < $eventData.begin_time}>
  44. <span style="color:#5151A2;">未开始</span>
  45. <{/if}>
  46. <{if time() > $eventData.begin_time && time() < $eventData.end_time}>
  47. <span style="color:#00EC00;">进行中</span>
  48. <{/if}>
  49. <{if time() > $eventData.end_time}>
  50. <span style="color:red;">结束</span>
  51. <{/if}>
  52. </span>
  53. </div>
  54. <div class="">
  55. <label class="control-label">发布状态:</label>
  56. <{if $displayDesc[$eventData.display].kw == 'EVENT_DISPLAY_SHOW'}>
  57. <span style="color:#00EC00"><{$displayDesc[$eventData.display].desc}></span>
  58. <{else}>
  59. <span style="color:red"><{$displayDesc[$eventData.display].desc}></span>
  60. <{/if}>
  61. </div>
  62. <div class="">
  63. <label class="control-label">是否出现在列表中:</label>
  64. <{if $pagePublicData.listDisplayDesc[$eventData.list_display].kw == 'LIST_DISPLAY_SHOW'}>
  65. <span style="color:#00EC00"><{$pagePublicData.listDisplayDesc[$eventData.list_display].desc}></span>
  66. <{else}>
  67. <span style="color:red"><{$pagePublicData.listDisplayDesc[$eventData.list_display].desc}></span>
  68. <{/if}>
  69. </div>
  70. <div class="">
  71. <label class="control-label">开始时间:</label>
  72. <{$eventData.begin_time|date_format:'%Y-%m-%d %H:%M:%S'}>
  73. </div>
  74. <{if $typeData[$thisType].kw != 'TYPE_EVENTS_ARTICLE' }>
  75. <div>
  76. <label class="control-label">结束时间:</label>
  77. <{$eventData.end_time|date_format:'%Y-%m-%d %H:%M:%S'}>
  78. </div>
  79. <{/if}>
  80. </div>
  81. </div>
  82. </div>
  83. <script>
  84. $('.create_a').on('click', function () {
  85. var url = $(this).attr('url');
  86. var requesrUrl = '<{$web_cfg.domain}>?c=Admin_Index&a=TMPCreateImg';
  87. $.ajax({
  88. type:'post',
  89. url: requesrUrl,
  90. data: {url: url},
  91. dataType: 'json',
  92. success: function(data) {
  93. alert('ok');
  94. location.reload();
  95. }
  96. });
  97. });
  98. </script>