<!DOCTYPE html>
<html lang="en">
  <head>
    <!-- Global site tag (gtag.js) - Google Analytics -->
    <script async src="https://www.googletagmanager.com/gtag/js?id=UA-90680653-2"></script>
    <script>
      window.dataLayer = window.dataLayer || [];
      function gtag(){dataLayer.push(arguments);}
      gtag('js', new Date());

      gtag('config', 'UA-90680653-2');
    </script>

    <!-- Required meta tags -->
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

    <!-- Twitter -->
    <!-- <meta name="twitter:site" content="@bootstrapdash">
    <meta name="twitter:creator" content="@bootstrapdash">
    <meta name="twitter:card" content="summary_large_image">
    <meta name="twitter:title" content="Azia">
    <meta name="twitter:description" content="Responsive Bootstrap 4 Dashboard Template">
    <meta name="twitter:image" content="https://www.bootstrapdash.com/azia/img/azia-social.png"> -->

    <!-- Facebook -->
    <!-- <meta property="og:url" content="https://www.bootstrapdash.com/azia">
    <meta property="og:title" content="Azia">
    <meta property="og:description" content="Responsive Bootstrap 4 Dashboard Template">

    <meta property="og:image" content="https://www.bootstrapdash.com/azia/img/azia-social.png">
    <meta property="og:image:secure_url" content="https://www.bootstrapdash.com/azia/img/azia-social.png">
    <meta property="og:image:type" content="image/png">
    <meta property="og:image:width" content="1200">
    <meta property="og:image:height" content="600"> -->

    <!-- Meta -->
    <meta name="description" content="Responsive Bootstrap 4 Dashboard Template">
    <meta name="author" content="BootstrapDash">

    <title>Sistem Informasi Pegawai | Yayasan Nurul Islam</title>
	<link rel="icon" type="image/png" href="<?php echo base_url();?>assets/images/favicon.png">

    <!-- vendor css -->
    <link href="<?php echo base_url();?>assets/pegawai/lib/fontawesome-free/css/all.min.css" rel="stylesheet">
    <link href="<?php echo base_url();?>assets/pegawai/lib/ionicons/css/ionicons.min.css" rel="stylesheet">
    <link href="<?php echo base_url();?>assets/pegawai/lib/typicons.font/typicons.css" rel="stylesheet">
    <link href="<?php echo base_url();?>assets/pegawai/lib/flag-icon-css/css/flag-icon.min.css" rel="stylesheet">

    <!-- azia CSS -->
    <link rel="stylesheet" href="<?php echo base_url();?>assets/pegawai/css/azia.css">

  </head>
  <body>

    <div class="az-header">
      <div class="container">
        <div class="az-header-left">
          <a href="<?php echo base_url();?>Pegawai" class="az-logo"><img src="<?php echo base_url();?>assets/images/logo.png" height="50px"></a>
          <a href="" id="azMenuShow" class="az-header-menu-icon d-lg-none"><span></span></a>
        </div><!-- az-header-left -->
        <div class="az-header-menu">
          <div class="az-header-menu-header">
            <a href="index.html" class="az-logo"><span></span> <img src="<?php echo base_url();?>assets/images/logo.png" style="max-height:40px;"></a>
            <a href="" class="close">&times;</a>
          </div><!-- az-header-menu-header -->
          <ul class="nav">
            <li class="nav-item">
              <a href="<?php echo base_url();?>Pegawai/personal" class="nav-link"><i class="typcn typcn-user"></i> Personal</a>
            </li>
            <li class="nav-item">
              <a href="<?php echo base_url();?>Pegawai/pegawai" class="nav-link"><i class="typcn typcn-contacts"></i> Kepegawaian</a>
            </li>
            <li class="nav-item  active show">
              <a href="<?php echo base_url();?>Pegawai/keluarga" class="nav-link"><i class="typcn typcn-group"></i> Keluarga</a>
            </li>
            <li class="nav-item">
              <a href="<?php echo base_url();?>Pegawai/pendidikan" class="nav-link"><i class="typcn typcn-mortar-board"></i> Pendidikan</a>
            </li>
            <li class="nav-item">
              <a href="<?php echo base_url();?>Pegawai/kesehatan" class="nav-link"><i class="typcn typcn-heart"></i> Kesehatan</a>
            </li>
            <li class="nav-item">
              <a href="<?php echo base_url();?>Pegawai/downloadcv" class="nav-link"><i class="typcn typcn-download"></i> Download CV	</a>
            </li>
          </ul>
        </div><!-- az-header-menu -->
        <div class="az-header-right">
          <a href="<?php echo base_url();?>Pegawai/gantiPassword" class="az-header-search-link" title="Ganti Password"><i class="fas fa-cog"></i></a>
          <a href="<?php echo base_url();?>Login/logout" class="az-header-search-link" onclick="return confirm('Apakah Anda ingin logout?');" title="Logout"><i class="fas fa-power-off"></i></a>
        </div><!-- az-header-right -->
      </div><!-- container -->
    </div><!-- az-header -->

    <div class="az-content az-content-dashboard">
      <div class="container">
        <div class="az-content-body">
		  <?php echo $this->session->flashdata('msg'); ?>
          <div class="az-content-label mg-b-5">Tambah Riwayat Penyakit</div>
			<form action="<?php echo base_url();?>Pegawai/keluargaEditExec" method="POST" enctype="multipart/form-data">
				<input type="hidden" name="id_keluarga_pegawai" value="<?php echo $keluarga_pegawai->id_keluarga_pegawai;?>">
			  <div class="row row-sm mg-b-20">
				<div class="col-lg-4">
				  <p class="mg-b-10">Nama</p>
				</div>
				<div class="col-lg-6">
					<input class="form-control" type="text" name="nama" value="<?php echo $keluarga_pegawai->nama;?>" required>
				</div><!-- col-4 -->
			  </div><!-- row -->
			  <div class="row row-sm mg-b-20">
				<div class="col-lg-4">
				  <p class="mg-b-10">Hubungan</p>
				</div>
				<div class="col-lg-3">
					<input class="form-control" type="text" name="hubungan" value="<?php echo $keluarga_pegawai->hubungan;?>" required>
				</div><!-- col-4 -->
			  </div><!-- row -->
			  <div class="row row-sm mg-b-20">
				<div class="col-lg-4">
				  <p class="mg-b-10">Profesi</p>
				</div>
				<div class="col-lg-4">
				  <select class="form-control select2-no-search" name="profesi" required>
					<option label="Pilih Salah Satu" value=""></option>
					<?php
						foreach($profesi as $p)
						{
							?>
							<option value="<?php echo $p['id_pekerjaan_suami_istri'];?>" <?php echo ($keluarga_pegawai->id_pekerjaan_suami_istri == $p['id_pekerjaan_suami_istri'] ? "selected" : "");?>><?php echo $p['pekerjaan_suami_istri'];?></option>
							<?php
						}
					?>
				  </select>
				</div><!-- col-4 -->
			  </div><!-- row -->
			  <div class="row row-sm mg-b-20">
				<div class="col-lg-4">
				  <p class="mg-b-10">Tanggal Lahir</p>
				</div>
				<div class="col-lg-2">
					<input class="form-control" type="date" name="tanggal_lahir" value="<?php echo $keluarga_pegawai->tanggal_lahir;?>" required>
				</div><!-- col-4 -->
			  </div><!-- row -->
			  <br>
			  <div class="row row-sm mg-b-20">
				<div class="col-lg-12">
				  <button type="submit" class="btn btn-az-primary float-sm-right" >
					<i class="typcn typcn-input-checked"></i> Simpan
				  </button>
				  <a href="<?php echo base_url();?>Pegawai/keluarga" class="btn btn-danger">
					<i class="typcn typcn-times"></i> Batal
				  </a>
				</div><!-- col-4 -->
			  </div><!-- row -->
			</form>
		</div>
      </div>
    </div><!-- az-content -->

    <div class="az-footer ht-40">
      <div class="container ht-100p pd-t-0-f">
        <span class="text-muted d-block text-center text-sm-left d-sm-inline-block">Copyright © 2022 Sistem Informasi Pegawai</span>
        <span class="float-none float-sm-right d-block mt-1 mt-sm-0 text-center"> Dikembangkan oleh <a href="https://nurul-islam.sch.id" target="_blank">Yayasan Nurul Islam</a></span>
      </div><!-- container -->
    </div><!-- az-footer -->


    <script src="<?php echo base_url();?>assets/pegawai/lib/jquery/jquery.min.js"></script>
    <script src="<?php echo base_url();?>assets/pegawai/lib/bootstrap/js/bootstrap.bundle.min.js"></script>
    <script src="<?php echo base_url();?>assets/pegawai/lib/ionicons/ionicons.js"></script>
    <script src="<?php echo base_url();?>assets/pegawai/lib/jquery.flot/jquery.flot.js"></script>
    <script src="<?php echo base_url();?>assets/pegawai/lib/jquery.flot/jquery.flot.resize.js"></script>
    <script src="<?php echo base_url();?>assets/pegawai/lib/chart.js/Chart.bundle.min.js"></script>
    <script src="<?php echo base_url();?>assets/pegawai/lib/peity/jquery.peity.min.js"></script>

    <script src="<?php echo base_url();?>assets/pegawai/js/azia.js"></script>
    <script src="<?php echo base_url();?>assets/pegawai/js/chart.flot.sampledata.js"></script>
    <script src="<?php echo base_url();?>assets/pegawai/js/dashboard.sampledata.js"></script>
    <script src="<?php echo base_url();?>assets/pegawai/js/jquery.cookie.js" type="text/javascript"></script>
  </body>
</html>
