/home/mjc1/public_html/html/mobile/payProcess.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<? session_start(); ?>

<?
$today 
date("Y-m-d"); //¿À´Ã³¯Â¥ 
$todaycode date("ymd"); //¿À´Ã³¯Â¥ÄÚµå¿ë 
$todaydbcode $todaycode."000000"//¿À´Ã³¯Â¥ Äڵ堰˻ö¿ë
$todaytime date("Y-m-d H:s:i"); //¿À´Ã³¯Â¥½Ã°£
$time date("ymdHi");    
$timehs date("Hi");    
    if( 
$pcusid == "" ){ 
?>
<SCRIPT LANGUAGE='JavaScript'> 
    alert("·Î±×ÀΠÈÄ¿¡ À̿밡´ÉÇÕ´Ï´Ù.");
    location.href = "./intro.php";
</script>
<? }

 include(
"./commonST.php");

//if($paytype == 1){
    
$usql "INSERT INTO receive (ocode, dealdate, ccode, amount, dc, fee, type, subcode, subMemo, charge, bigo, regucode, savepoint, dealtime)
                        value    ('
$psacode', '$today', '$ccode', '$paymoney', '$dcmoney', '$fee', '$paytype','$subcode','$submemo','$pcuscode','$memomoney', '$pcuscode', 0, '$timehs')";
                                
//»ç¾÷Àå   ,±¸¸ÅÀÏ  ,»ç¾÷ÀÚÄڵ堠,ÀԱݾנ,        ÇÒÀξנ,    ¼ö¼ö·á  ,ÀԱݹæ½Ä ,ÀԱݸðµå  ,Ä«µåÀºÇà¸í ,»ç¿øÄÚµå ,ºñ°í ,»ç¿øÄÚµå, Æ÷ÀÎÆ®Àû¸³, ÁÖ¹®½Ã°£
    
mysql_query($usql);

    
$ucsql "UPDATE customer set curn_baln_sale = curn_baln_sale - '$paymoney' WHERE code = '$ccode'";

    
mysql_query($ucsql);

?>
<script type="text/javascript">
parent.location.reload();
</script>