<?php if(!defined('IN_SDCMS')) exit;?>
{php $self_name='财务明细'}
{include file="mobile/include/top.php"}
<title>{$self_name}_{sdcms[web_name]}</title>
<meta name="keywords" content="{sdcms[seo_key]}">
<meta name="description" content="{sdcms[seo_desc]}">
</head>

<body>
	
	{include file="mobile/include/head.php"}
	<div class="mwidth">
		<div class="ui-box p-10">
			<!--begin-->
            <div class="btn-group btn-group-blue btn-group-bg btn-group-full mb-20">
                <a class="btn-group-item{if $type==0} active{/if}" href="{N('mymoney')}">全部</a>
                <a class="btn-group-item{if $type==1} active{/if}" href="{N('mymoney','','type=1')}">收入</a>
                <a class="btn-group-item{if $type==2} active{/if}" href="{N('mymoney','','type=2')}">支出</a>
            </div>
            
            <div class="p bg-white mt-15">
                <ul class="media-list media-border">
                {sdcms:rs pagesize="20" num="3" table="sd_user_money" where="$where" order="aid desc" key="aid"}
                    <li class="media">
                        <div class="media-body">
                            <div class="media-header">{$rs[title]}</div>
                            <div class="media-text"><span class="font-12 text-gray">{date('Y-m-d H:i:s',$rs[createdate])}</span></div>
                        </div>
                        <div class="media-link media-center"><strong>{if $rs[types]==1}<span class="text-red">+{$rs[amount]}</span>{else}-{$rs[amount]}{/if}</strong></div>
                    </li>
                {/sdcms:rs}
                </ul>
            </div>
            <div class="page page-center page-mid"><ul>{$showpage}</ul></div>
			<!--over-->
		</div>
	</div>

	<div class="pt-15 mt"></div>
	{include file="mobile/include/foot.php"}
	<script>
    $(function()
    {
		$("#bar_user").addClass("active");
		$(".topbar-title").html("{$self_name}");
	});
    </script>
	
</body>
</html>
