PDA

View Full Version : گفتگو: ساخت data grid در php با استفاده از یک کلاس؟!!!!!!!!!!!!!!!



h.rezaee
یک شنبه 09 تیر 1392, 00:57 صبح
سلام. در پی ساخت یک paginator برای سیستم مدیریت محتوا ، یک کلاس با نام class.eyedatagrid پیدا کردم که خیلی جالبه!!!!!!!!!! دقیقا چیزی که در دات نت وجود داره به شما امکان ساختش رو میده. یک دیتا گرید کامل. :لبخند::لبخند::لبخند::لبخند: البته دوستانی که با دات نت کار کردن میدونن دقیقا چیه ولی یک عکس هم ازش میزارم تا دوستانی هم که نمی دونن چیه بدونن. :چشمک:حالا بنده لینک دانلودش رو میزارم + documention + آدرس سایت که شما دوستان هم استفاده کنید و نظرتون رو بدین.منتظر نظراتون هستم.
آدرس سایتش : http://www.bluefrog.ca/2008/12/eyedatagrid-control/
آدرس demo کامل: http://browse.feedreader.com/c/Bluefrog-2/11639205
documention :

The Eyesis Data Grid Control is all you need when it comes to displaying data from a MySQL database in tabular format. No flashy dynamic updating or complex Javascript, and no countless ambiguous classes cluttering up your project. This class is simple, small, feature packed, and easy to implement with only six lines of code, don’t believe me? Check out the examples below!
There are plenty of PHP data grid controls out there, but none that could satisfy me. I use data grids on almost every web site I develop. They come in great for displaying all kinds of data. I developed this data grid to suit all my needs and more.
A few of the features include:


Filtering and searching capabilities
Ability to change column headers
Capable of displaying images
Ajax supported
Automatic row paging
Row selection
Supports MySQL database
Hide columns
Sort columns
Customizable look and feel through CSS
Can handle large data sets
Ability to add controls
Checkbox support
Specify column format types (such as percent, dollars, etc)
Tested working in Firefox 2 and 3, IE 6 and 7, Chrome, Safari 3, and Opera 9
PHP 5 only
Much more!

The above datagrid is built in only 6 lines of code!



// file: ex1.php
require 'class.eyemysqladap.inc.php';
require 'class.eyedatagrid.inc.php';

// Load the database adapter
$db = new EyeMySQLAdap('localhost', 'root', '', 'people');

$dg = new EyeDataGrid($db); // Load the datagrid class
// Fetch all rows and columns from the `people` table
$dg->setQuery("*", "people");

// Print the table
$dg->printTable();



You can even make the above example Ajax enabled with 1 line of code!

// file: ex1-ajax.php
require 'class.eyedatagrid.inc.php';

// Just call one function and your table is now totally Ajax enabled!
EyeDataGrid::useAjaxTable('ex1.php');





این هم فایلش + عکس :

imanitc
یک شنبه 09 تیر 1392, 07:20 صبح
من تقريبا 2 سال از اين ديتا گريد استفاده ميکنم توابع يعني متد هاي زيادي بهش اضافه کردم حتي براش اکسپورت اکسل و وورد هم گذاشتم در کل خيلي عاليه ولي بايد خودتون بهينه سازيش بکنيد

h.rezaee
یک شنبه 09 تیر 1392, 07:23 صبح
من تقريبا 2 سال از اين ديتا گريد استفاده ميکنم توابع يعني متد هاي زيادي بهش اضافه کردم حتي براش اکسپورت اکسل و وورد هم گذاشتم در کل خيلي عاليه ولي بايد خودتون بهينه سازيش بکنيد

خوب دوست عزیز اگه امکانش هست برای دانلود بزار تا بقیه دوستان هم ازش استفاده کنن.