Skip to content

Instantly share code, notes, and snippets.

View gridphp's full-sized avatar

Abu gridphp

View GitHub Profile
@gridphp
gridphp / disabled-checkbox.css
Created November 7, 2025 07:35
CSS for disabled checkbox
.jqgrow input[type="checkbox"]:disabled:checked {
appearance: none;
-webkit-appearance: none;
-moz-appearance: none;
width: 16px;
height: 16px;
border: 2px solid #4CAF50;
border-radius: 3px;
background-color: #4CAF50;
position: relative;
@gridphp
gridphp / select2-tags-n2n.php
Last active September 19, 2025 11:43
Companies and Interests (Many-to-Many) GridPHP Sample Grid - gridphp.com
<?php
/**
* PHP Grid Component
*
* @author Abu Ghufran <gridphp@gmail.com> - http://www.phpgrid.org
* @version 2.0.0
* @license: see license.txt included in package
*/
// -- DB SCRIPT --
@gridphp
gridphp / custom-number-formatter.php
Created August 27, 2025 15:28
Custom number formatter showing 0.00 to blank, Line 31-32 and 56-78
<?php
/**
* PHP Grid Component
*
* @author Abu Ghufran <gridphp@gmail.com> - http://www.phpgrid.org
* @version 2.0.0
* @license: see license.txt included in package
*/
include_once("../../config.php");
@gridphp
gridphp / index.php
Last active June 23, 2025 21:04
Single row display on the grid
<?php
/**
* PHP Grid Component
*
* @author Abu Ghufran <gridphp@gmail.com> - http://www.phpgrid.org
* @version 2.0.0
* @license: see license.txt included in package
*/
include_once("../../config.php");
@gridphp
gridphp / google-map-iframe.php
Created April 17, 2025 17:41
Google Maps integration with Gridphp - gridphp.com
<?php
/**
* PHP Grid Component
*
* @author Abu Ghufran <gridphp@gmail.com> - http://www.phpgrid.org
* @version 2.0.0
* @license: see license.txt included in package
*/
// include db config
@gridphp
gridphp / Home.php
Last active March 28, 2025 03:24
CodeIgniter 4 - Demo Controller Code (app/Controllers/Home.php, Line 9-28) & View Code (app/Views/welcome_message.php, line 234-244)
<?php
namespace App\Controllers;
class Home extends BaseController
{
public function index()
{
$db_conf = array();
$db_conf["type"] = "mysqli"; // mysql,oci8(for oracle),mssql,postgres,sybase
@gridphp
gridphp / wp-demo-snippet-latest.php
Last active January 27, 2025 06:54
Wordpress Grid 4 PHP Framework Integration - Sample Snippet tested with Wordpress 6.4.3, https://www.gridphp.com
/**
* Grid 4 PHP Framework
*
* @author Abu Ghufran <gridphp@gmail.com> - https://www.gridphp.com
* @version 3
* @date 09-Aug-2024
* @license: see license.txt included in package
*/
/*
<?php
/**
* PHP Grid Component
*
* @author Abu Ghufran <gridphp@gmail.com> - http://www.phpgrid.org
* @version 2.0.0
* @license: see license.txt included in package
*/
include_once("../../config.php");
@gridphp
gridphp / index.php
Created December 8, 2024 14:59
Showing Lock / Unlock Icon based on row data - screenshot: https://i.imgur.com/N5F14y9.png
<?php
/**
* PHP Grid Component
*
* @author Abu Ghufran <gridphp@gmail.com> - http://www.phpgrid.org
* @version 2.0.0
* @license: see license.txt included in package
*/
include_once("../../config.php");
<?php
/**
* PHP Grid Component
*
* @author Abu Ghufran <gridphp@gmail.com> - https://www.gridphp.com
* @version 2.8.2
* @license: see license.txt included in package
*/
/*