Freelance Soft PHP Ajax Grid

PHP Ajax Grid - Demo: Update + Combos

Cities

Constructor:

 

$ucGrid = AjaxGrid::create(

         "ucGrid",

         array(    new DBQueryDescriptor("city",

                                array("ID","Name", "Population","PeopleIs")),

                     new DBQueryDescriptor("peopleis",

                                array("ID","Description"),

                                DBQueryDescriptor::$INNER_JOIN,

                                'peopleis.ID = city.PeopleIs')),

         array(    "Actions" => new ColumnMapped($actionsFormat,

                                            array("city.ID","city.ID"),false,'5%'),

                     "Pople Is" => new ColumnComboMapped($comboFormat,

                                            "peopleis","peopleis.ID","peopleis.Description",

                                            "peopleis.ID",array("city.ID"),

                                            "peopleis.Description"),

                     "Name" => new ColumnMapped($nameFormat,

                                            array("city.ID", "city.Name"), true),

                     "Population" => new ColumnMapped($populationFormat,

                                            array("city.Population"), true)));

    Next Last
Grid by fs
Actions Pople Is Name Population
Edit Delete
93897
Edit Delete
93346
Edit Delete
93121
Edit Delete
92779
Edit Delete
91999
Edit Delete
91779
Edit Delete
91777
Edit Delete
3694820
Edit Delete
2896016
Edit Delete
1517550
Rows per page (Change) Record 1 to 10 of 270
    Next Last