<?php
session_start();
include_once 'function.php';
// add Details
//`idd`, `full_name`, `employment_type`, `pan`, `dob`, `state`, `pin_code`, `mobile_no`, `email`, `aadhar_no`, `gender`, `city`, `loan_amount`SELECT * FROM `apply_from` WHERE 1
if ($_POST['updateaddbank'] == 'Submit') {

    $bank_name     = $_POST['bankname'];
      $employee_name     = $_POST['employeename'];
        $employee_number     = $_POST['employeenumber'];


mysqli_query($connect,"INSERT into bank_details (`bank_name`,`employee_name`,`employee_number`) 
values ('$bank_name','$employee_name','$employee_number')") or die(mysqli_error());



echo "<div style='width: 350px; text-align: center; margin: 20% auto 0px; font-family: arial; font-size: 14px; border: 1px solid #ddd; padding: 20px 40px;'> 
Please wait while we update loading...</div>";
echo "<script type='text/javascript'>window.location = 'bank_details.php'</script>";
}
// Edit


?>
<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="utf-8" />
		<title>Bank Details | <?php echo $site_title; ?></title>
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta content="width=device-width, initial-scale=1" name="viewport" />
		<meta content="Preview page of Metronic Admin Theme #1 for statistics, charts, recent events and reports" name="description" />
		<meta content="" name="author" />
		<!-- BEGIN GLOBAL MANDATORY STYLES -->
		<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">     <link href="http://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700&amp;subset=all" rel="stylesheet" type="text/css" />
		<link href="assets/global/plugins/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
		<link href="assets/global/plugins/simple-line-icons/simple-line-icons.min.css" rel="stylesheet" type="text/css" />
		<link href="assets/global/plugins/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
		<link href="assets/global/plugins/bootstrap-switch/css/bootstrap-switch.min.css" rel="stylesheet" type="text/css" />
		<!-- END GLOBAL MANDATORY STYLES -->
		<!-- BEGIN PAGE LEVEL PLUGINS -->
		<link href="assets/global/plugins/datatables/datatables.min.css" rel="stylesheet" type="text/css" />
		<link href="assets/global/plugins/datatables/plugins/bootstrap/datatables.bootstrap.css" rel="stylesheet" type="text/css" />
		<!-- END PAGE LEVEL PLUGINS -->
		<!-- BEGIN THEME GLOBAL STYLES -->
		<link href="assets/global/css/components.min.css" rel="stylesheet" id="style_components" type="text/css" />
		<link href="assets/global/css/plugins.min.css" rel="stylesheet" type="text/css" />
		<!-- END THEME GLOBAL STYLES -->
		<!-- BEGIN THEME LAYOUT STYLES -->
		<link href="assets/layouts/layout/css/layout.min.css" rel="stylesheet" type="text/css" />
		<link href="assets/layouts/layout/css/themes/darkblue.min.css" rel="stylesheet" type="text/css" id="style_color" />
		<link href="assets/layouts/layout/css/custom.min.css" rel="stylesheet" type="text/css" />
		
		<link href="assets/global/plugins/select2/css/select2.min.css" rel="stylesheet" type="text/css" />
		<link href="assets/global/plugins/select2/css/select2-bootstrap.min.css" rel="stylesheet" type="text/css" />	    <!-- END PAGE LEVEL PLUGINS -->
		<style type="text/css">
		.dt-buttons {
		display: none;
		}
		</style>
		<script type="text/javascript">
		function delete_menu(idurl)
		{
		go_on = confirm("Are you sure ? ");
		if(go_on)
		{
		document.location.href=idurl;
		}
		}
		</script>
	</head>
	<!-- END HEAD -->
	<body class="page-header-fixed page-sidebar-closed-hide-logo page-content-white">
		<div class="page-wrapper">
			<!-- BEGIN HEADER -->
			<?php include("header.php");?>
			<!-- END HEADER -->
			<!-- BEGIN HEADER & CONTENT DIVIDER -->
			<div class="clearfix">
			</div>
			<!-- END HEADER & CONTENT DIVIDER -->
			<!-- BEGIN CONTAINER -->
			<div class="page-container">
				<!-- BEGIN SIDEBAR -->
				<div class="page-sidebar-wrapper">
					<!-- BEGIN SIDEBAR -->
					<!-- DOC: Set data-auto-scroll="false" to disable the sidebar from auto scrolling/focusing -->
					<!-- DOC: Change data-auto-speed="200" to adjust the sub menu slide up/down speed -->
					<?php include("menu.php");?>
					<!-- END SIDEBAR -->
					</div>			    <!-- END SIDEBAR -->
					<!-- BEGIN CONTENT -->
					<div class="page-content-wrapper">
						<!-- BEGIN CONTENT BODY -->
						<div class="page-content">
							<!-- END THEME PANEL -->
							<!-- BEGIN PAGE BAR -->
							<div class="page-bar">
								<ul class="page-breadcrumb">
									<li>
										<a href="index.php">Home
										</a>
										<i class="fa fa-circle">
										</i>
									</li>
									<li>
										<span>Dashboard
										</span>
									</li>
								</ul>
								<div class="page-toolbar">
									<div id="dashboard-report-range" class="pull-right tooltips btn btn-sm" data-container="body" data-placement="bottom" data-original-title="Change dashboard date range">
										<i class="icon-calendar">
										</i>&nbsp;
										<span class="thin uppercase hidden-xs">
										</span>&nbsp;
										<i class="fa fa-angle-down">
										</i>
									</div>
								</div>
							</div>
							<!-- END PAGE BAR -->
							<div class="row">
  <div class="col-md-12">
    <!-- BEGIN VALIDATION STATES-->
    <div class="portlet light portlet-fit portlet-form bordered">
      <div class="portlet-title">
        <div class="caption">
          <i class="fa fa-list  font-red" aria-hidden="true"></i>
          <span class="caption-subject font-red sbold uppercase">ADD </span>
        </div>
      </div>
      <div class="portlet-body">
        <!-- BEGIN FORM-->
        <form action="" id="form_sample_1" method="post" class="form-horizontal" novalidate="novalidate" enctype="multipart/form-data" onsubmit="return CheckFormData();">
          <div class="form-body">
              <form method="POST" action="" >
                <input type="text" name="bankname" placeholder="Bank Name" class="form-control" style="width:250px; margin-bottom:5px;"/>
                <input type="text" name="employeename" placeholder="Employee Name"  class="form-control" style="width:250px; margin-bottom:5px;"/>
                <input type="text" name="employeenumber" placeholder="Employee Number" class="form-control" style="width:250px; margin-bottom:5px;" />
                <input type="hidden" name="idd" value="<?php echo $product_id; ?>" />
                <input type="submit" class="btn green" name="updateaddbank" value="Submit" />
              </form>
            </div>
          </div>
        </form>
        <!-- END FORM-->
      </div>
    </div>
    <!-- END VALIDATION STATES-->
  </div>
</div>
							<!--  -->
							
							<div class="clearfix">
							</div>
							<!-- BEGIN PAGE TITLE-->
							<div class="clearfix">
							</div>
						</div>
						<!-- END CONTENT BODY -->
					</div>
					<!-- END CONTENT -->
					<!-- END QUICK SIDEBAR -->
				</div>
				<!-- END CONTAINER -->
				<!-- BEGIN FOOTER -->
				<?php include("footer.php");?>			  <!-- END FOOTER -->
				</div>
				<!-- BEGIN QUICK NAV -->
				<div class="quick-nav-overlay">
				</div>
				<!-- END QUICK NAV -->>
				<!-- BEGIN CORE PLUGINS -->
				<script src="assets/global/plugins/jquery.min.js" type="text/javascript">
				</script>
				<script src="assets/global/plugins/bootstrap/js/bootstrap.min.js" type="text/javascript">
				</script>
				<script src="assets/global/plugins/js.cookie.min.js" type="text/javascript">
				</script>
				<script src="assets/global/plugins/jquery-slimscroll/jquery.slimscroll.min.js" type="text/javascript">
				</script>
				<script src="assets/global/plugins/jquery.blockui.min.js" type="text/javascript">
				</script>
				<script src="assets/global/plugins/bootstrap-switch/js/bootstrap-switch.min.js" type="text/javascript">
				</script>
				<!-- END CORE PLUGINS -->
				<!-- BEGIN PAGE LEVEL PLUGINS -->
				<script src="assets/global/scripts/datatable.js" type="text/javascript">
				</script>
				<script src="assets/global/plugins/datatables/datatables.min.js" type="text/javascript">
				</script>
				<script src="assets/global/plugins/datatables/plugins/bootstrap/datatables.bootstrap.js" type="text/javascript">
				</script>
				<!-- END PAGE LEVEL PLUGINS -->
				<!-- BEGIN THEME GLOBAL SCRIPTS -->
				<script src="assets/global/scripts/app.min.js" type="text/javascript">
				</script>
				<!-- END THEME GLOBAL SCRIPTS -->
				<!-- BEGIN PAGE LEVEL SCRIPTS -->
				<script src="assets/pages/scripts/table-datatables-colreorder.min.js" type="text/javascript">
				</script>
				<!-- END PAGE LEVEL SCRIPTS -->
				<!-- BEGIN THEME LAYOUT SCRIPTS -->
				<script src="assets/layouts/layout/scripts/layout.min.js" type="text/javascript">
				</script>
				<script src="assets/layouts/layout/scripts/demo.min.js" type="text/javascript">
				</script>
				<script src="assets/layouts/global/scripts/quick-sidebar.min.js" type="text/javascript">
				</script>
				<script src="assets/layouts/global/scripts/quick-nav.min.js" type="text/javascript">
				</script>
				<!-- END THEME LAYOUT SCRIPTS -->
				<!-- Google Code for Universal Analytics -->
				<style>
				        .col-lg-3 {
        /*width: 25%;*/
        margin-bottom: 33px;
    }
				</style>
			</body>
		</html>