<?php
  session_start();
    if(!$_SESSION['id']){
        header('location:index.php');
    }
      require_once '../system/conn.php';
?>
<!doctype html>
<html lang="en" class="semi-dark">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
	<link href="assets/css/pace.min.css" rel="stylesheet" />
	<script src="assets/js/pace.min.js"></script>
    <link href="assets/plugins/perfect-scrollbar/css/perfect-scrollbar.css" rel="stylesheet" />
    <link href="assets/plugins/simplebar/css/simplebar.css" rel="stylesheet" />
    <link href="assets/plugins/metismenu/css/metisMenu.min.css" rel="stylesheet" />
    <link href="assets/css/bootstrap.min.css" rel="stylesheet">
    <link href="assets/css/bootstrap-extended.css" rel="stylesheet">
    <link href="assets/css/style.css" rel="stylesheet">
    <link href="assets/css/icons.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.7.2/font/bootstrap-icons.css">
    <link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500&display=swap" rel="stylesheet">
    <link href="assets/css/dark-theme.css" rel="stylesheet" />
    <link href="assets/css/semi-dark.css" rel="stylesheet" />
    <link href="assets/css/header-colors.css" rel="stylesheet" />
    <title>Combine Bank Statement</title>
  </head>
  <body>
    

  <!--start wrapper-->
  <div class="wrapper">
    <?php include'system/header.php'?>

    <div class="page-content-wrapper">
      <div class="page-content">

        <div class="page-breadcrumb d-none d-sm-flex align-items-center mb-3">
          <div class="breadcrumb-title pe-3">Combined Gen. Bank Statement</div>
          <div class="ms-auto"></div>
        </div>

        <div class="row">
          <div class="col-xl-12 mx-auto">
            <div class="card">
              <div class="card-body">
                <div class="p-4 border rounded">
                  <form class="row g-3 needs-validation" novalidate method="post" enctype="multipart/form-data" action="comb-bank-stmt-data.php">
                    
                    
                    <?php 
                        $a=1;
                        $stmt = $conn->prepare("select name,id from `branch` order by name ASC ");
                        $stmt->execute();
                        $users = $stmt->fetchAll();
                        foreach($users as $row) { ?>
                    <div class="col-md-3">
                      
                      <div class="input-field">
                        <input type="checkbox" name="branch[]" value="<?php echo $row['id']?>"/>
                        <label for="validationCustom01" class="form-label"><?php echo $row['name']?></label>
                      </div>
                    </div>
                    <?php $a++; }?>
                    
                    <div class="col-12">
                      <button class="btn btn-primary" type="submit" name="submit" value="submit" >Submit</button>
                    </div>
                  </form>
                </div>
              </div>
            </div>
          </div>
        </div>

      </div>
    </div>
<?php include'system/footer.php'?>