[ Index ] |
|
Code source de phpMyVisites 2.3 |
1 <?php 2 /* 3 * phpMyVisites : website statistics and audience measurements 4 * Copyright (C) 2002 - 2006 5 * http://www.phpmyvisites.net/ 6 * phpMyVisites is free software (license GNU/GPL) 7 * Authors : phpMyVisites team 8 */ 9 10 // $Id: ViewSource.class.php 29 2006-08-18 07:35:21Z matthieu_ $ 11 12 13 require_once INCLUDE_PATH."/core/include/ViewModule.class.php"; 14 require_once INCLUDE_PATH."/core/views/ViewDataArray.class.php"; 15 16 class ViewSource extends ViewModule 17 { 18 var $viewTemplate = "common/viewsource_all.tpl"; 19 20 function ViewSource() 21 { 22 parent::ViewModule( "source" ); 23 } 24 25 function process() 26 { 27 // HTML area coords 28 $this->HTMLAreaLocation = array( 29 'amn' => "255,38,234,81,166,151,94,208,54,189,34,86,2,101,17,28,219,17,253,35", 30 'ams' => "124,187,90,215,138,353,163,351,158,319,215,244,140,207,147,197,121,189", 31 'eur' => "306,69,315,117,342,160,341,165,283,172,281,163,243,169,244,113,226,99,226,88,237,88,252,103,306,70,306,69", 32 'afr' => "238,174,286,163,325,174,343,212,367,210,350,285,297,302,280,275,277,242,269,227,240,229,225,200,245,171", 33 'oce' => "458,278,501,253,517,256,520,229,558,256,572,317,567,342,549,354,459,303,459,277", 34 'asi' => "301,66,308,116,347,157,327,171,342,210,377,198,411,229,423,208,447,252,480,259,518,252,518,236,481,221,493,181,515,161,511,117,529,119,559,20,388,31,302,64" 35 ); 36 37 $this->tpl->assign('url_continent', $this->request->getUrl()); 38 39 if($continentAsked = $this->request->getContinentZoom()) 40 { 41 $this->tpl->assign("map", 'continent'); 42 $this->tpl->assign('continent_asked', $continentAsked); 43 $sumContinent = $this->getDataMethod( 44 array( "continentcountries" => array()) 45 ); 46 } 47 else 48 { 49 $this->tpl->assign('map', 'world'); 50 $this->tpl->assign('html_area_location', $this->HTMLAreaLocation); 51 $sumContinent = $this->getDataMethod( 52 array( 53 "continentcountries" => array() 54 ) 55 ); 56 } 57 58 //assign('dir_img_countries_flags', DIR_IMG_COUNTRIES_FLAGS); 59 $this->tpl->assign('path_maps', DIR_IMG_MAPS); 60 61 62 $o_mod = new ViewDataArray( $this->data); 63 $o_mod->init($this->request);//, $this->tpl); 64 65 $a_dataToLoad = array( 66 "countries" => "sourcecountries", 67 "countriesinterest" => "sourcecountriesinterest", 68 "providers" => "sourceproviders", 69 "continentcountries" => "sourcecontinentcountries", 70 ); 71 72 foreach($a_dataToLoad as $key => $value) 73 { 74 $this->tpl->assign( $key, $o_mod->showAll( $value , true , true)); 75 } 76 $this->request->setModuleName('view_source'); 77 78 $methodsToLoad = array( 79 "countriesdistinct" => array() 80 ); 81 $this->getDataMethod( $methodsToLoad ); 82 } 83 84 85 } 86 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Mon Nov 26 14:10:01 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |