Ejemplo n.º 1
0
        <?php 
echo $model->race_text;
?>
-<?php 
echo $model->class_text;
?>
 (<?php 
echo $model->talents['name'];
?>
) <?php 
echo $model->level;
?>
 ур.
    </div>
    <div class="color-tooltip-<?php 
echo Character::itemAlias('factions', $this->_model->faction);
?>
"><?php 
echo Database::$realm;
?>
</div>
    <span class="clear"><!-- --></span>
    <?php 
if ($model->talents['maxTreeNo'] != -1) {
    ?>
    <span class="character-talents">
        <span class="icon"><span class="icon-frame frame-12 ">
            <img src="http://eu.media.blizzard.com/wow/icons/18/<?php 
    echo $model->talents['icon'];
    ?>
.jpg" alt="" width="12" height="12" />
Ejemplo n.º 2
0
<?php

$this->breadcrumbs = array('Statistic' => array('/statistic'), 'Online' => array('/statistic/online'));
?>
<style>
    div.grid-view select, div.grid-view input {
        width: 100px;
    }
</style>
<?php 
$this->widget('WGridWow', array('id' => 'characters-grid', 'filter' => $model, 'dataProvider' => $model->search(), 'enableSorting' => true, 'columns' => array(array('type' => 'raw', 'value' => 'Wow::charUrl($data)', 'name' => 'name'), 'level', array('type' => 'raw', 'value' => 'CHtml::image("/images/wow/icons/class/$data->class_id.gif","Test")', 'name' => 'class_id', 'sortable' => true, 'filter' => Character::itemAlias('class')), array('type' => 'raw', 'value' => 'CHtml::image("/images/wow/icons/race/$data->race-$data->gender.gif","Test")', 'name' => 'race', 'sortable' => true, 'filter' => Character::itemAlias('race')), array('class' => 'CLocationColumn', 'name' => 'zone', 'sortable' => true))));