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

	error_reporting( ~E_NOTICE );
	
	require_once 'dbconfig.php';
	
	if(isset($_GET['edit_id']) && !empty($_GET['edit_id']))
	{
		$id = $_GET['edit_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: dashboard.php");
	}
	
	
	
	if(isset($_POST['btn_save_updates']))
	{
		$fullname = $_POST['fullname_i'];// user name
		$acref = $_POST['acref_i'];// user account number
		$actype = $_POST['actype_i'];// actype
		$currencytype = $_POST['currencytype_i'];// user currency
		$username = $_POST['user_name'];// user login name
		$password = $_POST['password_i'];// user password
		$opendate = $_POST['opendate_i'];// user opening
		$balance = $_POST['balance_i'];// Amount balance
		$deposit = $_POST['deposit_i'];// Depositor
		$userProfession = $_POST['userProfession_i'];// user email
		$aclimit = $_POST['aclimit_i'];// user account number
		$loan = $_POST['loan_i'];// actype
		$spent = $_POST['spent_i'];// user currency
		$email = $_POST['email_i'];// user email
		$address = $_POST['address_i'];// user address
		$phone = $_POST['phone_i'];// user phone
		$dobirth = $_POST['dobirth_i'];// user login name
		$cotcode = $_POST['cotcode_i'];// First code
		$taxcode = $_POST['taxcode_i'];// Second code
		$antcode = $_POST['antcode_i'];// Third code
		$imfcode = $_POST['imfcode_i'];// user Fourth code
		$acct_mana_name = $_POST['acct_mana_name_i'];// user password
		$acct_mana_tel = $_POST['acct_mana_tel_i'];// user opening
		$acct_mana_email = $_POST['acct_mana_email_i'];// Amount balance
		$acct_mana_date = $_POST['acct_mana_date_i'];// Depositor
		$srnos1 = $_POST['srnos1_i'];// user email
		$credit1 = $_POST['credit1_i'];// user email
		$debit1 = $_POST['debit1_i'];// user currency
		$refrenceno1 = $_POST['refrenceno1_i'];// user login name
		$description1 = $_POST['description1_i'];// user password
		$date1 = $_POST['date1_i'];// user opening
		$time1 = $_POST['time1_i'];// Amount balance
		$status1 = $_POST['status1_i'];// user currency
		$srnos2 = $_POST['srnos2_i'];// user email
		$credit2 = $_POST['credit2_i'];// user email
		$debit2 = $_POST['debit2_i'];// user currency
		$refrenceno2 = $_POST['refrenceno2_i'];// user login name
		$description2 = $_POST['description2_i'];// user password
		$date2 = $_POST['date2_i'];// user opening
		$time2 = $_POST['time2_i'];// Amount balance
		$status2 = $_POST['status2_i'];// user currency
		$srnos3 = $_POST['srnos3_i'];// user email
		$credit3 = $_POST['credit3_i'];// user email
		$debit3 = $_POST['debit3_i'];// user currency
		$refrenceno3 = $_POST['refrenceno3_i'];// user login name
		$description3 = $_POST['description3_i'];// user password
		$date3 = $_POST['date3_i'];// user opening
		$time3 = $_POST['time3_i'];// Amount balance
		$status3 = $_POST['status3_i'];// user currency
		$srnos4 = $_POST['srnos4_i'];// user email
		$credit4 = $_POST['credit4_i'];// user email
		$debit4 = $_POST['debit4_i'];// user currency
		$refrenceno4 = $_POST['refrenceno4_i'];// user login name
		$description4 = $_POST['description4_i'];// user password
		$date4 = $_POST['date4_i'];// user opening
		$time4 = $_POST['time4_i'];// Amount balance
		$status4 = $_POST['status4_i'];// user currency
		$srnos5 = $_POST['srnos5_i'];// user email
		$credit5 = $_POST['credit5_i'];// user email
		$debit5 = $_POST['debit5_i'];// user currency
		$refrenceno5 = $_POST['refrenceno5_i'];// user login name
		$description5 = $_POST['description5_i'];// user password
		$date5 = $_POST['date5_i'];// user opening
		$time5 = $_POST['time5_i'];// Amount balance
		$status5 = $_POST['status5_i'];// user currency	
			
		$imgFile = $_FILES['user_image']['name'];
		$tmp_dir = $_FILES['user_image']['tmp_name'];
		$imgSize = $_FILES['user_image']['size'];
					
		if($imgFile)
		{
			$upload_dir = 'user_images/'; // upload directory	
			$imgExt = strtolower(pathinfo($imgFile,PATHINFO_EXTENSION)); // get image extension
			$valid_extensions = array('jpeg', 'jpg', 'png', 'gif'); // valid extensions
			$userpic = rand(1000,1000000).".".$imgExt;
			if(in_array($imgExt, $valid_extensions))
			{			
				if($imgSize < 5000000)
				{
					unlink($upload_dir.$edit_row['userPic']);
					move_uploaded_file($tmp_dir,$upload_dir.$userpic);
				}
				else
				{
					$errMSG = "Sorry, your file is too large it should be less then 5MB";
				}
			}
			else
			{
				$errMSG = "Sorry, only JPG, JPEG, PNG & GIF files are allowed.";		
			}	
		}
		else
		{
			// if no image selected the old image remain as it is.
			$userpic = $edit_row['userPic']; // old image from database
		}	
						
		
		// if no error occured, continue ....
		if(!isset($errMSG))
		{
			$stmt = $DB_con->prepare('UPDATE tbl_users 
									     SET fullname=:uname,
										     acref=:uacr,
											 actype=:uact,
											 currencytype=:ucur,
											 username=:unam,
											 password=:upas,
											 opendate=:uope,
											 balance=:ubal,
											 deposit=:udep,
										     userProfession=:ujob,
											 aclimit=:uacl,
											 loan=:uloa,
											 spent=:uspe,
											 email=:uema,
											 address=:uadd,
											 phone=:upho,
											 dobirth=:udob,
											 cotcode=:ucot,
											 taxcode=:utax,
											 antcode=:uant,
											 imfcode=:uimf,
											 acct_mana_name=:uamn,
											 acct_mana_tel=:uamt,
											 acct_mana_email=:uame,
											 acct_mana_date=:uamd,
											 srnos1=:usrn1,
											 credit1=:ucre1,
											 debit1=:udeb1,
											 refrenceno1=:uref1,
											 description1=:udes1,
											 date1=:udat1,
											 time1=:utim1,
											 status1=:usta1,
											 srnos2=:usrn2,
											 credit2=:ucre2,
											 debit2=:udeb2,
											 refrenceno2=:uref2,
											 description2=:udes2,
											 date2=:udat2,
											 time2=:utim2,
											 status2=:usta2,
											 srnos3=:usrn3,
											 credit3=:ucre3,
											 debit3=:udeb3,
											 refrenceno3=:uref3,
											 description3=:udes3,
											 date3=:udat3,
											 time3=:utim3,
											 status3=:usta3,
											 srnos4=:usrn4,
											 credit4=:ucre4,
											 debit4=:udeb4,
											 refrenceno4=:uref4,
											 description4=:udes4,
											 date4=:udat4,
											 time4=:utim4,
											 status4=:usta4,
											 srnos5=:usrn5,
											 credit5=:ucre5,
											 debit5=:udeb5,
											 refrenceno5=:uref5,
											 description5=:udes5,
											 date5=:udat5,
											 time5=:utim5,
											 status5=:usta5, 
										     userPic=:upic 
								       WHERE id=:uid');
			$stmt->bindParam(':uname',$fullname);
			$stmt->bindParam(':uacr',$acref);
			$stmt->bindParam(':uact',$actype);
			$stmt->bindParam(':ucur',$currencytype);
			$stmt->bindParam(':unam',$username);
			$stmt->bindParam(':upas',$password);
			$stmt->bindParam(':uope',$opendate);
			$stmt->bindParam(':ubal',$balance);
			$stmt->bindParam(':udep',$deposit);
			$stmt->bindParam(':ujob',$userProfession);
			$stmt->bindParam(':uacl',$aclimit);
			$stmt->bindParam(':uloa',$loan);
			$stmt->bindParam(':uspe',$spent);
			$stmt->bindParam(':uema',$email);
			$stmt->bindParam(':uadd',$address);
			$stmt->bindParam(':upho',$phone);
			$stmt->bindParam(':udob',$dobirth);
			$stmt->bindParam(':ucot',$cotcode);
			$stmt->bindParam(':utax',$taxcode);
			$stmt->bindParam(':uant',$antcode);
			$stmt->bindParam(':uimf',$imfcode);
			$stmt->bindParam(':uamn',$acct_mana_name);
			$stmt->bindParam(':uamt',$acct_mana_tel);
			$stmt->bindParam(':uame',$acct_mana_email);
			$stmt->bindParam(':uamd',$acct_mana_date);
			$stmt->bindParam(':usrn1',$srnos1);
			$stmt->bindParam(':ucre1',$credit1);
			$stmt->bindParam(':udeb1',$debit1);
			$stmt->bindParam(':uref1',$refrenceno1);
			$stmt->bindParam(':udes1',$description1);
			$stmt->bindParam(':udat1',$date1);
			$stmt->bindParam(':utim1',$time1);
			$stmt->bindParam(':usta1',$status1);
			$stmt->bindParam(':usrn2',$srnos2);
			$stmt->bindParam(':ucre2',$credit2);
			$stmt->bindParam(':udeb2',$debit2);
			$stmt->bindParam(':uref2',$refrenceno2);
			$stmt->bindParam(':udes2',$description2);
			$stmt->bindParam(':udat2',$date2);
			$stmt->bindParam(':utim2',$time2);
			$stmt->bindParam(':usta2',$status2);
			$stmt->bindParam(':usrn3',$srnos3);
			$stmt->bindParam(':ucre3',$credit3);
			$stmt->bindParam(':udeb3',$debit3);
			$stmt->bindParam(':uref3',$refrenceno3);
			$stmt->bindParam(':udes3',$description3);
			$stmt->bindParam(':udat3',$date3);
			$stmt->bindParam(':utim3',$time3);
			$stmt->bindParam(':usta3',$status3);
			$stmt->bindParam(':usrn4',$srnos4);
			$stmt->bindParam(':ucre4',$credit4);
			$stmt->bindParam(':udeb4',$debit4);
			$stmt->bindParam(':uref4',$refrenceno4);
			$stmt->bindParam(':udes4',$description4);
			$stmt->bindParam(':udat4',$date4);
			$stmt->bindParam(':utim4',$time4);
			$stmt->bindParam(':usta4',$status4);
			$stmt->bindParam(':usrn5',$srnos5);
			$stmt->bindParam(':ucre5',$credit5);
			$stmt->bindParam(':udeb5',$debit5);
			$stmt->bindParam(':uref5',$refrenceno5);
			$stmt->bindParam(':udes5',$description5);
			$stmt->bindParam(':udat5',$date5);
			$stmt->bindParam(':utim5',$time5);
			$stmt->bindParam(':usta5',$status5);
			$stmt->bindParam(':upic',$userpic);
			$stmt->bindParam(':uid',$id);
				
			if($stmt->execute()){
				?>
                <script>
				alert('Successfully Edited ...');
				window.location.href='view_acct.php';
				</script>
                <?php
			}
			else{
				$errMSG = "Sorry Data Could Not Updated !";
			}
		
		}
		
						
	}
	
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Upload, Insert, Update, Delete Clients</title>

<link rel="stylesheet" href="bootstrap/css/bootstrap.min.css">

<!-- Optional theme -->
<link rel="stylesheet" href="bootstrap/css/bootstrap-theme.min.css">

<!-- custom stylesheet -->
<link rel="stylesheet" href="style.css">

<!-- Latest compiled and minified JavaScript -->
<script src="bootstrap/js/bootstrap.min.js"></script>

<script src="jquery-1.11.3-jquery.min.js"></script>
</head>
<body>

<div class="navbar navbar-default navbar-static-top" role="navigation">
    <div class="container">
 
        <div class="navbar-header">
           <div class="navbar-brand">ADMIN PANEL</div> 
        </div>
 
    </div>
</div>


<div class="container">

	 <?php  
  
 if(isset($_SESSION["username"]))  
 {  
      echo '<h3>Login Success, Welcome - '.$_SESSION["username"].'</h3>';    
 }  
 else  
 {  
      header("location:view_acct.php");  
 }  
 ?>
	<div class="page-header">
    	<h1 class="h2">Edit Client Account. <a class="btn btn-default" href="dashboard.php"> All Clients </a></h1>
    </div>

<div class="clearfix"></div>

<form method="post" enctype="multipart/form-data" class="form-horizontal">
	
    
    <?php
	if(isset($errMSG)){
		?>
        <div class="alert alert-danger">
          <span class="glyphicon glyphicon-info-sign"></span> &nbsp; <?php echo $errMSG; ?>
        </div>
        <?php
	}
	?>
   
       <h3 align="center">Account Information</h3> 
   
	<table class="table table-bordered table-responsive">        
    <tr>
      	<td><label class="control-label">Full Name.</label></td>
        <td><input class="form-control" type="text" name="fullname_i" placeholder="Enter Full name" value="<?php echo $fullname; ?>" /></td>
    </tr>
     <tr>
    	<td><label class="control-label">Account Number.</label></td>
        <td><input class="form-control" type="text" name="acref_i" placeholder="Account Number" value="<?php echo $acref; ?>" /></td>
    </tr>
     <tr>
    	<td><label class="control-label">Account Type.</label></td>
        <td><select class="form-control" type="text" name="actype_i" placeholder="Account Type" value="<?php echo $actype; ?>" />
         <option selected="">Select</option>
          <option value="saving">Savings</option>
          <option value="Domiciliary">Domiciliary</option>
          <option value="Online">Online</option>
          <option value="Joint Account">Joint Account</option>
          <option value="current">Current</option>
          <option value="fixed">Fixed Deposit</option>
        </select></td>
    </tr>
     <tr>
    	<td><label class="control-label">Currency Type.</label></td>
        <td><select class="form-control" type="text" name="currencytype_i" placeholder="Currency Type	" value="<?php echo $currencytype; ?>" />
        <option selected="" value="Select">Select</option>
              
	<option value="USD">$</option>
	<option value="EUR">€</option>
	<option value="GBP">£</option>
	<option value="DZD">د. ج</option>
	<option value="ARP">$</option>
	<option value="AUD">A$</option>
	<option value="ATS">S</option>
	<option value="BSD">B$</option>
	<option value="BBD">$</option>
	<option value="BRR">B$</option>
	<option value="CAD">CA$</option>
	<option value="CLP">CL$</option>
	<option value="CNY">¥</option>
	<option value="EGP">E£</option>
	<option value="HKD">$</option>
	<option value="INR">₹</option>
	<option value="IDR">Rp</option>
	<option value="ILS">₪</option>
	<option value="JPY">¥</option>
	<option value="MYR">RM</option>
	<option value="MXP">Mex$</option>
	<option value="NOK">kr</option>
	<option value="RUR">₽</option>
	<option value="SAR">﷼</option>
	<option value="SGD">$</option>
	<option value="ZAR">R</option>
	<option value="KRW">₩</option>
	<option value="SEK">kr</option>
	<option value="TRL">₺</option>
	<option value="VEB">Bs</option>
	<option value="AED">د.إ</option>
			</select></td>
    </tr>
    <tr>
    	<td><label class="control-label">User Name</label></td>
        <td><input class="form-control" type="text" name="user_name" placeholder="User Name" value="<?php echo $username; ?>" /></td>
    </tr>
     <tr>
    	<td><label class="control-label">Password</label></td>
        <td><input class="form-control" type="text" name="password_i" placeholder="Password" value="<?php echo $password; ?>" /></td>
    </tr>
     <tr>
    	<td><label class="control-label">Opening Date.</label></td>
        <td><input class="form-control" type="text" name="opendate_i" placeholder="Account Opening Date" value="<?php echo $opendate; ?>" /></td>
    </tr>
     <tr>
    	<td><label class="control-label">Amount.</label></td>
        <td><input class="form-control" type="text" name="balance_i" placeholder="Amount Balance" value="<?php echo $balance; ?>" /></td>
    </tr>
     <tr>
    	<td><label class="control-label">Depositor Name.</label></td>
        <td><input class="form-control" type="text" name="deposit_i" placeholder="Depositor Name" value="<?php echo $deposit; ?>" /></td>
    </tr>
      <tr>
    	<td><label class="control-label">Account Status.</label></td>
        <td><input class="form-control" type="text" name="userProfession_i" placeholder="Account Status" value="<?php echo $userProfession; ?>" /></td>
    </tr>
             <tr>
    	<td><label class="control-label">Account Limit.</label></td>
        <td><input class="form-control" type="text" name="aclimit_i" placeholder="Account Limit" value="<?php echo $aclimit; ?>" /></td>
    </tr>
      <tr>
    	<td><label class="control-label">Taken Loan.</label></td>
        <td><input class="form-control" type="text" name="loan_i" placeholder="Taken Loan" value="<?php echo $loan; ?>" /></td>
    </tr>
             <tr>
    	<td><label class="control-label">Account Expenses.</label></td>
        <td><input class="form-control" type="text" name="spent_i" placeholder="Account Expenses" value="<?php echo $spent; ?>" /></td>
    </tr>
     <tr>
    	<td><label class="control-label">Profile Img.</label></td>
        <td>
        	<p><img src="user_images/<?php echo $userPic; ?>" height="150" width="150" /></p>
        	<input class="input-group" type="file" name="user_image" accept="image/*" />
        </td>
    </tr>
         <tr>
                 <td width="100%" bgcolor="#eef1fb" colspan="2" height="20" align="center">
					<font face="Trebuchet MS" size="3" color="#000000"><strong><h3>Personal Information</h3></strong></font></td>
               </tr>          
      
      <tr>
    	<td><label class="control-label">Email.</label></td>
        <td><input class="form-control" type="text" name="email_i" placeholder="Email" value="<?php echo $email; ?>" /></td>
    </tr>
     <tr>
    	<td><label class="control-label">Address.</label></td>
        <td><input class="form-control" type="text" name="address_i" placeholder="Address" value="<?php echo $address; ?>" /></td>
    </tr>
        <tr>
    	<td><label class="control-label">Phone</label></td>
        <td><input class="form-control" type="text" name="phone_i" placeholder="Phone" value="<?php echo $phone; ?>" /></td>
    </tr>
        <tr>
    	<td><label class="control-label">Date Of Birth</label></td>
        <td><input class="form-control" type="text" name="dobirth_i" placeholder="Date Of Birth" value="<?php echo $dobirth; ?>" /></td>
    </tr>

      <tr>
                 <td width="100%" bgcolor="#eef1fb" colspan="2" height="20" align="center">
					<font face="Trebuchet MS" size="3" color="#000000"><strong><h3>Transfer Codes</h3></strong></font></td>
               </tr>  
    
   <tr>
    	<td><label class="control-label">ACTIVATION CODE.</label></td>
        <td><input class="form-control" type="text" name="cotcode_i" placeholder="Activation CODE" value="<?php echo $cotcode; ?>" /></td>
    </tr>
     <tr>
    	<td><label class="control-label">INCOME TAX Code.</label></td>
        <td><input class="form-control" type="text" name="taxcode_i" placeholder="TAX Code" value="<?php echo $taxcode; ?>" /></td>
    </tr>
     <tr>
    	<td><label class="control-label">IMF CODE.</label></td>
        <td><input class="form-control" type="text" name="antcode_i" placeholder="IMF CODE" value="<?php echo $antcode; ?>" /></td>
    </tr>
     <tr>
    	<td><label class="control-label">DEMURRAGE CODE.</label></td>
        <td><input class="form-control" type="text" name="imfcode_i" placeholder="DEMURRAGE CODE" value="<?php echo $imfcode; ?>" /></td>
    </tr>
    
        <tr>
        <td width="100%" bgcolor="#eef1fb" colspan="2" height="20" align="center">
					<font face="Trebuchet MS" size="3" color="#000000"><strong><h3>Account Manager Details</h3></strong></font></td>
                    </tr>
         <tr>
    	<td><label class="control-label">Account Manager Name.</label></td>
        <td><input class="form-control"  type="text" name="acct_mana_name_i" placeholder="Transfer Status" value="<?php echo $acct_mana_name; ?>" /></td>
    </tr>
     <tr>
    	<td><label class="control-label">Account Manager Contact.</label></td>
        <td><input class="form-control"  type="text" name="acct_mana_tel_i" placeholder="Transfer Status" value="<?php echo $acct_mana_tel; ?>" /></td>
    </tr>
     <tr>
    	<td><label class="control-label">Account Manager Email.</label></td>
        <td><input class="form-control"  type="text" name="acct_mana_email_i" placeholder="Account Manager Email" value="<?php echo $acct_mana_email; ?>" /></td>
    </tr>
     <tr>
    	<td><label class="control-label">Account Creation Date.</label></td>
        <td><input class="form-control"  type="text" name="acct_mana_date_i" placeholder="Account Creation Date" value="<?php echo $acct_mana_date; ?>" /></td>
    </tr>
     
     <tr>
        <td width="100%" bgcolor="#eef1fb" colspan="2" height="20" align="center">
					<font face="Trebuchet MS" size="3" color="#000000"><strong><h3>Previous Transaction One (1)</h3></strong></font></td>
                    </tr>
     <tr>
    	<td><label class="control-label">Serial Number.</label></td>
        <td><input class="form-control" type="text" name="srnos1_i" placeholder="Serial Number 1" value="<?php echo $srnos1; ?>" /></td>
    </tr>
     <tr>
    	<td><label class="control-label">Amount Transferred.</label></td>
        <td><input class="form-control" type="text" name="credit1_i" placeholder="Amount Transferred 1" value="<?php echo $credit1; ?>" /></td>
    </tr>
     <tr>
    	<td><label class="control-label">Transfer Type.</label></td>
        <td><input class="form-control" type="text" name="debit1_i" placeholder="Transfer Type 1" value="<?php echo $debit1; ?>" /></td>
    </tr>
     <tr>
    	<td><label class="control-label">Sender/Receiver Name.</label></td>
        <td><input class="form-control" type="text" name="refrenceno1_i" placeholder="Sender/Receiver Name 1" value="<?php echo $refrenceno1; ?>" /></td>
    </tr>
      <tr>
    	<td><label class="control-label">Description.</label></td>
        <td><input class="form-control" type="text" name="description1_i" placeholder="Description 1" value="<?php echo $description1; ?>" /></td>
    </tr>
  <tr>
    	<td><label class="control-label">Transfer Date.</label></td>
        <td><input class="form-control" type="text" name="date1_i" placeholder="Transfer Date 1" value="<?php echo $date1; ?>" /></td>
    </tr>
     <tr>
    	<td><label class="control-label">Transfer Time.</label></td>
        <td><input class="form-control" type="text" name="time1_i" placeholder="Transfer Time 1" value="<?php echo $time1; ?>" /></td>
    </tr>
     <tr>
    	<td><label class="control-label">Transfer Status.</label></td>
        <td><input class="form-control" type="text" name="status1_i" placeholder="Transfer Status 1" value="<?php echo $status1; ?>" /></td>
    </tr>

     
   <tr>
        <td width="100%" bgcolor="#eef1fb" colspan="2" height="20" align="center">
					<font face="Trebuchet MS" size="3" color="#000000"><strong><h3>Previous Transaction Two (2)</h3></strong></font></td>
                    </tr>

       <tr>
    	<td><label class="control-label">Serial Number.</label></td>
        <td><input class="form-control" type="text" name="srnos2_i" placeholder="Serial Number 2" value="<?php echo $srnos2; ?>" /></td>
    </tr>
     <tr>
    	<td><label class="control-label">Amount Transferred.</label></td>
        <td><input class="form-control" type="text" name="credit2_i" placeholder="Amount Transferred 2" value="<?php echo $credit2; ?>" /></td>
    </tr>
     <tr>
    	<td><label class="control-label">Transfer Type.</label></td>
        <td><input class="form-control" type="text" name="debit2_i" placeholder="Transfer Type 2" value="<?php echo $debit2; ?>" /></td>
    </tr>
     <tr>
    	<td><label class="control-label">Sender/Receiver Name.</label></td>
        <td><input class="form-control" type="text" name="refrenceno2_i" placeholder="Sender/Receiver Name 2" value="<?php echo $refrenceno2; ?>" /></td>
    </tr>
      <tr>
    	<td><label class="control-label">Description.</label></td>
        <td><input class="form-control" type="text" name="description2_i" placeholder="Description 2" value="<?php echo $description2; ?>" /></td>
    </tr>
  <tr>
    	<td><label class="control-label">Transfer Date.</label></td>
        <td><input class="form-control" type="text" name="date2_i" placeholder="Transfer Date 2" value="<?php echo $date2; ?>" /></td>
    </tr>
     <tr>
    	<td><label class="control-label">Transfer Time.</label></td>
        <td><input class="form-control" type="text" name="time2_i" placeholder="Transfer Time 2" value="<?php echo $time2; ?>" /></td>
    </tr>
     <tr>
    	<td><label class="control-label">Transfer Status.</label></td>
        <td><input class="form-control" type="text" name="status2_i" placeholder="Transfer Status 2" value="<?php echo $status2; ?>" /></td>
    </tr>


   <tr>
        <td width="100%" bgcolor="#eef1fb" colspan="2" height="20" align="center">
					<font face="Trebuchet MS" size="3" color="#000000"><strong><h3>Previous Transaction Three (3)</h3></strong></font></td>
                    </tr>


	 <tr>
    	<td><label class="control-label">Serial Number.</label></td>
        <td><input class="form-control" type="text" name="srnos3_i" placeholder="Serial Number 3" value="<?php echo $srnos3; ?>" /></td>
    </tr>
     <tr>
    	<td><label class="control-label">Amount Transferred.</label></td>
        <td><input class="form-control" type="text" name="credit3_i" placeholder="Amount Transferred 3" value="<?php echo $credit3; ?>" /></td>
    </tr>
     <tr>
    	<td><label class="control-label">Transfer Type.</label></td>
        <td><input class="form-control" type="text" name="debit3_i" placeholder="Transfer Type 3" value="<?php echo $debit3; ?>" /></td>
    </tr>
     <tr>
    	<td><label class="control-label">Sender/Receiver Name.</label></td>
        <td><input class="form-control" type="text" name="refrenceno3_i" placeholder="Sender/Receiver Name 3" value="<?php echo $refrenceno3; ?>" /></td>
    </tr>
      <tr>
    	<td><label class="control-label">Description.</label></td>
        <td><input class="form-control" type="text" name="description3_i" placeholder="Description 3" value="<?php echo $description3; ?>" /></td>
    </tr>
  <tr>
    	<td><label class="control-label">Transfer Date.</label></td>
        <td><input class="form-control" type="text" name="date3_i" placeholder="Transfer Date 3" value="<?php echo $date3; ?>" /></td>
    </tr>
     <tr>
    	<td><label class="control-label">Transfer Time.</label></td>
        <td><input class="form-control" type="text" name="time3_i" placeholder="Transfer Time 3" value="<?php echo $time3; ?>" /></td>
    </tr>
     <tr>
    	<td><label class="control-label">Transfer Status.</label></td>
        <td><input class="form-control" type="text" name="status3_i" placeholder="Transfer Status 3" value="<?php echo $status3; ?>" /></td>
    </tr>

   <tr>
        <td width="100%" bgcolor="#eef1fb" colspan="2" height="20" align="center">
					<font face="Trebuchet MS" size="3" color="#000000"><strong><h3>Previous Transaction Four (4)</h3></strong></font></td>
                    </tr>

 <tr>
    	<td><label class="control-label">Serial Number.</label></td>
        <td><input class="form-control" type="text" name="srnos4_i" placeholder="Serial Number 4" value="<?php echo $srnos4; ?>" /></td>
    </tr>
     <tr>
    	<td><label class="control-label">Amount Transferred.</label></td>
        <td><input class="form-control" type="text" name="credit4_i" placeholder="Amount Transferred 4" value="<?php echo $credit4; ?>" /></td>
    </tr>
     <tr>
    	<td><label class="control-label">Transfer Type.</label></td>
        <td><input class="form-control" type="text" name="debit4_i" placeholder="Transfer Type 4" value="<?php echo $debit4; ?>" /></td>
    </tr>
     <tr>
    	<td><label class="control-label">Sender/Receiver Name.</label></td>
        <td><input class="form-control" type="text" name="refrenceno4_i" placeholder="Sender/Receiver Name 4" value="<?php echo $refrenceno4; ?>" /></td>
    </tr>
      <tr>
    	<td><label class="control-label">Description.</label></td>
        <td><input class="form-control" type="text" name="description4_i" placeholder="Description 4" value="<?php echo $description4; ?>" /></td>
    </tr>
  <tr>
    	<td><label class="control-label">Transfer Date.</label></td>
        <td><input class="form-control" type="text" name="date4_i" placeholder="Transfer Date 4" value="<?php echo $date4; ?>" /></td>
    </tr>
     <tr>
    	<td><label class="control-label">Transfer Time.</label></td>
        <td><input class="form-control" type="text" name="time4_i" placeholder="Transfer Time 4" value="<?php echo $time4; ?>" /></td>
    </tr>
     <tr>
    	<td><label class="control-label">Transfer Status.</label></td>
        <td><input class="form-control" type="text" name="status4_i" placeholder="Transfer Status 4" value="<?php echo $status4; ?>" /></td>
    </tr>

   <tr>
        <td width="100%" bgcolor="#eef1fb" colspan="2" height="20" align="center">
					<font face="Trebuchet MS" size="3" color="#000000"><strong><h3>Previous Transaction Five (5)</h3></strong></font></td>
                    </tr>


 <tr>
    	<td><label class="control-label">Serial Number.</label></td>
        <td><input class="form-control" type="text" name="srnos5_i" placeholder="Serial Number 5" value="<?php echo $srnos5; ?>" /></td>
    </tr>
     <tr>
    	<td><label class="control-label">Amount Transferred.</label></td>
        <td><input class="form-control" type="text" name="credit5_i" placeholder="Amount Transferred 5" value="<?php echo $credit5; ?>" /></td>
    </tr>
     <tr>
    	<td><label class="control-label">Transfer Type.</label></td>
        <td><input class="form-control" type="text" name="debit5_i" placeholder="Transfer Type 5" value="<?php echo $debit5; ?>" /></td>
    </tr>
     <tr>
    	<td><label class="control-label">Sender/Receiver Name.</label></td>
        <td><input class="form-control" type="text" name="refrenceno5_i" placeholder="Sender/Receiver Name 5" value="<?php echo $refrenceno5; ?>" /></td>
    </tr>
      <tr>
    	<td><label class="control-label">Description.</label></td>
        <td><input class="form-control" type="text" name="description5_i" placeholder="Description 5" value="<?php echo $description5; ?>" /></td>
    </tr>
  <tr>
    	<td><label class="control-label">Transfer Date.</label></td>
        <td><input class="form-control" type="text" name="date5_i" placeholder="Transfer Date 5" value="<?php echo $date5; ?>" /></td>
    </tr>
     <tr>
    	<td><label class="control-label">Transfer Time.</label></td>
        <td><input class="form-control" type="text" name="time5_i" placeholder="Transfer Time 5" value="<?php echo $time5; ?>" /></td>
    </tr>
     <tr>
    	<td><label class="control-label">Transfer Status.</label></td>
        <td><input class="form-control" type="text" name="status5_i" placeholder="Transfer Status 5" value="<?php echo $status5; ?>" /></td>
    </tr>

    
    <tr>
        <td colspan="2"><button type="submit" name="btn_save_updates" class="btn btn-default">
        <span class="glyphicon glyphicon-save"></span> Update
        </button>
        
        <a class="btn btn-default" href="view_acct.php"> <span class="glyphicon glyphicon-backward"></span> cancel </a>
        
        </td>
    </tr>
    
    </table>
    
</form>


<div class="alert alert-info">
    
</div>

</div>

</body>
</html>
<? ob_flush(); ?>