abstractindia

Bootgrid with php and mysql (query with joins)

Nov 29th, 2015
229
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 2.43 KB | None | 0 0
  1. <head>
  2. <!-- Bootstrap -->
  3.     <link href="css/bootstrap.css" rel="stylesheet" type="text/css">
  4.     <link href="css/customize.css" rel="stylesheet" type="text/css" media="screen">
  5.     <link rel="stylesheet" type="text/css" href="css/font-awesome.css">
  6.     <link rel="stylesheet" type="text/css" href="css/jquery.bootgrid.css">
  7.     <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
  8.     <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
  9.     <!--[if lt IE 9]>
  10.      <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
  11.      <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
  12.    <![endif]-->
  13. </head>
  14. <body>
  15. <div class="row">
  16. <div id="" class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
  17. <table id="grid-data" data-toggle="bootgrid" data-ajax="true" data-url="beneficiaries_json.php" class="table table-bordered table-responsive table-striped table-hover">
  18. <thead>
  19. <td data-column-id="StudentID" data-type="numeric" data-identifier="true" class="text-center col-lg-1">StudentID</th>
  20. <th data-column-id="Full Name" class="col-lg-2">Student's Full Name</th>
  21. <th data-column-id="Gender"class="text-center col-lg-1">Gender</th>
  22. <th data-column-id="CityName"class="text-center col-lg-1">City</th>
  23. <th data-column-id="CourseDescriptionShort"class="text-center col-lg-1">Course Title</th>
  24. <th data-column-id="Subject"class="text-center col-lg-2">Subject</th>
  25. <th data-column-id="Sum(scholarshipdetails.ScholarshipAwarded)"class="text-right col-lg-1">Scholarship Awarded</th>
  26. <th data-column-id="Sum(scholarshipdetails.HeldDeposit)"class="text-right col-lg-1">Deposit Witheld</th>
  27. </thead>
  28. </table>
  29. </div>
  30. </div>
  31.  
  32. <script src="js/jquery-1.11.2.min.js"></script>
  33. <!-- Include all compiled plugins (below), or include individual files as needed -->
  34. <script src="js/bootstrap.min.js"></script>
  35. <script src="js/bootstrap-hover-dropdown.js"></script>
  36. <script src="js/jquery.bootgrid.js"></script>
  37. <script src="js/jquery.bootgrid.fa.js"></script>
  38.  
  39. <script>
  40. $(document).ready(function() {
  41.       $('.js-activated').dropdownHover().dropdown();
  42. });
  43.    
  44. //$("#grid-basic").bootgrid();
  45. $("#grid-data").bootgrid({
  46.     ajax: true,
  47.     post: function ()
  48.     {
  49.         /* To accumulate custom parameter with the request object */
  50.         return {
  51.             id: "21"
  52.         };
  53.     },
  54.     url: "beneficiaries_json.php",
  55.    
  56. });
  57.    
  58.   </script>
  59. </body>
Advertisement
Add Comment
Please, Sign In to add comment