# --
# AdminSession.dtl - provides global HTML AdminSession
# Copyright (C) 2001-2005 Martin Edenhofer <martin+code@otrs.org>
# --
# $Id: AdminSession.dtl,v 1.12 2005/02/17 12:16:31 martin Exp $
# --
# This software comes with ABSOLUTELY NO WARRANTY. For details, see
# the enclosed file COPYING for license information (GPL). If you
# did not receive this file, see http://www.gnu.org/licenses/gpl.txt.
# --
<!-- start -->
<table border="0" width="100%" cellspacing="0" cellpadding="3" cols="1">
<tr>
  <td class="mainhead">
    $Env{"Box0"}$Text{"Session Management"}$Env{"Box1"}
  </td>
</tr>
<tr>
  <td class="menu">
    $Env{"Box0"}$Text{"Overview"}$Env{"Box1"}
  </td>
</tr>
<tr>
  <td class="mainbody">
    <p>
    <table>
      <tr><td>$Text{"All"} $Text{"Sessions"}:</td><td>$Data{"Counter"}</td></tr>
      <tr><td>$Text{"Agent"} $Text{"Sessions"}:</td><td>$Data{"UserSession"}</td></tr>
      <tr><td>$Text{"Customer"} $Text{"Sessions"}:</td><td>$Data{"CustomerSession"}</td></tr>
      <tr><td>$Text{"Uniq"} $Text{"Agent"}:</td><td>$Data{"UserSessionUniq"}</td></tr>
      <tr><td>$Text{"Uniq"} $Text{"Customer"}:</td><td>$Data{"CustomerSessionUniq"}
    </table>
    <a href="$Env{"Baselink"}Action=AdminSession&Subaction=KillAll&WantSessionID=$Env{"SessionID"}">$Text{"kill all sessions"}</a><br>
    </p>
  </td>
</tr>
<tr>
  <td class="mainbody">
    <table width="100%" cellspacing="0" cellpadding="3">
      <tr>
        <td class="contenthead">$Text{"Session"}</td>
        <td class="contenthead">$Text{"kill session"}</td>
      </tr>
<!-- dtl:block:Session -->
<dtl if ($Env{"Color"} eq "") { $Env{"Color"} = "searchactive"; }>
      <tr>
        <td class="$Env{"Color"}"><b>$Text{"Session"}: $Data{"SessionID"}</b><br><div class="small">$Data{"Output"}</td>
        <td valign="top" class="$Env{"Color"}"><a href="$Env{"Baselink"}Action=AdminSession&Subaction=Kill&WantSessionID=$Data{"SessionID"}">$Text{"kill session"}</a></td>
      </tr>
<dtl if ($Env{"Color"} eq "searchpassive") { $Env{"Color"} = ""; }>
<dtl if ($Env{"Color"} eq "searchactive") { $Env{"Color"} = "searchpassive"; }>
<!-- dtl:block:Session -->
    </table>
  </td>
</tr>
</table>
<!-- end -->
