<?php  
 require_once '../php/admin.php';
 require_once '../php/c.php';

//require_once '../../php/checker2.php'; require_once '../php/c.php';

// if(isset($_COOKIE['emails2'])){echo $_COOKIE['emails2'];}
// if(isset($_COOKIE['user19'])){
	// $jos = $_COOKIE['user19'];
// }else{
	// header('location:/');
// }

?>


<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
      <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Deposit</title>
	<!-- BOOTSTRAP STYLES-->
    <link href="assets/css/bootstrap.css" rel="stylesheet" />
     <!-- FONTAWESOME STYLES-->
    <link href="assets/css/font-awesome.css" rel="stylesheet" />
     <!-- MORRIS CHART STYLES-->
   <!-- CSS Implementing Plugins -->
	<link rel="stylesheet" href="../../assets/plugins/animate.css">
	<link rel="stylesheet" href="../../assets/plugins/line-icons/line-icons.css">
	<link rel="stylesheet" href="../../assets/plugins/font-awesome/css/font-awesome.min.css">
	<link rel="stylesheet" href="../../assets/plugins/scrollbar/css/jquery.mCustomScrollbar.css">
	<link rel="stylesheet" href="../../assets/plugins/sky-forms-pro/skyforms/css/sky-forms.css">
	<link rel="stylesheet" href="../../assets/plugins/sky-forms-pro/skyforms/custom/custom-sky-forms.css">
	<link rel="stylesheet" href="../../asset/css/one.style.css">
<!--chosen -->
<script type="text/javascript" src="jquery-3.3.1.js"></script>
	<link rel="stylesheet" href="jquery-ui.css">
<link rel="stylesheet" href="chosen.min.css">
<script type="text/javascript" src="jquery-ui.min.js"></script>
<script type="text/javascript" src="chosen.jquery.min.js"></script>

