<? ob_start(); ?>
<?php
  //login_success.php  
 session_start();

	error_reporting( ~E_NOTICE );
	
	require_once 'dbconfig.php';
	
	if(isset($_GET['id']) && !empty($_GET['id']))
	{
		$id = $_GET['id'];
		$stmt_edit = $DB_con->prepare('SELECT fullname, acref, actype, currencytype, username, password, opendate,  balance, deposit, userProfession, aclimit, loan, spent, email, address, phone, dobirth, cotcode, taxcode, antcode, imfcode, acct_mana_name, acct_mana_tel, acct_mana_email, acct_mana_date, srnos1, credit1, debit1, refrenceno1, description1, date1, time1, status1, srnos2, credit2, debit2, refrenceno2, description2, date2, time2, status2, srnos3, credit3, debit3, refrenceno3, description3, date3, time3, status3, srnos4, credit4, debit4, refrenceno4, description4, date4, time4, status4, srnos5, credit5, debit5, refrenceno5, description5, date5, time5, status5, userPic FROM tbl_users WHERE id =:uid');
		$stmt_edit->execute(array(':uid'=>$id));
		$edit_row = $stmt_edit->fetch(PDO::FETCH_ASSOC);
		extract($edit_row);
	}
	else
	{
		header("Location: view.php");
	}
	

?>


<link href="css/viewgame.css" rel="stylesheet" type="text/css">
<link href="css/adminlte.css" rel="stylesheet" type="text/css">
<br /><br />
        <h5 class="modal-title" align="center">Account's Details</h5>
      
