<?php /* Smarty version Smarty-3.0.6, created on 2011-02-04 18:04:55
         compiled from "W:/home/dcms_seven/www/sys/themes/web_blue/tpl/inc.user.tpl" */ ?>
<?php /*%%SmartyHeaderCode:110634d4c15975c7db9-68227252%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'c313708f103448a000e58175050b38e24f165de9' => 
    array (
      0 => 'W:/home/dcms_seven/www/sys/themes/web_blue/tpl/inc.user.tpl',
      1 => 1291907209,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '110634d4c15975c7db9-68227252',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<?php if (!is_callable('smarty_block_php')) include 'W:\home\dcms_seven\www\sys\plugins\smarty\plugins\block.php.php';
?><div class="menu_title">
<?php if ($_smarty_tpl->getVariable('user')->value->id){?><?php echo $_smarty_tpl->getVariable('user')->value->login;?>
<?php }else{ ?>Авторизация<?php }?>
</div>


<?php if ($_smarty_tpl->getVariable('user')->value->id){?>

<?php if ($_smarty_tpl->getVariable('user')->value->mail_new_count){?><a class="menu_left" href='/my.mail.php?only_unreaded'>Почта +<?php echo $_smarty_tpl->getVariable('user')->value->mail_new_count;?>
</a><?php }?>
<?php if ($_smarty_tpl->getVariable('user')->value->friend_new_count){?><a class="menu_left" href='/my.friends.php'>Предложения дружбы +<?php echo $_smarty_tpl->getVariable('user')->value->friend_new_count;?>
</a><?php }?>
<?php if ($_smarty_tpl->getVariable('user')->value->group>=2&&$_smarty_tpl->getVariable('dcms')->value->count('complaints')){?><a class="menu_left" href='/dpanel/user.complaints.php'>Новые жалобы</a><?php }?>

<?php $_smarty_tpl->smarty->_tag_stack[] = array('php', array()); $_block_repeat=true; smarty_block_php(array(), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>

$menu = new menu('user');
$menu -> tpl = 'design.menu_left.tpl';
$menu -> display();
<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo smarty_block_php(array(), $_block_content, $_smarty_tpl, $_block_repeat);  } array_pop($_smarty_tpl->smarty->_tag_stack);?>


<?php }else{ ?>
<form action="/login.php?return=<?php echo $_smarty_tpl->getVariable('URL')->value;?>
" method="post">
Логин:<br />
<input type="text" name="login" /><br />
Пароль:<br />
<input type="password" name="password" /><br />
<label><input type="checkbox" name="save_to_cookie" /> Запомнить меня</label><br />
<input type="submit" value="Вход" />
</form>
<form action="/reg.php?return=<?php echo $_smarty_tpl->getVariable('URL')->value;?>
" method="post">
<input type="submit" value="Регистрация" />
</form>

<?php }?>

