{css} {if isset($nodeipdata.id)}{$label="Network Device Sessions"}{else}{$label="Node Sessions"}{/if} {tab_container id="nodesessions" label=$label} {tab_header content_id="nodesessionpanel"} {tab_header_cell icon="lms-ui-icon-nodesession"} {if isset($nodeipdata.id)}{trans("Network Device Sessions For Selected IP Address:")}{else}{trans("Node Sessions:")}{/if} {/tab_header_cell} {tab_header_cell} {trans("All sessions")} » {/tab_header_cell} {/tab_header} {tab_contents id="nodesessionpanel"} {tab_table} {if $nodesessions}
{trans("IP Address:")}
{trans("MAC:")}
{trans("Type:")}
{trans("Started:")}
{trans("Finished:")}
{trans("Time Duration:")}
{trans("Terminate Cause:")}
{trans("Downloaded:")}
{trans("Uploaded:")}
 
{/if} {foreach $nodesessions as $nodesession}
{$nodesession.ipaddr}
{$nodesession.mac}
{$unknowntype=1}{$firsttype=1} {foreach $_SESSIONTYPES as $sessiontypeid => $sessiontype} {if ($nodesession.type & $sessiontypeid) == $sessiontypeid} {if !$firsttype}, {/if}{$sessiontype.label} {$firsttype=0} {$unknowntype=0} {/if} {/foreach} {if $unknowntype}-{/if}
{$nodesession.start|date_format:"%Y.%m.%d"} {$nodesession.start|date_format:"%H:%M:%S"}
{$nodesession.stop|date_format:"%Y.%m.%d"} {$nodesession.stop|date_format:"%H:%M:%S"}
{$nodesession.duration}
{$nodesession.terminatecause|default:"-"}
{$nodesession.download}
{$nodesession.upload}
 
{foreachelse}
{trans("That are no sessions for this node.")}
{/foreach} {/tab_table} {/tab_contents} {/tab_container}