index.html 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  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_voucher_price_manage}</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.ds_store_name}</dt>
  16. <dd><input type="text" value="{$Request.get.store_name}" name="store_name" id="store_name" class="txt" style="width:100px;"></dd>
  17. </dl>
  18. <dl>
  19. <dt>{$Think.lang.admin_voucher_template_adddate}</dt>
  20. <dd>
  21. <input type="text" id="sdate" name="sdate" class="txt date" value="{$Request.get.sdate}">~
  22. <input type="text" id="edate" name="edate" class="txt date" value="{$Request.get.edate}">
  23. </dd>
  24. </dl>
  25. <dl>
  26. <dt>{$Think.lang.ds_state}</dt>
  27. <dd>
  28. <select name="state">
  29. <option value="0"
  30. {eq name="Request.get.state" value="0"}selected{/eq}>{$Think.lang.ds_status}</option>
  31. {notempty name="templatestate_arr"}
  32. {foreach name="templatestate_arr" item="val"}
  33. <option value="{$val.0}" {eq name="val.0" value="$Request.get.state" }selected{/eq}>{$val.1}</option>
  34. {/foreach}
  35. {/notempty}
  36. </select>
  37. </dd>
  38. </dl>
  39. <dl>
  40. <dt>{$Think.lang.ds_recommend}</dt>
  41. <dd>
  42. <select name="recommend">
  43. <option value="" selected>{$Think.lang.ds_please_choose}</option>
  44. <option value="1" {eq name="Request.get.recommend" value="1" }selected{/eq}>{$Think.lang.ds_yes}</option>
  45. <option value="0" {eq name="Request.get.recommend" value="0" }selected{/eq}>{$Think.lang.ds_no}</option>
  46. </select>
  47. </dd>
  48. </dl>
  49. <div class="btn_group">
  50. <a href="javascript:document.formSearch.submit();" class="btn" title="{$Think.lang.ds_query}">{$Think.lang.ds_query}</a>
  51. <a href="{:url('Voucher/index')}" class="btn btn-default" title="{$Think.lang.ds_cancel}">{$Think.lang.ds_cancel}</a>
  52. </div>
  53. </div>
  54. </form>
  55. <!-- 帮助 -->
  56. <div class="explanation" id="explanation">
  57. <div class="title" id="checkZoom">
  58. <h4 title="{$Think.lang.ds_explanation_tip}">{$Think.lang.ds_explanation}</h4>
  59. <span id="explanationZoom" title="{$Think.lang.ds_explanation_close}" class="arrow"></span>
  60. </div>
  61. <ul>
  62. <li>{$Think.lang.admin_voucher_template_list_tip}</li>
  63. </ul>
  64. </div>
  65. <!-- 列表 -->
  66. <form id="list_form" method="post">
  67. <table class="ds-default-table">
  68. <thead>
  69. <tr class="thead">
  70. <th class="w24">&nbsp;</th>
  71. <th class="align-left"><span>{$Think.lang.ds_store_name}</span></th>
  72. <th class="align-left"><span>{$Think.lang.admin_voucher_template_title}</span></th>
  73. <th class="align-center"><span>{$Think.lang.admin_voucher_template_price}</span></th>
  74. <th class="align-center"><span>{$Think.lang.admin_voucher_template_orderpricelimit}</span></th>
  75. <th class="align-center"><span>{$Think.lang.admin_voucher_template_enddate}</span></th>
  76. <th class="align-center"><span>{$Think.lang.admin_voucher_template_adddate}</span></th>
  77. <th class="align-center"><span>{$Think.lang.admin_voucher_template_if_private}</span></th>
  78. <th class="align-center"><span>{$Think.lang.ds_state}</span></th>
  79. <th class="align-center">{$Think.lang.ds_recommend}</th>
  80. <th class="align-center"><span>{$Think.lang.ds_handle}</span></th>
  81. </tr>
  82. </thead>
  83. <tbody id="treet1">
  84. {notempty name="vouchertemplate_list"}
  85. {foreach name="vouchertemplate_list" item="val"}
  86. <tr class="hover">
  87. <td>&nbsp;</td>
  88. <td class="align-left">
  89. <a href="{:url('home/Store/index',['store_id'=>$val.vouchertemplate_store_id])}"><span>{$val.vouchertemplate_storename}</span></a>
  90. {present name="flippedOwnShopIds[$val.vouchertemplate_store_id]"}
  91. <span class="ownshop">[{$Think.lang.ds_ownshop}]</span>
  92. {/present}
  93. </td>
  94. <td class="align-left"><span>{$val.vouchertemplate_title}</span></td>
  95. <td class="align-center"><span>{$val.vouchertemplate_price}</span></td>
  96. <td class="align-center"><span>{$val.vouchertemplate_limit}</span></td>
  97. <td class="align-center"><span>{$val.vouchertemplate_enddate|date="Y-m-d"}</span></td>
  98. <td class="align-center"><span>{$val.vouchertemplate_adddate|date="Y-m-d"}</span></td>
  99. <td class="align-center">
  100. <span>
  101. {if $val.vouchertemplate_if_private ==1}
  102. {$Think.lang.ds_yes}
  103. {else}
  104. {$Think.lang.ds_no}
  105. {/if}
  106. </span>
  107. </td>
  108. <td class="align-center">
  109. <span>
  110. {foreach name="templatestate_arr" item="v"}
  111. {eq name="val.vouchertemplate_state" value="$v.0"}{$v.1}{/eq}
  112. {/foreach}
  113. </span>
  114. </td>
  115. <td class="align-center yes-onoff">
  116. {eq name="val.vouchertemplate_recommend" value="0"}
  117. <a href="JavaScript:void(0);" class="disabled" ajax_branch='vouchertemplate_recommend' ds_type="inline_edit" fieldname="vouchertemplate_recommend" fieldid="{$val.vouchertemplate_id}" fieldvalue="0" title="{$Think.lang.ds_editable}"><img src="{$Think.ADMIN_SITE_ROOT}/images/treetable/transparent.gif"></a>
  118. {else /}
  119. <a href="JavaScript:void(0);" class="enabled" ajax_branch='vouchertemplate_recommend' ds_type="inline_edit" fieldname="vouchertemplate_recommend" fieldid="{$val.vouchertemplate_id}" fieldvalue="1" title="{$Think.lang.ds_editable}"><img src="{$Think.ADMIN_SITE_ROOT}/images/treetable/transparent.gif"></a>
  120. {/eq}</td>
  121. <td class="nowrap align-center">
  122. <a href="{:url('Voucher/templateedit',['tid'=>$val.vouchertemplate_id])}" class="dsui-btn-edit"><i class="iconfont"></i>{$Think.lang.ds_edit}</a>
  123. </td>
  124. </tr>
  125. {/foreach}
  126. {else}
  127. <tr class="no_data">
  128. <td colspan="16">{$Think.lang.ds_no_record}</td>
  129. </tr>
  130. {/notempty}
  131. </tbody>
  132. </table>
  133. {$show_page|raw}
  134. </form>
  135. </div>
  136. <script type="text/javascript" src="{$Think.ADMIN_SITE_ROOT}/js/jquery.edit.js" charset="utf-8"></script>
  137. <script language="javascript">
  138. $(function () {
  139. $('#sdate').datepicker({dateFormat: 'yy-mm-dd'});
  140. $('#edate').datepicker({dateFormat: 'yy-mm-dd'});
  141. });
  142. </script>