Exemplo n.º 1
0
        $count_test = new WUserTest();
        // var_dump($count_test);
        $results = $count_test->count_filter($id, 'user');
        echo $results;
        ?>
                                </span>
                            </p>
                            <p>
                                <span class="col1">Total Test: </span>
                                <span class="col2">
                                    <?php 
        $id = CHtml::encode($item->course->id);
        $id = intval($id);
        $count_test = new WUserTest();
        // var_dump($count_test);
        $results = $count_test->count_filter($id, 'test');
        echo $results;
        ?>
                                </span>
                            </p>
                        </div>
                        <?php 
        if (!empty($item->course->hot_course) and $item->course->hot_course == 1) {
            ?>
                        <img src="<?php 
            echo Yii::app()->theme->baseUrl;
            ?>
/img/icon-hot.png" class="iconhot" />
                        <?php 
        }
        ?>