<?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,chrome=1" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />

		<title>[% if $smarty.const.TITLETEXT != '' %][% $smarty.const.TITLETEXT %][% else %]Helpdesk[% /if %] [% $PageTitle %]</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">
            var ts_lang = '[% $user->language_type %]';    
            </script>            
            <script type="text/javascript" src="includes/js/script.js"></script>

            
[% if 'login' != $module %]
        <script type="text/javascript" src="includes/js/noty/packaged/jquery.noty.packaged.min.js"></script>
            <script type="text/javascript" src="includes/js/noty/themes/heinzelmann.js"></script>    
    [% if $ShowMessages %]
            <script type="text/javascript" src="includes/js/messages.js"></script>
    [% /if %]
[% else %]
    [% if $VisibleNewsArticle || $VisibleKBArticle || $Tools->FCS_Count($LinkList) %]
    <style>
        #topnavdiv{
            overflow-y:hidden;
        }
        #topnavdiv:hover{
            height: 50px;
        }
    </style>
    [% /if %]
[% /if %]
            <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" />


            [% if $LESSStylePath %]
                <link rel="stylesheet" type="text/css" href="[% $LESSStylePath %]" />
            [% else %]
                <link rel="stylesheet" type="text/css" href="styles/[% $CSSTEMPLATE %]/css/screen.css" />
            [% /if %]


