<?
session_start();
include"../plg/ses.php";
include"../plg/kon.php";
$idkar = $_GET['idkar'];
$smt = substr($idkar,0,9);
if($prof=='admin'){
  $menu = "../menu.php";
}else{
  $menu = "../menu2.php";
}
//$smt = "xxxxx";
?>
 <html lang="en">

 <head>
  <meta charset="UTF-8">
  <!--<link rel="stylesheet" type="text/css" href="../css/flexigrid.css" />-->
  <?include"../css2/flexigrid.php";?>
  <script type="text/javascript" src="../plg/jquery.min.js"></script>
  <!--<script type="text/javascript" src="flexigrid.js"></script>-->
  <?include"flexigrid.php";?>
  <link rel="stylesheet" href="kucingstrap.css">
  <script src="../plg/kucingstrap.js"></script>
  <link rel="stylesheet" href="../plg/w3.css">
  <link rel="icon" href="../plg/logoagp.png">

  <title>AGP SIMKP</title>
</head>

<body>
<?include"$menu";?>
  <div class="w3-container" style="" id="">
    <h4>SEMESTER <?=$smt?></h4>

    <table class="w3-table w3-card-4" id="myTable" style="">
      <tr class="w3-light-gray">
        <th style="width:300px" class="w3-small w3-border w3-blue-gray w3-center">NAMA</th>
        <th style="width:150px" class="w3-small w3-border w3-blue-gray w3-center">NIP</th>
        <th style="width:200px" class="w3-small w3-border w3-blue-gray w3-center">UNIT</th>
        <th style="width:400px" class="w3-small w3-border w3-blue-gray w3-center">JABATAN</th>
        <th style="width:200px" class="w3-small w3-border w3-blue-gray w3-center">LOKASI</th>
        <th style="width:200px" class="w3-small w3-border w3-blue-gray w3-center">SEMESTER</th>
      </tr>
      <?
      include"../plg/kon.php";
      $sql = "select * from kpikar where idkar='$idkar'";
      $res = $conn->query($sql);
      while($b = $res->fetch_assoc()){
        $lokk = $b['lok'];
        $smtnya = $b['smt'];
      ?>
      <tr>
        <td class="w3-small w3-border"><?=$b['nama']?></td>
        <td class="w3-small w3-border"><?=$b['nip']?></td>
        <td class="w3-small w3-border"><?=$b['unit']?></td>
        <td class="w3-small w3-border"><?=$b['jab']?></td>
        <td class="w3-small w3-border"><?=$lokk?></td>
        <td class="w3-small w3-border w3-center"><?=$b['smt']?></td>
      </tr>
      <?}?>
    </table>
    <input type="hidden" value="<?=$idkar?>" id="idkarx"/>
    <input type="hidden" value="<?=$smtnya?>" id="smtx"/>
  <hr/>
    <table id="tambahkpi" style="display: none" ondblclick="" class="" onclick="kembalikan()"></table>
    <br/>
    <center>
    <div class="w3-btn w3-blue w3-small w3-round-large" onclick="location.href='../userkpi/formuserkpiver2.php?idkar=<?=$idkar?>'">CANCEL</div>
    <hr/>
  </div>
  </div>

  <div id="id01" class="w3-modal">
      <div class="w3-modal-content" style="width:70%;">
        <div class="w3-container">
          <span onclick="keluar()" class="w3-button w3-display-topright w3-red"><b>&times;</b></span>
          <br/><hr/>
          <iframe style="border:1px solid white;width:100%;height:500px;" id="rangka"></iframe>
        </div>
      </div>
    </div>
</body>
</html>
<!--<script type="text/javascript" src="fungsinya.js"></script>-->

<?
include"fungsinya.php";
?>
