public function actionEducationsinfo($idperson)
 {
     $msg = "";
     $type = "info";
     $count = 0;
     $model = Person::model()->findByPk($idperson);
     if (!empty($model) && !empty($model->codeU)) {
         try {
             $res = WebServices::getPersonBaseEducations($model->codeU);
             $res = CJSON::decode($res);
             if (is_array($res)) {
                 $msg .= "<ul>";
                 foreach ($res as $item) {
                     $item = (object) $item;
                     if ($item->qualificationName == "Бакалавр") {
                         $type = "info";
                         $msg .= "<li>";
                         $msg .= $item->personEducationFormName . " : " . $item->personEducationPaymentTypeName . " : " . $item->qualificationName . " : " . $item->specDirectionName . " : " . $item->universityFullName;
                         $msg .= "</li>";
                         $count++;
                     } else {
                         $tmp = "<li>";
                         $tmp .= $item->personEducationFormName . " : " . $item->personEducationPaymentTypeName . " : " . $item->qualificationName . " : " . $item->specDirectionName . " : " . $item->universityFullName;
                         $tmp .= "</li>";
                         Yii::log($tmp);
                         Yii::log(print_r($item, 1));
                     }
                 }
                 $msg .= "</ul>";
             }
             if ($count == 0) {
                 $msg = "Попередня освіта відсутня або не зареестровано у базі ЄДБО";
                 $type = "success";
             } else {
                 $type = "warning";
                 $msg .= "<h3>Заявки даної персони може приймати тільки оператор 116 аудиторії!</h3>";
             }
         } catch (Exception $e) {
             $msg = $e->getMessage();
             $type = "error";
         }
     } else {
         $msg .= "Необхідно синхронізувати персону!";
         $type = "warning";
     }
     Yii::app()->user->setFlash($type, $msg);
 }
        width: 500px;
    }
</style>
<?php 
/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
$requests = Personspeciality::model()->findAll("SepcialityID = {$specid}");
echo "<div> Обрано " . count($requests) . " заявок. </div>";
$i = 0;
foreach ($requests as $item) {
    $msg = "";
    try {
        $res = WebServices::getPersonBaseEducations($item->person->codeU);
        $res = CJSON::decode($res);
        if (is_array($res)) {
            $msg .= "";
            foreach ($res as $obj) {
                $obj = (object) $obj;
                if (!(strpos($obj->universityFullName, "Запорізький національний університет") > 0)) {
                    $msg .= $obj->personEducationFormName . " : " . $obj->personEducationPaymentTypeName . " : " . $obj->qualificationName . " : " . $obj->specDirectionName . " : " . $obj->universityFullName;
                } else {
                    $msg = " немає ";
                }
            }
        }
    } catch (Exception $e) {
        $msg = $e->getMessage();
    }