<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table">
    <form id="theFrm">
        <input type="hidden" name="id" value="<?=$caiwu_info->id?>">
        <tr>
            <td width="100" height="25" class="td_bg">车牌号</td>
            <td colspan="3" height="25" class="td_bg">
                <?=$caiwu_info->car_no?>
            </td>
        </tr>
        <tr>
            <td width="100" height="25" class="td_bg">保险公司</td>
            <td height="25" class="td_bg">
                <?=$caiwu_info->company?>
            </td>
            <td width="100" height="25" class="td_bg">保单号</td>
            <td height="25" class="td_bg">
                <input name="insurer_no" type="text" id="insurer_no" value="<?=$caiwu_info->insurer_no?>" style="width:300px;"/>
            </td>
        </tr>
        <tr>
            <td width="100" height="25" class="td_bg">总保费</td>
            <td height="25" class="td_bg">
                <?=$caiwu_info->total?>
            </td>
            <td width="100" height="25" class="td_bg">净保费</td>
            <td height="25" class="td_bg">
                <?=$caiwu_info->total_clear?>
            </td>
        </tr>
        <tr>
            <td width="100" height="25" class="td_bg">手续费比例</td>
            <td colspan="3" height="25" class="td_bg">
                <input name="total_rate" type="text" id="total_rate" value="<?=$caiwu_info->total_rate?>" style="width:100px;"/>%
            </td>
        </tr>
        <tr>
            <td width="100" height="25" class="td_bg">回款金额</td>
            <td height="25" class="td_bg">
                <input name="r_total" type="text" id="r_total" value="<?=$caiwu_info->r_total?>" style="width:100px;"/>
            </td>
            <td width="100" height="25" class="td_bg">回款日期</td>
            <td height="25" class="td_bg">
                <input name="r_date" type="text" id="r_date" class="Wdate" value="<?=$caiwu_info->r_date?>" style="width:100px;" onclick="WdatePicker()"/>
            </td>
        </tr>
    </form>
    <tr>
        <td height="22" colspan="4" align="center" class="td_bg">
            <input id="submit-btn" type=button class="ACT_btn" name=Submit1 value=" 提交 "/>
            &nbsp;&nbsp;
            <input id="back-btn" type="button" class="ACT_btn" name="Submit2" value=" 返回 ">
        </td>
    </tr>
</table>
<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">
    $(function () {
        //提交按钮
        $("#submit-btn").click(function(){
            if(confirm('是否确认提交?')) {
                var params = $("#theFrm").serialize();
                $.post('/finance/receipt-save-dif',params,function(obj){
                    alert(obj.msg);
                    if(obj.success) {
                        $('#back-btn').click();
                    }
                },'json');
            }
        });

        //返回按钮
        $('#back-btn').click(function(){
            window.location.href='/finance/receipt-dif?<?=$back_params?>';
        });
    })
</script>
