</div> <div class="col-md-4 col-sm-6 col-xs-12 mt-10"> <span class="info-title"><?php echo Yii::t('Results', 'Emulation'); ?> :</span> <span class="info-value"><?php echo sprintf('%d.%02d.%02d - %d.%02d.%02d', $firstCompetition->year, $firstCompetition->month, $firstCompetition->day, $lastCompetition->year, $lastCompetition->endMonth, $lastCompetition->endDay); ?> </span> </div> </div> </div> </div> <h2><?php echo Yii::t('Results', 'Current Personal Records') . Persons::getBattleCheckBox($person->name, $person->id, 'span', array('class' => 'small')); ?> </h2> <?php $this->widget('GridView', array('dataProvider' => new CArrayDataProvider(array_values($personRanks), array('pagination' => false, 'sort' => false)), 'front' => true, 'template' => '{items}', 'columns' => array(array('name' => Yii::t('common', 'Event'), 'type' => 'raw', 'value' => 'CHtml::link(CHtml::tag("span", array( "class"=>"event-icon event-icon event-icon-" . $data->eventId, "title"=>Yii::t("event", $data->event->cellName), ), Yii::t("event", $data->event->cellName)), "#" . $data->event->id)'), array('name' => Yii::t('statistics', 'NR'), 'type' => 'raw', 'value' => '$data->getRank("countryRank")', 'headerHtmlOptions' => array('class' => 'record')), array('name' => Yii::t('statistics', 'CR'), 'type' => 'raw', 'value' => '$data->getRank("continentRank")', 'headerHtmlOptions' => array('class' => 'record')), array('name' => Yii::t('statistics', 'WR'), 'type' => 'raw', 'value' => '$data->getRank("worldRank")', 'headerHtmlOptions' => array('class' => 'record')), array('name' => Yii::t('common', 'Single'), 'type' => 'raw', 'value' => 'CHtml::link(Results::formatTime($data->best, $data->eventId), array( "/results/rankings", "event"=>$data->eventId, "region"=>$data->person->countryId, ))'), array('name' => Yii::t('common', 'Average'), 'type' => 'raw', 'value' => '$data->average("best")'), array('name' => Yii::t('statistics', 'WR'), 'type' => 'raw', 'value' => '$data->average("worldRank")', 'headerHtmlOptions' => array('class' => 'record')), array('name' => Yii::t('statistics', 'CR'), 'type' => 'raw', 'value' => '$data->average("continentRank")', 'headerHtmlOptions' => array('class' => 'record')), array('name' => Yii::t('statistics', 'NR'), 'type' => 'raw', 'value' => '$data->average("countryRank")', 'headerHtmlOptions' => array('class' => 'record')), array('header' => Yii::t('statistics', 'Gold'), 'value' => '$data->medals["gold"] ?: ""'), array('header' => Yii::t('statistics', 'Silver'), 'value' => '$data->medals["silver"] ?: ""'), array('header' => Yii::t('statistics', 'Bronze'), 'value' => '$data->medals["bronze"] ?: ""'), array('header' => Yii::t('statistics', 'Solves/Attempts'), 'value' => '$data->medals["solve"] . "/" . $data->medals["attempt"]')))); ?> <h2><?php echo Yii::t('statistics', 'Sum of Ranks'); ?>