<?php
 session_start();
 include "header.php";
 include "sidebar.php";
  if(!isset($_SESSION["userrpp"]))
  {
	header("Location: login.php");
  }
 
 $date = new DateTime();
 // get the current year
 $currentYear = $date->format('Y');
 $angakatan0=$currentYear;
 $angakatan1=$currentYear-1;
 $angakatan2=$currentYear-2;
 $angakatan3=$currentYear-3;

 
?>

 
  <main id="main" class="main">

    <div class="pagetitle">
      <h1>Dashboard</h1>
      <nav>
        <ol class="breadcrumb">
          <li class="breadcrumb-item"><a href="index.php">Home</a></li>
          <li class="breadcrumb-item active">Impor Data Guru</li>
        </ol>
      </nav>
    </div><!-- End Page Title -->

    
			 <!-- Customers Card -->
            <div >

              <div class="card info-card customers-card">

               
                <div class="card-body">
                  <h5 class="card-title">Impor Guru
				   <a href="download.php?filename=guru.xls"><button type="button" class="btn btn-success rounded-pill">Download File Template Data Guru</button></a></h5>

					<br>
                  <?php
				  include 'config.php';
					?>

				<form method="post" enctype="multipart/form-data" action="upload_aksi.php">
				Pilih File Data Guru (*.xls): 
				<input name="filepegawai" type="file" required="required" >
				<button class="btn btn-primary" type="submit">Import</button>
				</form>
				  
				  

                </div>
              </div>

            </div><!-- End Customers Card -->


            
           
          </div>
        </div><!-- End Left side columns -->

      
      </div>
    </section>
<?php
 include "footer.php";
?>
 