<div class="container-fluid">
	<div class="col-lg-12">
		<div class="row">
			<div class="col-md-12">
				<div class="callout callout-info">
					<dl>
						<dt>Account Full Name:</dt>
						<dd> <h4><b><?php echo $fullname ?></b></h4></dd>
                        <img src="user_images/<?php echo $userPic ?>" class="img-rounded" width="100px" height="100px" />
					</dl>
                    
				</div>
			</div>
		</div>
		<div class="row">
			<div class="col-md-6">
				<div class="callout callout-info">
					<b class="border-bottom border-primary">Account Information</b>
					<dl>
						<dt>Account Number:</dt>
						<dd><?php echo ucwords($acref) ?></dd>
						<dt>Account Types:</dt>
						<dd><?php echo ucwords($actype) ?></dd>
                        <dt>Currency Type:</dt>
						<dd><?php echo ucwords($currencytype) ?></dd>
                        <dt>Client Username:</dt>
						<dd><?php echo ucwords($username) ?></dd>
                        <dt>Client Password:</dt>
						<dd><?php echo ucwords($password) ?></dd>
                        <dt>Account Open Date:</dt>
						<dd><?php echo ucwords($opendate) ?></dd>
						<dt>Account Balance:</dt>
						<dd><?php echo ucwords($balance) ?></dd>
                        <dt>Depositor:</dt>
						<dd><?php echo ucwords($deposit) ?></dd>
                        <dt>Account Status:</dt>
						<dd><?php echo ucwords($userProfession) ?></dd>
						<dt>Account Limit:</dt>
						<dd><?php echo ucwords($aclimit) ?></dd>
                        <dt>Loan:</dt>
						<dd><?php echo ucwords($loan) ?></dd>
                         <dt>Account Expenses:</dt>
						<dd><?php echo ucwords($spent) ?></dd>
					</dl>
				</div>
				<div class="callout callout-info">
					<b class="border-bottom border-primary">Personal Information</b>
					<dl>
						<dt>Email:</dt>
						<dd><?php echo ucwords($email) ?></dd>
						<dt>Address:</dt>
						<dd><?php echo ucwords($address) ?></dd>
                        <dt>Telephone:</dt>
						<dd><?php echo ucwords($phone) ?></dd>
						<dt>Date of Birth:</dt>
						<dd><?php echo ucwords($dobirth) ?></dd>
					</dl>
				</div>
                <div class="callout callout-info">
					<b class="border-bottom border-primary">Transfer Codes</b>
                    <div class="row">
					<div class="col-sm-6">
									<dl>
									<dt>COT(Cost of Transfer) Code:</dt>
									<dd><?php echo $cotcode ?></dd>
									<dt>TAX Code:</dt>
									<dd><?php echo $taxcode ?></dd>
									<dt>IMF Code:</dt>
									<dd><?php echo $antcode ?></dd>
									<dt>Demurrage Code:</dt>
									<dd><?php echo $imfcode ?></dd>
								</dl>	
							</div>
                   
							<div class="col-sm-6">
                            <dl>
							<dt>Account Manager Information:</dt><br>
									<dt>Account Manager Name :</dt>
									<dd><?php echo $acct_mana_name ?></dd>
									<dt>Account Manager Contact:</dt>
									<dd><?php echo $acct_mana_tel ?></dd>
									<dt>Account Manager Email:</dt>
									<dd><?php echo $acct_mana_email ?></dd>
									<dt>Account Creation Date:</dt>
									<dd><?php echo $acct_mana_date ?></dd>
									
								</dl>
								
							</div>
				</div>
                </div>
			</div>
			<div class="col-md-6">
				<div class="callout callout-info">					
						<div class="row">
							
						</div>
					<dl>
						<dt>Previous Transaction 1:</dt>
						<dt>S/N</dt>
						<dd><?php echo $srnos1 ?></dd>
						<dt>Amount</dt>
                        <dd><?php echo $credit1 ?></dd>
						<dt>Transfer Type</dt>
                        <dd><?php echo $debit1  ?></dd>
						<dt>Sender/Receiver Name</dt>
                        <dd><?php echo $refrenceno1 ?></dd>       
						<dt>Description</dt>
						<dd><?php echo $description1 ?></dd>   
						<dt>Transfer Date</dt>
						<dd><?php echo $date1 ?></dd>   
						<dt>Transfer Time</dt>
						<dd><?php echo $time1 ?></dd>   
						<dt>Transfer Status</dt>
						<dd><?php echo $status1 ?></dd>   

					</dl>
                    <dl>
					<dt>Previous Transaction 2:</dt>
						<dt>S/N</dt>
						<dd><?php echo $srnos2 ?></dd>
						<dt>Amount</dt>
                        <dd><?php echo $credit2 ?></dd>
						<dt>Transfer Type</dt>
                        <dd><?php echo $debit2  ?></dd>
						<dt>Sender/Receiver Name</dt>
                        <dd><?php echo $refrenceno2 ?></dd>       
						<dt>Description</dt>
						<dd><?php echo $description2 ?></dd>   
						<dt>Transfer Date</dt>
						<dd><?php echo $date2 ?></dd>   
						<dt>Transfer Time</dt>
						<dd><?php echo $time2 ?></dd>   
						<dt>Transfer Status</dt>
						<dd><?php echo $status2 ?></dd>   		

					</dl>
                    <dl>
					<dt>Previous Transaction 3:</dt>
						<dt>S/N</dt>
						<dd><?php echo $srnos3 ?></dd>
						<dt>Amount</dt>
                        <dd><?php echo $credit3 ?></dd>
						<dt>Transfer Type</dt>
                        <dd><?php echo $debit3  ?></dd>
						<dt>Sender/Receiver Name</dt>
                        <dd><?php echo $refrenceno3 ?></dd>       
						<dt>Description</dt>
						<dd><?php echo $description3 ?></dd>   
						<dt>Transfer Date</dt>
						<dd><?php echo $date3 ?></dd>   
						<dt>Transfer Time</dt>
						<dd><?php echo $time3 ?></dd>   
						<dt>Transfer Status</dt>
						<dd><?php echo $status3 ?></dd>   

					</dl>
                    <dl>
					<dt>Previous Transaction 4:</dt>
						<dt>S/N</dt>
						<dd><?php echo $srnos4 ?></dd>
						<dt>Amount</dt>
                        <dd><?php echo $credit4 ?></dd>
						<dt>Transfer Type</dt>
                        <dd><?php echo $debit4  ?></dd>
						<dt>Sender/Receiver Name</dt>
                        <dd><?php echo $refrenceno4 ?></dd>       
						<dt>Description</dt>
						<dd><?php echo $description4 ?></dd>   
						<dt>Transfer Date</dt>
						<dd><?php echo $date4 ?></dd>   
						<dt>Transfer Time</dt>
						<dd><?php echo $time4 ?></dd>   
						<dt>Transfer Status</dt>
						<dd><?php echo $status4 ?></dd>   

					</dl>
					  <dl>
					  <dt>Previous Transaction 5:</dt>
						<dt>S/N</dt>
						<dd><?php echo $srnos5 ?></dd>
						<dt>Amount</dt>
                        <dd><?php echo $credit5 ?></dd>
						<dt>Transfer Type</dt>
                        <dd><?php echo $debit5  ?></dd>
						<dt>Sender/Receiver Name</dt>
                        <dd><?php echo $refrenceno5 ?></dd>       
						<dt>Description</dt>
						<dd><?php echo $description5 ?></dd>   
						<dt>Transfer Date</dt>
						<dd><?php echo $date5 ?></dd>   
						<dt>Transfer Time</dt>
						<dd><?php echo $time5 ?></dd>   
						<dt>Transfer Status</dt>
						<dd><?php echo $status5 ?></dd>   

					</dl>
					  
				</div>
			</div>
		</div>
	</div>
</div>

<div class="modal-footer display p-0 m-0">
        <button type="button" onclick="history.back()" class="btn btn-secondary" data-dismiss="modal">Close</button>
</div>
        <?php

	
?>
<style>
	#uni_modal .modal-footer{
		display: none
	}
	#uni_modal .modal-footer.display{
		display: flex
	}
</style>
<noscript>
	<style>
		table.table{
			width:100%;
			border-collapse: collapse;
		}
		table.table tr,table.table th, table.table td{
			border:1px solid;
		}
		.text-cnter{
			text-align: center;
		}
	</style>
	<h3 class="text-center"><b>Student Result</b></h3>
</noscript>
<? ob_flush(); ?>