<?php
 include template("header"); ;echo '<div id="menu2"><a href="#">小菜单</a></div>
<div id="info" style="display:none">info</div>
<div id="data">
    <h2><!--累计收入：'; echo $sum[0]['money'];echo '　　累计支出：'; echo $sum[1]['money'];echo '　　-->余额：'; echo $sum[0]['money']-$sum[1]['money'];echo '</h2>
    <table>
        <thead><tr><th>序号</th><th>用户名</th><th>订单号</th><th>摘要</th><th>借（收入）</th><th>贷（支出）</th><th>动作</th><th>管理员</th><th>操作时间</th></tr></thead>
        '; if(is_array($flow)){foreach($flow AS $index=>$one) { ;echo '        <tr id="flow_'; echo $one['id']; ;echo '" onmouseover="cart_item_over(\'flow_'; echo $one['id']; ;echo '\')" onmouseout="cart_item_out(\'flow_'; echo $one['id']; ;echo '\')">
            <td>'; echo $index+1; ;echo '</td>
            <td>'; if($one['username'])echo $one['username'] ;echo '</td>
            <td><a href="'; echo WEB_ROOT; ;echo '/order/item.php?order_number='; echo $one['detail_id'] ;echo '">'; echo $one['detail_id'] ;echo '</a></td>
            <td>'; echo $one['detail'] ;echo '</td>
            <td>'; if($one['direction']=='income') echo $one['money']; ;echo '</td>
            <td>'; if($one['direction']=='expense') echo $one['money']; ;echo '</td>
            <td>'; echo action($one['action']); ;echo '</td>
            <td>'; if($one['adminname']) echo $one['adminname'] ;echo '</td>
            <td>'; echo date('Y-m-d H:i:s',$one['create_time']) ;echo '</td>
        </tr>
        '; }} ;echo '        <tr><td colspan="9">'; echo $pagestring; ;echo '</td></tr>
    </table>
</div>
<div id="fm">
    <h2>标题</h2>
    <form id="login-user-form" method="post" action="/account/login.php" class="validator">
    </form>
</div>
<div id="op">
    <h2>操作部分</h2>
</div>
<div id="help">help</div>
'; include template("footer"); ?>
