Advertisement
pebriana

data_pequrban

Sep 8th, 2014
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.18 KB | None | 0 0
  1. /* paste di header.php */
  2.  
  3. <?php if (is_page(622)) { ?>
  4.  
  5. <script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
  6. <script src="//cdn.datatables.net/1.10.2/js/jquery.dataTables.min.js"></script>
  7.  
  8. <link rel="stylesheet" type="text/css" href="//cdn.datatables.net/plug-ins/725b2a2115b/integration/foundation/dataTables.foundation.css" />
  9. <script src="//cdn.datatables.net/plug-ins/725b2a2115b/integration/foundation/dataTables.foundation.js"></script>
  10.  
  11. <?php } ?>
  12.  
  13.  
  14. /* data pequrban...
  15. login wp admin > create page  ~~ contoh page ID 622
  16. create file page-622.php simpan di folder themes..
  17. */
  18.  
  19. <?php
  20. /*
  21. Template Name: Data Pekurban 1435
  22. */
  23. ?>
  24. <?php get_header(); ?>
  25. <!-- Content -->
  26. <div id="full-width-container">
  27.     <div id="full-width-title">
  28.         <h2>Data Kurban Tahun <strong>1435 H </strong></h2>
  29.     </div>
  30.  
  31.     <div id="full-width-content">  
  32.         <table id="example" class="display" cellspacing="0" width="100%">
  33.             <thead>
  34.                 <tr>
  35.                     <!--<th>ID</th>-->
  36.                     <th width="100px;">No Order</th>
  37.                     <th width="200px;">Nama Donatur</th>
  38.                     <th>Nama Pequrban</th>
  39.                     <th>Tipe Hewan</th>
  40.                 </tr>
  41.             </thead>
  42.      
  43.             <tfoot>
  44.                 <tr>
  45.                     <!--<th>ID</th>-->
  46.                     <th>No Order</th>
  47.                     <th>Nama Donatur</th>
  48.                     <th>Nama Pequrban</th>
  49.                     <th>Tipe Hewan</th>
  50.                 </tr>
  51.             </tfoot>
  52.         </table>
  53.  
  54.  
  55.  
  56.         <script type="text/javascript">
  57.         $(document).ready(function() {
  58.             $('#example').dataTable( {
  59.                 "ajax": "//simaq.c27g.com/1435/index.php?r=report/other/json",
  60.                 "deferRender": true,
  61.                 "columns": [
  62.                     //{ "data": "id" },
  63.                     { "data": "order_no" },
  64.                     { "data": "donor_name" },
  65.                     { "data": "nama_pequrban" },
  66.                     { "data": "tipe_hewan" }
  67.                 ]
  68.             } );
  69.         } );
  70.         </script>
  71.     </div>
  72. </div>
  73.  
  74. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement