# --
# AgentTicketOverviewNavBar.dtl - html for ticket overview table
# Copyright (C) 2001-2010 OTRS AG, http://otrs.org/
# --
# $Id: AgentTicketOverviewNavBar.dtl,v 1.46 2010/12/09 13:17:55 mb Exp $
# --
# This software comes with ABSOLUTELY NO WARRANTY. For details, see
# the enclosed file COPYING for license information (AGPL). If you
# did not receive this file, see http://www.gnu.org/licenses/agpl.txt.
# --

<!-- dtl:block:OverviewNavBar -->
<div class="OverviewBox ARIARoleMain $QData{"View"}">
    <h1>$Text{"$Data{"TitleName"}"}: $Text{"$Data{"TitleValue"}"}</h1>

    $Data{"DataInTheMiddle"}

    <div class="OverviewControl" id="OverviewControl">
        <div>
            <div class="ControlRow">
<!-- dtl:block:OverviewNavBarFilter -->
                <ul class="Tabs">
<!-- dtl:block:OverviewNavBarFilterItem -->
<!-- dtl:block:OverviewNavBarFilterItemSelected -->
                    <li class="Active $QData{"CSS"}">
                        <a name="OverviewControl" href="$Env{"Baselink"}Action=$Env{"Action"};$Data{"FilterLink"}Filter=$LQData{"Filter"}">$Text{"$Data{"Name"}"}<span>$QData{"Count"}</span></a>
                    </li>
<!-- dtl:block:OverviewNavBarFilterItemSelected -->
<!-- dtl:block:OverviewNavBarFilterItemSelectedNot -->
                    <li class="$QData{"CSS"}">
                        <a name="OverviewControl" href="$Env{"Baselink"}Action=$Env{"Action"};$Data{"FilterLink"}Filter=$LQData{"Filter"}">$Text{"$Data{"Name"}"}<span>$QData{"Count"}</span></a>
                    </li>
<!-- dtl:block:OverviewNavBarFilterItemSelectedNot -->
<!-- dtl:block:OverviewNavBarFilterItemSplit -->
                    -
<!-- dtl:block:OverviewNavBarFilterItemSplit -->
<!-- dtl:block:OverviewNavBarFilterItem -->
                </ul>
<!-- dtl:block:OverviewNavBarFilter -->
<!-- dtl:block:OverviewNavBarPageBack -->
                <ul class="Tabs">
                    <li>
                        <a name="OverviewControl" id="TicketSearch" href="$Env{"Baselink"}Action=$Env{"Action"};$Data{"LinkBack"}">$Text{"Change search options"}</a>
                    </li>
                </ul>
<!--dtl:js_on_document_complete-->
<script type="text/javascript">//<![CDATA[
    $('#TicketSearch').bind('click', function (Event) {
        Core.Agent.Search.OpenSearchDialog( 'AgentTicketSearch', '$QData{"Profile"}' );
        return false;
    });
//]]></script>
<!--dtl:js_on_document_complete-->
<!-- dtl:block:OverviewNavBarPageBack -->

<!-- dtl:block:ContextSettings -->
                <ul class="ContextFunctions">
                    <li class="ContextSettings">
                        <a href="#" id="ShowContextSettingsDialog" title="$Text{"Settings"}"><span>$Text{"Settings"}</span></a>
                    </li>
                </ul>

                <div id="ContextSettingsDialogContainer" class="Hidden">
                    <form action="$Env{"CGIHandle"}" method="post" id="ContextSettingsDialog">
                        <input type="hidden" name="Action" value="AgentPreferences"/>
                        <input type="hidden" name="Subaction" value="Update"/>
                        <input type="hidden" name="Group" value="$QData{"Group"}"/>
                        <input type="hidden" name="RedirectURL" value="$QData{"RequestedURL"}"/>
                        <fieldset class="TableLike">
                            <label for="$QData{"PreferencesKey"}">$Text{"Tickets per page"}:</label>
                            <div class="Field">
                                $Data{"PageShownString"}
                            </div>
                            <div class="Clear"></div>
                        </fieldset>
                    </form>
                </div>

<!-- dtl:js_on_document_complete -->
<script type="text/javascript">//<![CDATA[
$('#ShowContextSettingsDialog').bind('click', function (Event) {
    Core.UI.Dialog.ShowContentDialog($('#ContextSettingsDialogContainer'), '$JSText{"Settings"}', '20%', 'Center', true,
        [
            {
                Label: '$JSText{"Submit"}',
                Type: 'Submit',
                Class: 'Primary'}
        ]);
    Event.preventDefault();
    Event.stopPropagation();
    return false;
});
//]]></script>
<!-- dtl:js_on_document_complete -->
<!-- dtl:block:ContextSettings -->

            </div>
            <div class="ActionRow">
                <div class="OverviewActions">
                    $Data{"ActionRow"}
                    <ul class="OverviewZoom">
<!-- dtl:block:OverviewNavBarViewMode -->
<!-- dtl:block:OverviewNavBarViewModeSelected -->
                        <li class="Active">
                            <a class="$QData{"Name"}" name="OverviewControl" href="$Env{"Baselink"}Action=$Env{"Action"};Filter=$LQData{"Filter"};View=$LQData{"View"};$Data{"LinkFilter"}" title="$Text{"$Data{"Name"}"}">
                                <span class="ImageMode">
                                    <span class="NameShort">$Text{"$Data{"NameShort"}"}</span>
                                    <span class="NameLong">$Text{"$Data{"Name"}"}</span>
                                </span>
                            </a>
                        </li>
<!-- dtl:block:OverviewNavBarViewModeSelected -->
<!-- dtl:block:OverviewNavBarViewModeNotSelected -->
                        <li>
                            <a class="$QData{"Name"}" name="OverviewControl" href="$Env{"Baselink"}Action=$Env{"Action"};Filter=$LQData{"Filter"};View=$LQData{"View"};$Data{"LinkFilter"}" title="$Text{"$Data{"Name"}"}">
                                <span class="ImageMode">
                                    <span class="NameShort">$Text{"$Data{"NameShort"}"}</span>
                                    <span class="NameLong">$Text{"$Data{"Name"}"}</span>
                                </span>
                            </a>
                        </li>
<!-- dtl:block:OverviewNavBarViewModeNotSelected -->
<!-- dtl:block:OverviewNavBarViewMode -->
                    </ul>
                    <span class="Pagination">
<!-- dtl:block:OverviewNavBarPageNavBar -->
                        $Data{"ResultLong"}
                        $Data{"SiteNavBarLong"}
<!-- dtl:block:OverviewNavBarPageNavBar -->
                    </span>
                    <div class="ClearLeft"></div>
                </div>
# sort order bar if needed
                $Data{"SortOrderBar"}
            </div>
        </div>
    </div>
</div>

<!-- dtl:block:OverviewNavBar -->
