Permalink
Browse files

php examples

  • Loading branch information...
1 parent 8a9cb1c commit b62cd018da806086e2c4c38d2b147b58ef6136f5 @paramquery committed Jun 22, 2014
Showing with 16 additions and 22 deletions.
  1. +9 −18 php/array/{index.htm → index.php}
  2. +5 −3 php/database/index.php
  3. +2 −1 php/sorting/index.php
@@ -1,17 +1,6 @@
-<!DOCTYPE html>
-<html lang="en">
- <head>
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
-<title>PHP Grid Lesson1</title>
-
-<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.9.2/themes/base/jquery-ui.css" />
-<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
-<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.9.2/jquery-ui.min.js"></script>
-
-<link rel="stylesheet" href="../../Content/css/pqgrid.min.css" >
-
-<script src="../../Content/js/pqgrid.min.js"></script>
+<?php
+require_once '../include.php';
+?>
<script class="ppjs">
$(function () {
@@ -33,19 +22,21 @@
{ title: "Shipping Postal Code", width: 130, dataIndx: "ShipPostalCode" }
];
var dataModel = {
- location: "remote",
- paging: "remote",
+ location: "remote",
dataType: "JSON",
method: "GET",
- url :"remote.php",
+ getUrl : function () {
+ return { url: 'remote.php'};
+ },
getData: function ( response ) {
return { data: response };
}
}
var grid1 = $("div#grid_php").pqGrid({ width: 900, height: 400,
dataModel: dataModel,
- colModel: colM,
+ colModel: colM,
+ bottomVisible: false,
title: "Shipping Orders"
});
});
@@ -22,18 +22,20 @@
{ title: "Shipping Postal Code", width: 130, dataIndx: "ShipPostalCode" }
];
var dataModel = {
- location: "remote",
- paging: "remote",
+ location: "remote",
dataType: "JSON",
method: "GET",
- url :"remote.php",
+ getUrl : function () {
+ return { url: 'remote.php'};
+ },
getData: function ( response ) {
return { data: response };
}
}
var grid1 = $("div#grid_php").pqGrid({ width: 900, height: 400,
dataModel: dataModel,
+ bottomVisible: false,
colModel: colM,
title: "Shipping Orders"
});
@@ -43,7 +43,8 @@
var grid1 = $("div#grid_php").pqGrid({ width: 900, height: 400,
dataModel: dataModel,
- colModel: colM,
+ colModel: colM,
+ bottomVisible: false,
title: "Shipping Orders"
});
});

0 comments on commit b62cd01

Please sign in to comment.