detail.html 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. {include file="public/header" /}
  2. <div class="page">
  3. <div class="fixed-bar">
  4. <div class="item-title">
  5. <div class="subject">
  6. <h3>{$Think.lang.ds_activity_manage}</h3>
  7. <h5></h5>
  8. </div>
  9. {include file="public/admin_items" /}
  10. </div>
  11. </div>
  12. <form method="get" name="formSearch">
  13. <input type="hidden" name="id" value="{$Request.get.id}">
  14. <div class="ds-search-form">
  15. <dl>
  16. <dt>{$Think.lang.activity_detail_index_store}</dt>
  17. <dd><input type="text" name="searchstore" id="searchstore" class="txt" value='{$Request.get.searchstore}'></dd>
  18. </dl>
  19. <dl>
  20. <dt>{$Think.lang.ds_goods_name}</dt>
  21. <dd><input type="text" name="searchgoods" id="searchgoods" class="txt" value='{$Request.get.searchgoods}'></dd>
  22. <dd>
  23. <select name="searchstate">
  24. <option value="0" >{$Think.lang.activity_detail_index_auditstate}</option>
  25. <option value="1" {eq name="Request.get.searchstate" value="1"}selected=selected{/eq}>{$Think.lang.activity_detail_index_to_audit}</option>
  26. <option value="2" {eq name="Request.get.searchstate" value="2"}selected=selected{/eq}>{$Think.lang.activity_detail_index_passed}</option>
  27. <option value="3" {eq name="Request.get.searchstate" value="3"}selected=selected{/eq}>{$Think.lang.activity_detail_index_unpassed}</option>
  28. </select>
  29. </dd>
  30. </dl>
  31. <div class="btn_group">
  32. <input class="btn" type="submit" value="{$Think.lang.ds_query}"/>
  33. </div>
  34. </div>
  35. </form>
  36. <div class="explanation" id="explanation">
  37. <div class="title" id="checkZoom">
  38. <h4 title="{$Think.lang.ds_explanation_tip}">{$Think.lang.ds_explanation}</h4>
  39. <span id="explanationZoom" title="{$Think.lang.ds_explanation_close}" class="arrow"></span>
  40. </div>
  41. <ul>
  42. <li>{$Think.lang.activity_detail_index_tip1}</li>
  43. <li>{$Think.lang.activity_detail_index_tip2}</li>
  44. <li>{$Think.lang.activity_detail_index_tip3}</li>
  45. </ul>
  46. </div>
  47. <table class="ds-default-table">
  48. <thead>
  49. <tr class="thead">
  50. <th></th>
  51. <th>{$Think.lang.ds_sort}</th>
  52. <th>{$Think.lang.ds_goods_name}</th>
  53. <th>{$Think.lang.activity_detail_index_store}</th>
  54. <th class="align-center">{$Think.lang.ds_status}</th>
  55. <th class="align-center">{$Think.lang.ds_handle}</th>
  56. </tr>
  57. </thead>
  58. <tbody id="treet1">
  59. {notempty name="activitydetail_list"}
  60. {foreach name="activitydetail_list" item="v"}
  61. <tr class="hover">
  62. <td class="w24"><input type="checkbox" name='activitydetail_id[]' value="{$v.activitydetail_id}" class="checkitem"></td>
  63. <td class="w48 sort"><span class=" editable" title="{$Think.lang.ds_editable}" style="cursor:pointer;" required="1" fieldid="{$v.activitydetail_id}" ajax_branch='activitydetail_sort' fieldname="activitydetail_sort" ds_type="inline_edit">{$v.activitydetail_sort}</span></td>
  64. <td><a target="_blank" href="{:url('home/Goods/index',['goods_id'=>$v.item_id])}">{$v.item_name}</a></td>
  65. <td><a href="{:url('home/Store/index',['store_id'=>$v.store_id])}">{$v.store_name}</a></td>
  66. <td class="align-center">
  67. {switch name="v.activitydetail_state"}
  68. {case value="0"}{$Think.lang.activity_detail_index_to_audit}{/case}
  69. {case value="1"}{$Think.lang.activity_detail_index_passed}{/case}
  70. {case value="2"}{$Think.lang.activity_detail_index_unpassed}{/case}
  71. {case value="3"}{$Think.lang.activity_detail_index_apply_again}{/case}
  72. {/switch}
  73. </td>
  74. <td class="w160 align-center" id="ds_row_{$v.activitydetail_id}">
  75. {neq name="v.activitydetail_state" value="1"}
  76. <a href="{:url('Activity/deal',['activitydetail_id'=>$v.activitydetail_id,'state'=>'1'])}" class="dsui-btn-view"><i class="iconfont"></i>{$Think.lang.activity_detail_index_pass}</a>
  77. {/neq}
  78. {eq name="v.activitydetail_state" value="0"}
  79. {/eq}
  80. {neq name="v.activitydetail_state" value="2"}
  81. <a href="{:url('Activity/deal',['activitydetail_id'=>$v.activitydetail_id,'state'=>'2'])}" class="dsui-btn-del"><i class="iconfont"></i>{$Think.lang.activity_detail_index_refuse}</a>
  82. {/neq}
  83. {if ($v.activitydetail_state eq '0') OR ($v.activitydetail_state eq '2')}
  84. <a href="javascript:dsLayerConfirm('{:url('Activity/del_detail',['activitydetail_id'=>$v.activitydetail_id])}','{$Think.lang.ds_ensure_del}',{$v.activitydetail_id})" class="dsui-btn-del"><i class="iconfont"></i>{$Think.lang.ds_del}</a></td>
  85. {/if}
  86. </tr>
  87. {/foreach}
  88. {else /}
  89. <tr class="no_data">
  90. <td colspan="10">{$Think.lang.ds_no_record}</td>
  91. </tr>
  92. {/notempty}
  93. </tbody>
  94. {notempty name="activitydetail_list"}
  95. <tfoot>
  96. <tr class="tfoot">
  97. <td><input type="checkbox" class="checkall" id="checkall_1"></td>
  98. <td colspan="16" id="batchAction">
  99. <label for="checkall_1">{$Think.lang.ds_select_all}</label>&nbsp;&nbsp;
  100. <a href="JavaScript:void(0);" class="btn btn-small" onclick="javascript:submit_form('pass');"><span>{$Think.lang.activity_detail_index_pass}</span></a>
  101. <a href="JavaScript:void(0);" class="btn btn-small" onclick="javascript:submit_form('refuse');"><span>{$Think.lang.activity_detail_index_refuse}</span></a>
  102. <a href="JavaScript:void(0);" class="btn btn-small" onclick="javascript:submit_form('del');"><span>{$Think.lang.ds_del}</span></a>
  103. </td>
  104. </tr>
  105. </tfoot>
  106. {/notempty}
  107. </table>
  108. {$show_page|raw}
  109. </div>
  110. <script type="text/javascript" src="{$Think.ADMIN_SITE_ROOT}/js/jquery.edit.js" charset="utf-8"></script>
  111. <script type="text/javascript">
  112. function submit_form(action){
  113. /* 获取选中的项 */
  114. var items = '';
  115. $('.checkitem:checked').each(function () {
  116. items += this.value + ',';
  117. });
  118. if (items != '') {
  119. items = items.substr(0, (items.length - 1));
  120. }
  121. if(action=='del'){
  122. _uri = ADMINSITEURL+"/Activity/del_detail.html?ajax=1&activitydetail_id=" + items;
  123. dsLayerConfirm(_uri,'{$Think.lang.ds_ensure_del}');
  124. }else if(action=='pass'){
  125. _uri = ADMINSITEURL+"/Activity/deal.html?ajax=1&state=1&activitydetail_id=" + items;
  126. dsLayerConfirm(_uri,'{$Think.lang.activity_detail_index_pass_all}');
  127. }else if(action=='refuse'){
  128. _uri = ADMINSITEURL+"/Activity/deal.html?ajax=1&state=2&activitydetail_id=" + items;
  129. dsLayerConfirm(_uri,'{$Think.lang.activity_detail_index_refuse_all}');
  130. }
  131. }
  132. </script>