# --
# AgentNavigationBar.dtl - provides global HTML NavigationBar
# Copyright (C) 2001-2005 Martin Edenhofer <martin+code@otrs.org>
# --
# $Id: AgentNavigationBar.dtl,v 1.52 2005/11/09 23:53:19 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 NavigationBar -->
<table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
  <td valign="top" align="left" class="nav">
    <table border="0" cellspacing="2" cellpadding="2">
    <tr>
<!-- dtl:block:Classic -->
<!-- dtl:block:ItemPre -->
      <td valign="top" align="center" class="nav">
        <div title="$Text{"$QData{"Description"}"}"><a href="$Env{"Baselink"}$Data{"Link"}" accesskey="$QData{"AccessKey"}" onmouseover="window.status='$Text{"$QData{"Name"}"}'; return true;" onmouseout="window.status='';" $Data{"LinkOption"} class="navitem"><img border="0" src="$Env{"Images"}$QData{"Image"}" alt="&nbsp;"><br>$Text{"$QData{"Name"}"}</a></div>
      </td>
<!-- dtl:block:ItemPre -->
<!-- dtl:block:Item -->
      <td valign="top" align="center" class="nav">
        <div title="$Text{"$QData{"Description"}"}"><a href="$Env{"Baselink"}$Data{"Link"}" accesskey="$QData{"AccessKey"}" onmouseover="window.status='$Text{"$QData{"Name"}"}'; return true;" onmouseout="window.status='';" $Data{"LinkOption"} class="navitem"><img border="0" src="$Env{"Images"}$QData{"Image"}" alt="&nbsp;"><br>$Text{"$QData{"Name"}"}</a></div>
      </td>
<!-- dtl:block:Item -->
      <td valign="center">&nbsp;<img border="0" src="$Env{"Images"}h-line.png" alt="-">&nbsp;</td>
#      <td>&nbsp;</td>
<!-- dtl:block:ItemArea -->
      <td valign="top" align="center" class="nav">
        <div title="$Text{"$QData{"Description"}"}"><a href="$Env{"Baselink"}$Data{"Link"}" accesskey="$QData{"AccessKey"}" onmouseover="window.status='$Text{"$QData{"Name"}"}'; return true;" onmouseout="window.status='';" $Data{"LinkOption"} class="navitemarea$QData{"ItemAreaCSSSuffix"}"><img border="0" src="$Env{"Images"}$QData{"Image"}" alt="&nbsp;"><br>$Text{"$QData{"Name"}"}</a></div>
      </td>
<!-- dtl:block:ItemArea -->
    </tr>
    </table>
  </td>
  <td valign="top" align="right" class="nav">
    <table border="0" cellspacing="2" cellpadding="2">
    <tr>
<!-- dtl:block:ItemPersonal -->
      <td valign="top" align="center" class="nav"  width="120">
        <div title="$Text{"$QData{"Description"}"}"><a href="$Env{"Baselink"}$Data{"Link"}" accesskey="$QData{"AccessKey"}" onmouseover="window.status='$Text{"$QData{"Name"}"}'; return true;" onmouseout="window.status='';" $Data{"LinkOption"} class="navitem"><img border="0" src="$Env{"Images"}$QData{"Image"}" alt="&nbsp;"><br>$Text{"$QData{"Name"}"}</a></div>
      </td>
<!-- dtl:block:ItemPersonal -->
<!-- dtl:block:Classic -->

<!-- dtl:block:Modern -->
<!-- dtl:block:ItemPre -->
      <td valign="top" align="center" class="nav">
        <div title="$Text{"$QData{"Description"}"}"><a href="$Env{"Baselink"}$Data{"Link"}" accesskey="$QData{"AccessKey"}" onmouseover="window.status='$Text{"$QData{"Name"}"}'; return true;" onmouseout="window.status='';" $Data{"LinkOption"} class="navitem"><img border="0" src="$Env{"Images"}$QData{"Image"}" alt="&nbsp;"><br>$Text{"$QData{"Name"}"}</a></div>
      </td>
<!-- dtl:block:ItemPre -->
<!-- dtl:block:ItemArea -->
      <td valign="top" align="center" class="nav">
        <div title="$Text{"$QData{"Description"}"}"><a href="$Env{"Baselink"}$Data{"Link"}" accesskey="$QData{"AccessKey"}" onmouseover="window.status='$Text{"$QData{"Name"}"}'; return true;" onmouseout="window.status='';" $Data{"LinkOption"} class="navitemarea$QData{"ItemAreaCSSSuffix"}"><img border="0" src="$Env{"Images"}$QData{"Image"}" alt="&nbsp;"><br>$Text{"$QData{"Name"}"}</a></div>
      </td>
<!-- dtl:block:ItemArea -->
      <td valign="center">&nbsp;<img border="0" src="$Env{"Images"}h-line.png" alt="-">&nbsp;</td>
