2 require_once('init.php');
7 $smarty->assign('tagcloud',tag_cloud());
9 header('Content-Type: text/html; charset=utf-8');
10 $smarty->display('tags.tpl');
15 if(!$conf[extended]) return;
17 $result = ldap_queryabooks('(objectClass=contactPerson)','marker');
21 foreach ($result as $entry){
22 if(count($entry['marker'])){
23 foreach($entry['marker'] as $marker){
24 $marker = strtolower($marker);
26 if($tags[$marker] > $max) $max = $tags[$marker];
33 foreach($tags as $tag => $cnt){
34 $pct = round($cnt * 20 / $max); // percents from 0 to 20
36 $out .= '<a href="index.php?marker='.rawurlencode($tag).'" class="tc'.$pct.'">';
37 $out .= htmlspecialchars($tag).'</a> ';