$i = 0;
foreach($keywords as $k => $v) {
switch($v["k_count"]) {
case ($v["k_count"] > 300):
$class = "kgt300";
break;
case ($v["k_count"] > 200):
$class = "kgt200";
break;
case ($v["k_count"] > 150):
$class = "kgt150";
break;
case ($v["k_count"] > 100):
$class = "kgt100";
break;
case ($v["k_count"] > 75):
$class = "kgt75";
break;
case ($v["k_count"] > 50):
$class = "kgt50";
break;
case ($v["k_count"] > 25):
$class = "kgt25";
break;
case ($v["k_count"] > 10):
$class = "kgt10";
break;
case ($v["k_count"] > 5):
$class = "kgt5";
break;
case ($v["k_count"] > 3):
$class = "kgt3";
break;
case ($v["k_count"] > 1):
$class = "kgt1";
break;
case ($v["k_count"] > 0):
$class = "kgt0";
break;
}
if(empty($class))
$style = "";
else
$style = ' class="'.$class.'"';
echo '
'.$v["keyword"]." ";
$i++;
}?>