<?php
 session_start();
 include "header.php";
 include "sidebar.php";
 
 ?>

 
  <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">Seting Cetak</li>
        </ol>
      </nav>
    </div><!-- End Page Title -->

    
			
			   
                 <?php
				
					include 'config.php';
					$aa= mysqli_query($mysqli,"SELECT * FROM print");
					$kop= mysqli_fetch_array($aa);
					$kodecetak=$kop['Idcetak'];
					$kop1=$kop['kop1'];
					$kop2=$kop['kop2'];
					$kop3=$kop['kop3'];
					$kop4=$kop['kop4'];
					$logo="assets/img/".$kop['logo'];
					$kepala=$kop['kepala'];
				
				?>	
					
       <section class="section">
      <div class="row">
        <div class="col-lg-12">
    
		 <div class="card info-card customers-card">
		 <h5 class="card-title">Seting Cetak</h5>

		 <?php
			if (isset($_GET['ed'])) {
					echo "<p><font color='green'>Data Seting cetak berhasil di update.</font></p>";
						echo "<br> ";
				}	
		 ?>
             
              <!-- Horizontal Form -->
              <form name="edit" method="post" action="editcetakAction.php">
                 <input type="hidden" class="form-control" name="ikodecetak" id="ikodecetak" width="100" value="<?php echo $kodecetak ?>" >
                 <table>
                  <tr>
					<td width="200">Baris ke 1 (KOP) </td>
					<td> <div class="col-sm-10"> <input type="text" class="form-control" name="ikop1"   value="<?php echo $kop1; ?>" > </div></td>
                  </tr>
				  <tr>
					<td>Baris ke 2 (KOP) </td>
					<td> <div class="col-sm-10"> <input type="text" class="form-control" name="ikop2"   value="<?php echo $kop2; ?>" > </div></td>
                  </tr>
				 <tr>
					<td>Baris ke 3 (KOP) </td>
					<td> <div class="col-sm-10"> <input type="text" class="form-control" name="ikop3"   value="<?php echo $kop3; ?>" > </div></td>
                  </tr>
				  <tr>
					<td>Baris ke 4 (KOP) </td>
					<td> <div class="col-sm-10"> <input type="text" class="form-control" name="ikop4"   value="<?php echo $kop4; ?>" > </div></td>
                  </tr>
				  <tr>
					<td>Nama Kepala Madrasah </td>
					<td> <div class="col-sm-10"> <input type="text" class="form-control" name="ikepala"   value="<?php echo $kepala; ?>" > </div></td>
                  </tr>
				 <tr>
					<td></td>
					<td> <button type="submit" name="update" class="btn btn-primary">&nbsp;&nbsp;&nbsp;Simpan&nbsp;&nbsp;&nbsp;</button></td>
                  </tr>
                  </table> 
                 
                   
                
               
               
				
				
				
             
			<?php
					
				?>
             

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

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