{include file="public/header" /}





<div class="page">
    <div class="fixed-bar">
        <div class="item-title">
            <div class="subject">
                <h3>{$Think.lang.ds_store_money}</h3>
                <h5></h5>
            </div>
            {include file="public/admin_items" /}
        </div>
    </div>
    
    

    <form method="get" name="formSearch">
        <div class="ds-search-form">
            <dl>
                <dt>{$Think.lang.admin_storemoney_membername}</dt>
                <dd><input type="text" name="mname" class="txt" value='{$Request.param.mname}'></dd>
            </dl>
            <dl>
                <dt>{$Think.lang.admin_storemoney_changetime}</dt>
                <dd><input type="text" id="stime" name="stime" class="txt date" value="{$Request.param.stime}" >
                    ~
                    <input type="text" id="etime" name="etime" class="txt date" value="{$Request.param.etime}" >
                </dd>
            </dl>
            
            <div class="btn_group">
                <a href="javascript:document.formSearch.submit();" class="btn " title="{$Think.lang.ds_query}">{$Think.lang.ds_query}</a>
                {if $filtered}
                <a href="{:url('storemoney/index')}" class="btn btn-default" title="{$Think.lang.ds_cancel}">{$Think.lang.ds_cancel}</a>
                {/if}
            </div>
            
        </div>

    </form>

    <table class="ds-default-table">
        <thead>
            <tr class="thead">
                <th>{$Think.lang.admin_storemoney_membername}</th>
                <th class="align-center">{$Think.lang.admin_storemoney_changetime}</th>
                <th>{$Think.lang.admin_storemoney_pricetype_available}({$Think.lang.currency_zh})</th>
                <th>{$Think.lang.admin_storemoney_pricetype_freeze}({$Think.lang.currency_zh})</th>
                <th>{$Think.lang.admin_storemoney_log_desc}</th>
            </tr>
        </thead>
        <tbody>
            {notempty name="list_log"}
            {foreach name="list_log" item="v" key="k" }
            <tr class="hover">
                <td>{$v.seller_name}</td>
                <td class="nowarp align-center">{notempty name="$v.storemoneylog_add_time"}{$v.storemoneylog_add_time|date='Y-m-d H:i:s',###}{/notempty}</td>
                <td><?php echo floatval($v['store_avaliable_money']) ? (floatval($v['store_avaliable_money']) > 0 ? '+' : null ).$v['store_avaliable_money'] : null;?></td>
                <td><?php echo floatval($v['store_freeze_money']) ? (floatval($v['store_freeze_money']) > 0 ? '+' : null ).$v['store_freeze_money'] : null;?></td>
                <td>{$v.storemoneylog_desc}
                </td>
            </tr>
           {/foreach}
           {else /}
            <tr class="no_data">
                <td colspan="10">{$Think.lang.ds_no_record}</td>
            </tr>
            {/notempty}
        </tbody>
    </table>
    {$show_page}

</div>

<script language="javascript">
    $(function() {
        $('#stime').datepicker({dateFormat: 'yy-mm-dd'});
        $('#etime').datepicker({dateFormat: 'yy-mm-dd'});
    });
</script>