<?php session_start(); ?> <!-- session start -->
<?php include("../include/config.php"); ?> <!-- database connection -->
<?php include("../include/connect_url.php"); ?> <!-- connection url/link folder -->
<?php include("../include/date_time.php"); ?> <!-- date & time format -->
<?php include("../database/account.php"); ?> <!-- query database account -->
<?php include("../include/lang.php"); ?> <!-- language -->

<?php
$query_transaction_charge2 = mysql_query("SELECT * FROM tbl_transaction_charge WHERE transaction_id='$_GET[transaction_id]' AND user_id='$db_user_id' AND a_status='2' "); 
while($row= mysql_fetch_assoc($query_transaction_charge2))
{
    $db_transaction2_charge_id = $row['id'];
}
?>

<?php
$query_transaction_charge_item_total = mysql_query("SELECT * FROM tbl_transaction_charge_item WHERE transaction_charge_id='$db_transaction2_charge_id'"); 
while($row= mysql_fetch_assoc($query_transaction_charge_item_total))
{
    $db_transaction_charge_item2_total = $row['total'];
    $db_transaction_charge_item2_total_nf += str_replace(' ','', str_replace(',00','', $db_transaction_charge_item2_total));
    //number format
    include("../include/number_format.php");
}
?>

<!-- total amount -->
<h4><?php echo $lang['Total Amount']; ?>:</h4>

<?php
if($db_transaction_charge_item2_total){ $db_transaction_charge_item2_total_comp =  "$db_currency_code1$db_transaction_charge_item2_total_nf";}
else
{$db_transaction_charge_item2_total_comp = "$db_currency_code1 0.00"; }
?>

<input type="text" value="<?php echo $db_currency_code1; ?><?php echo $db_transaction_charge_item2_total_nf_nf; ?>" style="background:#eee; width:200px;text-align:right;" disabled/>
<br /><br />