Пример #1
0
	回應訊息: <b><?php 
echo $bbx[remsg];
?>
</b><hr>
	<?php 
if ($client == 3) {
    ?>
	卡號: <?php 
    echo dispCardno($bbx[cardno], 3, 0);
    ?>
<br>
	<?php 
} else {
    ?>
	卡號: <?php 
    echo dispCardno($bbx[cardno], $_SESSION['RootLayer'], $_SESSION['Rootlowpriv']);
    ?>
<br>
	<?php 
}
?>
	金額: <?php 
echo $bbx[amount];
?>
 元<br>
	<?php 
if ($bbx[sob]) {
    ?>
	消費項目: <?php 
    echo $bbx[sob];
    ?>
Пример #2
0
        $bgcoll = '#E8F89F';
    }
    $SRtime = substr($a['dt'], 0, 4) . substr($a['dt'], 4, 2) . substr($a['dt'], 6, 2) . ' ' . substr($a['dt'], 8, 2) . ':' . substr($a['dt'], 10, 2) . ':' . substr($a['dt'], 12, 2);
    if ($DO == 'EX') {
        $strb = "select stage,stast,staed,sob,hoho from {$auth_SQL_DT} where sr='{$a['authsr']}' limit 1 ";
        $resb = mysql_query($strb, $plink);
        $b = @mysql_fetch_array($resb);
        $b['sob'] = "'" . $b['sob'];
        $b['hoho'] = str_replace("<BR>", ",", $b['hoho']);
        $b['hoho'] = '"' . str_replace(",", ",", $b['hoho']) . '"';
        $fpw .= sprintf("%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s", $a['sr'], $SRtime, $a['authsr'], $b['sob'], dispCardno($a['cardno'], $_SESSION['RootLayer'], $_SESSION['Rootlowpriv']), "NTD", $a['amount'], "0", mb_convert_encoding("正確結帳", "Big5", "UTF-8"), $a['auth'], mb_convert_encoding($a['stat'], "Big5", "UTF-8"), $b['stage'], $b['stast'], $b['staed'], $a['eci'], mb_convert_encoding($b['sob'], "Big5", "UTF-8"), mb_convert_encoding($b['hoho'], "Big5", "UTF-8"), $a['isdt']) . "\r\n";
    } else {
        $strb = "select sob,stage,stast,staed from {$auth_SQL_DT} where sr='{$a['authsr']}' limit 1 ";
        $resb = mysql_query($strb, $plink);
        $b = @mysql_fetch_array($resb);
        $stage = $b['stage'] == 0 ? "" : $b['stage'];
        echo '<tr align=center bgcolor=' . $bgcoll . '><td>' . $ss . '</td><td>' . $a['stat'] . '</td><td>' . $a['sr'] . '</td><td>' . $SRtime . '</td><td>' . $a['authsr'] . '</td><td>' . $b['sob'] . '</td><td>' . dispCardno($a['cardno'], $_SESSION['RootLayer'], $_SESSION['Rootlowpriv']) . '</td><td align=right>' . $a['amount'] . '</td><td>' . $a['auth'] . '</td><td>' . $stage . '</td><td>' . $a['isdt'] . '</td></tr>';
    }
}
if ($DO == 'EX') {
    header("Content-disposition: attachment; filename={$Csv_fileName}");
    header("Content-Type: application/save-as");
    echo $fpw;
    exit;
}
echo "</table>";
echo "請款金額: {$ga_amount} 元 , <font color=#ff0000>退款金額: {$co_amount} 元</font> , <b>合計金額: {$all_amount} 元</b>";
if ($_SESSION['RootLayer'] <= 2) {
    echo '<hr><a href="g_fetchBottom.php?DO=EX&D_long=' . $D_long . '&sdtm=' . $sdtm . '&sdtd=' . $sdtd . '&sdty=' . $sdty . '&edtm=' . $edtm . '&edtd=' . $edtd . '&edty=' . $edty . '&s=1&D_long=' . $D_long . '">匯出關帳請款明細</a>';
}
echo "<br><br></center></body></html>";
Пример #3
0
     } else {
         $a['remsg'] = $a['3dErrcode'];
     }
 }
 if ($a['3dErrcode']) {
     $DechoTTdd = '<br>3D:' . $a['3dErrcode'];
 } else {
     $DechoTTdd = '';
 }
 if ($a['bk_posturl']) {
     $BK_urlCHK = '<br>BK:' . $a['bk_ok'];
 } else {
     $BK_urlCHK = '';
 }
 if (!$ecpayTOP_cdno) {
     $a['cardno'] = dispCardno($a['cardno'], $_SESSION['RootLayer'], $_SESSION['Rootlowpriv']);
 }
 if ($a['red_em'] == 'Y') {
     $redtxy = '<br>紅利扣點';
 } else {
     $redtxy = '';
 }
 //	if($a[allpay]==1){
 //		$BankTit=( substr_count($BankTitel[$a['bank']],'分期') )?'歐付寶分期-'.$BankTitel[$a['bank']]:'歐付寶-'.$BankTitel[$a['bank']];
 //	} else {
 //		$BankTit=$BankTitel[$a['bank']];
 //	}
 $BankTit = $BankTitel[$a['bank']];
 if (!$a[cardno]) {
     $str_cup = "select sr from o_cup where sr='{$a['sr']}' limit 1 ";
     $res_cup = mysql_query($str_cup);
Пример #4
0
    }
    //3號店的ip作部份隱藏
    if ($client == 3) {
        //$k_uip = split('.',$a['uip']);
        $k_uip = explode('.', $a['uip']);
        $a['uip'] = $k_uip[0] . '.***.***.' . $k_uip[3];
    }
    if (!$a[cardno]) {
        $str_cup = "select sr from o_cup where sr='{$a['sr']}' limit 1 ";
        $res_cup = mysql_query($str_cup);
        $sr_cup = @mysql_fetch_array($res_cup);
        if ($sr_cup[sr]) {
            $a['cardno'] = '銀聯卡交易';
        } else {
            $a['cardno'] = '****************';
        }
    }
    echo '<td align=right>' . $a['amount'] . '</td><td align=right>' . $a['clsamt'] . '</td><td>' . utf8_substr($a['sob'], 0, 20) . '<br>' . dispCardno($a['cardno'], $_SESSION['RootLayer'], $_SESSION['Rootlowpriv']) . $badcard . '</td><td>' . $a['auth'] . '</td><td>' . substr($a['procdt'], 0, 8) . ' ' . substr($a['procdt'], 8, 2) . ':' . substr($a['procdt'], 10, 2) . ':' . substr($a['procdt'], 12, 2) . '</td><td>' . $a['recode'] . $redtxy . '</td><td>' . $a['remsg'] . '</td><td>' . $a['trace_no'] . '<br>' . $a['uip'] . '</td><td>' . $a['eci'] . '</td>';
    echo '<td>' . $ECHO_memo . $QQisGuolu . '</td></tr>';
    echo $CloseLT;
}
?>
	</table>
	<?php 
echo $PageList;
?>
	<br><br><br>
	</center>
	</body>
</html>