index.html 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  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_rechargecard}</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.rc_sn}</dt>
  16. <dd><input class="txt" type="text" name="sn" id="search-sn" value="{$Request.get.sn}" /></dd>
  17. </dl>
  18. <dl>
  19. <dt>{$Think.lang.rc_batchflag}</dt>
  20. <dd><input class="txt" type="text" name="batchflag" id="search-batchflag" value="{$Request.get.batchflag}" /></dd>
  21. </dl>
  22. <dl>
  23. <dt>{$Think.lang.rc_state}</dt>
  24. <dd><select name="state" id="search-state">
  25. <option value="">{$Think.lang.ds_all}</option>
  26. <option value="0">{$Think.lang.rc_state_not_receive}</option>
  27. <option value="1">{$Think.lang.rc_state_receive}</option>
  28. </select>
  29. <script>$('#search-state').val('{$Request.get.state}');</script>
  30. </dd>
  31. </dl>
  32. <div class="btn_group">
  33. <a href="javascript:document.formSearch.submit();" class="btn " title="{$Think.lang.ds_query}">{$Think.lang.ds_query}</a>
  34. <a class="btn btn-default" href="{:url('Rechargecard/index')}" title="{$Think.lang.ds_cancel_search}"><span>{$Think.lang.ds_cancel_search}</span></a>
  35. <a class="btn" href="javascript:export_xls('{:url('Rechargecard/export_step1')}')" target="_blank">{$Think.lang.ds_export}Excel</a>
  36. </div>
  37. </div>
  38. </form>
  39. <div class="explanation" id="explanation">
  40. <div class="title" id="checkZoom">
  41. <h4 title="{$Think.lang.ds_explanation_tip}">{$Think.lang.ds_explanation}</h4>
  42. <span id="explanationZoom" title="{$Think.lang.ds_explanation_close}" class="arrow"></span>
  43. </div>
  44. <ul>
  45. <li>{$Think.lang.rechargecard_index_help1}</li>
  46. </ul>
  47. </div>
  48. <table class="ds-default-table">
  49. <thead>
  50. <tr class="thead">
  51. <th class="w24"> </th>
  52. <th>{$Think.lang.rc_sn}</th>
  53. <th>{$Think.lang.rc_batchflag}</th>
  54. <th class="w60 align-center">{$Think.lang.rc_denomination}</th>
  55. <th class="w96 align-center">{$Think.lang.rc_admin_name}</th>
  56. <th class="w150 align-center">{$Think.lang.rc_tscreated}</th>
  57. <th class="w270 align-center">{$Think.lang.rc_state}</th>
  58. <th class="w60 align-center">{$Think.lang.ds_handle} </th>
  59. </tr>
  60. </thead>
  61. {empty name="card_list"}
  62. <tbody>
  63. <tr class="no_data">
  64. <td colspan="20">{$Think.lang.ds_no_record}</td>
  65. </tr>
  66. </tbody>
  67. {else /}
  68. <tbody>
  69. {foreach name="card_list" item="val"}
  70. <tr class="space" id="ds_row_{$val.rc_id}">
  71. <td class="w24">
  72. {if $val.rc_state == 0}
  73. <input type="checkbox" class="checkitem" name="ids[]" value="{$val.rc_id}" />
  74. {else /}
  75. <input type="checkbox" disabled="disabled" />
  76. {/if}
  77. </td>
  78. <td class="">{$val.rc_sn}</td>
  79. <td class="">{$val.rc_batchflag}</td>
  80. <td class="align-center">{$val.rc_denomination}</td>
  81. <td class="align-center">{$val.rc_admin_name}</td>
  82. <td class="align-center">{$val.rc_tscreated|date="Y-m-d H:i:s"}</td>
  83. <td class="align-center">
  84. {if $val.rc_state == 1 && $val.member_id >0 && $val.rc_tsused >0}
  85. {$Think.lang.ds_member} {$val.member_name} {$Think.lang.rechargecard_at} {$val.rc_tsused|date="Y-m-d H:i:s"}{$Think.lang.rc_state_receive}
  86. {else /}
  87. {$Think.lang.rc_state_not_receive}
  88. {/if}
  89. </td>
  90. <td class="align-center">
  91. {if $val.rc_state == 0}
  92. <a href="javascript:dsLayerConfirm('{:url('Rechargecard/del_card',['rc_id'=>$val.rc_id])}','{$Think.lang.ds_ensure_del}',{$val.rc_id})" class="dsui-btn-del"><i class="iconfont"></i>{$Think.lang.ds_del}</a>
  93. {/if}
  94. </td>
  95. </tr>
  96. {/foreach}
  97. </tbody>
  98. <tfoot>
  99. <tr class="tfoot">
  100. <td><input type="checkbox" class="checkall" id="checkallBottom"></td>
  101. <td colspan="16"><label for="checkallBottom">{$Think.lang.ds_select_all}</label>
  102. &nbsp;&nbsp;<a href="javascript:void(0);" class="btn btn-small" onclick="submit_delete_batch()"><span>{$Think.lang.ds_del}</span></a>
  103. </td>
  104. </tr>
  105. </tfoot>
  106. {/empty}
  107. </table>
  108. {$show_page|raw}
  109. </div>
  110. <script type="text/javascript">
  111. function submit_delete(ids_str){
  112. _uri = ADMINSITEURL+"/Rechargecard/del_card.html?rc_id=" + ids_str;
  113. dsLayerConfirm(_uri,'{$Think.lang.ds_ensure_del}');
  114. }
  115. </script>