PHP 中的数据网格 [英] Data Grid in PHP

查看:42
本文介绍了PHP 中的数据网格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在使用 php 作为后端编程语言的 Web 应用程序中创建一个数据网格,该数据网格将从 MySQL 数据库对象(视图、存储过程)填充.最终用户应该能够编辑此数据网格中的数据,并且需要更新 MySQL 表中的数据.

I need to create a datagrid in a web application using php as the backend programming language, which will be populated from a MySQL database objects (views, stored procedures). The end user should be able to edit the data in this datagrid and the data in MySQL tables will need to get updated.

如果你能给我一些例子 - 教程、演示、项目以及如何使用这些例子的解释,这将是一个很大的帮助.

If you can give me some examples -tutrial, demos, project with explanation on how to use those with examples, it will be a great help.

推荐答案

您可以使用 http://phpgrid.com

$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");

$dg -> display();

示例可以在 http://phpgrid.com/example/

它易于使用且外观漂亮.

it's easy to use and looks pretty.

这篇关于PHP 中的数据网格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