<script type="text/javascript" language="javascript" src="/js/jquery-1.8.3.js"></script>
<script type="text/javascript" language="javascript" src="/js/datepicker/WdatePicker.js"></script>
<script type="text/javascript" language="javascript" src="/js/ajax.js"></script>
<script type="text/javascript" language="javascript" src="/js/func.js"></script>
<script type="text/javascript" language="javascript" src="/js/common.js"></script>
<h3>统计列表</h3>
<table width="98%" border="0" align="center" cellpadding="2" cellspacing="1" class="table">
    <tr>
        <td width="" align="center" align="center" class="bg_tr" nowrap>序号</td>
        <td align="center" align="center" class="bg_tr">收入</td>
        <td align="center" align="center" class="bg_tr">支出</td>
        <td align="center" align="center" class="bg_tr">时间</td>
        <td align="center" align="center" class="bg_tr">操作</td>
    </tr>
    <?php foreach ($model as $index => $mo): ?>
    <tr>
        <td align="center" class="td_bg" nowrap><?= $mo->fix_id ?></td>
        <td align="left" class="td_bg" nowrap><?= $mo->id ?></td>
        <td align="left" class="td_bg" nowrap><?= $mo->fix_id ?></td>
        <td align="left" class="td_bg" nowrap><?= date("Y-m-d");?></td>
        <td align="center" class="td_bg" nowrap>
            [<a href="javascript:void(0);" onclick="edit(<?= $mo->id?>)">详情</a>]
        </td>
    </tr>
    <?php endforeach; ?>
    <tr>
        <td height="25" colspan="9" align="center" class="td_bg"><?= $page_info ?></td>
    </tr>
</table>
<script type="text/javascript" language="javascript">
    //编id
    function edit(id) {
        window.location.href = '/fix-finance/count-form?id=' + id ;
    }
</script>