WebSite-PHP Framework PHP
Multi language
Simple Ajax mode
No HTML, no JavaScript
URL rewriting
Mail sending
Sitemap - RSS - Web service
Download WebSite-PHP FrameWork now
 


Loading
 


Tutorial : Advance Table 
with column filter

Tutorials

>

Tutorial Table

>

Tutorial : Advance Table with column filter


Table-07: Tutorial of the composant Table of the PHP FrameWork WebSite-PHP.

Tutorial : Advance Table with column filter:

Name
Sex
Age
Toto
Man
23
Tata
Woman
45
Titi
Man
32


Go back to tutorial of the componant Table



Source code

Source code


File: /pages/tutorials/table/table-07.php

<?php
class Table07 extends Page {
    public function 
InitializeComponent() {
        
parent::$PAGE_TITLE "Tutorial : Advance Table 
                                with column filter"
;
        
        
$this->render = new Table();
        
$this->render->setId("users_table_07");
        
$this->render->setDefaultAlign(RowTable::ALIGN_CENTER);
        
        
$column_filter_params "{ type: 'text' },
        { type: 'select', bRegex:true, 
                values: [ 
                    {value: '^Man', label: 'Man'},
                    'Woman'
                ] },
        { type: 'number-range' }"
;
        
$this->render->activateColumnsFilter(
            
$column_filter_paramsTable::COL_FILTER_POSITION_TOP);
        
        
$header $this->render->addRowColumns("Name"
                                            
"Sex""Age");
        
$header->setHeaderClass(0);
        
$header->setColumnWidth(3160);
        
        
$this->render->addRowColumns("Toto""Man"23);
        
$this->render->addRowColumns("Tata""Woman"45);
        
$this->render->addRowColumns("Titi""Man"32);
    }
}
?>


Go back to tutorial of the componant Table


Share

 


Copyright © 2009-2024 WebSite-PHP Framework PHP
Home Documentation Download Quick start Tutorials Wiki Issue Tracker