#      <td>&nbsp;</td>
<!-- dtl:block:Item -->
      <td valign="top" align="center" class="nav">
        <div title="$Text{"$QData{"Description"}"}"><a href="$Env{"Baselink"}$Data{"Link"}" accesskey="$QData{"AccessKey"}" onmouseover="window.status='$Text{"$QData{"Name"}"}'; return true;" onmouseout="window.status='';" $Data{"LinkOption"} class="navitem"><img border="0" src="$Env{"Images"}$QData{"Image"}" alt="&nbsp;"><br>$Text{"$QData{"Name"}"}</a></div>
      </td>
<!-- dtl:block:Item -->
    </tr>
    </table>
  </td>
  <td valign="top" align="right" class="nav">
    <table border="0" cellspacing="2" cellpadding="2">
    <tr>
<!-- dtl:block:ItemPersonal -->
      <td valign="top" align="center" class="nav" width="120">
        <div title="$Text{"$QData{"Description"}"}"><a href="$Env{"Baselink"}$Data{"Link"}" accesskey="$QData{"AccessKey"}" onmouseover="window.status='$Text{"$QData{"Name"}"}'; return true;" onmouseout="window.status='';" $Data{"LinkOption"} class="navitem"><img border="0" src="$Env{"Images"}$QData{"Image"}" alt="&nbsp;"><br>$Text{"$QData{"Name"}"}</a></div>
      </td>
<!-- dtl:block:ItemPersonal -->
<!-- dtl:block:Modern -->
    </tr>
  </table>
  </td>
</tr>
</table>

# for bulk actions
<script language="JavaScript" type="text/javascript">
<!--

var Check = 0;

function BulkChangeSelected(x,c)
{
    c = c + 7;
    if (!document.bulk.elements[c].value) {
        document.bulk.elements[c].value = x;
        if ($Config{"Ticket::Frontend::BulkFeatureJavaScriptAlert"}) {
            alert('$Text{"Ticket selected for bulk action!"}');
        }
#        alert(document.bulk.elements[c].value);
        Check = true;
    }
    else {
        document.bulk.elements[c].value = '';
#        alert(document.bulk.elements[c].value);
    }
}
function BulkSubmit()
{
# check if min one ticket is selected

    if (Check == 0) {
        alert('$Text{"You need min. one selected Ticket!"}');
        return false;
    }
# example
#    document.bulk.Subaction.value = 'Do';
#    document.bulk.State.value = 'closed successful';
#    document.bulk.Queue.value = 'Delete';
#    document.bulk.ArticleType.value = 'note-internal';
#    document.bulk.Subject.value = 'Some Bulk Note';
#    document.bulk.Body.value = 'Some Bulk Text';
    document.bulk.Subaction.value = '';
    document.bulk.State.value = '';
    document.bulk.Queue.value = '';
    document.bulk.ArticleType.value = '';
    document.bulk.Subject.value = '';
    document.bulk.Body.value = '';
    document.bulk.submit()
}
//-->
</script>

<form action="$Env{"CGIHandle"}" method="post" name="bulk">
  <input type="hidden" name="Action" value="AgentTicketBulk">
  <input type="hidden" name="Subaction" value="">
  <input type="hidden" name="Queue" value="">
  <input type="hidden" name="State" value="">
  <input type="hidden" name="ArticleType" value="">
  <input type="hidden" name="Subject" value="">
  <input type="hidden" name="Body" value="">
  <input type="hidden" name="TicketID1" value="">
  <input type="hidden" name="TicketID2" value="">
  <input type="hidden" name="TicketID3" value="">
  <input type="hidden" name="TicketID4" value="">
  <input type="hidden" name="TicketID5" value="">
  <input type="hidden" name="TicketID6" value="">
  <input type="hidden" name="TicketID7" value="">
  <input type="hidden" name="TicketID8" value="">
  <input type="hidden" name="TicketID9" value="">
  <input type="hidden" name="TicketID10" value="">
  <input type="hidden" name="TicketID11" value="">
  <input type="hidden" name="TicketID12" value="">
  <input type="hidden" name="TicketID13" value="">
  <input type="hidden" name="TicketID14" value="">
  <input type="hidden" name="TicketID15" value="">
  <input type="hidden" name="TicketID16" value="">
  <input type="hidden" name="TicketID17" value="">
  <input type="hidden" name="TicketID18" value="">
  <input type="hidden" name="TicketID19" value="">
  <input type="hidden" name="TicketID20" value="">
  <input type="hidden" name="TicketID21" value="">
  <input type="hidden" name="TicketID22" value="">
  <input type="hidden" name="TicketID23" value="">
  <input type="hidden" name="TicketID24" value="">
  <input type="hidden" name="TicketID25" value="">
  <input type="hidden" name="TicketID26" value="">
  <input type="hidden" name="TicketID27" value="">
  <input type="hidden" name="TicketID28" value="">
  <input type="hidden" name="TicketID29" value="">
</form>

<!-- end NavigationBar -->
