Bagosep

View CI

Sep 8th, 2017
109
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. $this->load->view("header");
  3. ?>
  4.  
  5. <div class="content-wrapper" style="min-height: 901px;">
  6. <!-- Content Header (Page header) -->
  7. <section class="content-header">
  8. <h1>
  9. Dashboard
  10. </h1>
  11. <ol class="breadcrumb">
  12. <li><a href="#"><i class="fa fa-dashboard"></i> Menu</a></li>
  13. <li class="active">Dashboard</li>
  14. </ol>
  15. </section>
  16. <!-- Main content -->
  17. <section class="content">
  18. <div class="row">
  19. <div class="col-md-4 col-sm-6 col-xs-12">
  20. <div class="info-box bg-red">
  21. <span class="info-box-icon"><i style="margin-top:20px;" class="fa fa-male"></i></span>
  22.  
  23. <div class="info-box-content">
  24. <span class="info-box-text">Siswa Laki - Laki</span>
  25. <span class="info-box-number"><!-- <?php ($cowok->cowok); ?> --></span>
  26. </div>
  27. <!-- /.info-box-content -->
  28. </div>
  29. <!-- /.info-box -->
  30. </div>
  31. <!-- /.col -->
  32. <div class="col-sm-4 col-sm-6 col-xs-12">
  33. <div class="info-box bg-aqua">
  34. <span class="info-box-icon">
  35. <i style="margin-top:20px;" class="fa fa-male"></i>
  36. <i style="margin-top:20px;" class="fa fa-female"></i>
  37. </span>
  38.  
  39. <div class="info-box-content">
  40. <span class="info-box-text">Total Siswa</span>
  41. <span class="info-box-number"><!-- <?php ($total->total); ?> --></span>
  42. </div>
  43. <!-- /.info-box-content -->
  44. </div>
  45. <!-- /.info-box -->
  46. </div>
  47. <!-- /.col -->
  48. <div class="col-sm-4 col-sm-6 col-xs-12">
  49. <div class="info-box bg-green">
  50. <span class="info-box-icon"><i style="margin-top:20px;" class="fa fa-female"></i></span>
  51.  
  52. <div class="info-box-content">
  53. <span class="info-box-text">Siswa Perempuan</span>
  54. <span class="info-box-number"><!-- <?php ($cewek->cewek); ?> --></span>
  55. </div>
  56. <!-- /.info-box-content -->
  57. </div>
  58. <!-- /.info-box -->
  59. </div>
  60. <!-- /.col -->
  61. </div>
  62.  
  63. <div class="box">
  64. <div class="box-header">
  65. <div class="row">
  66. <div class="col-sm-6">
  67. <i class="fa fa-graduation-cap"></i>
  68. <h3 class="box-title">Table Siswa </h3>
  69. </div>
  70. <div class="col-sm-6">
  71. <div class="col-sm-offset-8">
  72. <td>
  73. <a href="<?php echo site_url('main/insert');?>"><button type="button" class="btn btn-block btn-success btn-flat" style="width: 150px;">
  74. <i class="fa fa-plus"></i> Tambah Siswa</button></a>
  75. </td>
  76. </div>
  77. </div>
  78. </div>
  79. </div>
  80. <!-- /.box-header -->
  81. <div class="box-body">
  82. <div id="example1_wrapper" class="dataTables_wrapper form-inline dt-bootstrap">
  83. <div class="row"><div class="col-sm-6">
  84. <div class="dataTables_length" id="example1_length">
  85. <form method="get">
  86. <!-- -->
  87. </form>
  88. </div>
  89. </div>
  90. <div class="col-sm-6">
  91. <div id="example1_filter" class="dataTables_filter">
  92. <div class="col-sm-offset-6">
  93. <!--<input type="search" class="form-control input-sm" placeholder="" aria-controls="example1">-->
  94. <form action="" method="get">
  95. <label>Search:
  96. <input class="form-control input-sm" type="text" name="q" placeholder="">
  97. </label>
  98. </form>
  99. </div>
  100. </div>
  101. </div>
  102. </div>
  103. <div class="row">
  104. <div class="col-sm-12">
  105. <div style="overflow-x:auto;">
  106. <table id="example1" class="table table-bordered table-striped dataTable" role="grid" aria-describedby="example1_info">
  107. <thead>
  108. <tr role="row">
  109. <th class="sorting_asc" tabindex="0" aria-controls="example1" rowspan="1" colspan="1" aria-sort="ascending" aria-label="Foto: activate to sort column descending" style="width: 120px;">Foto</th>
  110. <th class="sorting_asc" tabindex="0" aria-controls="example1" rowspan="1" colspan="1" aria-sort="ascending" aria-label="NIS: activate to sort column descending" style="width: 120px;">NIS</th>
  111. <th class="sorting" tabindex="0" aria-controls="example1" rowspan="1" colspan="1" aria-label="Nama: activate to sort column ascending" style="width: 224px;">Nama</th>
  112. <th class="sorting" tabindex="0" aria-controls="example1" rowspan="1" colspan="1" aria-label="Tanggal Lahir: activate to sort column ascending" style="width: 120px;">Tanggal Lahir</th>
  113. <th class="sorting" tabindex="0" aria-controls="example1" rowspan="1" colspan="1" aria-label="Jenis Kelamin: activate to sort column ascending" style="width: 140px;">Jenis Kelamin</th>
  114. <th class="sorting" tabindex="0" aria-controls="example1" rowspan="1" colspan="1" aria-label="Alamat: activate to sort column ascending" style="width: 220px;">Alamat</th>
  115. <th class="sorting" tabindex="0" aria-controls="example1" rowspan="1" colspan="2" aria-label="Action: activate to sort column ascending" style="width: 100px;">Action</th>
  116. </tr>
  117. </thead>
  118. <tbody>
  119. <!-- <?php
  120. // while($row = $results->data->fetchObject()) {
  121. // $hapus = true;
  122. // echo '<tr>';
  123. // echo '<td><img src = "../file/'.$row->foto_profil.'" style="width:80px;height:80px; border-radius: 30%; margin-left:10px;" ></td><td> '.$row->nis.'</td> <td>'.$row->nama.'</td> <td>'.date('d-m-Y', strtotime($row->tgl_lahir)).'</td> <td>'.$row->jenis_kelamin.'</td><td>'.$row->alamat.'</td>
  124. // <td>
  125.  
  126. // <a href="edit_siswa.php?nis='.$row->nis.'">
  127. // <button type="button" class="btn btn-md btn-info btn-flat">
  128. // <i class="fa fa-pencil"></i></button></a>
  129. // </td>
  130. // <td>
  131. // <a href="../core/siswa.php?nis='.$row->nis.'&&hapus='.$hapus.'">
  132. // <button type="button" name="delete" value="delete" class="btn btn-md btn-danger btn-flat" >
  133. // <i class="fa fa-times"></i></button>
  134.  
  135. // </td>';
  136. // echo '</tr>';
  137. // }
  138. ?> -->
  139.  
  140. <?php
  141.  
  142. foreach ($data->result_array() as $siswa)
  143. { ?>
  144. <tr>
  145. <td><?php echo '<img src = "<?php echo base_url()/file/'.$siswa['foto'].'" style="width:80px;height:80px; border-radius: 30%; margin-left:10px;" >'?></td>
  146. <td><?php echo $siswa['nis']; ?></td>
  147. <td><?php echo $siswa['nama']; ?></td>
  148. <td><?php echo $siswa['tgl_lahir']; ?></td>
  149. <td><?php echo $siswa['jenis_kelamin']; ?></td>
  150. <td><?php echo $siswa['alamat']; ?></td>
  151.  
  152. </tr>
  153. }
  154. ?>
  155. </tbody>
  156. <tfoot>
  157. <tr>
  158. <th rowspan="1" colspan="1">Foto</th>
  159. <th rowspan="1" colspan="1">NIS</th>
  160. <th rowspan="1" colspan="1">Nama</th>
  161. <th rowspan="1" colspan="1">Tanggal Lahir</th>
  162. <th rowspan="1" colspan="1">Jenis Kelamin</th>
  163. <th rowspan="1" colspan="1">Alamat</th>
  164. <th rowspan="1" colspan="2">Action</th>
  165. </tr>
  166. </tfoot>
  167. </table>
  168. </div>
  169. </div>
  170. </div>
  171. <form action="" method="get">
  172. <div class="row">
  173. <div class="col-sm-5">
  174. <div class="dataTables_info" id="example1_info" role="status" aria-live="polite">
  175.  
  176. <span class="pagination-info" style="margin-left: 20px;"><!-- <?php echo "Showing ". (( $results->total == 0 ) ? 0 : (($results->page-1)*$results->limit)+1) ." to ". (($results->page*$results->limit > $results->total) ? $results->total : $results->page*$results->limit ) ." of ". $results->total ." rows"; ?> --></span>
  177.  
  178. </div>
  179. </div>
  180. <div class="col-sm-7">
  181. <div class="dataTables_paginate paging_simple_numbers" id="example1_paginate">
  182. <!--<div class="col-sm-offset-5">-->
  183. <div class="pull-right pagination" style="margin-right: 20px;">
  184. <!-- <?php echo $Paginator->createLinks( $links); ?> -->
  185. </div>
  186.  
  187. </div>
  188. </div>
  189. </div>
  190. </form>
  191. </div>
  192. </div>
  193. <!-- /.box-body -->
  194. </div>
  195.  
  196. </section>
  197. <!-- /.content -->
  198. </div>
  199.  
  200. <?php
  201. $this->load->view("footer.php");
  202. ?>
RAW Paste Data