Skip to content

Instantly share code, notes, and snippets.

View gridphp's full-sized avatar

Abu gridphp

View GitHub Profile
@gridphp
gridphp / master-detail-bs5.php
Created August 26, 2023 21:30
Master Detail with Bootstrap5 css
<?php
/**
* PHP Grid Component
*
* @author Abu Ghufran <[email protected]> - http://www.phpgrid.org
* @version 2.0.0
* @license: see license.txt included in package
*/
// include db config
@gridphp
gridphp / toolbar-top-paging.php
Last active March 25, 2024 18:27
Pagination on top toolbar, Line 28,29 and 51,52
<?php
/**
* PHP Grid Component
*
* @author Abu Ghufran <[email protected]> - http://www.phpgrid.org
* @version 2.0.0
* @license: see license.txt included in package
*/
include_once("../../config.php");
@gridphp
gridphp / master-detail-ajax.php
Created March 27, 2023 15:19
Load different detail grid structure using ajax
<?php
/**
* PHP Grid Component
*
* @author Abu Ghufran <[email protected]> - http://www.phpgrid.org
* @version 2.0.0
* @license: see license.txt included in package
*/
// include db config
<?php
/**
* PHP Grid Component
*
* @author Abu Ghufran <[email protected]> - http://www.phpgrid.org
* @version 2.0.0
* @license: see license.txt included in package
*/
// include db config
@gridphp
gridphp / grid-height.php
Last active April 19, 2024 04:19
Set grid height based on parent container
<?php
/**
* PHP Grid Component
*
* @author Abu Ghufran <[email protected]> - http://www.phpgrid.org
* @version 2.0.0
* @license: see license.txt included in package
*/
include_once("../../config.php");
@gridphp
gridphp / select-row-onload.php
Created October 20, 2022 20:29
Select rows onload based on column value
<?php
/**
* PHP Grid Component
*
* @author Abu Ghufran <[email protected]> - http://www.phpgrid.org
* @version 2.0.0
* @license: see license.txt included in package
*/
include_once("../../config.php");
@gridphp
gridphp / web-signature.php
Last active May 31, 2023 20:13
Demo to integrate Web Signature Plugin: SignaturePad, 100-136: Main integration code, 176: JS api inclusion
<?php
/**
* PHP Grid Component
*
* @author Abu Ghufran <[email protected]> - https://www.gridphp.com
* @version 2.8.2
* @license: see license.txt included in package
*/
// include db config
@gridphp
gridphp / fx_get_dropdown
Created August 11, 2022 07:29
FX Temp - 2.8.1
fx_get_dropdown = function (o,field,for_search_bar)
{
// dont process hidden elements, removed for select2 dependent
// if (!jQuery(o).is(":visible"))
// return;
if (for_search_bar)
{
// for inline edit and dialog edit
var sel = '.ui-search-toolbar select[name='+field+']';
@gridphp
gridphp / index.php
Created June 28, 2022 07:06
Default grid4PHP Generated Code from demos\editing\index.php
<?php
/**
* PHP Grid Component
*
* @author Abu Ghufran <[email protected]> - http://www.phpgrid.org
* @version 2.0.0
* @license: see license.txt included in package
*/
include_once("../../config.php");
@gridphp
gridphp / config.php
Created June 27, 2022 07:45
Grid4PHP MySQL Configuration.
<?php
// Grid4PHP Database Connection Settings.
// Set of constants defined.
define("PHPGRID_DBTYPE","mysqli"); // Replace mysqli with one of these: mysqli,oci8 (for oracle),mssqlnative,postgres,sybase.
define("PHPGRID_DBHOST","localhost"); // The Database Host
define("PHPGRID_DBUSER","root"); // The Database User
define("PHPGRID_DBPASS","dbpass123"); // The Database Password
define("PHPGRID_DBNAME","griddemo"); // The Database Name