Exemplo n.º 1
0
            ?>
                            <div class="row_test">
                                <span class="col-md-1 row_item"><img align="top" src="<?php 
            echo Yii::app()->theme->baseUrl;
            ?>
/img/dot-2.png"/> <?php 
            echo Yii::t('web/home', 'Test');
            ?>
 :</span>
                                <span class="info_test col-md-8 row_item" ><?php 
            echo '[' . $item['test_code'] . '] ' . $item['test_name'];
            ?>
</span>
                                <span class="col-md-3">
                                        <?php 
            $result_test = WTest::getTestResult($item['test_id'], $item['course_id'], $item['lecture_id'], 0, $trainee_id);
            ?>
                                    <?php 
            if (!empty($result_test) and $result_test['pass_score_point'] == $result_test['total_point']) {
                ?>
                                        <span style="color: #0FBB33"><?php 
                echo Yii::t('web/home', 'Done');
                ?>
: <?php 
                echo !empty($result_test['pass_score_point']) ? $result_test['pass_score_point'] : 0;
                ?>
/<?php 
                echo $result_test['total_point'];
                ?>
</span>
                                        <?php