<?php
$this->layout = 'topo';
?>
<div class="topo">
    <div class="logotipo"><img src="<?php echo FaHtml::getimgUrl('logotipo.png'); ?>" alt="Windel"><span class="versao-sistema">CRM<br />Versão <?php echo VERSAO; ?></span><span class="logo-windel"></span></div>
    <?php if (BASE_TESTES) {?>
        <h2 id="testes">Você está usando a versão de testes do sistema Windel CRM <?php echo VERSAO; ?><br /><span style="font-size: 10px">Banco de dados atualizado em: <b><?php echo DATA_BASE; ?></b></span></h2>
        <style type="text/css" media="screen">
            @keyframes testes {
                 0%   {color: red; }
                25%  {color: yellow; }
                50%  {color: blue; }
                75%  {color: green; }
                100% {color: red; }
            }
            #testes {
                width: 50%;
                position: fixed;
                left: 300px;
                top: 10px;
                animation-name: testes;
                animation-duration: 10s;
                animation-iteration-count: infinite;
                animation-direction: alternate;
            }
        </style>
    <?php }?>
    <div class="data border-box"><img src="<?php echo FaHtml::getimgUrl('ico-usuario.png'); ?>" alt="Usu&aacute;rio" width="14" height="22" class="icones"> Usu&aacute;rio: <strong><?php echo Yii::app()->user->title; ?></strong>
    <input type="hidden" id="idusuario" value="<?php echo Yii::app()->user->id; ?>">
    <img src="<?php echo FaHtml::getimgUrl('ico-sair.png'); ?>" alt="Sair" width="25" height="18" class="icones"> <strong><a href="<?php echo Yii::app()->createUrl('site/logout'); ?>" target="_top">Sair</a></strong></div>
</div>