<?
/*
* PHP-Class WordTagCloud Version 1.0
* @author $Author: Narendra Pal Singh, nps.scorpio@gmail.com$
http://hiddenphptalents.blogspot.com/
http://info-opensource.blogspot.com/
* This Class is free software;
* you can redistribute it and/or modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2 of the License,
* or (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
*/
include("WordTagCloud.class.php");
?>
<html>
<head>
<!--<link type="text/css" href="green.css" rel="stylesheet">
<link type="text/css" href="brown.css" rel="stylesheet">-->
<link type="text/css" href="style.css" rel="stylesheet">
</head>
<body>
<?
/* Here data rate is not real its taken only for example.
*/
$TagDataArray = array(
array('data'=>'AIOCP','rate'=>8,'caption'=>'Rating 8','href'=>'/index.php?tags=AIOCP'),
array('data'=>'PHP-Nuke','rate'=>131,'caption'=>'Rating 131','href'=>'/index.php?tags=PHP-Nuke'),
array('data'=>'Bigace','rate'=>16,'caption'=>'Rating 16','href'=>'/index.php?tags=Bigace'),
array('data'=>'Drupal','rate'=>210,'caption'=>'Rating 248','href'=>'/index.php?tags=Drupal'),
array('data'=>'bitweaver','rate'=>35,'caption'=>'Rating 35','href'=>'/index.php?tags=bitweaver'),
array('data'=>'ClanSphere','rate'=>70,'caption'=>'Rating 1','href'=>'/index.php?tags=ClanSphere'),
array('data'=>'eazyPortal','rate'=>180,'caption'=>'Rating 2','href'=>'/index.php?tags=eazyPortal'),
array('data'=>'Elxis','rate'=>17,'caption'=>'Rating 17','href'=>'/index.php?tags=Elxis'),
array('data'=>'Etomite','rate'=>39,'caption'=>'Rating 39','href'=>'/index.php?tags=Etomite'),
array('data'=>'Zomplog','rate'=>7,'caption'=>'Rating 7','href'=>'/index.php?tags=Zomplog'),
array('data'=>'PHP-Fusion','rate'=>131,'caption'=>'Rating 131','href'=>'/index.php?tags=PHP-Fusion'),
array('data'=>'PHPMySport','rate'=>4,'caption'=>'Rating 4','href'=>'/index.php?tags=PHPMySport'),
array('data'=>'Joomla','rate'=>223,'caption'=>'Rating 223','href'=>'/index.php?tags=Joomla'),
array('data'=>'Freeway','rate'=>7,'caption'=>'Rating 7','href'=>'/index.php?tags=Freeway'),
array('data'=>'Opencart','rate'=>150,'caption'=>'Rating 20','href'=>'/index.php?tags=Opencart'),
array('data'=>'Wordpress','rate'=>100,'caption'=>'Rating 100','href'=>'/index.php?tags=Wordpress'),
array('data'=>'ZenCart','rate'=>44,'caption'=>'Rating 44','href'=>'/index.php?tags=ZenCart'),
array('data'=>'miniBB','rate'=>8,'caption'=>'Rating 8','href'=>'/index.php?tags=miniBB'),
array('data'=>'MyBB','rate'=>49,'caption'=>'Rating 49','href'=>'/index.php?tags=MyBB'),
array('data'=>'Mambo','rate'=>250,'caption'=>'Rating 245','href'=>'/index.php?tags=Mambo'),
array('data'=>'phpBB','rate'=>60,'caption'=>'Rating 60','href'=>'/index.php?tags=phpBB'),
array('data'=>'Vanilla','rate'=>17,'caption'=>'Rating 17','href'=>'/index.php?tags=Vanilla'),
array('data'=>'Moodle','rate'=>25,'caption'=>'Rating 25','href'=>'/index.php?tags=Moodle'),
array('data'=>'ZenCart','rate'=>44,'caption'=>'Rating 44','href'=>'/index.php?tags=ZenCart')
);
/*
MaxCssFontSize = There are set size9 maximum
$tagObj = new TabCloud($TagDataArray,9);
$tagObj = new TagCloud($TagDataArray);
*/
$tagObj = new TagCloud($TagDataArray,10);
$tagObj->display();
?>
</body>
</html>
|