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 : sortables Objects

Tutorials

>

Tutorial Object

>

Tutorial : sortables Objects


Object-05: Tutorial of the composant Object of the PHP FrameWork WebSite-PHP.

Tutorial : sortables Objects:



1


2


3


Go back to tutorial of the componant Object



Source code

Source code


File: /pages/tutorials/object/object-05.php

<?php
class Object05 extends Page {
    public function 
InitializeComponent() {
        
parent::$PAGE_TITLE "Tutorial : sortables Objects";
        
        
$this->render = new WSPObject();
        
$this->render->setId("my_render_object_5");
        
$this->render->setSortable(true);
        
        
$green_square = new WSPObject("<br/><br/>""1");
        
$green_square->setId("my_object_green_5");
        
$green_square->setStyle("background-color:#5BFF4F;");
        
$green_square->setAlign(WSPObject::ALIGN_CENTER);
        
$green_square->setWidth(100);
        
$green_square->setHeight(100);
        
        
$red_square = new WSPObject("<br/><br/>""2");
        
$red_square->setId("my_object_red_5");
        
$red_square->setStyle("background-color:#FF3300;");
        
$red_square->setAlign(WSPObject::ALIGN_CENTER);
        
$red_square->setWidth(100);
        
$red_square->setHeight(100);
        
        
$blue_square = new WSPObject("<br/><br/>""3");
        
$blue_square->setId("my_object_blue_5");
        
$blue_square->setStyle("background-color:cornflowerblue;");
        
$blue_square->setAlign(WSPObject::ALIGN_CENTER);
        
$blue_square->setWidth(100);
        
$blue_square->setHeight(100);
        
        
$this->render->add($green_square$red_square$blue_square);
    }
}
?>


Go back to tutorial of the componant Object


Share

 


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