Ejemplo n.º 1
0
  </div>
</div>

<?php 
$this->endWidget();
?>

<?php 
$this->widget('bootstrap.widgets.TbGridView', array('id' => 'rating-grid', 'type' => 'striped bordered condensed', 'dataProvider' => $data, 'filter' => $model, 'columns' => array(array('header' => 'ID', 'filter' => false, 'htmlOptions' => array('style' => 'width: 80px;'), 'headerHtmlOptions' => array('style' => 'width: 80px;'), 'value' => function ($data, $row) {
    /* @var $data Personspeciality */
    if (!$row && Personspeciality::$is_rating_order) {
        $_contract_counter = $data->sepciality->SpecialityContractCount;
        $_budget_counter = $data->sepciality->SpecialityBudgetCount;
        $_pzk_counter = $data->sepciality->Quota1;
        $_quota_counter = $data->sepciality->Quota2;
        Personspeciality::setCounters($_contract_counter, $_budget_counter, $_pzk_counter, $_quota_counter);
    }
    ?>
 
              <a href='#'  
                 onclick="$('#row_<?php 
    echo $row;
    ?>
').slideToggle();return false;">
                <i class="icon-white icon-info-sign" 
                style="background-color: #05B2D2; border-radius: 10px;"></i>
             <?php 
    $local_counter = 0;
    if (Personspeciality::$is_rating_order && $data->Quota1) {
        //цільовики
        $was = Personspeciality::decrementCounter(Personspeciality::$C_QUOTA);