index.html 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  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_promotion_mansong}</h3>
  7. <h5></h5>
  8. </div>
  9. {include file="public/admin_items" /}
  10. </div>
  11. </div>
  12. <form method="get" name="formSearch">
  13. <div class="ds-search-form">
  14. <dl>
  15. <dt>{$Think.lang.mansong_name}</dt>
  16. <dd><input type="text" value="{$Request.get.mansong_name}" name="mansong_name" id="mansong_name" class="txt" style="width:100px;"></dd>
  17. </dl>
  18. <dl>
  19. <dt>{$Think.lang.ds_store_name}</dt>
  20. <dd><input type="text" value="{$Request.get.store_name}" name="store_name" id="store_name" class="txt" style="width:100px;"></dd>
  21. </dl>
  22. <dl>
  23. <dt>{$Think.lang.ds_state}</dt>
  24. <dd>
  25. <select name="state">
  26. {notempty name="mansong_state_array"}
  27. {foreach name="mansong_state_array" item="val"}
  28. <option value="{$key}" {eq name="key" value="$Request.get.state"}selected{/eq}>{$val}</option>
  29. {/foreach}
  30. {/notempty}
  31. </select>
  32. </dd>
  33. </dl>
  34. <div class="btn_group">
  35. <a href="javascript:document.formSearch.submit();" class="btn " title="{$Think.lang.ds_query}">{$Think.lang.ds_query}</a>
  36. <a href="{:url('Promotionmansong/index')}" class="btn btn-default" title="{$Think.lang.ds_cancel}">{$Think.lang.ds_cancel}</a>
  37. </div>
  38. </div>
  39. </form>
  40. <!-- 帮助 -->
  41. <div class="explanation" id="explanation">
  42. <div class="title" id="checkZoom">
  43. <h4 title="{$Think.lang.ds_explanation_tip}">{$Think.lang.ds_explanation}</h4>
  44. <span id="explanationZoom" title="{$Think.lang.ds_explanation_close}" class="arrow"></span>
  45. </div>
  46. <ul>
  47. <li>{$Think.lang.mansong_list_help1}</li>
  48. <li>{$Think.lang.mansong_list_help2}</li>
  49. <li>{$Think.lang.mansong_list_help3}</li>
  50. </ul>
  51. </div>
  52. <!-- 列表 -->
  53. <table class="ds-default-table">
  54. <thead>
  55. <tr class="thead">
  56. <th class="w24"></th>
  57. <th class="align-left"><span>{$Think.lang.mansong_name}</span></th>
  58. <th class="align-left" width="200"><span>{$Think.lang.ds_store_name}</span></th>
  59. <th class="align-center" width="100"><span>{$Think.lang.ds_start_time}</span></th>
  60. <th class="align-center" width="100"><span>{$Think.lang.ds_end_time}</span></th>
  61. <th class="align-center" width="80"><span>{$Think.lang.ds_state}</span></th>
  62. <th class="align-center" width="200"><span>{$Think.lang.ds_handle}</span></th>
  63. </tr>
  64. </thead>
  65. <tbody id="treet1">
  66. {notempty name="mansong_list"}
  67. {foreach name="mansong_list" item="val"}
  68. <tr class="hover" id="ds_row_{$val.mansong_id}">
  69. <td><input type="checkbox" class="checkitem" name="mansong_id[]" value="{$val.mansong_id}" /></td>
  70. <td class="align-left"><span>{$val.mansong_name}</span></td>
  71. <td class="align-left"><a
  72. href="{:url('home/Store/index',['store_id'=>$val.store_id])}"><span>{$val.store_name}</span></a>
  73. {present name="flippedOwnShopIds[$val.store_id]"}
  74. <span class="ownshop">[{$Think.lang.ds_ownshop}]</span>
  75. {/present}
  76. </td>
  77. <td class="align-center"><span>{$val.mansong_starttime|date="Y-m-d"}</span></td>
  78. <td class="align-center"><span>{$val.mansong_endtime|date="Y-m-d"}</span></td>
  79. <td class="align-center"><span>{$val.mansong_state_text}</span></td>
  80. <td class="nowrap align-center">
  81. <!-- 详细按钮 -->
  82. <a href="javascript:dsLayerOpen('{:url('Promotionmansong/mansong_detail',['mansong_id'=>$val.mansong_id])}','{$val.mansong_name}{$Think.lang.ds_detail}')" class="dsui-btn-view"><i class="iconfont"></i>{$Think.lang.ds_detail}</a>
  83. {if $val.editable}
  84. <a href="javascript:dsLayerConfirm('{:url('Promotionmansong/mansong_cancel',['mansong_id'=>$val.mansong_id])}','{$Think.lang.ds_ensure_cancel}')" class="dsui-btn-edit"><i class="iconfont"></i>{$Think.lang.ds_cancel}</a>
  85. {/if}
  86. <a href="javascript:dsLayerConfirm('{:url('Promotionmansong/mansong_del',['mansong_id'=>$val.mansong_id])}','{$Think.lang.ds_ensure_del}',{$val.mansong_id})" class="dsui-btn-del"><i class="iconfont"></i>{$Think.lang.ds_del}</a>
  87. </td>
  88. </tr>
  89. {/foreach}
  90. {else}
  91. <tr class="no_data">
  92. <td colspan="16">{$Think.lang.ds_no_record}</td>
  93. </tr>
  94. {/notempty}
  95. </tbody>
  96. <tfoot>
  97. {notempty name="mansong_list"}
  98. <tr class="tfoot">
  99. <td><input type="checkbox" class="checkall" id="checkallBottom"></td>
  100. <td colspan="16"><label for="checkallBottom">{$Think.lang.ds_select_all}</label>
  101. &nbsp;&nbsp;<a href="JavaScript:void(0);" class="btn btn-small" onclick="submit_delete_batch()"><span>{$Think.lang.ds_del}</span></a>
  102. </td>
  103. </tr>
  104. {/notempty}
  105. </tfoot>
  106. </table>
  107. {$show_page|raw}
  108. </div>
  109. <script type="text/javascript">
  110. function submit_delete(ids_str) {
  111. _uri = ADMINSITEURL + "/Promotionmansong/mansong_del.html?mansong_id=" + ids_str;
  112. dsLayerConfirm(_uri, '{$Think.lang.ds_ensure_del}');
  113. }
  114. </script>