
<!DOCTYPE html>
<html lang="en">

<head>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">

    <title>SB Admin 2 - Bootstrap Admin Theme</title>

    <!-- Bootstrap Core CSS -->
   

    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
        <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
        <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
    
    
    <SCRIPT type="text/javascript">


function confirmDelete()
{
var agree=confirm("Are you sure you wish to continue?");
if (agree)
	return true ;
else
	return false ;
}
// -->
</script>

</head>

<body>

    
                            <p>&nbsp;</p>
                            <table width="100%" border="1" class="">
                                <thead>
                                    <tr>
                                        <th>Depositors Name.</th>
                                        <th>Next of kin</th>
                                        <th>Deposit Code</th>  
                                        <th>Description</th> 
                                        <th>Deposit Date</th> 
                                        <th>Action </th>
                                        
                                    </tr>
                                </thead>
                              <tbody>
                                <?php 
	include ('include/conn.php');

$query="SELECT * from deposit ORDER BY id ASC";
$result = mysqli_query($login, $query);



		while($row=mysqli_fetch_array($result)) {

$id = $row['id'];
$dname = $row['dname'];
$nxtkin = $row['nxtkin'];
$dcode = $row['dcode'];
$des= $row['des'];
$datedepo = $row['datedepo'];
$itemval = $row['itemval'];
$mstore = $row['mstore'];
$amtpaid = $row['amtpaid'];
$amtdue = $row['amtdue'];
$amtunpaid = $row['amtunpaid'];




						


		?>
                                <tr class="">
                                        <td><?php echo $dname ?></td>
                                        <td><?php echo $nxtkin ?></td>
                                        <td><?php echo $dcode?></td>
                                        <td><?php echo $des?></td>
                                        <td><?php echo $datedepo?></td>
 
                                        <td> <?php echo"<a href='dashboard.php?depositdetail=$id''>[ Info] </a>&nbsp; <a href='dashboard.php?editdeposit=$id''>Edit</a> &nbsp;  <a href='dashboard.php?deletedeposit=$id' onclick='return confirmDelete()'>[ Del ]</a>"; ?></td>
                                    </tr>
                                    <?php  } ?>	
                                </tbody>
                            </table>
                            <!-- /.table-responsive -->
                     
   

 

</body>

</html>
