|
Tutoriel 1 : Simple Picture
Fichier: /pages/tutorials/picture/picture-01.php
<?php class Picture01 extends Page { public function InitializeComponent() { parent::$PAGE_TITLE = "Simple Picture"; $table = new Table(); $pic1 = new Picture("img/slider/1-small.jpg"); $pic1->setTitle("The Sacred Dog by cuellar"); $pic2 = new Picture("img/slider/2-small.jpg"); $pic2->setTitle("Eilean Donan Castle by yashima"); $pic3 = new Picture("img/slider/3-small.jpg"); $pic3->setTitle("In The Blue by sharkbait"); $table->addRowColumns($pic1, $pic2, $pic3); $this->render = $table; } } ?>
Tutoriel 2 : Simple Picture with Link
Fichier: /pages/tutorials/picture/picture-02.php
<?php class Picture02 extends Page { public function InitializeComponent() { parent::$PAGE_TITLE = "Simple Picture with Link"; $pic = new Picture("img/slider/1-small.jpg"); $pic->setTitle("The Sacred Dog by cuellar"); $link_pic = new Link("http://www.flickr.com/ photos/cuellar/2961728459/in/ pool-creative_commons-_free_pictures", Link::TARGET_BLANK, $pic); $this->render = $link_pic; } } ?>
Tutoriel 3 : Picture on click event
Fichier: /pages/tutorials/picture/picture-03.php
<?php class Picture03 extends Page { public function InitializeComponent() { parent::$PAGE_TITLE = "Picture on click event"; $pic = new Picture("img/slider/1-small.jpg"); $pic->setTitle("The Sacred Dog by cuellar"); $pic->onClick($this, "onClickPicture"); $pic->setAjaxEvent(); $this->render = $pic; } public function onClickPicture($sender) { alert("click on picture"); } } ?>
Tutoriel 4 : Picture with Lightbox
Fichier: /pages/tutorials/picture/picture-04.php
<?php class Picture04 extends Page { public function InitializeComponent() { parent::$PAGE_TITLE = "Picture with Lightbox"; $table = new Table(); $pic1 = new Picture("img/slider/1-small.jpg"); $pic1->setTitle("The Sacred Dog by cuellar"); $pic1->addLightbox("picref1", "img/slider/1.jpg"); $pic2 = new Picture("img/slider/2-small.jpg"); $pic2->setTitle("Eilean Donan Castle by yashima"); $pic2->addLightbox("picref1", "img/slider/2.jpg"); $pic3 = new Picture("img/slider/3-small.jpg"); $pic3->setTitle("In The Blue by sharkbait"); $pic3->addLightbox("picref1", "img/slider/3.jpg"); $table->addRowColumns($pic1, $pic2, $pic3); $this->render = $table; } } ?>
Tutoriel 5 : Picture with map area
Fichier: /pages/tutorials/picture/picture-05.php
<?php class Picture05 extends Page { public function InitializeComponent() { parent::$PAGE_TITLE = "Picture with map area"; $pic = new Picture("img/slider/3-small.jpg"); $pic->setTitle("In The Blue by sharkbait"); $picture_map = new PictureMap("shark"); $picture_map->addPolygon( new Link("http://www.flickr.com/photos/sharkbait/2992242065 /in/pool-809956@N25/", Link::TARGET_BLANK), "In The Blue by sharkbait", 17,58,13,63,14,72,16,81,18,90,17,98,11,104,4,111,1,119,3, 127,13,128,23,124,31,120,33,127,34,135,39,143,48,146,49, 137,46,125,46,115,54,108,74,101,92,101,109,107,123,115, 131,128,137,122,149,123,137,114,123,103,110,92,91,85,79, 82,54,83,41,87,36,83,29,72); $pic->setPictureMap($picture_map); $this->render = $pic; } } ?>
|
|
|
|
|