Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script type="text/javascript">
- onLoadClick("#master_modem","<?php echo base_url()?>member/index_member/<?php echo $url;?>","#wrapperCon");
- onLoadClick("#new_sekolah","<?php echo base_url()?>member/member_new/<?php echo $url;?>","#wrapperCon");
- $("a[rel*=facebox]").facebox();
- var idk;
- function editdata(id){
- $("#wrapperCon").html($.ajax({
- url:'<?php echo base_url()?>member/member_edit/id/'+id+'/url/<?php echo $url;?>',
- async: false
- }).responseText);
- }
- function deletedata(id){
- //idk=id;
- $('#dialog').data('id', id).modal('show');
- $('#delete').click(function() {
- // handle deletion here
- var id = $('#dialog').data('id');
- $('[data-id='+id+']').remove();
- $('#myModal').modal('hide');
- $.get('<?php echo base_url()?>member/member_delete/id/'+id,function(data){
- var table = $('#dt').DataTable();
- table.ajax.reload();
- });
- });
- }
- function viewdata(id){
- $("#dialeg .modal-body").html($.ajax({
- url:'<?php echo base_url()?>sekolah/detail_sekolah/id/'+id,
- async: false
- }).responseText);
- $('#dialeg').data('id', id).modal('show');
- }
- var grid = new Datatable();
- grid.init({
- src: $("#dt"),
- dataTable: {
- "sAjaxSource": "<?php echo base_url()?>member/view_member/<?php echo $priv[2]?>/<?php echo $priv[3]?>/", // ajax source
- }
- });
- </script>
- <div id="dialog" class="modal fade" aria-hidden="true" role="basic" tabindex="-1" >
- <div class="modal-dialog">
- <div class="modal-content">
- <div class="modal-header">
- <button aria-hidden="true" data-dismiss="modal" class="close" type="button"></button>
- <h4 class="modal-title"><?php echo $this->lang->line('Konfirmasi'); ?></h4>
- </div>
- <div class="modal-body">
- <?php echo $this->lang->line('Apakahandayakinuntukmenghapusdata?'); ?>
- </div>
- <div class="modal-footer">
- <button data-dismiss="modal" class="btn default" type="button"><?php echo $this->lang->line('cancel'); ?></button>
- <button data-dismiss="modal" class="btn blue" type="button" id="delete"><?php echo $this->lang->line('delete'); ?></button>
- </div>
- </div>
- <!-- /.modal-content -->
- </div>
- </div>
- <div id="dialeg" class="modal fade" aria-hidden="true" role="basic" tabindex="-1" >
- <div class="modal-dialog">
- <div class="modal-content">
- <div class="modal-header">
- <button aria-hidden="true" data-dismiss="modal" class="close" type="button"></button>
- <h4 class="modal-title"><?php echo $this->lang->line('Konfirmasi'); ?></h4>
- </div>
- <div class="modal-body">
- </div>
- <div class="modal-footer">
- <button data-dismiss="modal" class="btn default" type="button"><?php echo $this->lang->line('cancel'); ?></button>
- </div>
- </div>
- <!-- /.modal-sekolah -->
- </div>
- </div>
- <!-- BEGIN PAGE HEADER-->
- <div class="row">
- <div class="col-md-12">
- <!-- BEGIN PAGE TITLE & BREADCRUMB-->
- <h3 class="page-title">
- <?php echo $this->lang->line('daftar_member'); ?>
- </h3>
- <ul class="page-breadcrumb breadcrumb">
- <?php if($priv[1]==1){ ?>
- <li>
- <a href="#" class="toolbar" id="new_sekolah">
- <button type="button" class="btn blue dropdown-toggle" >
- <i class="fa fa-plus"></i>
- <?php echo $this->lang->line('new'); ?>
- </button>
- </a>
- </li>
- <?php } ?>
- </ul>
- <!-- END PAGE TITLE & BREADCRUMB-->
- </div>
- </div>
- <!-- END PAGE HEADER-->
- <div class="row">
- <div class="col-md-12">
- <div class="portlet box green">
- <div class="portlet-title">
- <div class="caption">
- <i class="fa fa-reorder"></i> <?php echo $this->lang->line('daftar_member'); ?>
- </div>
- <div class="tools">
- <a href="javascript:;" class="collapse">
- </a>
- </div>
- </div>
- <div class="portlet-body">
- <table id="dt" class="table table-striped table-bordered table-hover">
- <thead>
- <tr role="row" class="heading">
- <th><?php echo $this->lang->line('NamaSekolah'); ?></th>
- <th><?php echo $this->lang->line('Kode'); ?></th>
- <th><?php echo $this->lang->line('Kabupaten') ?></th>
- <th><?php echo $this->lang->line('Propinsi') ?></th>
- <th><?php echo $this->lang->line('Awal') ?></th>
- <th><?php echo $this->lang->line('Akhir') ?></th>
- <th><?php echo $this->lang->line('Paket') ?>Paket</th>
- <th><?php echo $this->lang->line('Siswa'); ?></th>
- <th><?php echo $this->lang->line('Pegawai'); ?></th>
- <th>Q <?php echo $this->lang->line('Siswa') ?></th>
- <th>Q <?php echo $this->lang->line('SMS'); ?>SMS</th>
- <th><?php echo $this->lang->line('Website') ?></th>
- <th><?php echo $this->lang->line('Aksi') ?></th>
- </tr>
- </thead>
- </table>
- </div>
- </div>
- </div>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement