本帖最后由 johnnywalkerzhu 于 2012-7-25 12:51 编辑
下载:http://www.phpclasses.org/package/7597-PHP-Display-and-edit-data-on-a-table-grid.html
演示 :http://www.funsail.cn/phpClass/simpleDataGrid/example.php
简易可绑定数据网格
该PHP类用于将数据在表格单元中展示或编辑;操作类似于Asp.net中的Datagrid对象。 操作方式,以对象数组形式保存变量,并赋予表格的每一列用于显示; 表格可以只读或可编辑两种模式展示, 可编辑模式下,每条记录都以表单输入框形式呈现,用户能够对其编辑并保存特定记录可以被隐藏; 可以添加自定义的列,或自定义表头。
原文
This class can display and edit data on a table grid.It takes an array of objects with variables that define the values to display on each column of a grid table.The table may be displayed in read-only mode, or in editable mode on which the records are presented as form inputs so the user can edit their values for posterior saving.Certain record fields columns may be hidden. Custom columns may also be added.The control allows you to:- Assigning a data set to it as an array - Receiving data after sending the form (internally store data)- Working in Edit mode or read-only- Show / hide columns- Show or hide header- Define the custom column header names
|