index.html 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  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_xianshi}</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.xianshi_name}</dt>
  16. <dd><input type="text" value="{$Request.get.xianshi_name}" name="xianshi_name" id="xianshi_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="xianshi_state_array"}
  27. {foreach name="xianshi_state_array" item="val"}
  28. <option value="{$key}"
  29. {eq name="key" value="$Request.get.state"}selected{/eq}>{$val}</option>
  30. {/foreach}
  31. {/notempty}
  32. </select>
  33. </dd>
  34. </dl>
  35. <div class="btn_group">
  36. <a href="javascript:document.formSearch.submit();" class="btn" title="{$Think.lang.ds_query}">{$Think.lang.ds_query}</a>
  37. {if $filtered}
  38. <a href="{:url('Promotionxianshi/index')}" class="btn btn-default" title="{$Think.lang.ds_cancel}">{$Think.lang.ds_cancel}</a>
  39. {/if}
  40. </div>
  41. </div>
  42. </form>
  43. <!-- 帮助 -->
  44. <div class="explanation" id="explanation">
  45. <div class="title" id="checkZoom">
  46. <h4 title="{$Think.lang.ds_explanation_tip}">{$Think.lang.ds_explanation}</h4>
  47. <span id="explanationZoom" title="{$Think.lang.ds_explanation_close}" class="arrow"></span>
  48. </div>
  49. <ul>
  50. <li>{$Think.lang.xianshi_list_help1}</li>
  51. <li>{$Think.lang.xianshi_list_help2}</li>
  52. <li>{$Think.lang.xianshi_list_help3}</li>
  53. </ul>
  54. </div>
  55. <!-- 列表 -->
  56. <table class="ds-default-table">
  57. <thead>
  58. <tr class="thead">
  59. <th class="w24"></th>
  60. <th class="align-left"><span>{$Think.lang.xianshi_name}</span></th>
  61. <th class="align-left" width="200"><span>{$Think.lang.ds_store_name}</span></th>
  62. <th class="align-center" width="120"><span>{$Think.lang.ds_start_time}</span></th>
  63. <th class="align-center" width="120"><span>{$Think.lang.ds_end_time}</span></th>
  64. <th class="align-center" width="80"><span>{$Think.lang.xianshi_lower_limit}</span></th>
  65. <th class="align-center" width="80"><span>{$Think.lang.ds_state}</span></th>
  66. <th class="align-center" width="200"><span>{$Think.lang.ds_handle}</span></th>
  67. </tr>
  68. </thead>
  69. <tbody id="treet1">
  70. {notempty name="xianshi_list"}
  71. {foreach name="xianshi_list" item="val"}
  72. <tr class="hover" id="ds_row_{$val.xianshi_id}">
  73. <td><input type="checkbox" class="checkitem" name="xianshi_id[]" value="{$val.xianshi_id}" /></td>
  74. <td class="align-left"><span>{$val.xianshi_name}</span></td>
  75. <td class="align-left"><a
  76. href="{:url('home/Store/index',['store_id'=>$val.store_id])}"><span>{$val.store_name}</span></a>
  77. {present name="flippedOwnShopIds[$val.store_id]"}
  78. <span class="ownshop">[{$Think.lang.ds_ownshop}]</span>
  79. {/present}
  80. </td>
  81. <td class="align-center"><span>{$val.xianshi_starttime|date="Y-m-d H:i"}</span></td>
  82. <td class="align-center"><span>{$val.xianshi_end_time|date="Y-m-d H:i"}</span></td>
  83. <td class="align-center"><span>{$val.xianshi_lower_limit}</span></td>
  84. <td class="align-center"><span>{$val.xianshi_state_text}</span></td>
  85. <td class="nowrap align-center">
  86. <a href="javascript:dsLayerOpen('{:url('Promotionxianshi/xianshi_detail',['xianshi_id'=>$val.xianshi_id])}','{$val.xianshi_name}{$Think.lang.ds_detail}')" class="dsui-btn-view"><i class="iconfont"></i>{$Think.lang.ds_detail}</a>
  87. {if $val.editable}
  88. <a href="javascript:dsLayerConfirm('{:url('Promotionxianshi/xianshi_cancel',['xianshi_id'=>$val.xianshi_id])}','{$Think.lang.ds_ensure_cancel}')" class="dsui-btn-edit"><i class="iconfont"></i>{$Think.lang.ds_cancel}</a>
  89. {/if}
  90. <a href="javascript:dsLayerConfirm('{:url('Promotionxianshi/xianshi_del',['xianshi_id'=>$val.xianshi_id])}','{$Think.lang.ds_ensure_del}',{$val.xianshi_id})" class="dsui-btn-del"><i class="iconfont"></i>{$Think.lang.ds_del}</a>
  91. </td>
  92. </tr>
  93. {/foreach}
  94. {else /}
  95. <tr class="no_data">
  96. <td colspan="16">{$Think.lang.ds_no_record}</td>
  97. </tr>
  98. {/notempty}
  99. </tbody>
  100. <tfoot>
  101. {notempty name="xianshi_list"}
  102. <tr class="tfoot">
  103. <td><input type="checkbox" class="checkall" id="checkallBottom"></td>
  104. <td colspan="16"><label for="checkallBottom">{$Think.lang.ds_select_all}</label>
  105. &nbsp;&nbsp;<a href="JavaScript:void(0);" class="btn btn-small" onclick="submit_delete_batch()"><span>{$Think.lang.ds_del}</span></a>
  106. </td>
  107. </tr>
  108. {/notempty}
  109. </tfoot>
  110. </table>
  111. {$show_page|raw}
  112. </div>
  113. <script type="text/javascript">
  114. function submit_delete(ids_str){
  115. _uri = ADMINSITEURL+"/Promotionxianshi/xianshi_del.html?xianshi_id=" + ids_str;
  116. dsLayerConfirm(_uri,'{$Think.lang.ds_ensure_del}');
  117. }
  118. </script>