Advertisement
anjhar

view

Nov 27th, 2014
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.62 KB | None | 0 0
  1. <script type="text/javascript">
  2. onLoadClick("#master_modem","<?php echo base_url()?>member/index_member/<?php echo $url;?>","#wrapperCon");
  3. onLoadClick("#new_sekolah","<?php echo base_url()?>member/member_new/<?php echo $url;?>","#wrapperCon");
  4. $("a[rel*=facebox]").facebox();
  5. var idk;
  6. function editdata(id){
  7. $("#wrapperCon").html($.ajax({
  8. url:'<?php echo base_url()?>member/member_edit/id/'+id+'/url/<?php echo $url;?>',
  9. async: false
  10. }).responseText);
  11. }
  12.  
  13. function deletedata(id){
  14. //idk=id;
  15. $('#dialog').data('id', id).modal('show');
  16.  
  17. $('#delete').click(function() {
  18. // handle deletion here
  19. var id = $('#dialog').data('id');
  20. $('[data-id='+id+']').remove();
  21. $('#myModal').modal('hide');
  22. $.get('<?php echo base_url()?>member/member_delete/id/'+id,function(data){
  23. var table = $('#dt').DataTable();
  24. table.ajax.reload();
  25. });
  26. });
  27. }
  28.  
  29. function viewdata(id){
  30. $("#dialeg .modal-body").html($.ajax({
  31. url:'<?php echo base_url()?>sekolah/detail_sekolah/id/'+id,
  32. async: false
  33. }).responseText);
  34. $('#dialeg').data('id', id).modal('show');
  35. }
  36.  
  37. var grid = new Datatable();
  38. grid.init({
  39. src: $("#dt"),
  40. dataTable: {
  41. "sAjaxSource": "<?php echo base_url()?>member/view_member/<?php echo $priv[2]?>/<?php echo $priv[3]?>/", // ajax source
  42. }
  43. });
  44.  
  45.  
  46.  
  47. </script>
  48. <div id="dialog" class="modal fade" aria-hidden="true" role="basic" tabindex="-1" >
  49. <div class="modal-dialog">
  50. <div class="modal-content">
  51. <div class="modal-header">
  52. <button aria-hidden="true" data-dismiss="modal" class="close" type="button"></button>
  53. <h4 class="modal-title"><?php echo $this->lang->line('Konfirmasi'); ?></h4>
  54. </div>
  55. <div class="modal-body">
  56. <?php echo $this->lang->line('Apakahandayakinuntukmenghapusdata?'); ?>
  57. </div>
  58. <div class="modal-footer">
  59. <button data-dismiss="modal" class="btn default" type="button"><?php echo $this->lang->line('cancel'); ?></button>
  60. <button data-dismiss="modal" class="btn blue" type="button" id="delete"><?php echo $this->lang->line('delete'); ?></button>
  61. </div>
  62. </div>
  63. <!-- /.modal-content -->
  64. </div>
  65. </div>
  66.  
  67. <div id="dialeg" class="modal fade" aria-hidden="true" role="basic" tabindex="-1" >
  68. <div class="modal-dialog">
  69. <div class="modal-content">
  70. <div class="modal-header">
  71. <button aria-hidden="true" data-dismiss="modal" class="close" type="button"></button>
  72. <h4 class="modal-title"><?php echo $this->lang->line('Konfirmasi'); ?></h4>
  73. </div>
  74. <div class="modal-body">
  75.  
  76. </div>
  77. <div class="modal-footer">
  78. <button data-dismiss="modal" class="btn default" type="button"><?php echo $this->lang->line('cancel'); ?></button>
  79. </div>
  80. </div>
  81. <!-- /.modal-sekolah -->
  82. </div>
  83. </div>
  84.  
  85.  
  86.  
  87. <!-- BEGIN PAGE HEADER-->
  88. <div class="row">
  89. <div class="col-md-12">
  90. <!-- BEGIN PAGE TITLE & BREADCRUMB-->
  91. <h3 class="page-title">
  92. <?php echo $this->lang->line('daftar_member'); ?>
  93. </h3>
  94. <ul class="page-breadcrumb breadcrumb">
  95. <?php if($priv[1]==1){ ?>
  96. <li>
  97. <a href="#" class="toolbar" id="new_sekolah">
  98. <button type="button" class="btn blue dropdown-toggle" >
  99. <i class="fa fa-plus"></i>
  100. <?php echo $this->lang->line('new'); ?>
  101. </button>
  102. </a>
  103. </li>
  104. <?php } ?>
  105. </ul>
  106. <!-- END PAGE TITLE & BREADCRUMB-->
  107. </div>
  108. </div>
  109. <!-- END PAGE HEADER-->
  110.  
  111. <div class="row">
  112. <div class="col-md-12">
  113. <div class="portlet box green">
  114. <div class="portlet-title">
  115. <div class="caption">
  116. <i class="fa fa-reorder"></i> <?php echo $this->lang->line('daftar_member'); ?>
  117. </div>
  118. <div class="tools">
  119. <a href="javascript:;" class="collapse">
  120. </a>
  121. </div>
  122. </div>
  123. <div class="portlet-body">
  124.  
  125. <table id="dt" class="table table-striped table-bordered table-hover">
  126. <thead>
  127. <tr role="row" class="heading">
  128. <th><?php echo $this->lang->line('NamaSekolah'); ?></th>
  129. <th><?php echo $this->lang->line('Kode'); ?></th>
  130. <th><?php echo $this->lang->line('Kabupaten') ?></th>
  131. <th><?php echo $this->lang->line('Propinsi') ?></th>
  132. <th><?php echo $this->lang->line('Awal') ?></th>
  133. <th><?php echo $this->lang->line('Akhir') ?></th>
  134. <th><?php echo $this->lang->line('Paket') ?>Paket</th>
  135. <th><?php echo $this->lang->line('Siswa'); ?></th>
  136. <th><?php echo $this->lang->line('Pegawai'); ?></th>
  137. <th>Q <?php echo $this->lang->line('Siswa') ?></th>
  138. <th>Q <?php echo $this->lang->line('SMS'); ?>SMS</th>
  139. <th><?php echo $this->lang->line('Website') ?></th>
  140. <th><?php echo $this->lang->line('Aksi') ?></th>
  141. </tr>
  142. </thead>
  143. </table>
  144. </div>
  145. </div>
  146. </div>
  147. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement