Пример #1
0
        } else {
            ?>
                          <img width="75px" height="75px" src="<?php 
            echo Yii::app()->theme->baseUrl;
            ?>
/img/no-image.jpg" />
                          <?php 
        }
        ?>
                  </a>
                  <div class="item">
                    <h2><a href="<?php 
        echo Yii::app()->createUrl('WTrainneApprove/ViewCourse', array('id' => $item['id']));
        ?>
"><?php 
        echo HelperBase::getSubTitleTab($item['course_name'], 40);
        ?>
</a></h2>
                    <p><span class="col1">Start date: </span><span class="col2"><?php 
        echo !empty($item['start_date']) ? $item['start_date'] : 'empty';
        ?>
</span></p>
                    <p><span class="col1">End date: </span><span class="col2"><?php 
        echo !empty($item['end_date']) ? $item['end_date'] : 'empty';
        ?>
</span></p>
                    <p><span class="col1">Status: </span>
                        <span class="col2">
                              <?php 
        switch ($item['status']) {
            case 0:
Пример #2
0
 public function evaluateFailure($const)
 {
     return parent::evaluateFailure($const);
     // TODO: Change the autogenerated stub
 }
Пример #3
0
            echo Yii::app()->theme->baseUrl;
            ?>
/img/course.gif" />
                            <?php 
        }
        ?>
                        </a>
                        <div class="item">
                            <h2><a href="<?php 
        echo Yii::app()->createUrl('wSuperUserTest/View', array('id' => $item['course_id']));
        ?>
">[<?php 
        echo !empty($item->course->course_code) ? $item->course->course_code : 'N/A';
        ?>
] <?php 
        echo !empty($item->course->course_code) ? CHtml::encode(HelperBase::getSubTitleTab($item->course->course_name, 40)) : 'Null';
        ?>
</a></h2>
                            <p>
                                <span class="col1">Status: </span>
                <span class="col2">
                    <?php 
        switch ($item->course->status) {
            case 0:
                ?>
                        <span class="pendding">Pendding</span>
                        <?php 
                break;
            case 1:
                ?>
                        <span class="activated">Activated</span>