WebSite-PHP Framework PHP
Multi langues
Mode Ajax simple
Aucun HTML, aucun JavaScript
URL rewrinting
Envoi d'email
Sitemap - RSS - Web service
Télécharger le Framework WebSite-PHP maintenant
 


Loading
 


Picture with map area

Tutoriels

>

Tutoriel Picture

>

Picture with map area


Picture-05: Tutoriel du composants Picture du FrameWork PHP WebSite-PHP.

Picture with map area:

In The Blue by sharkbait In The Blue by sharkbait


Retourner aux tutoriels du composants Picture



Code source

Code source


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;
    }
}
?>


Retourner aux tutoriels du composants Picture


Share

 


Copyright © 2009-2016 WebSite-PHP Framework PHP
Accueil Documentation Télécharger Quick start Tutoriels Wiki Issue Tracker