<link href="<?php echo base_url();?>resources/css/bootstrap.css" rel="stylesheet">
<!-- <link href="<?php echo base_url();?>resources/css/jquery.smartmenus.bootstrap.css" rel="stylesheet"> -->
<link rel="stylesheet" href="<?php echo base_url('resources/css/AdminLTE.css') ?>">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.5.0/css/font-awesome.min.css">
<style type="text/css">
  #content{overflow: hidden;}
  .modal-besar{
    width: 98%;
  }


</style>
<body class="hold-transition skin-blue layout-top-nav">
<style type="text/css">

</style>
<script type="text/javascript">
</script>  

<div class="wrapper">
  <div class="content-wrapper">
    <!--button data-toggle="modal" data-target="#modalku">MODAR</button-->
    <section class="content-header">
      <h1>LAPORAN UPLOAD <?php echo $mainWhere.$jlhpage; ?>
        <small>Dokumen Elektronik (d-Docs) Direktori Putusan Mahkamah Agung</small>
      </h1>
    </section>
  <div class="konten">
    <section class="content">
      <div class="row">
        <div class="col-xs-12">
          <div class="box">
            <div class="box-header">
              <h3 class="box-title">DETIL LAPORAN <?php echo $title; ?></h3>

              <div class="box-tools">
                <form method="post" action="<?php echo base_url(); ?>antrian_dirput/dirput_list_searching" >
                <div class="input-group input-group-sm" style="width: 400px;">
                  <input type="text" id ="keyword" name="keyword" class="form-control pull-right" placeholder="Search" onkeyup=lihat(this.value)>
                  <div class="input-group-btn">
                    <button type="submit" class="btn btn-default"><i class="fa fa-search"></i></button>
                  </div>
                </div>
                <input type="hidden" name="rowId" id="rowId" value=<?php echo $rowId; ?> </input>
                </form>
              </div>
              <div id="suggest_box" style="position:absolute;top:36;left:15;backgroundcolor:lightblue;width:200;visibility:hidden;z-index:100">
              <?php 
                echo $ls_noperkara;
              ?>
            </div>
            </div>
            <!-- /.box-header -->
<!--             <div class="box-header">
              <?php echo $paginator; ?>
            </div> -->
            <div class="modal-body">
              <div class="box-body table-responsive no-padding">
              <table class="table table-hover" style="font-size: 13px;">
                <col  width="5%">
                <col  width="20%">
                <col  width="15%">
                <col  width="15%">
                <col  width="">
                <col  width="">
                <col  width="20%">
              <thead>  
                <tr>
                  <th>NO</th>
                  <th>NOMOR PERKARA</th>
                  <th align="center">Tanggal Putus</th>
                  <th align="center">Tanggal Minutasi</th>
                  <th align="center">File D-Docs Lokal</th>
                  <th align="center">File D-Docs Dirput</th>
                  <th align="center">Dirput Pile ID</th>
                </tr>
              </thead>
              <tbody>
                  <?php 
                  if(count($dirput_list)>0){
                    if(!$jlhpage){ 
                            $no=1;
                      }else{
                            $no=$jlhpage+1;
                      }
                      foreach ($dirput_list as $row) {
                      //print_r($data_antrian->result());
                        echo "<tr>";
                          echo '<td align="center">'.$no++.'</td>';
                          echo '<td>'.$row->nomor_perkara.'</td>';
                          
                          echo '<td>'.$this->tanggalhelper->convertDayDate($row->tanggal_putusan).'</td>';
                          echo '<td>'.$this->tanggalhelper->convertDayDate($row->tanggal_minutasi).'</td>';
                          if(!empty($row->amar_putusan_dok)){
                            $label = 'label-success" style="font-size: 11px;"> UPLOADED</span></td>';
                          }else{
                            $label = 'label-danger" style="font-size: 11px;"> NOT UPLOADED</span></td>';
                          }
                          echo '<td align="left"><span class="label '.$label;
                          if(!empty($row->putusan_id)){
                            $label1 = 'label-success" style="font-size: 11px;"> UPLOADED</span></td>';
                          }else{
                            $label1 = 'label-danger" style="font-size: 11px;"> NOT UPLOADED</span></td>';
                          }
                          echo '<td align="left"><span class="label '.$label1;
                          echo '<td>'.$row->putusan_id.'</td>';
                          echo "</tr>";
                      }
                    }else{
                      echo "<tr><td colspan='7' align='center'>Tidak Ada Data</td></tr>";
                    }
                  ?>
                  </tbody>
              </table>
            </div>
            <div class="box-footer clearfix" style="font-size: 12px;">
              <?php echo $paginator; ?>
            </div>
          </div>
        </div>
      </div>
    </section>
  </div>
  </div>

  <div class="control-sidebar-bg"></div>
  <div class="modal fade" id="modalku"  tabindex="-1" role="dialog">
    <div class="modal-dialog modal-besar">
        <div id='modalku_konten'class="modal-content">
            
        </div><!-- /.modal-content -->
    </div><!-- /.modal-dialog -->
  </div><!-- /.modal -->
</div>
<script src="<?php echo base_url('resources/js/jquery-2.2.3.min.js') ?>"></script>
<script src="<?php echo base_url('resources/js/bootstrap.min.js') ?>"></script>
<script type="text/javascript">

// $(document).ready(function(){   
//     $(".putus_list").click(function()
//     {       
//      $.ajax({
//          type: "POST",
//          url: '<?php echo base_url()?>antrian_dirput/show_list', 
//          data: {idlist: $(this).attr('value')},
//          dataType: "text",  
//          cache:false,
//          success: 
//               function(data){
//                 //alert(data);  //as a debugging message.
//                 //$('#modalku').load('<?php echo base_url()?>antrian_dirput/show_list/');
//                 $('#modalku_konten').empty();
//                 $('#modalku_konten').append(data);
//                 $("#modalku").modal('show');
//                 //$("#modalku").fadeIn();
//               }
//           });// you have missed this bracket
//      return false;
//  });
//  });

</script>
