Код: Выделить всё
if ($top == false) {
echo CHtml::link($row['s_name'], array('site/katalog',
'id' => $row['id'],
'idc' => $row['idc']));
} else {
echo CHtml::link($row['s_name'], array('site/katalog',
'id' => $row['id']));
}