index.html 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  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_bargain}</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.bargain_name}</dt>
  16. <dd><input type="text" value="{$Request.get.bargain_name}" name="bargain_name" id="bargain_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. <option value="">{$Think.lang.ds_please_choose}</option>
  27. {notempty name="bargain_state_array"}
  28. {foreach name="bargain_state_array" item="val"}
  29. <option value="{$key}"{if $Request.get.state!='' && $key==$Request.get.state}selected{/if}>{$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('Promotionbargain/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.bargain_list_help1}</li>
  51. <li>{$Think.lang.bargain_list_help2}</li>
  52. <li>{$Think.lang.bargain_list_help3}</li>
  53. </ul>
  54. </div>
  55. <!-- 列表 -->
  56. <form id="list_form" method="post">
  57. <input type="hidden" id="object_id" name="object_id"/>
  58. <table class="ds-default-table">
  59. <thead>
  60. <tr class="thead">
  61. <th class="align-left"><span>{$Think.lang.bargain_name}</span></th>
  62. <th class="align-left"><span>{$Think.lang.ds_goods_name}</span></th>
  63. <th class="align-left" width="240"><span>{$Think.lang.ds_store_name}</span></th>
  64. <th class="align-center" width="120"><span>{$Think.lang.ds_begin_time}</span></th>
  65. <th class="align-center" width="120"><span>{$Think.lang.ds_end_time}</span></th>
  66. <th class="align-center" width="120"><span>{$Think.lang.promotionbargin_floorprice}</span></th>
  67. <th class="align-center" width="120"><span>{$Think.lang.promotionbargin_limit}</span></th>
  68. <th class="align-center" width="80"><span>{$Think.lang.ds_state}</span></th>
  69. <th class="w120 align-center"><span>{$Think.lang.ds_handle}</span></th>
  70. </tr>
  71. </thead>
  72. <tbody id="treet1">
  73. {notempty name="bargain_list"}
  74. {foreach name="bargain_list" item="val"}
  75. <tr class="hover">
  76. <td><span>{$val.bargain_name}</span></td>
  77. <td><a href="{$Think.config.ds_config.h5_site_url}/home/goodsdetail?goods_id={$val.bargain_goods_id}&bargain_id={$val.bargain_id}" target="_blank">{$val.bargain_goods_name}</a></td>
  78. <td><a href="{:url('home/Store/index',['store_id'=>$val.store_id])}"><span>{$val.store_name}</span></a>
  79. {present name="flippedOwnShopIds[$val.store_id]"}
  80. <span class="ownshop">[{$Think.lang.ds_ownshop}]</span>
  81. {/present}
  82. </td>
  83. <td><span>{$val.bargain_begintime|date="Y-m-d H:i"}</span></td>
  84. <td><span>{$val.bargain_endtime|date="Y-m-d H:i"}</span></td>
  85. <td><span>{$val.bargain_floorprice}</span></td>
  86. <td><span>{$val.bargain_limit}</span></td>
  87. <td><span>{$val.bargain_state_text}</span></td>
  88. <td class="nowrap align-center">
  89. {if in_array($val.bargain_state,array(2,3))}
  90. <a href="javascript:dsLayerOpen('{:url('Promotionbargain/bargain_order',['bargain_id'=>$val.bargain_id])}','{$Think.lang.promotionbargin_detail}-{$val.bargain_name}')" class="dsui-btn-view"><i class="iconfont"></i>{$Think.lang.ds_detail}</a>
  91. {/if}
  92. {if in_array($val.bargain_state,array(1,2))}
  93. <a href="javascript:dsLayerConfirm('{:url('Promotionbargain/bargain_end',['bargain_id'=>$val.bargain_id])}','{$Think.lang.ds_ensure_cancel}')" class="dsui-btn-del"><i class="iconfont"></i>{$Think.lang.ds_cancel}</a>
  94. {/if}
  95. {if in_array($val.bargain_state,array(0,3))}
  96. <a href="javascript:dsLayerConfirm('{:url('Promotionbargain/bargain_del',['bargain_id'=>$val.bargain_id])}','{$Think.lang.ds_ensure_del}')" class="dsui-btn-del"><i class="iconfont"></i>{$Think.lang.ds_del}</a>
  97. {/if}
  98. </td>
  99. </tr>
  100. {/foreach}
  101. {else /}
  102. <tr class="no_data">
  103. <td colspan="9">{$Think.lang.ds_no_record}</td>
  104. </tr>
  105. {/notempty}
  106. </tbody>
  107. </table>
  108. {$show_page|raw}
  109. </form>
  110. </div>