index.html 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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_store_money}</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.admin_storemoney_membername}</dt>
  16. <dd><input type="text" name="mname" class="txt" value='{$Request.param.mname}'></dd>
  17. </dl>
  18. <dl>
  19. <dt>{$Think.lang.admin_storemoney_changetime}</dt>
  20. <dd><input type="text" id="stime" name="stime" class="txt date" value="{$Request.param.stime}" >
  21. ~
  22. <input type="text" id="etime" name="etime" class="txt date" value="{$Request.param.etime}" >
  23. </dd>
  24. </dl>
  25. <div class="btn_group">
  26. <a href="javascript:document.formSearch.submit();" class="btn " title="{$Think.lang.ds_query}">{$Think.lang.ds_query}</a>
  27. {if $filtered}
  28. <a href="{:url('storemoney/index')}" class="btn btn-default" title="{$Think.lang.ds_cancel}">{$Think.lang.ds_cancel}</a>
  29. {/if}
  30. </div>
  31. </div>
  32. </form>
  33. <table class="ds-default-table">
  34. <thead>
  35. <tr class="thead">
  36. <th>{$Think.lang.admin_storemoney_membername}</th>
  37. <th class="align-center">{$Think.lang.admin_storemoney_changetime}</th>
  38. <th>{$Think.lang.admin_storemoney_pricetype_available}({$Think.lang.ds_yuan})</th>
  39. <th>{$Think.lang.admin_storemoney_pricetype_freeze}({$Think.lang.ds_yuan})</th>
  40. <th>{$Think.lang.admin_storemoney_log_desc}</th>
  41. </tr>
  42. </thead>
  43. <tbody>
  44. {notempty name="list_log"}
  45. {foreach name="list_log" item="v" key="k" }
  46. <tr class="hover">
  47. <td>{$v.store_name}</td>
  48. <td class="nowarp align-center">{notempty name="$v.storemoneylog_add_time"}{$v.storemoneylog_add_time|date='Y-m-d H:i:s'}{/notempty}</td>
  49. <td><?php echo floatval($v['store_avaliable_money']) ? (floatval($v['store_avaliable_money']) > 0 ? '+' : null ).$v['store_avaliable_money'] : null;?></td>
  50. <td><?php echo floatval($v['store_freeze_money']) ? (floatval($v['store_freeze_money']) > 0 ? '+' : null ).$v['store_freeze_money'] : null;?></td>
  51. <td>{$v.storemoneylog_desc}
  52. </td>
  53. </tr>
  54. {/foreach}
  55. {else /}
  56. <tr class="no_data">
  57. <td colspan="10">{$Think.lang.ds_no_record}</td>
  58. </tr>
  59. {/notempty}
  60. </tbody>
  61. </table>
  62. {$show_page|raw}
  63. </div>
  64. <script language="javascript">
  65. $(function() {
  66. $('#stime').datepicker({dateFormat: 'yy-mm-dd'});
  67. $('#etime').datepicker({dateFormat: 'yy-mm-dd'});
  68. });
  69. </script>