<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<HTML>
<HEAD>
    <meta http-equiv="Content-Language" content="ru">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>{$lang.modules.livechat.transfer_user} "{$client.fio}"</title>
    <link rel="stylesheet" href="{$config.site_root}/modules/livechat/templates/style.css?{$revision}" type="text/css">

<body class="body">
<style>
    .body {
        font-family: '{$config.modules.livechat.ok_font_family_manager}', sans-serif !important;
        padding: 20px;
    }

    .body div, .body table, .body span {
        font-size: 13px;
    }
</style>
<script type="text/javascript" src="{$config.site_root}/mybic.js?{$revision}"></script>
{literal}
<script language="JavaScript" type="text/javascript">
    function OnManagerClick(manager_id) {
        location.href = '{/literal}{$config.site_root}/modules/livechat/transmit.php?client_id={$client.id}&manager_id={literal}' + manager_id;
    }
</script>
{/literal}
<div class="livechat_message_help">{$mlang.transfer_select_manager}</div>
{if $all_managers}
<TABLE border=0 width="100%">
    <tr>
        <th>{$mlang.Manager_name}</th>
        <th>{$mlang.manager_clients_count}</th>
    </tr>
    {foreach from=$all_managers item=one_manager}
        <tr class="transmit_tr" onclick="OnManagerClick({$one_manager.id})">
            <td class="transmit_td"><span>{$one_manager.fio}</span>{if $one_manager.job} <span>({$one_manager.job}
                    )</span>{/if}</td>
            <td class="transmit_td" align="center"><span>{$one_manager.clients_count} {$mlang.mans}</span></td>
        </tr>
    {/foreach}
</TABLE>
{else}
<span>{$mlang.transfer_no_managers}.</span>
{/if}