├── index.js
├── images
├── loading.gif
├── sprite.png
├── vert-bg.png
├── horiz-bg.png
├── square_dirty.gif
├── horiz-slider-bg.png
├── square-blue-tr.gif
├── square-red-rb.gif
├── square-red-tr.gif
└── vert-slider-bg.png
├── php
├── Content
│ └── css
│ │ ├── images
│ │ ├── tick.png
│ │ ├── cross.png
│ │ ├── sprite.png
│ │ ├── Refresh.gif
│ │ ├── horiz-bg.png
│ │ ├── loading.gif
│ │ ├── sort_asc.gif
│ │ ├── sort_desc.gif
│ │ ├── vert-bg.png
│ │ ├── page-last-gray.gif
│ │ ├── page-next-gray.gif
│ │ ├── page-prev-gray.gif
│ │ ├── vert-slider-bg.png
│ │ ├── horiz-slider-bg.png
│ │ └── page-first-gray.gif
│ │ └── pqgrid.min.css
├── database
│ ├── remote.php
│ └── index.php
├── sorting
│ ├── remote.php
│ └── index.php
├── include.php
├── paging
│ ├── remote.php
│ └── index.php
├── filtering
│ ├── remote.php
│ └── index.php
├── array
│ ├── remote.php
│ └── index.php
├── conf.php
├── sort_paging
│ ├── remote.php
│ └── index.php
├── error_handling
│ ├── remote.php
│ └── index.php
├── sort_filtering
│ ├── remote.php
│ └── index.php
├── filter_paging
│ ├── remote.php
│ └── index.php
└── filter_sort_paging
│ ├── remote.php
│ └── index.php
├── localize
├── pq-localize-pt-br.js
└── pq-localize-zh.js
├── bower.json
├── package.json
├── jszip-utils-0.0.2
├── MIT-License.txt
└── jszip-utils.min.js
├── jsZip-2.5.0
└── MIT-License.txt
├── pqgrid.ui.min.css
├── pqgrid.ui.dev.css
├── README.md
├── index.htm
├── array.htm
├── knockout
├── ko.pqgrid.min.js
└── ko.pqgrid.dev.js
├── json.htm
├── themes
├── brown
│ └── pqgrid.css
├── cocoa
│ └── pqgrid.css
├── gray
│ └── pqgrid.css
├── red
│ └── pqgrid.css
├── tan
│ └── pqgrid.css
├── violet
│ └── pqgrid.css
├── bootstrap
│ └── pqgrid.css
├── chocolate
│ └── pqgrid.css
├── crimson
│ └── pqgrid.css
├── indigo
│ └── pqgrid.css
├── purple
│ └── pqgrid.css
├── rosybrown
│ └── pqgrid.css
├── sandybrown
│ └── pqgrid.css
├── steelblue
│ └── pqgrid.css
└── Office
│ └── pqgrid.css
├── angular
├── ng.pqgrid.min.js
└── ng.pqgrid.dev.js
└── pqgrid.min.css
/index.js:
--------------------------------------------------------------------------------
1 | module.exports = require('./pqgrid.dev.js');
--------------------------------------------------------------------------------
/images/loading.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/paramquery/grid/HEAD/images/loading.gif
--------------------------------------------------------------------------------
/images/sprite.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/paramquery/grid/HEAD/images/sprite.png
--------------------------------------------------------------------------------
/images/vert-bg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/paramquery/grid/HEAD/images/vert-bg.png
--------------------------------------------------------------------------------
/images/horiz-bg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/paramquery/grid/HEAD/images/horiz-bg.png
--------------------------------------------------------------------------------
/images/square_dirty.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/paramquery/grid/HEAD/images/square_dirty.gif
--------------------------------------------------------------------------------
/images/horiz-slider-bg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/paramquery/grid/HEAD/images/horiz-slider-bg.png
--------------------------------------------------------------------------------
/images/square-blue-tr.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/paramquery/grid/HEAD/images/square-blue-tr.gif
--------------------------------------------------------------------------------
/images/square-red-rb.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/paramquery/grid/HEAD/images/square-red-rb.gif
--------------------------------------------------------------------------------
/images/square-red-tr.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/paramquery/grid/HEAD/images/square-red-tr.gif
--------------------------------------------------------------------------------
/images/vert-slider-bg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/paramquery/grid/HEAD/images/vert-slider-bg.png
--------------------------------------------------------------------------------
/php/Content/css/images/tick.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/paramquery/grid/HEAD/php/Content/css/images/tick.png
--------------------------------------------------------------------------------
/php/Content/css/images/cross.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/paramquery/grid/HEAD/php/Content/css/images/cross.png
--------------------------------------------------------------------------------
/php/Content/css/images/sprite.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/paramquery/grid/HEAD/php/Content/css/images/sprite.png
--------------------------------------------------------------------------------
/php/Content/css/images/Refresh.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/paramquery/grid/HEAD/php/Content/css/images/Refresh.gif
--------------------------------------------------------------------------------
/php/Content/css/images/horiz-bg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/paramquery/grid/HEAD/php/Content/css/images/horiz-bg.png
--------------------------------------------------------------------------------
/php/Content/css/images/loading.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/paramquery/grid/HEAD/php/Content/css/images/loading.gif
--------------------------------------------------------------------------------
/php/Content/css/images/sort_asc.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/paramquery/grid/HEAD/php/Content/css/images/sort_asc.gif
--------------------------------------------------------------------------------
/php/Content/css/images/sort_desc.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/paramquery/grid/HEAD/php/Content/css/images/sort_desc.gif
--------------------------------------------------------------------------------
/php/Content/css/images/vert-bg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/paramquery/grid/HEAD/php/Content/css/images/vert-bg.png
--------------------------------------------------------------------------------
/php/Content/css/images/page-last-gray.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/paramquery/grid/HEAD/php/Content/css/images/page-last-gray.gif
--------------------------------------------------------------------------------
/php/Content/css/images/page-next-gray.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/paramquery/grid/HEAD/php/Content/css/images/page-next-gray.gif
--------------------------------------------------------------------------------
/php/Content/css/images/page-prev-gray.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/paramquery/grid/HEAD/php/Content/css/images/page-prev-gray.gif
--------------------------------------------------------------------------------
/php/Content/css/images/vert-slider-bg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/paramquery/grid/HEAD/php/Content/css/images/vert-slider-bg.png
--------------------------------------------------------------------------------
/php/Content/css/images/horiz-slider-bg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/paramquery/grid/HEAD/php/Content/css/images/horiz-slider-bg.png
--------------------------------------------------------------------------------
/php/Content/css/images/page-first-gray.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/paramquery/grid/HEAD/php/Content/css/images/page-first-gray.gif
--------------------------------------------------------------------------------
/php/database/remote.php:
--------------------------------------------------------------------------------
1 | query($sql);
12 | $products = $stmt->fetchAll(PDO::FETCH_ASSOC);
13 |
14 | echo json_encode($products);
15 | ?>
16 |
--------------------------------------------------------------------------------
/localize/pq-localize-pt-br.js:
--------------------------------------------------------------------------------
1 | /**
2 | * @author fhelwanger
3 | */
4 | $.paramquery.pqGrid.regional["pt-br"] = {
5 | strLoading: "Carregando",
6 | strAdd: "Incluir",
7 | strEdit: "Editar",
8 | strDelete: "Excluir",
9 | strSearch: "Pesquisar",
10 | strNothingFound: "Não encontrado",
11 | strSelectedmatches: "Selecionado {0} de {1} resultados",
12 | strPrevResult: "Resultado Anterior",
13 | strNextResult: "Próximo Resultado"
14 | }
15 |
16 | $.paramquery.pqPager.regional['pt-br']={
17 | strPage: "Página {0} de {1}",
18 | strFirstPage: "Primera Página",
19 | strPrevPage: "Página Anterior",
20 | strNextPage: "Próxima Página",
21 | strLastPage: "Última Página",
22 | strRefresh: "Atualizar",
23 | strRpp: "Registros por página: {0}",
24 | strDisplay: "Mostrando {0} a {1} de {2} itens."
25 | }
26 |
--------------------------------------------------------------------------------
/php/sorting/remote.php:
--------------------------------------------------------------------------------
1 | query($sql);
22 | $products = $stmt->fetchAll(PDO::FETCH_ASSOC);
23 |
24 | echo json_encode($products);
25 | }
26 | ?>
27 |
--------------------------------------------------------------------------------
/bower.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "pqGrid",
3 | "description": "Data grid with spreadsheet features, row grouping, sorting, filtering, etc",
4 | "version": "3.5.1",
5 | "author": {
6 | "name": "Paramvir Singh Dhindsa",
7 | "email": "pdhindsa@paramquery.com",
8 | "url": "http://www.paramquery.com/"
9 | },
10 | "main": [
11 | "pqgrid.dev.js",
12 | "pqgrid.dev.css",
13 | "pqgrid.ui.dev.css"
14 | ],
15 | "keywords": [
16 | "grid",
17 | "excel",
18 | "datagrid",
19 | "table",
20 | "ajax",
21 | "ui",
22 | "sort",
23 | "i18n",
24 | "summary",
25 | "themeRoller",
26 | "freeze",
27 | "group",
28 | "search",
29 | "crud",
30 | "paging"
31 | ],
32 | "bugs": "https://github.com/paramquery/grid/issues",
33 | "dependencies": {
34 | "jquery": ">=1.7.0",
35 | "jqueryui": ">=1.11.4"
36 | }
37 | }
--------------------------------------------------------------------------------
/php/include.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | PQGrid with PHP
7 |
8 |
9 |
10 |
11 |
12 |
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/php/paging/remote.php:
--------------------------------------------------------------------------------
1 | query($sql);
15 | $total_Records = $stmt->fetchColumn();
16 |
17 | $skip = pageHelper($pq_curPage, $pq_rPP, $total_Records);
18 |
19 | $sql = "Select OrderID,CustomerName,ProductName,UnitPrice,Quantity,
20 | OrderDate,RequiredDate,ShippedDate,ShipCountry,Freight,ShipName,
21 | ShipAddress,ShipCity,ShipRegion,ShipPostalCode from invoices order by orderID limit ".$skip." , ".$pq_rPP;
22 | $stmt = $dbh->query($sql);
23 | $products = $stmt->fetchAll(PDO::FETCH_ASSOC);
24 |
25 | $sb = "{\"totalRecords\":" . $total_Records . ",\"curPage\":" . $pq_curPage . ",\"data\":".json_encode($products)."}";
26 | echo $sb;
27 | }
28 | ?>
--------------------------------------------------------------------------------
/php/filtering/remote.php:
--------------------------------------------------------------------------------
1 | prepare($sql);
26 | $stmt->execute(array($filterValue));
27 | $products = $stmt->fetchAll(PDO::FETCH_ASSOC);
28 | echo json_encode($products);
29 | ?>
30 |
--------------------------------------------------------------------------------
/php/array/remote.php:
--------------------------------------------------------------------------------
1 | "10248","CustomerName"=>"Vins et alcools Chevalier",
6 | "ProductName"=>"Mozzarella di Giovanni","UnitPrice"=>"34.8000","Quantity"=>"5",
7 | "OrderDate"=>"1996-07-04 00:00:00","RequiredDate"=>"1996-08-01 00:00:00","ShippedDate"=>"1996-07-16 00:00:00",
8 | "ShipCountry"=>"France","Freight"=>"32.3800","ShipName"=>"Vins et alcools Chevalier",
9 | "ShipAddress"=>"59 rue de l-Abbaye","ShipCity"=>"Reims","ShipRegion"=>"null","ShipPostalCode"=>"51100");
10 |
11 | $products[1] = array("OrderID"=>"10248","CustomerName"=>"Vins et alcools Chevalier",
12 | "ProductName"=>"Singaporean Hokkien Fried Mee","UnitPrice"=>"9.8000","Quantity"=>"10",
13 | "OrderDate"=>"1996-07-04 00:00:00","RequiredDate"=>"1996-08-01 00:00:00","ShippedDate"=>"1996-07-16 00:00:00",
14 | "ShipCountry"=>"France","Freight"=>"32.3800","ShipName"=>"Vins et alcools Chevalier",
15 | "ShipAddress"=>"59 rue de l-Abbaye","ShipCity"=>"Reims","ShipRegion"=>"null","ShipPostalCode"=>"51100");
16 |
17 | echo json_encode($products);
18 |
19 | ?>
20 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "pqgridf",
3 | "version": "3.5.1",
4 | "main": "index.js",
5 | "author": {
6 | "name": "Paramvir Dhindsa",
7 | "url": "http://www.paramquery.com/"
8 | },
9 | "license": "GNU GPL v3",
10 | "peerDependencies": {
11 | "jquery": ">=2.2.1",
12 | "@types/jquery": ">=2.2.1",
13 | "jquery-ui-pack": "^1.12.3",
14 | "@types/jqueryui": ">=1.12.1",
15 | "jszip": "2.5.0"
16 | },
17 | "keywords": [
18 | "datagrid",
19 | "grid",
20 | "angular grid",
21 | "jquery grid",
22 | "react grid",
23 | "vue grid"
24 | ],
25 | "files": [
26 | "/images",
27 | "/localize",
28 | "/themes",
29 | "GPL-LICENSE.txt",
30 | "changelog.txt",
31 | "index.js",
32 | "pqgrid.dev.js",
33 | "pqgrid.min.js",
34 | "pqgrid.dev.css",
35 | "pqgrid.min.css",
36 | "pqgrid.ui.dev.css",
37 | "pqgrid.ui.min.css",
38 | "readme.md"
39 | ],
40 | "devDependencies": {},
41 | "types": "pqgrid.d.ts",
42 | "dependencies": {}
43 | }
44 |
--------------------------------------------------------------------------------
/php/conf.php:
--------------------------------------------------------------------------------
1 | 'SET NAMES utf8',
13 | );
14 | $dbh = new PDO($dsn, DB_USERNAME, DB_PASSWORD, $options);
15 | return $dbh;
16 | }
17 | //check every column name
18 | function isValidColumn($dataIndx){
19 | if (preg_match('/^[a-z,A-Z]*$/', $dataIndx))
20 | {
21 | return true;
22 | }
23 | else
24 | {
25 | return false;
26 | }
27 | }
28 | function pageHelper(&$pq_curPage, $pq_rPP, $total_Records){
29 | $skip = ($pq_rPP * ($pq_curPage - 1));
30 |
31 | if ($skip >= $total_Records)
32 | {
33 | $pq_curPage = ceil($total_Records / $pq_rPP);
34 | $skip = ($pq_rPP * ($pq_curPage - 1));
35 | }
36 | return $skip;
37 | }
38 |
39 | ?>
40 |
--------------------------------------------------------------------------------
/jszip-utils-0.0.2/MIT-License.txt:
--------------------------------------------------------------------------------
1 | The MIT License
2 | ===============
3 |
4 | Copyright (c) 2014 Stuart Knightley, David Duponchel
5 |
6 | Permission is hereby granted, free of charge, to any person obtaining a copy
7 | of this software and associated documentation files (the "Software"), to deal
8 | in the Software without restriction, including without limitation the rights
9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 | copies of the Software, and to permit persons to whom the Software is
11 | furnished to do so, subject to the following conditions:
12 |
13 | The above copyright notice and this permission notice shall be included in
14 | all copies or substantial portions of the Software.
15 |
16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22 | THE SOFTWARE.
--------------------------------------------------------------------------------
/jsZip-2.5.0/MIT-License.txt:
--------------------------------------------------------------------------------
1 | The MIT License
2 | ===============
3 |
4 | Copyright (c) 2009-2014 Stuart Knightley, David Duponchel, Franz Buchinger, António Afonso
5 |
6 | Permission is hereby granted, free of charge, to any person obtaining a copy
7 | of this software and associated documentation files (the "Software"), to deal
8 | in the Software without restriction, including without limitation the rights
9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 | copies of the Software, and to permit persons to whom the Software is
11 | furnished to do so, subject to the following conditions:
12 |
13 | The above copyright notice and this permission notice shall be included in
14 | all copies or substantial portions of the Software.
15 |
16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22 | THE SOFTWARE.
--------------------------------------------------------------------------------
/pqgrid.ui.min.css:
--------------------------------------------------------------------------------
1 | /*!
2 | * ParamQuery Pro v3.5.0
3 | *
4 | * Copyright (c) 2012-2021 Paramvir Dhindsa (http://paramquery.com)
5 | * Released under GNU General Public License v3
6 | * http://paramquery.com/license
7 | *
8 | */
9 |
10 | div.pq-grid *{line-height:normal;font-family:inherit;font-size:inherit}.pq-grid .ui-icon{display:inline-block}.ui-icon.pq-col-sort-icon{vertical-align:bottom}.pq-slider-icon{top:4px}.pq-grid-top.ui-widget-header{font-weight:normal}.pq-grid-header-search-row{font-weight:normal}.pq-ui-button.ui-widget-header{background:transparent;border-width:0;border-radius:4px;margin:1px;padding:0 3px;cursor:pointer;font-size:16px}.pq-ui-button:hover,.pq-ui-button:focus{border-width:1px;margin:0;outline:0}.pq-grid-cell,.pq-grid-number-cell{padding:5px}.pq-grid-cell{border:1px solid transparent}.pq-grid-header-table>tbody>tr>.pq-grid-col:first-child,.pq-grid-table>tbody>tr>.pq-grid-col:first-child{border-left:0}.pq-grid-header-table.pq-no-right-border>tbody>tr>td:last-child,.pq-grid-table.pq-no-right-border>tbody>tr>td:last-child{border-right:0}.pq-grid-col{padding:5px;border-color:#cfcfcf}.pq-loading-bg{background:#ccc}.pq-grid-bottom select{color:initial}.pq-pager-input{color:initial;padding:0 1px;text-align:center;width:35px;margin-right:5px;border-width:1px}.pq-ui-button.disabled{opacity:.3}
--------------------------------------------------------------------------------
/php/sort_paging/remote.php:
--------------------------------------------------------------------------------
1 | query($sql);
21 | $total_Records = $stmt->fetchColumn();
22 |
23 | $skip = ($pq_rPP * ($pq_curPage - 1));
24 |
25 | if ($skip >= $total_Records)
26 | {
27 | $pq_curPage = ceil($total_Records / $pq_rPP);
28 | $skip = ($pq_rPP * ($pq_curPage - 1));
29 | }
30 |
31 | $sql = "Select OrderID,CustomerName,ProductName,UnitPrice,Quantity,
32 | OrderDate,RequiredDate,ShippedDate,ShipCountry,Freight,ShipName,
33 | ShipAddress,ShipCity,ShipRegion,ShipPostalCode from invoices order by ".$sortIndx." ".$sortDir.
34 | " limit ".$skip." , ".$pq_rPP;
35 |
36 | //echo $sql;
37 | $stmt = $dbh->query($sql);
38 | $products = $stmt->fetchAll(PDO::FETCH_ASSOC);
39 |
40 | $sb = "{\"totalRecords\":" . $total_Records . ",\"curPage\":" . $pq_curPage . ",\"data\":".json_encode($products)."}";
41 | echo $sb;
42 | }
43 | ?>
44 |
--------------------------------------------------------------------------------
/pqgrid.ui.dev.css:
--------------------------------------------------------------------------------
1 | /*!
2 | * ParamQuery Pro v3.5.0
3 | *
4 | * Copyright (c) 2012-2021 Paramvir Dhindsa (http://paramquery.com)
5 | * Released under GNU General Public License v3
6 | * http://paramquery.com/license
7 | *
8 | */
9 |
10 | div.pq-grid *{
line-height:normal;
font-family: inherit;
font-size: inherit;
}
.pq-grid .ui-icon{
display:inline-block;
}
.ui-icon.pq-col-sort-icon{
vertical-align: bottom;
}
.pq-slider-icon{
top:4px;
}
.pq-grid-top.ui-widget-header{
font-weight:normal;
}
.pq-grid-header-search-row{
font-weight:normal;
}
.pq-ui-button.ui-widget-header{
background: transparent;
border-width:0;
border-radius: 4px;
margin:1px;
padding:0 3px;
cursor:pointer;
font-size:16px;
}
.pq-ui-button > .ui-icon{
}
.pq-ui-button:hover,
.pq-ui-button:focus{
border-width:1px;
margin:0;
outline:none;
}
.pq-grid-table{
}
.pq-grid-cell, .pq-grid-number-cell{
padding: 5px;
}
.pq-grid-cell{
border:1px solid transparent;
}
.pq-grid-header-table > tbody > tr> .pq-grid-col:first-child,
.pq-grid-table > tbody > tr> .pq-grid-col:first-child
{
border-left:0;
}
.pq-grid-header-table.pq-no-right-border > tbody > tr> td:last-child,
.pq-grid-table.pq-no-right-border > tbody > tr> td:last-child
{
border-right:0;
}
.pq-grid-col{
padding: 5px;
border-color: #cfcfcf;
}
.pq-loading-bg{
background:#ccc;
}
.pq-grid-bottom select{
color: initial;
}
.pq-pager-input{
color: initial;
padding:0 1px;
text-align:center;
width:35px;
margin-right:5px;
border-width:1px;
}
.pq-ui-button.disabled{
opacity: 0.3;
}
--------------------------------------------------------------------------------
/php/error_handling/remote.php:
--------------------------------------------------------------------------------
1 | query($sql);
33 | $stmt = $dbh->prepare($sql);
34 | $stmt->execute(array($filterValue));
35 | $products = $stmt->fetchAll(PDO::FETCH_ASSOC);
36 | try{
37 | throw new Exception("gross error");
38 | }
39 | catch(Exception $ex){
40 | $error = array("error" => $ex->getMessage());
41 | //print_r($error);
42 | echo json_encode($error);
43 | exit;
44 | }
45 | echo json_encode($products);
46 | //}
47 | ?>
48 |
--------------------------------------------------------------------------------
/php/sort_filtering/remote.php:
--------------------------------------------------------------------------------
1 | query($sql);
33 | $stmt = $dbh->prepare($sql);
34 | $stmt->execute(array($filterValue));
35 | $products = $stmt->fetchAll(PDO::FETCH_ASSOC);
36 | try{
37 | throw new Exception("gross error");
38 | }
39 | catch(Exception $ex){
40 | $error = array("error" => $ex->getMessage());
41 | //print_r($error);
42 | echo json_encode($error);
43 | exit;
44 | }
45 | echo json_encode($products);
46 | //}
47 | ?>
48 |
--------------------------------------------------------------------------------
/php/filter_paging/remote.php:
--------------------------------------------------------------------------------
1 | prepare($sql);
27 | $stmt->execute(array($filterValue));
28 |
29 | $total_Records = $stmt->fetchColumn();
30 |
31 | $skip = pageHelper($pq_curPage, $pq_rPP, $total_Records);
32 |
33 | $sql = "Select OrderID,CustomerName,ProductName,UnitPrice,Quantity,
34 | OrderDate,RequiredDate,ShippedDate,ShipCountry,Freight,ShipName,
35 | ShipAddress,ShipCity,ShipRegion,ShipPostalCode from invoices ".
36 | $where.
37 | " order by OrderID limit ".$skip." , ".$pq_rPP;
38 |
39 | //$stmt = $dbh->query($sql);
40 | $stmt = $dbh->prepare($sql);
41 | $stmt->execute(array($filterValue));
42 |
43 | $products = $stmt->fetchAll(PDO::FETCH_ASSOC);
44 |
45 | $sb = "{\"totalRecords\":" . $total_Records . ",\"curPage\":" . $pq_curPage . ",\"data\":".json_encode($products)."}";
46 | echo $sb;
47 |
48 | ?>
49 |
--------------------------------------------------------------------------------
/jszip-utils-0.0.2/jszip-utils.min.js:
--------------------------------------------------------------------------------
1 | /*!
2 |
3 | JSZipUtils - A collection of cross-browser utilities to go along with JSZip.
4 |
5 |
6 | (c) 2014 Stuart Knightley, David Duponchel
7 | Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip-utils/master/LICENSE.markdown.
8 |
9 | */
10 | !function(a){"object"==typeof exports?module.exports=a():"function"==typeof define&&define.amd?define(a):"undefined"!=typeof window?window.JSZipUtils=a():"undefined"!=typeof global?global.JSZipUtils=a():"undefined"!=typeof self&&(self.JSZipUtils=a())}(function(){return function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);throw new Error("Cannot find module '"+g+"'")}var j=c[g]={exports:{}};b[g][0].call(j.exports,function(a){var c=b[g][1][a];return e(c?c:a)},j,j.exports,a,b,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;gprepare($sql);
34 | $stmt->execute(array($filterValue));
35 |
36 | $total_Records = $stmt->fetchColumn();
37 |
38 | $skip = pageHelper($pq_curPage, $pq_rPP, $total_Records);
39 |
40 | $sql = "Select OrderID,CustomerName,ProductName,UnitPrice,Quantity,
41 | OrderDate,RequiredDate,ShippedDate,ShipCountry,Freight,ShipName,
42 | ShipAddress,ShipCity,ShipRegion,ShipPostalCode from invoices ".
43 | $where.
44 | " order by ".$sortIndx. " ".$sortDir." limit ".$skip." , ".$pq_rPP;
45 |
46 | //$stmt = $dbh->query($sql);
47 | $stmt = $dbh->prepare($sql);
48 | $stmt->execute(array($filterValue));
49 |
50 | $products = $stmt->fetchAll(PDO::FETCH_ASSOC);
51 |
52 | $sb = "{\"totalRecords\":" . $total_Records . ",\"curPage\":" . $pq_curPage . ",\"data\":".json_encode($products)."}";
53 | echo $sb;
54 |
55 | ?>
56 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | jQuery grid plugin, also support Angular, Reactjs, Vuejs
2 | ========================================================
3 | [ParamQuery Grid](http://paramquery.com)
4 |
5 | Copyright (c) 2012-2021 Paramvir Dhindsa
6 |
7 | [Released under GPL v3 license](http://paramquery.com/license)
8 |
9 | ParamQuery grid is a lightweight javascript grid for Angular, jQuery, Reactjs, Vuejs
10 |
11 |
12 | 1. [Tutorial](http://paramquery.com/tutorial)
13 |
14 | 2. [API](http://paramquery.com/api)
15 |
16 | 3. [Demos or Examples](http://paramquery.com/demos)
17 |
18 | 4. [PHP Integration Tutorial](http://paramquery.com/tutorial/php)
19 |
20 | 5. [Angularjs bindings](http://angularjsgrid.com)
21 |
22 | 6. [Angularjs demos](http://angularjsgrid.com/demos)
23 |
24 |
25 | ### Features:
26 |
27 | ```
28 |
29 | Supports 100,000+ records.
30 |
31 | Support for Angular, Reactjs, Vuejs, Knockout, plain js.
32 |
33 | Copy paste to and from Excel.
34 |
35 | Autofill, drag to fill.
36 |
37 | State management.
38 |
39 | Edit history and tracking: undo and redo.
40 |
41 | Local, remote and custom sorting for common data formats like Integer, real numbers, Strings, dates, etc.
42 |
43 | Local and remote filtering with header filtering row interface.
44 |
45 | Paging with local or remote data.
46 |
47 | Column and row grouping and fixed summary row.
48 |
49 | Frozen rows & columns like Excel.
50 |
51 | Export to Excel(xlsx), HTML, JSON & CSV format.
52 |
53 | Nesting of grids and row details.
54 |
55 | Virtual Scrolling and Rendering with unlimited rows and columns support.
56 |
57 | Inline Editing: Batch editing, row editing, custom editors, multiline editing, validations.
58 |
59 | Hide/ show columns, resizable and reorderable columns through drag and drop.
60 |
61 | Theme support.
62 |
63 | i18n.
64 |
65 | Consistent look and functionality across all major browsers IE(11), Edge, Firefox, Chrome, Opera, etc
66 |
67 | Displays data source formats like HTML, Array, XML, JSON, etc.
68 |
69 | Can be used with any server side framework e.g. ASP.NET, MVC3, JSP, JSF, PHP, etc.
70 |
71 | Many more...
72 | ```
73 |
--------------------------------------------------------------------------------
/php/array/index.php:
--------------------------------------------------------------------------------
1 |
4 |
5 |
45 |
46 |
47 |
--------------------------------------------------------------------------------
/php/database/index.php:
--------------------------------------------------------------------------------
1 |
4 |
5 |
45 |
46 |