{extend name="default/base/base_seller" /}

{block name="seller_main"}

<div class="alert"><span class="mr30">{$Think.lang.sellermoney_avaliable_money}{$Think.lang.ds_colon}<strong class="mr5 red" style="font-size: 18px;">{$store_info.store_avaliable_money}</strong>{$Think.lang.ds_yuan}</span><span>{$Think.lang.sellermoney_freeze_money}{$Think.lang.ds_colon}<strong class="mr5 blue" style="font-size: 18px;">{$store_info.store_freeze_money}</strong>{$Think.lang.ds_yuan}</span></div>

<form method="get" target="_self">
    <table class="dsm-search-table">
        <input type="hidden" name= "recycle" value="{$Request.param.recycle}" />
        <tr>
            <td>&nbsp;</td>

            <th>{$Think.lang.sellermoney_changetime}</th>
            <td class="w240">
                <input type="text" class="text w70" name="query_start_date" id="query_start_date" value="{$Request.param.query_start_date}"/>
                <label class="add-on"><i class="iconfont">&#xe8d6;</i></label>&nbsp;&#8211;&nbsp;
                <input type="text" class="text w70" name="query_end_date" id="query_end_date" value="{$Request.param.query_end_date}"/>
                <label class="add-on"><i class="iconfont">&#xe8d6;</i></label>
            </td>
            <th>{$Think.lang.sellermoney_log_desc}</th>
            <td class="w160"><input type="text" class="text w150" name="storemoneylog_desc" value="{$Request.param.storemoneylog_desc}"></td>
            <td class="w70 tc">
                <input type="submit" class="submit" value="{$Think.lang.ds_search}"/>
            </td>
        </tr>
    </table>
</form>

<table class="dssc-default-table">
    <thead>
        <tr>
            <th>{$Think.lang.sellermoney_changetime}</th>
            <th class="tl">{$Think.lang.sellermoney_avaliable_money}({$Think.lang.ds_yuan})</th>
            <th class="tl">{$Think.lang.sellermoney_freeze_money}({$Think.lang.ds_yuan})</th>
            <th class="tl">{$Think.lang.sellermoney_log_desc}</th>
        </tr>
    </thead>
    <tbody>
        {notempty name="list_log"}
            {foreach name="list_log" item="v" key="k" }
            <tr class="bd-line">
                <td>{notempty name="$v.storemoneylog_add_time"}{$v.storemoneylog_add_time|date='Y-m-d H:i:s'}{/notempty}</td>
                <td class="tl"><?php echo floatval($v['store_avaliable_money']) ? (floatval($v['store_avaliable_money']) > 0 ? '+' : null ).$v['store_avaliable_money'] : null;?></td>
                <td class="tl"><?php echo floatval($v['store_freeze_money']) ? (floatval($v['store_freeze_money']) > 0 ? '+' : null ).$v['store_freeze_money'] : null;?></td>
                <td class="tl">{$v.storemoneylog_desc}
                </td>
            </tr>
           {/foreach}
        {else /}
        <tr>
            <td colspan="4" class="norecord"><div class="warning-option"><i>&nbsp;</i><span>{$Think.lang.no_record}</span></div></td>
        </tr>
        {/notempty}
    </tbody>
    <tfoot>
        {notempty name="list_log"}
        <tr>
            <td colspan="4"><div class="pagination">{$show_page|raw}</div></td>
        </tr>
        {/notempty}
    </tfoot>
</table>




<script type="text/javascript">
$(function(){
    $('#query_start_date').datepicker({dateFormat: 'yy-mm-dd'});
    $('#query_end_date').datepicker({dateFormat: 'yy-mm-dd'});
});
</script>

{/block}
