<?php
include"initialize_page.php";
include"systemfunctions.php";

if(isset($_POST['cds_id']) && $_POST['cds_id']!="" )
{
	$cds_id = $_POST['cds_id'];
		$select_query = "select * from x_cds where x_id = '$cds_id'";
		$select_result = mysqli_query($con,$select_query);							
		$row = mysqli_fetch_array($select_result);
		
             $invest_amount = $row['x_investamount'];	
			 $invest_amount =  number_format($invest_amount,2);
	         $matured_amount = $row['x_maturedamount'];	
			 $matured_amount =  number_format($matured_amount,2);
	         $interest = $row['x_interest'];
			 $acc_no = $row['x_time'];		
             $earn_interest = $row['x_earninterest'];
			 $earn_interest =  number_format($earn_interest,2);
             $period = $row['x_period'];	 
$main_acccurrency = main_account_currency($user_id);	
	
	
	
}
else
{
	$website_url=website_settingdata('x_weburl');
    header("location:$website_url");	
    exit();
}
?>
<?php include('resources/header.php') ?>
	<title></title>
	<meta name="keywords" content="" />
	<meta name="description" content="" />
<?php include('resources/css-file.php') ?>
<style>
.panel{border-radius:0px;}
.panel-heading{background:#E1E3F2;
padding:3px 10px;
border-radious:none;
}
.mini-widget a{color:#fff;}
</style>
<?php include('resources/navigation.php') ?> 
<!-- Dashboard wrapper starts -->
<div class="dashboard-wrapper">
	<div class="main-container">				
		<div class="row">
			<div class="col-sm-6 ac-summ">
				<h2>CDs Detail</h2>
			</div>
			<div class="col-sm-6 do-name">
				<ul style="display: inline-flex;float:right;margin:7px auto;">
					<li><a href="#" class="btn btn-success">Contact Message </a></li>
					<li><a href="#" class="btn">Contact Us </a></li>
					<li><a href="#" class="btn">Session Summary </a></li>
					<li><a href="#" class="btn">Help</a></li>
				</ul>
			</div>
		</div>
		<div class="row gutter">
			<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
				<div class="table-responsive">
					<table class="table table-bordered no-margin">
						<thead>
							<tr>
								<th colspan="2"><a href="#">CDs Detail</a></th>
							</tr>	
						</thead>
						<tbody>
							   <tr>
														<th>Account No</th>
														<td><?php echo  $acc_no;?></td>
													</tr> 
													<tr>
														<th>Invest Amount</th>
														<td><?php echo $main_acccurrency;?><?php echo  $invest_amount;?></td>
													</tr> 	
													
													<tr>
														<th>Interesr</th>
														<td><?php echo  $interest;?>%</td>
													</tr> 
													<tr>
														<th>Period</th>
														<td><?php echo $period; ?></td>
													</tr> 
													<tr>
														<th>Earn Interest</th>
														<td><?php echo $main_acccurrency;?><?php echo $earn_interest; ?></td>
													</tr> 
													<tr>
														<th>Matured Amount</th>
														<td><?php echo $main_acccurrency;?><?php echo $matured_amount; ?></td>
													</tr>
						</tbody>
						
					</table>
				</div>
			</div>
		</div>
		<!-- Row ends -->
		</br>
	</div>
	<!-- Main container ends -->
</div>
<!-- Dashboard wrapper ends -->
<?php include('resources/footer.php') ?>
<?php include('resources/js-file.php') ?>











