<?php
$this->pageTitle = 'Тренировочный лагерь';
?>
<div class="npc-view_block">
    <div class="npc-view_img">
        <img src="/images/npc/teacher.jpg" alt="*">
    </div>
    <div class="npc-view_info">
        <span class="percent">Наставник:</span> <?php echo $dialog[$user->xp];?>
    </div>
</div>
<?php if ($user->class == 1 && $user->xp < 270): ?>
    <hr>
    <?php echo CHtml::link('<img src="/images/icons/attack.png" alt="/"> Бить '.Users::getLogin($user->battle_target).'', array('/training/damageLastTarget'), array('class' => 'block') )?>
<?php elseif ($user->class == 2 && $user->xp < 270): ?>
    <hr>
    <?php echo CHtml::link('<img src="/images/icons/heal.png" alt="/"> Лечить '.Users::getLogin($user->battle_target).'', array('/training/healLastTarget'), array('class' => 'block') )?>
<?php else: ?>
    <hr>
    <?php echo CHtml::link('<img src="/images/icons/arrow.png" alt="/"> Вернуться в лагерь', '/', array('class' => 'block') )?>

<?php endif; ?>
<hr>
<?php echo BattleHelper::battleLog($user, 3)?>
