{include file="public/header" /}





<div class="page">
    <div class="fixed-bar">
        <div class="item-title">
            <div class="subject">
                <h3>{$Think.lang.ds_store_deposit}</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_storedeposit_membername}</dt>
                <dd><input type="text" name="mname" class="txt" value='{$Request.param.mname}'></dd>
            </dl>
            <dl>
                <dt>{$Think.lang.admin_storedeposit_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('storedeposit/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_storedeposit_membername}</th>
                <th class="align-center">{$Think.lang.admin_storedeposit_changetime}</th>
                <th>{$Think.lang.admin_storedeposit_pricetype_available}({$Think.lang.ds_yuan})</th>
                <th>{$Think.lang.admin_storedeposit_pricetype_freeze}({$Think.lang.ds_yuan})</th>
                <th>{$Think.lang.admin_storedeposit_pricetype_payable}({$Think.lang.ds_yuan})</th>
                <th>{$Think.lang.admin_storedeposit_log_desc}</th>
            </tr>
        </thead>
        <tbody>
            {notempty name="list_log"}
            {foreach name="list_log" item="v" key="k" }
            <tr class="hover">
                <td>{$v.store_name}</td>
                <td class="nowarp align-center">{notempty name="$v.storedepositlog_add_time"}{$v.storedepositlog_add_time|date='Y-m-d H:i:s'}{/notempty}</td>
                <td><?php echo floatval($v['store_avaliable_deposit']) ? (floatval($v['store_avaliable_deposit']) > 0 ? '+' : null ).$v['store_avaliable_deposit'] : null;?></td>
                <td><?php echo floatval($v['store_freeze_deposit']) ? (floatval($v['store_freeze_deposit']) > 0 ? '+' : null ).$v['store_freeze_deposit'] : null;?></td>
                <td><?php echo floatval($v['store_payable_deposit']) ? (floatval($v['store_payable_deposit']) > 0 ? '+' : null ).$v['store_payable_deposit'] : null;?></td>
                <td>{$v.storedepositlog_desc}
                </td>
            </tr>
           {/foreach}
           {else /}
            <tr class="no_data">
                <td colspan="10">{$Think.lang.ds_no_record}</td>
            </tr>
            {/notempty}
        </tbody>
    </table>
    {$show_page|raw}

</div>

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