<?php $this->load->view('admin/layout/meta'); ?>
<?php $this->load->view('admin/layout/header'); ?>
<?php $this->load->view('admin/layout/aside'); ?>

<?php
if($cek=='edit'){
 foreach($edit->result() as $row){ 
 $idtamu = $row->idtamu;
 $nama = $row->nama;
 $alamat = $row->alamat;
 $asalinstansi = $row->asalinstansi;
 $nohp = $row->nohp;
 $keterangan = $row->keterangan;
 $namakategori = $row->namakategori;
 $namabidang = $row->namabidang;
 
 }
}
?>
  <main id="main" class="main">
    <div class="pagetitle">
      <h1>Tamu</h1>
      <nav>
        <ol class="breadcrumb">
          <li class="breadcrumb-item"><a href="#">Home</a></li>
          <li class="breadcrumb-item active">Tamu</li>
        </ol>
      </nav>
    </div><!-- End Page Title -->
    <section class="section dashboard">
      <div class="row">
        <!-- Left side columns -->
        <div class="col-lg-12">
          <div class="row">
          <div class="card">
            <div class="card-body">
                  <h5 class="card-title">Tamu<span></span></h5>
				  <?php 	
			$attribute = array('role' => 'form', 'class' => 'form-horizontal','enctype'=>'multipart/form-data','method'=>'post');
			echo form_open(base_url().'admin/kategori/save', $attribute); 
			?>
                <div class="row mb-3">
                  <label for="inputEmail3" class="col-sm-2 col-form-label">Nama Lengkap</label>
                  <div class="col-sm-10">
                    <input type="text" class="form-control" id="inputText" name="nama" value="<?php echo $nama;?>" readonly>
                  </div>
                </div>
                <div class="row mb-3">
                  <label for="inputEmail3" class="col-sm-2 col-form-label">Alamat</label>
                  <div class="col-sm-10">
                    <input type="text" class="form-control" id="inputText" name="alamat" value="<?php echo $alamat;?>" readonly>
                  </div>
                </div>
                <div class="row mb-3">
                  <label for="inputEmail3" class="col-sm-2 col-form-label">Asal Instansi</label>
                  <div class="col-sm-10">
                    <input type="text" class="form-control" id="inputText" name="asalinstansi" value="<?php echo $asalinstansi;?>" readonly>
                  </div>
                </div>
                <div class="row mb-3">
                  <label for="inputEmail3" class="col-sm-2 col-form-label">Nomor Telp / Hp</label>
                  <div class="col-sm-10">
                    <input type="text" class="form-control" id="inputText" name="nohp" value="<?php echo $nohp;?>" readonly>
                  </div>
                </div>
				<hr />
                <div class="row mb-3">
                  <label for="inputEmail3" class="col-sm-2 col-form-label">Kategori</label>
                  <div class="col-sm-10">
                    <input type="text" class="form-control" id="inputText" name="nohp" value="<?php echo $namakategori;?>" readonly>
                  </div>
                </div>				
                <div class="row mb-3">
                  <label for="inputEmail3" class="col-sm-2 col-form-label">Bidang</label>
                  <div class="col-sm-10">
                    <input type="text" class="form-control" id="inputText" name="nohp" value="<?php echo $namabidang;?>" readonly>
                  </div>
                </div>				
                <div class="row mb-3">
                  <label for="inputEmail3" class="col-sm-2 col-form-label"></label>
                  <div class="col-sm-10">
                     <a href="<?php echo base_url().'admin/tamu';?>"><button type="button" class="btn btn-primary" name="simpan">Kembali</button></a>
                  </div>
                </div>				
             <?php echo form_close(); ?><!-- End Horizontal Form -->

                </div>
				</div>
              </div>
            </div><!-- End Recent Sales -->

          </div>
        </div><!-- End Left side columns -->
      </div>
    </section>
  </main><!-- End #main -->
<?php $this->load->view('admin/layout/foot'); ?> 