<link href="<?=base_admin();?>assets/plugins/chosen/chosen.min.css" rel="stylesheet" type="text/css" />
<script src="<?=base_admin();?>assets/plugins/chosen/chosen.jquery.min.js" type="text/javascript"></script>


          <!-- Content Header (Page header) -->
                <section class="content-header">
                    <h1>
                        Manage Data Wilayah
                    </h1>
                        <ol class="breadcrumb">
                        <li><a href="<?=base_index();?>"><i class="fa fa-dashboard"></i> Home</a></li>
                        <li><a href="<?=base_index();?>data-wilayah">Data Wilayah</a></li>
                        <li class="active">Data Wilayah List</li>
                    </ol>
                </section>

                <!-- Main content -->
                <section class="content">
                    <div class="row">
                        <div class="col-xs-12">
                            <div class="box">
                                <div class="box-header">
                                <h3 class="box-title">List Data Wilayah</h3>
                                </div><!-- /.box-header -->
                                <div class="box-body table-responsive">
<br>
<div class="box box-danger">
            <div class="box-header with-border">
              <h3 class="box-title"></h3>
            </div>
            <div class="box-body">
    <a href="<?=base_url();?>upload/sample/data_negara.xlsx" class="btn btn-success"><i class="fa fa-cloud-download"></i> Download Data Negara</a>
            </div>
            <!-- /.box-body -->
          </div>
                                    <table id="dtb_data_wilayah" class="table table-bordered table-striped">
                                   <thead>
                                     <tr>

                          <th>ID Negara</th>
                          <th>Negara</th>
                       </tr>
                                      </thead>
                                        <tbody>
                                        </tbody>
                                    </table>
                                </div><!-- /.box-body -->
                            </div><!-- /.box -->
                        </div>
                    </div>
                </section><!-- /.content -->
        <script type="text/javascript">


var dataTable = $("#dtb_data_wilayah").dataTable({

           'bProcessing': true,
            'bServerSide': true,
    
            'ajax':{
              url :'<?=base_admin();?>modul/data_negara/data_negara_data.php',
            type: 'post',  // method  , by default get
          error: function (xhr, error, thrown) {
              console.log(xhr);

            }
          },
        });

</script>  
            