Index
Examples
Download
Document
About us
Language:
Powered by PhpGrid | Template designed by Redline(Spinz )
Document
Sample
basic:One SQL staement
basic:Specify the table name and field name
basic:sql query
basic:Display Control
basic:Hide rows
basic:Form
basic:Access control
general:Form field type
general:Form the column control
general:Additional properties of the form fields
general:Validation
general:WYSIWYG editor,
general:Display more than one grid
general:Replacement of the skin
advanced:Customize the display data
advanced:Custom form fields
advanced:Overloaded form
Links
Code:
tables = "`customer`"; //aim to-> SELECT `cus_id` ,`cus_name`,`cus_address`,`cus_phone` FROM `customer` $gridObj->fields = array("cus_id","cus_name","cus_address","cus_phone"); $gridObj->fieldDisplays = array("cus_name"=>"Customer's name","cus_address"=>"Address","cus_phone"=>"Phone"); $gridObj->title = "List of customer"; $gridHtml = $gridObj->display(); //second $viewObj = new Dataview(); $viewObj->sql = "SELECT * FROM `customer` left join `user` on user_id=cus_userid"; $viewObj->fieldDisplays = array("cus_name"=>"Customer","user_name"=>"User","cus_pic"=>"Pictrue","cus_address"=>"Address","cus_phone"=>"Phone"); $viewHtml = $viewObj->display(); ?>
Customers
Click here to run