<?php
	session_start();
	if($_SESSION['adm'])
	{
		$userid= $_SESSION['adm'];
	}
	else
	{
		header('location:../login.php');
	}
?>
<html>
<head>
 <style type="text/css">
 #t1{ margin: 50px; border-collapse:collapse;}
 #t1 th{background:#687388; color:white; font-size:20px; font-family:sans-serif;}
 #t1 td{background:#f3f4f5; color:black; font-size:20px; font-family:sans-serif;}
 </style>
</head>
<body>
    <?php
        include'connection.php';
        $eWalletid=$_GET['id'];
        $strUserId=substr($uid, "0", "2");
        if($strUserId==50)
        {
            $tableName="retailer";
        }
        elseif($strUserId==20)
        {
            $tableName="distributer";
        }
        elseif($strUserId==30)
        {
            $tableName="masterdis";
        }
        
        $quGetTxn="select * from wallet where Id='$eWalletid'";
        $reGetTxn=mysqli_query($con,$quGetTxn);
        $dataGetTxn=mysqli_fetch_array($reGetTxn);
    ?>
    <table border="1" cellpadding="10" id="t1">
        <tr>
            <th>E-Wallet Id</th>
            <td><?php echo $dataGetTxn['Id']; ?></td>
        </tr>
         <tr>
            <th>UserId</th>
            <td><?php echo $dataGetTxn['Userid']; ?></td>
        </tr>
         <tr>
            <th>Opening Balance</th>
            <td><?php echo $dataGetTxn['Openingbalance']; ?></td>
        </tr>
         <tr>
            <th>Credit Amount</th>
            <td><?php echo $dataGetTxn['Credit']; ?></td>
        </tr>
         <tr>
            <th>Debit Amount</th>
            <td><?php echo $dataGetTxn['Debit']; ?></td>
        </tr>
        <tr>
            <th>Remarks</th>
            <td><?php echo $dataGetTxn['Remarks']; ?></td>
        </tr>
        <tr>
            <th>Closing Balance</th>
            <td><?php echo $dataGetTxn['Balance']; ?></td>
        </tr>
        <tr>
            <th>Date</th>
            <td><?php echo $dataGetTxn['Date']; ?></td>
        </tr>
        <tr>
            <th>Time</th>
            <td><?php echo $dataGetTxn['Time']; ?></td>
        </tr>
        <tr>
            <th>Payment From Id</th>
            <td><?php echo $dataGetTxn['Paymentfrom']; ?></td>
        </tr>
        <tr>
            <th>Payment From Name</th>
            <td><?php echo $dataGetTxn['Payfromname']; ?></td>
        </tr>
        <tr>
            <th>Payment To Id</th>
            <td><?php echo $dataGetTxn['Paymentto']; ?></td>
        </tr>
        <tr>
            <th>Payment To Name</th>
            <td><?php echo $dataGetTxn['Paytoname']; ?></td>
        </tr>
        <tr>
            <th>Txn Type</th>
            <td><?php echo $dataGetTxn['Transactiontype']; ?></td>
        </tr>
        <tr>
            <th>Pay N Rech Id</th>
            <td><?php echo $dataGetTxn['Paynrechid']; ?></td>
        </tr>
        <tr>
            <th>Operator</th>
            <td><?php echo $dataGetTxn['Operator']; ?></td>
        </tr>
        <tr>
            <th>Mobile</th>
            <td><?php echo $dataGetTxn['Mobile']; ?></td>
        </tr>
        <tr>
            <th>Amount</th>
            <td><?php echo $dataGetTxn['Amount']; ?></td>
        </tr>
        <tr>
            <th>Status</th>
            <td><?php echo $dataGetTxn['Status']; ?></td>
        </tr>
    </table>
</body>
</html>