<?php
/* @var $this SiteController */

$this->pageTitle = Yii::app()->name;
?>
<div class="head">
    <?php echo CHtml::link('Начать игру', array('site/registration'), array('class' => 'v')); ?>
    <?php echo CHtml::link('Войти', array('site/login'), array('class' => 'r')); ?>
    <div style="clear:both"></div></div>
<div class="telo2">
    <?= CHtml::form(); ?>
    <?= CHtml::errorSummary($form, null, null, array('class' => 'error_my')); ?>
    <center><b><p>Выбери сторону:</p></b>
        <table>
            <tr>
                <td class="col-md-6"> 
            <center> <img src="/images/side1.png" alt=""><br />
                Закон<br />
                <?=
                CHtml::activeRadioButton($form, 'side', array(
                    'value' => '1',
                    'uncheckValue' => null
                ))
                ?>

                </td>
                <td class="col-md-6">
                <center><img src="/images/side2.png" alt=""> 
                    <center>Беспредел<br />
                        <?=
                        CHtml::activeRadioButton($form, 'side', array(
                            'value' => '2',
                        ))
                        ?>

                        </td>
                        </tr>
                        </table>
                        <p> </p>
                        <?= CHtml::activeLabel($form, 'login'); ?>
                        <?= CHtml::activeTextField($form, 'login') ?>
                        <?= CHtml::activeLabel($form, 'password'); ?>
                        <?= CHtml::activePasswordField($form, 'password') ?><br />
                        <p><!-- left & right --></p>

                        

                        <?= CHtml::submitButton('Регистрация', array('class' => 'btn btn-info btn-xs', 'id' => "submit")); ?>
                        <?= CHtml::endForm(); ?>
                        </div>
                    </center>