예제 #1
0
파일: pay_bk_op.php 프로젝트: sac071213/dev
    if ($with_bento) {
        ?>
                                <tr>
                                    <td>
                                        &nbsp;
                                    </td>
                                    <td>
                                        <?php 
        # 回程葷便當
        echo SanitizHTML(sprintf($language['_payING_134'], nbok($bento_info[2]['num'])));
        ?>
                                    </td>
                                    <td>
                                        <?php 
        # 回程素便當
        echo SanitizHTML(sprintf($language['_payING_135'], nbok($bento_info[3]['num'])));
        ?>
                                    </td>
                                </tr>
                            <?php 
    }
}
?>
                                <tr>
                                    <td colspan=3>
                                        <hr size=1>
                                    </td>
                                </tr>
                                <tr>
                                    <td valign=top>
                                        <?php 
예제 #2
0
파일: pay2nec.php 프로젝트: sac071213/dev
 if (!empty($ax['bksn'])) {
     # 去回票只退單程時與單程票不加回程便當金額
     $t_bento_total += $t_b_info['bk_nv_ben_total'] + $t_b_info['bk_v_ben_total'];
 }
 # 訂票總金額
 $t_amt = $ax['amount'];
 $Cxc = explode('*', $ax['pack2']);
 $WhatP = array($Cxc[32], $Cxc[37], $Cxc[42], $Cxc[47], $Cxc[52], $Cxc[57], $Cxc[62], $Cxc[67]);
 //行程
 $WhatPJ = array($Cxc[33], $Cxc[38], $Cxc[43], $Cxc[48], $Cxc[53], $Cxc[58], $Cxc[63], $Cxc[68]);
 //票種
 $WhatPNN = array($Cxc[35], $Cxc[40], $Cxc[45], $Cxc[50], $Cxc[55], $Cxc[60], $Cxc[65], $Cxc[70]);
 //張數
 # 金額轉數字
 $railway_total[$t_type_code][$t_railway_type] = nbok($railway_total[$t_type_code][$t_railway_type]);
 $bento_total[$t_type_code] = nbok($bento_total[$t_type_code]);
 if ($ax['rclose']) {
     # 付款
     # 交易筆數統計
     $trd_num++;
     # 統計付款刷卡總票價
     $amount += $ax['amount'];
     # 統計台鐵/森鐵請款淨額
     $railway_total[$t_type_code][$t_railway_type] += $t_amt - $t_bento_total;
     # 付款手續費統計
     $spay += $Cxc[72];
     $tkind = 1;
     # 付款票數統計
     for ($i = 0; $i < 8; $i++) {
         if ($WhatPNN[$i] > 0) {
             # 去回程 + 敬老票 || 去回程 + 殘障票