<!--chosen end -->

        <!-- CUSTOM STYLES-->
    <link href="assets/css/custom.css" rel="stylesheet" />
     <!-- GOOGLE FONTS-->
   <link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css' />
     <!-- TABLE STYLES-->
    <link href="assets/js/dataTables/dataTables.bootstrap.css" rel="stylesheet" />
	
	<script>

	</script>
	<style> 

	.chosen-container {
		width: 100% !important;
    position: relative;
    display: inline-block;
    vertical-align: middle;
    font-size: 13px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

	</style>
</head>
<body>
    <div id="wrapper">
        <nav class="navbar navbar-default navbar-cls-top " role="navigation" style="margin-bottom: 0">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".sidebar-collapse">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="index.html">Binary admin</a> 
            </div>
  <div style="color: white;
padding: 15px 50px 5px 50px;
float: right;
font-size: 16px;">  Date : <?php echo date('d M Y',time()); ?> &nbsp;<a href="../logout/" class="btn btn-danger square-btn-adjust">Logout</a> </div>
        </nav>   
           <!-- /. NAV TOP  -->
                <nav class="navbar-default navbar-side" role="navigation">
            <div class="sidebar-collapse">
                <ul class="nav" id="main-menu">
				<li class="text-center">
                    <img src="assets/img/find_user.png" class="user-image img-responsive"/>
					</li>
				
					
                    <li >
							<a     href="../users/index.php"><i class="fa fa-user"></i> Users</a>
						</li>
						<li class="">
							<a href="../withdraw/index.php"><i class=" icon-wallet"></i> Withdraws</a>
						</li>
						<li class=" ">
							<a  class="active-menu" href="../deposit/index.php"><i class=" icon-wallet"></i> Deposits</a>
						</li>
						<!--<li hidden class=" ">-->
						<!--	<a hidden  class="" href="../notice/index.php"><i class=" icon-wallet"></i>Notifications</a>-->
						<!--</li>-->
						<!-- <li  class=" "> -->
							<!-- <a href="../request/index.php"><i class="fa fa-cog"></i> code</a> -->
						<!-- </li> -->
						
						<li  class="">
							<a class=" "  href="../balan/index.php"><i class="fa fa-cog"></i> Set Balance</a>
						</li>
						
						
						<li class=" ">
							<a href="../trades/index.php"><i class="fa fa-cog"></i> Trades</a>
						</li>
						
						<li class=" ">
							<a href="../settings/index.php"><i class="fa fa-cog"></i> Settings</a>
						</li>
                        </ul>
                      </li>  
                  
                </ul>
               
            </div>
            
        </nav>  
        <!-- /. NAV SIDE  -->
        <div id="page-wrapper" >
            <div id="page-inner">
                <div class="row">
                    <div class="col-md-12">
                     <h2>Deposit</h2>   
                        <h5>Welcome Jhon Deo , Love to see you back. </h5>
                       
                    </div>
                </div>
                 <!-- /. ROW  -->
                 <hr />
				 <div class="panel panel-default">
                        <div class="panel-heading">
                       
                        </div>
</div>						
               <div class="row">
                    <div class="col-md-12">
                         <div>
										
										<div 			style='   postion:center' >
	<b><button    style=' ' class="btn btn-warning" data-toggle="modal" data-target="#responsive">Create New Deposit</button></b>
			<br>
			<br>
			</div>
										
										</div> <?php
				if(isset($maro)){echo $maro;}
				 ?>
			
                    </div>
                    </div>
<?php if(isset($_SESSION['success'])){ ?>			<div class="alert alert-success">
  <strong>Success!</strong> <?php echo ucfirst($_SESSION['success']); ?>.
</div>

<?php unset($_SESSION['success']); } ?>					 
					

	<?php	 if(isset($_SESSION['error']) && !empty($_SESSION['error']) ){ ?>
<div class="col-md-12">
    <div class="alert alert-danger">
  <strong>Error!</strong> <?php  echo  $_SESSION['error'];  unset($_SESSION['error']);?>.
</div>
</div>					

<?php } ?>
            <div class="row">
                <div class="col-md-12">
                    <!-- Advanced Tables -->
                    <div class="panel panel-default">
                        <div class="panel-heading">
                             DEPOSIT
                        </div>
                        <div class="panel-body">
                            <div class="table-responsive">
                                <table class="table table-striped table-bordered table-hover" id="dataTables-example">
                                    <thead>
                                        <tr>
                                            <th>#</th>
                                            <th>Name</th>
                                            <th>Email</th>
                                            <th>Status</th>
                                            <th>Amount</th>
                                            <!--<th>Proof</th>-->
                                            <th>Date of creation</th>
                                            <th>Action</th>
                                            <th>Action</th>
                                            <th>Action</th>
											 
									     
                                </tr>
                                    </thead>
                                    <tbody>
                                        <?php 
					depa();  
			?>
                                        
                                    </tbody>
                                </table>
                            </div>
                            
                        </div>
                    </div>
                    <!--End Advanced Tables -->
                </div>
            </div>
                <br>

                <br>
				
             <!-- /. PAGE INNER  -->
            </div>
         <!-- /. PAGE WRAPPER  -->
     <!-- /. WRAPPER  -->
    <!-- SCRIPTS -AT THE BOTOM TO REDUCE THE LOAD TIME-->
    <!-- JQUERY SCRIPTS -->
    <script src="assets/js/jquery-1.10.2.js"></script>
      <!-- BOOTSTRAP SCRIPTS -->
    <script src="assets/js/bootstrap.min.js"></script>
    <!-- METISMENU SCRIPTS -->
    <script src="assets/js/jquery.metisMenu.js"></script>
     <!-- DATA TABLE SCRIPTS -->
    <script src="assets/js/dataTables/jquery.dataTables.js"></script>
    <script src="assets/js/dataTables/dataTables.bootstrap.js"></script>
        <script>
            $(document).ready(function () {
                $('#dataTables-example').dataTable();
            });
    </script>
         <!-- CUSTOM SCRIPTS -->
    
	<!--[if lt IE 10]>
		<script src="../../asset/plugins/sky-forms-pro/skyforms/js/jquery.placeholder.min.js"></script>
	<![endif]-->
	
	<div class="modal fade" id="responsive" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
								<div class="modal-dialog">
									<div class="modal-content">
										<div class="modal-header">
											<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
											<h4 class="modal-title" id="myModalLabel4">CREATE NEW DEPOSIT</h4>
										</div>
										<div class="modal-body">
											<div class="row">
												<div class="col-md-6">
													<form method="POST" action="../deposit/"> 
													<p><span style="font-size:20px;">Select Account:</span><select required name="acct" class=" chosen form-control"> <?php user11(); ?></select></p>
													<p><span style="font-size:20px;">Amount:</span><input required name="amount" class="form-control" type="text"></p>
													<p><span style="font-size:20px;">Date:</span><input required name="dateer"  readonly value="<?php echo date('d M Y',time()); ?>" class="form-control" type="text"></p>
													<p><span style="font-size:20px;">Status:</span><select required name="status" class="chosen form-control" type="text">
													<option value="pending">Pending</option> 
													<option value="successful">successful</option> 
													<option value="canceled"> Canceled</option> 
													</select></p>
													
													
														<p><span style="font-size:20px;">Method:</span><select required name="methodd" class="chosen form-control" type="text">
													<option value="btc">Bitcoin</option> 
													<option value="eth">Ethereum</option> 
													<option value="bank"> Bank</option> 
													</select></p>
													
													
												</div>
												
											</div>
										</div>
										<div class="modal-footer">
											<button type="button" class="btn" data-dismiss="modal">Close</button>
											<button type="submit" style='' class="btn btn-warning">Create</button>
									</div>
									</form>
									</div>
								</div>
							</div>
							<!--chosen -->
<!--<script type="text/javascript" src="jquery-3.3.1.js"></script>-->
	<link rel="stylesheet" href="jquery-ui.css">
<link rel="stylesheet" href="chosen.min.css">
<script type="text/javascript" src="jquery-ui.min.js"></script>
<script type="text/javascript" src="chosen.jquery.min.js"></script>

<!--chosen end -->
							<script>
							$(document).ready(function(){
								$('.chosen').chosen();
							});
							</script>
	
</body>
</html>
