PABX da Simples IP
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

145 lines
6.3 KiB

{capture name="display" assign="display"}
<span id="msgLogoff" style="float:right"></span>
<div class="clearfix"></div>
<table class="grid" width="100%">
<thead>
<tr>
<th class="th headColun">Fila</th>
<th class="th headColun">Agente</th>
<th class="th headColun">Ramal</th>
<th class="th headColun">Matrícula</th>
<th class="th headColun">Tempo Logado</th>
<th class="th headColun">Modo de atendimento</th>
<th class="th headColun">Status do ramal</th>
<th class="th headColun">Status do agente</th>
<th class="th headColun">Chamadas originadas</th>
<th class="th headColun">Chamadas atendidas</th>
<th class="th headColun">TMA</th>
<th class="th headColun">Logoff</th>
<th class="th headColun">Pausa</th>
</tr>
</thead>
{foreach key=fila item=dac from=$agentes}
<tbody>
{if empty($dac.agentes)}
<td colspan="13" align="left">
{if $isAgente}
Você não se conectou à nenhuma fila
{else}
Nenhum agente na fila {$fila}
{/if}
</td>
{else}
{foreach key=key item=agente from=$dac.agentes}
{$agente.html}
{/foreach}
{/if}
</tbody>
{/foreach}
</table>
<div class="pure-g" style="padding:10px;">
{if !empty($rotinas)}
<div class="pure-u-1-5">
<h3>Rotinas mais usadas</h3>
<ol style="margin:0;padding:0;margin-left:10px;">
{foreach key=key item=item from=$rotinas}
<li>
<a href="{$item.url}" target="_blank">{$item.rotina}</a>
</li>
{foreachelse}
<li>
Nenhuma rotina foi usada ainda...
</li>
{/foreach}
</ol>
</div>
{/if}
<div class="pure-u-4-5">
<div class="pure-g">
{if $isAgente}
<div class="pure-u-1-5">
<h3>Resumo Pessoal</h3>
{if $ramalAtual != ''}
<h4><b>Ramal {$ramalAtual}</b></h4>
{/if}
<dl>
<dt>Chamadas não classificadas</dt>
{foreach key=key item=item from=$naoClass}
<dt>{$item.data} - {$item.total} chamadas</dt>
{/foreach}
</dl>
</div>
{/if}
<div class="pure-u-2-5">
<h3>Log de atividades</h3>
<ul style="list-style:none;margin:0;padding:0;margin-left:10px;">
{foreach key=key item=item from=$logs}
<li>
{$item.data} {$item.hora} - {$item.url}
</li>
{/foreach}
</ul>
</div>
{if !$isAgente}
<div class="pure-u-2-5">
<h3>Usuários logados</h3>
<table class="grid" width="100%" cellspacing="2">
<thead>
<tr>
<th>Usuário</th>
<th>Matrícula</th>
<th>Página</th>
<th>&nbsp;</th>
</tr>
</thead>
<tbody>
{foreach key=key item=item from=$sessions}
<tr>
<td align="center">{$item.SSlogin} ({$item.SSnomeUser|utf8_decode})</td>
<td align="center">
<a href="javascript:NovaJanela('index.php?idProg=126&matricula={$item.SSmatriculaUser}&dac={$item.SSsupervisorDacAtu}', 'jnGraphAgente', '1048', '640', 'resizable=NO,scrollbars=NO');">
{$item.SSmatriculaUser}
</a>
</td>
<td align="center">
{if empty($item.UltimaRotina)}
<a href="index.php" target="_blank">
Página inicial
</a>
{else}
<a href="{$item.UltimaRequisicao}" target="_blank">
{$item.UltimaRotina}
</a>
{/if}
</td>
<td align="center">
{if $item.sessionId}
<a href="index.php?idProg=12100&remoteLogout=true&sid={$item.sessionId}">
Logout
</a>
{/if}
</td>
</tr>
{/foreach}
</tbody>
</table>
</div>
{/if}
</div>
</div>
</div>
<h3 style="margin-left:10px;">Comunicados {if $podePublicarAjax}- <a href="javascript:$('#textareaPub').focus();">Novo (Alt + C)</a>{/if}</h3>
{include file="mural.tpl"}
{$smarty.capture.display}
<div class="pure-g" style="padding:2px;">
<div class="pure-u-2-5">
<h3>Chamadas não classificadas</h3>
<img src="/index.php?idProg=12100&window=1&graph=true&graphCode=1" alt="Chamadas não classificadas" title="Chamadas não classificadas" />
</div>
<div class="pure-u-2-5">
<h3>Panorama de atendimento</h3>
<img src="/index.php?idProg=12100&window=1&graph=true&graphCode=2" alt="Panorama de atendimento" title="Panorama de atendimento" />
</div>
</div>
<div style="height:40px"></div>
{/capture}