<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE html
    PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xml:lang="de" lang="de" xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
        <meta http-equiv="X-UA-Compatible" content="IE=Edge" />

		<title>[% if $smarty.const.TITLETEXT != '' %][% $smarty.const.TITLETEXT %][% else %]Helpdesk[% /if %]</title>
        <link rel="SHORTCUT ICON" href="[% if $smarty.const.TITLEICON != '' %][% $smarty.const.TITLEICON %][% else %]images/favicon.ico[% /if %]" />
        <script type="text/javascript" src="includes/js/jquery.min.js"></script>
        <script type="text/javascript" src="includes/js/ajax.js"></script>

        <script type="text/javascript" src="includes/js/jquery-ui.min.js"></script>
        <script type="text/javascript" src="includes/js/jquery.multiselect.js"></script>
        <script type="text/javascript" src="includes/js/fancybox/jquery.fancybox.pack.js"></script>
        <script type="text/javascript" src="includes/js/script.js"></script>

        <link rel="stylesheet" type="text/css" href="styles/[% $CSSTEMPLATE %]/css/screen.css" />
        <link rel="stylesheet" media="only screen and (max-width: 481px)" href="styles/[% $CSSTEMPLATE %]/css/mobile.css" />
        <link rel="stylesheet" media="screen and (device-width: 320px) and (device-height: 640px) and (-webkit-device-pixel-ratio: 2)" href="styles/[% $CSSTEMPLATE %]/css/mobile.css" />

        <link rel="stylesheet" type="text/css" href="styles/[% $CSSTEMPLATE %]/css/jquery-ui.css" media="screen" />
        <link rel="stylesheet" type="text/css" href="includes/js/fancybox/jquery.fancybox.css" media="screen" />
        <link rel="stylesheet" type="text/css" href="styles/[% $CSSTEMPLATE %]/css/jquery.multiselect.css" media="screen" />

        [% foreach from=$javascript item=js %]<script type="text/javascript" src="[% $js %]"></script>[% /foreach %]
        [% if $isWYSIWYG %]
            <!-- TinyMCE -->
            [%*
            //New Editor
            <script type="text/javascript" src="includes/new_tiny_mce/tinymce.min.js"></script>
            <script type="text/javascript">
                tinymce.init({
                    selector: "#FAQDescription",
                    language: '[% $auth->_UserInfo.language_type %]',
                    object_resizing: true,
                    plugins: 'autolink link image lists charmap preview visualchars visualblocks textcolor table searchreplace  paste nonbreaking media hr fullscreen emoticons code bbcode autoresize',
                    toolbar: "styleselect | bold italic | forecolor backcolor emoticons | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image | fullpage preview  ",
                    nonbreaking_force_tab: true,
                    statusbar: false

                });
            </script>
            *%]

            <script type="text/javascript" src="includes/tiny_mce//tiny_mce.js"></script>
            <script type="text/javascript">
                tinyMCE.init({
                    mode: "textareas",
                    theme: "advance    d",
                    language: '[% $auth->_UserInfo.language_type %]',
                    plugins: "pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,inlinepopups,preview,media,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,wordcount,advlist",
                    theme_advanced_buttons1: "forecolor,backcolor,|,bold,italic,underline,strikethrough,sub,sup,|,justifyleft,justifycenter,justifyright,justifyfull,undo,redo,|,fullscreen,preview",
                    theme_advanced_buttons2: "cut,copy,paste,pastetext,pasteword,|,bullist,numlist,|,outdent,indent,blockquote,|,link,unlink,image,cleanup,code,charmap",
                    theme_advanced_buttons3: "tablecontrols,|,hr,removeformat,emotions,media,styleprops",
                    theme_advanced_buttons4: "formatselect,fontselect,fontsizeselect",
                    theme_advanced_toolbar_location: "top",
                    theme_advanced_toolbar_align: "left",
                    theme_advanced_statusbar_location: "bottom",
                    theme_advanced_resizing: true,
                    forced_root_block: false,
                    force_br_newlines: false,
                    force_p_newlines: true,
                    convert_newlines_to_brs: false,
                    remove_redundant_brs: true,
                    remove_linebreaks: true,
                    fix_table_elements: true
                });
            </script>

            <!-- /TinyMCE -->
        [% /if %]

        [% foreach from=$styles item=style %]<link rel="stylesheet" type="text/css" href="[% $style %]" media="screen" />[% /foreach %]
        [% foreach from=$printstyles item=style %]<link rel="stylesheet" type="text/css" href="[% $style %]" media="print" />[% /foreach %]

    </head>


    <body [% if $focus %]onload="document.hm.[% $focus %].focus();"[% /if %]>

        <!-- ###PAGE### begin -->
        <div id="page">
            <div id="static">

                <div class="NotForSmallScreens">
                    <!-- ###TOP### begin -->
                    <div id="top">

                        <div id="DreiDTop">
                            <div id="DreiDBild">
                            </div>

                            <div id="DreiDLogo">
                            </div>
                        </div>

                        <div id="topnav">
                            [% if 'login' == $module %]
                                <div>
                                    <a href="index.php">[% $lang->gettext('Anmelden') %]</a>
                                    [% if $UserCreate && $MailActive %]
                                        &nbsp;&#124;&nbsp;
                                        <a href="index.php?option=createuser" >[% $lang->gettext('Registrieren') %]</a>
                                    [% /if %]
                                </div>
                            [% else %]
                                <div>
                                    <form action="index.php?option=ticket&amp;task=search"  method="get" >
                                        <input type="hidden" name="option" value="ticket" />
                                        <input type="hidden" name="task" value="search" />
                                        <input type="text" name="id" class="textbox ticketid" size="15" maxlength="100" autocomplete="off" placeholder="# [% $lang->gettext('Ticket suchen') %]" />
                                    </form>
                                    &nbsp;&#124;&nbsp;
                                    <a href="index.php?option=logout">[% $lang->gettext('Abmelden') %]</a>
                                </div>
                            [% /if %]
                        </div>
                    </div>
                    <!-- ###TOP### end -->

                    <!-- ###HEADER### begin -->

                    <div id="header">
                        <div id="logotop">
                            <div id="logo1">
                                [% if $smarty.const.LOGO != '' && $smarty.const.LOGO != 'LOGO' %]
                                    <img src="[% $smarty.const.LOGO %]" title="[% $user->Security->Company %]" alt="[% $user->Security->Company %]" id="logo" onclick="window.location.href = 'index.php?option=default';" style="cursor: pointer;"/>
                                [% else %]
                                    <img src="styles/[% $CSSTEMPLATE %]/images/logo.gif" title="[% $user->Security->Company %]" alt="[% $user->Security->Company %]" id="logo" onclick="window.location.href = 'index.php?option=default';" style="cursor: pointer;"/>
                                [% /if %]
                            </div>
                            [% if $hmcompany == '3D CAD GMBH' %]
                                <div id="logo2">
                                    <span id="dreidh1" class="dreidlogo">
                                        HELP DESK
                                    </span>
                                    <br /><br />
                                    <span id="dreidtext" >Online Support System&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;3D CAD Gmbh&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;Nürnberg&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;<a id="dreidlink" href="http://3dcad-gmbh.de/" target="_blank">WWW.3DCAD-GMBH.DE</a></span>
                                </div>
                                <div id="logo3">
                                </div>

                                <div style="clear:right;"></div>
                            [% /if %]

                            [% if $auth->_UserInfo.username %]
                                <div id="userinfo">[% $lang->gettext('Eingeloggt als') %]: [% $auth->_UserInfo.username %] ([% $auth->_UserInfo.name %])</div>
                            [% /if %]
                        </div>
                    </div>
                    <!-- ###HEADER### end -->

                    <!-- ###MENU### begin -->

                    <div id="menu" class="NotForSmallScreens">
                        [% $myMenu %]
                    </div>

                </div> <!-- NotForSmallScreens end-->

                <!-- small header -->
                [% if $user->UserID %]
                    <!-- small header -->

                    <div class="OnlySmallScreens">
                        <div role="navigation" id="nav" class="nav-collapse">
                            <ul>
                                <li [% if $action == 'index.php?module=start' ||  !$action || $action == '' %]class="active"[% /if %] ><a href="index.php?module=start">Start</a></li>      
                                <li [% if $action == 'index.php?module=ticketlist' %]class="active"[% /if %]><a href="index.php?module=ticketlist">Ticketlist</a></li>
                                [% if $user->hasRight(1) %]
                                <li><a href="index.php?module=ticket&event=newTicket">New Ticket</a></li>
                                [% /if %]
                                [% if $user->hasRight(402) %]
                                <li><a href="index.php?module=tickettemplate">New Ticket from Template</a></li>
                                [% /if %]
                                <li> 
                                    <form action="index.php?module=ticket&amp;event=search"  method="get" class="OnlySmallScreens">
                                        <input type="hidden" name="module" value="ticket" />
                                        <input type="hidden" name="event" value="search" />
                                        <a href="#"> 
                                            <input type="text" name="id" class="textbox ticketid" maxlength="100" autocomplete="off" placeholder="# [% $user->gettext('Ticket suchen') %]" />
                                        </a>            
                                    </form>       
                                </li>
                                <li><a href="index.php?module=login&event=logout ">Logout [% $user->Username %] ([% $user->FullName %])</a></li>

                            </ul>
                        </div>
                        <div id="NavTitleBar">
                            <a href="#nav" id="toggle" class="nav-toggle" titlt="Menu" alt="menu">Menu</a>
                            <h2 class="activeSite">
                                [% if $action == 'index.php?module=start' ||  !$action || $action == '' %]Start[% /if %]
                                [% if $action == 'index.php?module=ticketlist' %]Ticketlist[% /if %]                    
                                [% if $action == 'index.php?module=ticket&amp;event=newTicket' %]New Ticket[% /if %]
                                [% if $action == 'index.php?module=tickettemplate' %]New Ticket from Template[% /if %]
                                [% if $action == 'module=ticket&event=show' %]Ticketdetails[% /if %]
                            </h2>
                        </div>
                    </div>
                    <!-- smallheader end -->
                    <script>
                        var nav = responsiveNav("#nav", {customToggle: "#NavTitleBar"});
                    </script>
                [% /if %]


                <br style="clear:both;" />
            </div>
            <!-- ###MENU### end -->

