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 : 2 CheckBox with one 
disabled

Tutorials

>

Tutorial Checkbox

>

Tutorial : 2 CheckBox with one disabled


Checkbox-02: Tutorial of the composant Checkbox of the PHP FrameWork WebSite-PHP.

Tutorial : 2 CheckBox with one disabled:



Go back to tutorial of the componant Checkbox



Source code

Source code


File: /pages/tutorials/checkbox/checkbox-02.php

<?php
class Checkbox02 extends Page {
    public function 
InitializeComponent() {
        
parent::$PAGE_TITLE "Tutorial : 2 CheckBox with one 
                                disabled"
;
        
        
$this->render = new Object();
        
$chk1 = new CheckBox($this);
        
$chk1->setText("CheckBox 1")->setChecked();
        
$chk2 = new CheckBox($this);
        
$chk2->setText("CheckBox 2")->disable();
        
$this->render->add($chk1$chk2);
    }
}
?>


Go back to tutorial of the componant Checkbox


Share

 


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