Exemplo n.º 1
0
</th>
                            <th style="width: 100px;"><?php 
echo Yii::t('web/home', 'Mark');
?>
</th>
                            <th>Rate</th>
                        </tr>
                        </thead>
                        <tbody>
                        <?php 
if (count($listtrainee) > 0) {
    $i = 1;
    foreach ($listtrainee as $list) {
        if (isset($list->pls_user)) {
            $arrUT = WUserTest::model()->find('course_id=:course_id and user_id=:user_id and test_id=:test_id and test_kind=:test_kind', array(':course_id' => $course_id, ':user_id' => $list['trainee_id'], 'test_id' => $test['id'], ':test_kind' => $_REQUEST['kind']));
            $flag_text = WUserTest::checkDoTestText($arrUT['id']);
            ?>
                            <tr class="<?php 
            if ($i % 2 == 0) {
                echo 'even';
            } else {
                echo 'old';
            }
            ?>
 <?php 
            if (isset($arrUT)) {
                echo 'showresult';
            }
            ?>
" index="<?php 
            echo $arrUT['id'] . '|' . $arrUT['user_id'];