Active users and rejected candidates

$active_users, 'rejected' =>$rejected_users]; foreach ( $arr as $key => $list){ $this->registerJs("var key = ".json_encode($key).";", View::POS_READY, 'my-keys'); echo '
'; if(!empty($list)){ echo "

List of $key users

"; if(isset($fq)){ $fq=$fq."&"; } else{ $fq=""; } ?> "; $url = Yii::$app->getUrlManager ()->createAbsoluteUrl ( [ 'account/profile', 'user' => $user->__get('username') ] ); echo ""; echo ""; echo ""; echo ""; if($key =='rejected'){ echo ""; } echo ""; } ?>
Username Name Email Institution
".$user->__get('username').""."".$user->__get('name')."".$user->__get('email')."".$user->__get('institution')."".Html::a("Activate", ["account/activate?username=".$user->__get('username')], ['class' =>'btn btn-primary'])."
No $key users!

"; } ?>