if(ACTION_NAME=='information'){ $tabClass['user_data'] = 'active'; } elseif(ACTION_NAME=='fans'||ACTION_NAME=='following'){ $tabClass['user_fans'] = 'active'; } elseif(ACTION_NAME=='topiclist'){ $tabClass['user_topic'] = 'active'; } elseif(ACTION_NAME=='rankverify'||ACTION_NAME=='rank'||ACTION_NAME=='rankverifyfailure'||ACTION_NAME=='rankverifywait'){ $tabClass['user_rank'] = 'active'; } else{ $tabClass[$type] = 'active'; }