} </style> <ul > <li class="dropdown lv1"> <?php $dataTotalNotifi = WMessageSendto::getTotalReadMessage("notifi"); $totalresgister = WCourseTrainee::getTotalTraineeRegister(); $totalnotifi = count($dataTotalNotifi) + $totalresgister; // Thong Bao Kich Hoat Course (Super) if (Yii::app()->session["group_id"] == 3) { $totalCourseRegister = WCourse::getTotalCourseNoActive(); $totalnotifi = $totalnotifi + $totalCourseRegister; } // Danh sach Course Sap dien ra (Trainee Hoc vien) if (Yii::app()->session["group_id"] == 2) { $courseStart = WCourseTrainee::getCourseStartTrainee(); $totalnotifi = $totalnotifi + count($courseStart); } // Danh sach Course Sap dien ra (Trainer Giao Vien) if (Yii::app()->session["group_id"] == 1) { $courseStartTrainer = WCourseTrainee::getCourseStartTrainer(); $totalnotifi = $totalnotifi + count($courseStartTrainer); } ?> <a href="javascript:;" data-toggle="dropdown" role="button" aria-expanded="false" style="position: relative;"> <img src="<?php echo Yii::app()->theme->baseUrl; ?> /img/notifi.png" /> <?php if ($totalnotifi != 0) {