Example #1
0
        border-radius: 100%;
        background-color: #666;
        position: absolute;
        top: 10px;
        left: 7px;
        border: 2px solid #fff;
    }
    .dot-notifi:before{
        background: #01a0e6;
    }
</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);
Example #2
0
?>
</span></p>
                            <p><span class="col1"><?php 
echo Yii::t('web/home', 'Total lectures');
?>
:</span><span class="col2 color_cb0303"><?php 
echo WLecture::getTotalLectureOfTrainer();
?>
</span></p>
                            <p><span class="col1"><?php 
echo Yii::t('web/home', 'Pendding trainees');
?>
:</span>
                                <span class="col2 color_40b80c">
                                    <?php 
echo WCourseTrainee::getTotalTraineeRegister();
?>
                                    <a style="font-weight: normal;font-size: 11px;" href="<?php 
echo Yii::app()->createUrl('wCourseTrainee/Listtraineeall');
?>
">View list</a>
                                </span>
                            </p>
                        </div>
                        <div class="clear"></div>
                    </div>
                    <div class="chart_trainer_right chart_trainer_item fr">
                        <img class="fl" src="<?php 
echo Yii::app()->theme->baseUrl;
?>
/img/chart-people.png" />