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