Theme Archives | phpGrid - PHP Datagrid Create PHP grids in minutes, not hours. Fri, 06 Dec 2024 03:57:13 +0000 en-US hourly 1 CodeProjecthttps://wordpress.org/?v=7.0.3 129966043 set_grid_style() https://phpgrid.com/documentation/set_grid_style/ Tue, 27 Apr 2021 00:24:07 +0000 https://phpgrid.com/?p=9699 * Currently only supported in the commercial licenses  set_grid_style() is a helper function for simple style update for header background, foreground, its font size, and body font size. Parameters: $parameter 1: header background color $parameter 2: header foreground color $parameter 3: header font size $parameter 4: body font size Description: helper function for simple style […]

The post set_grid_style() appeared first on phpGrid - PHP Datagrid.

]]>
* Currently only supported in the commercial licenses 

set_grid_style() is a helper function for simple style update for header background, foreground, its font size, and body font size.

  • Parameters:
    • $parameter 1: header background color
    • $parameter 2: header foreground color
    • $parameter 3: header font size
    • $parameter 4: body font size
  • Description:
    • helper function for simple style update for header background, foreground, its font size, and body font size.
  • Remark:
    • This function is intended for users who are only new to CSS to provide very basic color and font style update.
    • To further customize the grid, it is recommended to use an alternative theme or simply use CSS.
  • Example:
1
$dg->set_grid_style('#ff2288', 'white', '16px', '13px');

The post set_grid_style() appeared first on phpGrid - PHP Datagrid.

]]>
9699
THEME global constant https://phpgrid.com/documentation/theme-global-constant/ Sat, 12 Oct 2013 18:11:57 +0000 http://phpgrid.com/?p=2621 Available starting phpGrid version 6, you can set a global constant “THEME” in conf.php to change all of your datagrid themes without calling set_theme() method individually. 12// set a global theme in conf.php (version 6+) define('THEME', 'bootstrap'); Both Bootstrap 3 and 4 (7.4.5+) themes are now supported with ‘bootstrap‘ or ‘bootstrap4‘ The premium themes are […]

The post THEME global constant appeared first on phpGrid - PHP Datagrid.

]]>
Available starting phpGrid version 6, you can set a global constant “THEME” in conf.php to change all of your datagrid themes without calling set_theme() method individually.

1
2
// set a global theme in conf.php (version 6+)
define('THEME', 'bootstrap');

Both Bootstrap 3 and 4 (7.4.5+) themes are now supported with ‘bootstrap‘ or ‘bootstrap4

The premium themes are currently available in phpGrid commercial licenses.

The post THEME global constant appeared first on phpGrid - PHP Datagrid.

]]>
2621
Theme Roller * https://phpgrid.com/example/theme-roller/ Thu, 16 Sep 2010 23:31:58 +0000 http://64.38.236.7/?p=517 * Please note this feature is only available in paid versions. ** Premium Themes are now available to commercial licenses customers The overall look and feel of the phpGrid can be easily changed using set_theme() method. The theme elements are completely customizable through CSS. Theme files, css and images, are stored in css folder. 12345678910111213141516171819202122232425262728293031323334353637// […]

The post Theme Roller * appeared first on phpGrid - PHP Datagrid.

]]>
* Please note this feature is only available in paid versions.
** Premium Themes are now available to commercial licenses customers

The overall look and feel of the phpGrid can be easily changed using set_theme() method. The theme elements are completely customizable through CSS. Theme files, css and images, are stored in css folder.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// Always include namespace and conf.php on TOP of the script.
use phpCtrl\C_DataGrid;
require_once("/file/path/to/conf.php");  

$dg = new C_DataGrid("SELECT * FROM orders", "orderNumber", "orders");

// change column titles
$dg->set_col_title("orderNumber", "Order No.");
$dg->set_col_title("orderDate", "Order Date");
$dg->set_col_title("shippedDate", "Shipped Date");
$dg->set_col_title("customerNumber", "Customer No.");
 
// hide a column
$dg -> set_col_hidden("requiredDate");

// change default caption
$dg -> set_caption("Orders List");

// set export type
$dg -> enable_export('EXCEL');

// enable integrated search
$dg -> enable_search(true);

// set height and weight of datagrid
$dg -> set_dimension(800, 600);

// increase pagination size to 40 from default 20
// $dg -> set_pagesize(40);

// use vertical scroll to load data
$dg -> set_scroll(true);

// change theme
$dg -> set_theme('dot-luv');
 
$dg -> display();

See Live Example!

The post Theme Roller * appeared first on phpGrid - PHP Datagrid.

]]>
517
set_theme() https://phpgrid.com/documentation/set_theme/ Wed, 15 Sep 2010 19:29:00 +0000 http://64.38.236.7/?p=471 * Premium themes are currently available in phpGrid commercial licenses.   Parameter(s): $theme_name: Theme name Description: This is the phpGrid “Theme Roller”. phpGrid bundles the following themes from jQuery UI: dot-luv excite-bike flick overcast pepper-grinder redmond smoothness start ui-darkness ui-lightness aristo ————– (Premium theme) * cobalt ————– (Premium theme) * cobalt-flat ——— (Premium theme) * […]

The post set_theme() appeared first on phpGrid - PHP Datagrid.

]]>
* Premium themes are currently available in phpGrid commercial licenses.

 

Note: starting version 6, you can set a global constant THEME in conf.php to change all of your datagrid themes.
X
  • Parameter(s):
    • $theme_name: Theme name
  • Description:
    • This is the phpGrid “Theme Roller”. phpGrid bundles the following themes from jQuery UI:
      • dot-luv
      • excite-bike
      • flick
      • overcast
      • pepper-grinder
      • redmond
      • smoothness
      • start
      • ui-darkness
      • ui-lightness
      • aristo ————– (Premium theme) *
      • cobalt ————– (Premium theme) *
      • cobalt-flat ——— (Premium theme) *
      • bootstrap ———– (Premium theme) *
    • The default theme is ‘start‘.
  • Remarks:
    • Both Bootstrap 3 and 4 (7.4.5+) themes are now supported with ‘bootstrap‘ or ‘bootstrap4
    • Bootstrap 5 theme is supported in version 7.5.5 with bootstrap5
  • Example:
1
$dg -> set_theme('flick');

The post set_theme() appeared first on phpGrid - PHP Datagrid.

]]>
471