[% foreach from=$originPathJS item=js %]<script type="text/javascript" src="[% $js %]"></script>[% /foreach %]
            [% foreach from=$javascript item=js %]<script type="text/javascript" src="[% $js %]"></script>[% /foreach %]
            
            [% if $isWYSIWYG %]
                <!-- TinyMCE -->

                <script type="text/javascript" src="includes/tiny_mce//tiny_mce.js"></script>
                <script type="text/javascript">
                    tinyMCE.init({
                        mode: "textareas",
                        theme: "advanced",
                        language: '[% $user->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=$originPathStyles item=style %]<link rel="stylesheet" type="text/css" href="[% $style %]" media="screen" />[% /foreach %]
            [% 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 %]

                <link rel="stylesheet" href="includes/js/responsive/menu/responsive-nav.css" />
                <script type="text/javascript" src="includes/js/responsive/menu/responsive-nav.min.js"></script>

                </head>


                <body>

                    <!-- ###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 || $pwdrecover %]
                                            <div id="topnavdiv">
                                                [% if $VisibleNewsArticle || $VisibleKBArticle || $Tools->FCS_Count($LinkList) || $pwdrecover %]
                                                    <form autocomplete="off" action="[% $action %]" method="post" name="hm" id="hm" >
                                                        <div id="Login1">
                                                            [% $user->gettext('Login') %]:                                       
                                                            <input type="text" id="lx_small_username" value="[% $Username %]" name="lx_username" class="textbox [% if $errorno == 1 %]error[% /if %]" placeholder="[% $user->gettext('Benutzername') %]" size="25" maxlength="255" autocomplete="off" />

                                                            <input type="password" name="lx_password" value="[% $Password %]" class="textbox [% if $errorno == 2 %]error[% /if %]" placeholder="[% $user->gettext('Passwort') %]" size="25" maxlength="50" autocomplete="off" />                                                            
                                                            [% if $showDomains && $Tools->FCS_Count($domains) %]
                                                                
                                                                <select size="1" name="lx_domain" class="textbox">
                                                                    [% html_options options=$domains %]
                                                                    <option value="">[% $user->gettext('&gt;&gt; ohne Domain &lt;&lt;') %]</option>
                                                                </select>
                                                            [% /if %]
                                                            
                                                            <input type="submit" class="button button-green small" style="height: 1.8em;padding: 1px;" value="Login" />
                                                            [% if $errorno == 2 || $errorno == 1 %]
                                                                <span class="error"> [% $error %] </span>
                                                            [% /if %]

                                                        </div>
                                                        <div id="Login2">

                                                            [% if $remember_me == 1 %]
                                                                
                                                                <label>[% $user->gettext('Anmeldung merken') %]:
                                                                    
                                                                    <input type="checkbox" name="lx_rememberme" class="checkbox" value="1" /></label>
                                                            [% /if %]

                                                            [% if $MailActive && $PwdRecover %]
                                                                
                                                                &nbsp;&nbsp;&nbsp;<input type="button" class="button button-green small" style="height: 1.8em;padding: 1px;" onclick="window.location.href='index.php?module=login&event=pwdrecover';" value="[% $user->gettext('Passwort vergessen ?') %]" />
                                                            [% /if %]
                                                            [% if $UserCreate && $MailActive %]
                                                                
                                                                &nbsp;&nbsp;&nbsp;<input type="button" class="button button-green small" style="height: 1.8em;padding: 1px;" onclick="window.location.href='index.php?module=login&event=createuser';" value="[% $user->gettext('Registrieren') %]" />
                                                            [% /if %]

                                                        </div>
                                                    </form>
                                                [% else %]
                                                    <a href="index.php">[% $user->gettext('Anmelden') %]</a>
                                                [% /if %]

                                                [% if $UserCreate && $MailActive %]
                                                    &nbsp;&#124;&nbsp;
                                                    <a href="index.php?module=login&amp;event=createuser" >[% $user->gettext('Registrieren') %]</a>
                                                [% /if %]
                                            </div>
                                        [% else %]
                                            <div id="topnavdiv" class="NotForSmallScreens">
                                                <form action="index.php?module=ticket&amp;event=search"  method="get" >
                                                    <input type="hidden" name="module" value="ticket" />
                                                    <input type="hidden" name="event" value="search" />

                                                    <input type="text" name="id" class="textbox ticketid" size="15" maxlength="100" autocomplete="off" title="[% $user->gettext('Suche nach TicketID öffnet das Ticket, wenn dieses sichtbar ist.') %]" placeholder="[% $user->gettext('Suche') %]" />
                                                </form>
                                                &nbsp;&#124;&nbsp;
                                                <a href="index.php?module=login&amp;event=logout">[% $user->gettext('Abmelden') %]</a>
                                                [% if $ShowMessages %]
                                                &nbsp;&#124;&nbsp;
                                                <a href="#" class="MessageDialog" id="Messages">[% $user->gettext('Nachrichten') %] (<span id="MessageCount"></span>) <span id="NewMessages"></span></a>
                                                <span id="MessageBox" ></span>
                                                [% /if %]
                                            </div>
                                        [% /if %]
                                    </div>
                                </div>
                                <!-- ###TOP### end -->

                                <!-- ###HEADER### begin -->
                            <div  class="NotForSmallScreens">
                                <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';" 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';" 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 $user->Username %]
                                            <div id="userinfo">[% $user->gettext('Eingeloggt als') %]: [% $user->Username %] ([% $user->FullName %])</div>
                                        [% /if %]
                                    </div>
                                </div>
                                <!-- ###HEADER### end -->

                                <!-- ###MENU### begin -->
                                <div id="menu" class="NotForSmallScreens">
                                    [% $user->getMenu() %]
                                </div>



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

                            [% 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">[% $user->gettext('Startseite') %]</a></li>
                                            <li [% if $action == 'index.php?module=ticketlist' %]class="active"[% /if %]><a href="index.php?module=ticketlist">[% $user->gettext('Ticketliste') %]</a></li>
                                            [% if $user->hasRight(1) %]
                                            <li><a href="index.php?module=ticket&amp;event=newTicket">[% $user->gettext('Neues Ticket') %]</a></li>
                                            [% /if %]
                                            [% if $user->hasRight(402) %]
                                            <li><a href="index.php?module=tickettemplate">[% $user->gettext('Neues Ticket aus Vorlage') %]</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&amp;event=logout ">[% $user->gettext('Logout') %] [% $user->Username %] ([% $user->FullName %])</a></li>

                                        </ul>
                                    </div>
                                    <div id="NavTitleBar">
                                        <a href="#nav" id="toggle" class="nav-toggle" title="Menu">Menu</a>
                                        <h2 class="activeSite">
                                            [% if $action == 'index.php?module=start' ||  !$action || $action == '' %][% $user->gettext('Start') %]
                                            [% elseif $action == 'index.php?module=ticketlist' %][% $user->gettext('Ticketliste') %]
                                            [% elseif $action == 'index.php?module=ticket&amp;event=newTicket' %][% $user->gettext('Neues Ticket') %]
                                            [% elseif $action == 'index.php?module=tickettemplate' %][% $user->gettext('Neues Ticket aus Vorlage') %]
                                            [% elseif $action == 'module=ticket&amp;event=show' %][% $user->gettext('Ticketdetails') %]
                                            [% else %] [% $user->gettext('Menü') %] [% /if %]
                                        </h2>
                                    </div>
                                </div>
                                <!-- smallheader end -->
                                <script type="text/javascript">
                                    var nav = responsiveNav("#nav", {customToggle: "#NavTitleBar", insert: "after"});
                                </script>
                            [% /if %]

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

[% if ($user->LicenceExpired || $user->LicenceExceed) && $user->inGroup(1) %]
    <div class="expired">
    [% if $user->LicenceExpired %]

        [% if $user->NoVersionLicence %]
            [% $user->gettext('Ihre Lizenz ist nicht für die HEINZELMANN Version gültig. Bitte wenden Sie sich an den Vertrieb...') %]
        [% else %]
            [% $user->gettext('Ihre Lizenz ist abgelaufen. Bitte wenden Sie sich an den Vertrieb...') %]
        [% /if %]

    [% else %]

        [% $user->gettext('Es k&ouml;nnen maximal ') %]
        [% $user->licavai %]
        [% $user->gettext(' Benutzer Tickets bearbeiten.<br />Sie haben das Recht aber ') %]
        [% $user->licused %]
        [% $user->gettext(' Benutzern gegeben.') %]

    [% /if %]
    </div>
[% /if %]

                        [% if $leftcontent ||$rightcontent %]
                            <table border="0" width="100%" cellspacing="2" cellpadding="0">
                                <tr>
                                    [% if $leftcontent %]
                                        <td nowrap="nowrap" valign="top" id="leftcontent">[% $leftcontent %]</td>
                                    [% /if %]
                                    <td nowrap="nowrap" valign="top">[% $content %]</td>
                                    [% if $rightcontent %]
                                        <td nowrap="nowrap" valign="top" id="rightcontent">[% $rightcontent %]</td>
                                    [% /if %]
                                </tr>
                            </table>
                        [% else %]
                            [% $content %]
                        [% /if %]

                        <p>&nbsp;</p>

                        <!-- ###COPYRIGHT### begin -->
                        <div id="copyright">
                            <div>
                                <span>Version: [% $user->Version->RELEASE %] &#124; [% if $user->Security->Company %][% 'Lizenziert f&uuml;r:' %] [% $user->Security->Company %][% /if %]</span>
                                &copy; [% $smarty.now|date_format:"%Y" %] FCS Fair Computer Systems GmbH
                            </div>
                        </div>
                        <!-- ###COPYRIGHT### end -->

                    </div>  <!-- Page End -->
[% foreach from=$postBodyJS item=js %]<script type="text/javascript" src="[% $js %]"></script>[% /foreach %]           
[% if $focus %]
<script type="text/javascript">

    $(document).ready(function () {
        $("#[% $focus %]").focus();
        
        [% foreach from=$messages item=message %]
            noty({
               text: '[% $message.text %]',
               layout: 'top',
               theme: 'defaultTheme', // or 'relax'
               closeWith: ['click', 'hover'],
               type: '[% $message.type %]'
            });            
        [% /foreach %]
    })
</script>
[% /if %]

<script type="text/javascript">

    $(document).ready(function () {
       
        [% foreach from=$messages item=message %]
            noty({
               text: "[% $message.text %]",
               layout: 'top',
               theme: 'defaultTheme', // or 'relax'
               closeWith: ['click', 'hover'],
               type: '[% $message.type %]'
            });            
        [% /foreach %]
    })
</script>
                </body>
                </html>
