<%@ Master Language="VB" CodeFile="Customers.master.vb" Inherits="Customers_Customers" %>

<!DOCTYPE html>

<html>
<head runat="server">     
    <script src="../js/netzwerk.js" type="text/javascript"></script> 
    <script type="text/javascript">
        // Vergebe den Event-Handler
        document.onkeydown = handleKeyEvent;
        // Funktion, die den Event verarbeitet
        function handleKeyEvent(e) {
            // MSIE nimmt das Event-Objekt aus window.event, DOM-kompatible Browser aus dem e-Funktionsparameter
            if (!e) e = window.event;
            // keyCode muss 70 sein und ctrlKey true
            if (e.keyCode == 68 && e.ctrlKey) {
                alert('Strg+D wurde gedrückt');
                //topup
            }
        }
    </script>              
    <!-- Scroll Script-->
    <script src="//code.jquery.com/jquery-1.11.3.min.js"></script>       
     <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  
     <%@ import Namespace="MySql.Data.MySqlClient"%>
    <%@import Namespace="System.Data.SqlClient" %>
    <script runat="server">
        Sub Page_Load() Handles Me.Load
            'Login-Validierung
            If Not Me.Page.User.Identity.IsAuthenticated Then
                FormsAuthentication.RedirectToLoginPage()
            End If

            '  MsgBox ("test")
            'Dim con As New MySqlConnection
            'Dim cmd As New MySqlCommand
            '   Dim reader As MySqlDataReader

            '  con.ConnectionString = "Server=localhost;Database=verag_homepage;Uid=sec_user;Pwd=eKcGZr59zAa2BEWU;"
            ' cmd.Connection = con
            'cmd.CommandText = "select * from map"
            'Try
            'con.Open()
            'MsgBox("conn")
            'reader = cmd.ExecuteReader
            'grid.DataSource = reader
            'reader.Read()

            'MsgBox(reader("title"))
            'DataBind()

            'reader.Close()

            'Catch ex As Exception
            ' MsgBox("err")
            ' End Try
            ' con.Close()

            'If Ver.LIST.Contains(Environment.UserName) == True Then '
            ' Response.Redirect("~{login/login.aspx")'
            'End If '
        End Sub
        ' Public ReadOnly Property CurrentCity() As String
        '   Get
        '    Return "asd"
        '  End Get
        ' End Property,
    </script> 
     
    <script type="text/javascript" src="../js/languageupdatescript.js"></script>
     
    <!--Hover Info --> 
      <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
     <!-- <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script> -->
        <script type="text/javascript">

            $(document).ready(function () {
                $(".btn").click(function () {
                    $("#myModal").modal("show");
                });
            });
        </script>      
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
    <asp:ContentPlaceHolder id="ContentPlaceHolder2" runat="server">
<script src="../js/netzwerk.js" type="text/javascript"></script>        
   
        <link rel="shortcut icon" href="../images/Icons/favicon/favicon.ico" />
    <script type="text/javascript">
        // Vergebe den Event-Handler
        document.onkeydown = handleKeyEvent;
        // Funktion, die den Event verarbeitet
        function handleKeyEvent(e) {
            // MSIE nimmt das Event-Objekt aus window.event, DOM-kompatible Browser aus dem e-Funktionsparameter
            if (!e) e = window.event;
            // keyCode muss 70 sein und ctrlKey true
            if (e.keyCode == 68 && e.ctrlKey) {
                alert('Strg+D wurde gedrückt');
                //topup
            }
        }
    </script>
              
    <!-- Scroll Script-->
    <script src="//code.jquery.com/jquery-1.11.3.min.js"></script>       
    <script type="text/javascript" src="../js/languageupdatescript.js"></script>
     
    <!--Hover Info --> 
      <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
     <!-- <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script> -->
       
        <script type="text/javascript">
            $(document).ready(function () {
                $(".btn").click(function () {
                    $("#myModal").modal("show");
                });
            });
        </script>          
        <style>
        dropbtnbtnbtn{
            color:#043381;
            background-color:#fff;
        }
        #btn_Auftraege {
    
    border:none;
}
    #btn_Auftraege:hover {
         color: #043381;
    background-color: #fff;
        border: 2px solid #043381;
    }
    </style>       
         <link rel="stylesheet" type="text/css" href="../css/style.css"/>
         <link rel="stylesheet" type="text/css" href="../css/Dropdown.css"/>
         <link rel="stylesheet" type="text/css" href="../css/Customers/MasterpageCustomers.css"/>  
        <link rel="stylesheet" type="text/css" href="../css/navbarsidebar.css"/> 
        <link rel="stylesheet" type="text/css" href="../css/navbarsidebar2.css"/>           

         <meta http-equiv ="Page-Enter" content ="blendTrans(Duration=0)"/>
        <meta http-equiv="Page-Exit"content="blendTrans(Duration=0)"/>
    </asp:ContentPlaceHolder>
    <asp:ContentPlaceHolder id="head" runat="server">
        
    </asp:ContentPlaceHolder>
</head>
<body data-spy="scroll" data-target=".navbar" data-offset="50">                                   
                        <!-- <div id="nav-main">
                        <div id="art-logo"></div>
                        </div>        
                        <div id="main-menu">
                        </div> -->
                        <!-- </div> -->                                                                           
                                                                              <%
                                                                                  Dim navParent = "Customer/CustomsAviso.aspx"
                                                                                  Dim var = ""
                                                                                  Dim laenderkuerzel As String = "de"
                                                                                  Dim imgPath As String = ""

                                                                                  If HttpContext.Current.Request.Url.AbsoluteUri.ToString.Contains("admin.aspx") Then
                                                                                      navParent = "admin.aspx"
                                                                                      imgPath = "../"
                                                                                  End If
                                                                                  Dim curentMenuId As String = "1"
                                                                                  If Not Request.QueryString("menuID") Is Nothing Then
                                                                                      curentMenuId = Request.QueryString("menuID")
                                                                                  End If
                                                                                  If Not Request.QueryString("lan") Is Nothing Then
                                                                                      laenderkuerzel = Request.QueryString("lan")
                                                                                  End If

                                                                                  VERAG_PROG_ALLGEMEIN.cAllgemein.TESTSYSTEM = False
                                                                                  Dim LT As New VERAG_PROG_ALLGEMEIN.cLanguageText_LIST("HOMEPAGE", "LOGIN", "STATUS", "")
                                                                                  Dim V_LST As New VERAG_PROG_ALLGEMEIN.cVermerkeCodes_LIST
                                                                                  Dim lan = "DE"

                                                                                  'Response.Write(DB2.qry_contentNew(menuID, lan)) 

                                                                                  Dim flagpath = "images/flags/flagge_DE_AT.gif"

                                                                                  Dim lan3 As String = Request.QueryString("lan3")
                                                                                  If laenderkuerzel = "DE" And lan3 = "0" Then
                                                                                      flagpath = "images/flags/flagge_DE_AT.gif"
                                                                                  ElseIf laenderkuerzel = "EN" And lan3 = "0" Then
                                                                                      flagpath = "images/flags/flagge_GB.gif"
                                                                                  ElseIf laenderkuerzel = "SRB" And lan3 = "0" Then
                                                                                      flagpath = "images/flags/flagge_BIH.gif"
                                                                                  ElseIf laenderkuerzel = "SRB" And lan3 = "1" Then
                                                                                      flagpath = "images/flags/flagge_SM.gif"
                                                                                  ElseIf laenderkuerzel = "BG" And lan3 = "0" Then
                                                                                      flagpath = "images/flags/flagge_BG.gif"
                                                                                  ElseIf laenderkuerzel = "TR" And lan3 = "0" Then
                                                                                      flagpath = "images/flags/flagge_TR.gif"
                                                                                  End If

                                                                                  Dim Connectionstring As String = String.Empty
                                                                                  Dim username As String = Me.Page.User.Identity.Name
                                                                                  Dim lastloggedin As String = String.Empty
                                                                                  Dim createdUserDate As String = String.Empty
                                                                                  Dim emailuser As String = String.Empty

                                                                                  If HttpContext.Current.Request.ServerVariables("SERVER_NAME") = "localhost" Then
                                                                                      'ConnectionString = "Server=DEVELOPER\DEVSQL;Database=VERAG_HOMEPAGE;Uid=sa;Pwd=BmWr501956"
                                                                                      ConnectionString = "Server=DEVELOPER\DEVSQL;Database=VERAG_HOMEPAGE;Uid=AppUser;Pwd=yp/THDd?xM+pZ$;"
                                                                                  Else
                                                                                      ConnectionString = "Server=DEVELOPER.verag.ost.dmn\DEVSQL;Database=VERAG_HOMEPAGE;Uid=AppUser;Pwd=yp/THDd?xM+pZ$;"
                                                                                      'ConnectionString = "Server=db593295684.db.1and1.com;Database=db593295684;Uid=dbo593295684;Pwd=atilla#2;"
                                                                                  End If
                                                                                  ' Dim constr As String = ConfigurationManager.ConnectionStrings("constr").ConnectionString
                                                                                  Using con As New SqlConnection(ConnectionString)
                                                                                      ' Using cmd As New SqlCommand("Validate_User")
                                                                                      Using cmd As New SqlCommand("SELECT Username,Email,LastLoginDate,CreatedDate FROM [VERAG_HOMEPAGE].[dbo].[Users] WHERE Username=@Username")
                                                                                          ' cmd.CommandType = CommandType.StoredProcedure
                                                                                          cmd.Parameters.AddWithValue("@Username", username)
                                                                                          cmd.Connection = con
                                                                                          con.Open()
                                                                                          'userId = Convert.ToInt32(cmd.ExecuteScalar())
                                                                                          Dim dr As SqlDataReader = cmd.ExecuteReader()
                                                                                          If dr.Read() Then
                                                                                              username = dr("Username").ToString()
                                                                                              lastloggedin = dr("LastLoginDate").ToString()
                                                                                              createdUserDate = dr("CreatedDate").ToString()
                                                                                              emailuser = dr("Email").ToString()
                                                                                          End If
                                                                                      End Using
                                                                                      con.Close()
                                                                                  End Using
                                                                                  %>          
   <li class="wrapper">
        <!-- Sidebar  -->
        <nav id="sidebar">
            <div class="container">              
                <div class="sidebar-header">
                    <a class="navbar-brand" id="navbarhomebar" href="../newpageJulius_Sidebar.aspx"><img src="../images/Logo_small.png" width="175" height="35" alt="Logo VERAG Spedition AG" data-toggle="tooltip" data-placement="top" title="https://www.verag.ag"/></a>   
                </div>
                <ul class="list-unstyled components" style="color:#043381;background-color:#fff">
                    <%If Me.Page.User.Identity.Name = "test" Then %>
                        <p style="font-size:medium;font-weight:600;" data-toggle="tooltip" data-placement="right" title="Durchklicken und mehr über uns erfahren!">VERAG Hauptmenü:</p>
                    <%ElseIf Me.Page.User.Identity.Name = "test2" Then %>
                        <p style="font-size:medium;font-weight:600;" data-toggle="tooltip" data-placement="right" title="Durchklicken und mehr über uns erfahren!">Kunden Hauptmenü:</p>
                     <%ElseIf Me.Page.User.Identity.Name = "userwithlongername" Then %>
                        <p style="font-size:medium;font-weight:600;" data-toggle="tooltip" data-placement="right" title="Durchklicken und mehr über uns erfahren!">Avisierer Hauptmenü:</p>
                     <%ElseIf Me.Page.User.Identity.Name = "Userwithlongername" Then %>
                        <p style="font-size:medium;font-weight:600;" data-toggle="tooltip" data-placement="right" title="Durchklicken und mehr über uns erfahren!">Mitarbeiter Hauptmenü:</p>
                    <%End If %>
                            <li class="active">                                        
                                                        <li>
                                                           <!-- <a href="#WelcomeSubmenu1" data-toggle="collapse" aria-expanded="false" class="dropdown-toggle">Startseite</a>                        
                                                            <ul style="list-style: none;"class="collapse list-unstyled" id="WelcomeSubmenu1">
                                                                 <span class="navbar-toggler-icon"></span>-->
                                                                <%If Me.Page.User.Identity.Name = "test" Then %>
                                                                        <li><a href="Welcome.aspx" style="background-color:#fff;color:#043381;text-align:left; border:none">Startseite</a></li>
                                                                    <%ElseIf Me.Page.User.Identity.Name = "test2" Then %>
                                                                        <li><a href="Welcome.aspx" style="background-color:#fff;color:#043381;text-align:left;border:none">Startseite</a></li>
                                                                    <%ElseIf Me.Page.User.Identity.Name = "userwithlongername" Then%>
                                                                        <li><a type="button" class="btn btn-primary" href="Welcome.aspx" style="background-color:#fff;color:#043381;text-align:left;border:none">Startseite</a></li>
                                                                    <%ElseIf Me.Page.User.Identity.Name = "Userwithlongername" Then%>
                                                                        <li><a type="button" class="btn btn-primary" href="Welcome.aspx" style="background-color:#fff;color:#043381;text-align:left;border:none">Startseite</a></li>
                                                                    <%End If %>                                                                    
                                                                
                                                          <!--  </ul>-->
                                                        </li>
                                                        <li>                                                        
                                                        <!--    <a href="#RechnungenSubmenu1" data-toggle="collapse" aria-expanded="false" class="dropdown-toggle">Rechnungen</a>                        
                                                            <ul style="list-style: none;"class="collapse list-unstyled" id="RechnungenSubmenu1">
                                                                 <span class="navbar-toggler-icon"></span>-->                                                                
                                                                    <%If Me.Page.User.Identity.Name = "test" Then %>
                                                                         <li><a href="Invoices.aspx" style="background-color:#fff;color:#043381;text-align:left;border:none">Rechnungen</a></li>
                                                                    <%ElseIf Me.Page.User.Identity.Name = "test2" Then %>
                                                                         <li><a href="LKWs.aspx" style="background-color:#fff;color:#043381;text-align:left;border:none">LKWs</a></li>
                                                                    <%ElseIf Me.Page.User.Identity.Name = "userwithlongername" Then%>
                                                                        <li><a type="button" class="btn btn-primary" href="#" aria-disabled="true" data-bs-toggle="tooltip" data-bs-placement="top" title="Bald verfügbar!" style="background-color:#fff;color:#043381;text-align:left;border:none">Coming soon</a></li>
                                                                    <%ElseIf Me.Page.User.Identity.Name = "Userwithlongername" Then%>
                                                                        <li><a type="button" class="btn btn-primary" href="Invoices.aspx" style="background-color:#fff;color:#043381;text-align:left;border:none">Rechnungen</a></li>
                                                                    <%End If %>                                                                
                                                             <!--  </ul>-->
                                                        </li>                                                        
                                                        <li>
                                                        <!--    <a href="#RechnungenSubmenu1" data-toggle="collapse" aria-expanded="false" class="dropdown-toggle">Rechnungen</a>                        
                                                            <ul style="list-style: none;"class="collapse list-unstyled" id="RechnungenSubmenu1">
                                                                 <span class="navbar-toggler-icon"></span>-->                                                               
                                                                    <%If Me.Page.User.Identity.Name = "test" Then %>
                                                                        <li><a href="CustomsAviso.aspx" style="background-color:#fff;color:#043381;text-align:left;border:none">Aufträge</a></li>
                                                                    <%ElseIf Me.Page.User.Identity.Name = "test2" Then %>
                                                                        <li><a href="Cards_Boxes.aspx" style="background-color:#fff;color:#043381;text-align:left;border:none">Karten_Boxen</a></li>
                                                                    <%ElseIf Me.Page.User.Identity.Name = "userwithlongername" Then%>
                                                                         <li><a type="button" class="btn btn-primary" href="CustomsAviso.aspx" aria-disabled="false" data-bs-toggle="tooltip" data-bs-placement="top" title="Aufträge" style="background-color:#fff;color:#043381;text-align:left;border:none">Aufträge</a></li>                                                  
                                                                    <%ElseIf Me.Page.User.Identity.Name = "Userwithlongername" Then%>
                                                                        <li><a type="button" class="btn btn-primary" href="#" aria-disabled="true" data-bs-toggle="tooltip" data-bs-placement="top" title="Bald verfügbar!" style="background-color:#fff;color:#043381;text-align:left;border:none">Coming soon</a></li> 
                                                                    <%End If %>                                                               
                                                             <!--  </ul>-->
                                                        </li>
                                                        <li>
                                                        <!--    <a href="#RechnungenSubmenu1" data-toggle="collapse" aria-expanded="false" class="dropdown-toggle">Rechnungen</a>                        
                                                            <ul style="list-style: none;"class="collapse list-unstyled" id="RechnungenSubmenu1">
                                                                 <span class="navbar-toggler-icon"></span>-->                                                                
                                                                    <%If Me.Page.User.Identity.Name = "test" Then %>
                                                                        <li><a href="#" aria-disabled="true" data-bs-toggle="tooltip" data-bs-placement="top" title="Bald verfügbar!" style="background-color:#fff;color:#043381;text-align:left;border:none">Coming soon</a></li>
                                                                    <%ElseIf Me.Page.User.Identity.Name = "test2" Then %>
                                                                        <li><a href="Invoices.aspx" style="background-color:#fff;color:#043381;text-align:left;border:none">Rechnungen</a></li>
                                                                    <%ElseIf Me.Page.User.Identity.Name = "userwithlongername" Then%>
                                                                        <li><a type="button" class="btn btn-primary" href="#" aria-disabled="true" data-bs-toggle="tooltip" data-bs-placement="top" title="Bald verfügbar!" style="background-color:#fff;color:#043381;text-align:left;border:none">Coming soon</a></li>
                                                                    <%ElseIf Me.Page.User.Identity.Name = "Userwithlongername" Then%>
                                                                        <li><a type="button" class="btn btn-primary" href="Invoices.aspx" style="background-color:#fff;color:#043381;text-align:left;border:none">Rechnungen</a></li>
                                                                    <%End If %>                                                                
                                                             <!--  </ul>-->
                                                        </li>                
                                                        <li>
                                                          <a href="#UserSubmenu1" data-bs-toggle="collapse" aria-expanded="false" class="dropdown-toggle">Benutzerprofil</a>                        
                                                            <ul style="list-style: none;"class="collapse list-unstyled" id="UserSubmenu1">
                                                                    <span class="navbar-toggler-icon"></span>                                                                
                                                                    <li><button type="button" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#exampleModal" style="text-decoration: none;background-color:#fff;color:#043381;text-align:left;border:none;font-size:16px;white-space: nowrap; height:20px"><img src="../images/Icons/main/gear_blue.png"; style="width:15px; height:15px;color:#043381;background-color:#fff;margin-right:6px;" />Profil bearbeiten</button>  </li>                                                              
                                                                    <li><a type="button" class="btn btn-primary"  href="../login/Logout.aspx" style="text-decoration: none;background-color:#fff;color:#043381;text-align:left;border:none;font-size:16px;width:200px;z-index:1032;margin-left:-16px"><img src="../images/Icons/main/Logout.svg.png"; style="font-size:14px;width:20px; height:20px;color:#043381;background-color:#fff; margin-right:6px;"/>Logout</a></li>                     
                                                            </ul>
                                                      </li>    
             </ul>                
                </div></nav>  
        <!-- Page Content  -->
   <nav class="container-xxl" style="align-content:center">      
      <nav id="content">                        
        <div class="modal fade" id="exampleModal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
            <div class="modal-dialog" style="width:800px">
                    <div class="modal-content" style="width:800px;">
                        <div class="modal-header">
                            <h5 class="modal-title" id="exampleModalLabel">Profil: User: <%=Me.Page.User.Identity.Name %></h5>
                            <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
                       </div>
                       <div class="modal-body" style="width:800px">                                                                                                                              
                            <div class="container-fluid" id="contfluid" style="width:800px;padding:2px 2px 2px 2px"><center>
                                 <div class="row">
                                      <div class="col-sm-6">
                                           <ul style="list-style:unset;border:2.3px solid #043381;text-align:start">
                                               <li>Profilbild:</li>
                                           </ul>
                                           <center><asp:Image ID="Image1" runat="server" ImageUrl="~/images/samples/default-avatar.jpg" width="130" Height="130"/></center>                                                                                                        
                                    </div>
                                    <div class="col-sm-5">
                                        <ul style="list-style:unset;border:2.3px ridge #043381;text-align:start">
                                             <li> Name: <%=Me.Page.User.Identity.Name %></li>
                                             <li> Registriert seit: <%=createdUserDate %></li>
                                             <li> Email: <%=emailuser %></li>
                                             <li>letzter Login: <%=lastloggedin %></li>
                                             <li> Die Berechtigungen im Überblick:</li>
                                        <ul>
                                       
                                                                                                              <%'Dim berecht As Boolean
'Dim imgpath2 As String = ""
'For Each ber In berecht[] +
'If ber = True Then
' imgPath = "../images/Icons/main/checkmarkcircle_veragblau.png"
'Else
'imgPath = "../images/Icons/main/cross_wrong_close_delete_icon.png"
'End If
'Next
'End If -->%>
                                                                                                             <!-- <li><img src="<%'=imgpath2 %>" style="width:20px;height:20px;"/>"Zoll"</li>                                                                                                                                       
                                                                                                              <li> <img src="<%'=imgpath2 %>" style="width:20px;height:20px;"/>"Suben"</li>
                                                                                                              <li><img src="<%'=imgpath2 %>" style="width:20px;height:20px;"/>"Waidhaus"</li>-->
                                                                                                              <li><img src="../images/Icons/main/checkmarkcircle_veragblau.png" style="width:20px;height:20px;"/>"Zoll"</li>                                                                                                                                       
                                                                                                              <li> <img src="../images/Icons/main/checkmarkcircle_veragblau.png" style="width:20px;height:20px;"/>"Suben"</li>
                                                                                                              <li><img src="../images/Icons/main/cross_wrong_close_delete_icon.png" style="width:20px;height:20px;"/>"Waidhaus"</li>
                                                                                                          </ul>
                                                                                                       </ul>
                                                                                                   </div>                                                                                            
                                                                                            </div></center>
                                                                                     </div>                               
                                                                                 </div>
                                                                                <div class="modal-footer">
                                                                                    <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
                                                                                </div></div>
                                                                                </div>  
            </div>
                                    <div class="d-md-none">               
                                        <nav class="navbar navbar-expand-md navbar-light bg-light justify-content-md-center flex-nowrap" data-spy="affix" data-offset-top="197">                                                                                                
                                                     <button type="button" id="sidebarCollapse" class="btn btn-info" style="background-color:#fff; color:#043381;">                                          
                                                        <div class="align-self: center">
                                                          <span><img src="../images/Icons/main/menu veragblau.svg" style="width:initial;height:initial;" alt="Hamburger Menu Stripes in Verag Blue" data-toggle="tooltip" data-placement="top" title="Zeigt das Menü an."></span>
                                                     </div>                                                 
                                                     </button>                                                
                                                    <a class="navbar-brand" id="navbarhomebar" href="../newpageJulius_Sidebar.aspx"><img src="../images/Logo_small.png" style="width:90%;height:90%;" alt="VERAG Spedition AG Logo with blue word color until grey AG" data-toggle="tooltip" data-placement="top" title="https://www.verag.ag"></a>                                           
                                            <button class="btn btn-primary" type="button" data-bs-toggle="offcanvas" data-bs-target="#offcanvasWithBothOptions" aria-controls="offcanvasWithBothOptions" style="background-color:#fff; color:#043381;"><img src="../<%= imgPath%>images/flags/flagge_DE_AT_big.gif" width="25"; /></button>                                           
                                       </nav>
                                          </div>

                                               <div class="offcanvas offcanvas-end" data-bs-scroll="true" tabindex="-1" id="offcanvasWithBothOptions" aria-labelledby="offcanvasWithBothOptionsLabel">
                                                      <div class="offcanvas-header">
                                                      <h5 class="offcanvas-title" id="offcanvasWithBothOptionsLabel">Sprachauswahl:</h5>
                                                      <button type="button" class="btn-close text-reset" data-bs-dismiss="offcanvas" aria-label="Close"></button>
                                                   </div>
                                                        <div class="offcanvas-body">                                                           
                                                          <%  Dim strDElang = "&nbsp Deutsch"
                                                              Dim strENlang = "&nbsp Englisch"
                                                              Dim strBIHLang = "&nbsp Bosnisch"
                                                              Dim strSRBlang = "&nbsp Serbisch"
                                                              Dim strBGlang = "&nbsp Bulgarisch"
                                                              Dim strTRlang = "&nbsp Türkisch"%>
                                                         <ul style="list-style: none;">                                                             
                                                             <li style="transform: rotate(0);">
                                                                 <!--<a id="ButtonDeutschLangPicker" class="btn btn-primary btn-sm"   href="<%'= navParent%>&lan=DE"><img src="<%'= imgPath%>images/flags/flagge_DE_AT.gif" <%' If laenderkuerzel = "de" Then Response.Write("style='border:1px solid #000'")%>/>DE/AT</a>-->
                                                                 <a id="ButtonDeutschLangPicker2" href="<%= navParent%>?lan2=DE&lan3=0" class="stretched-link" style="text-decoration: none;"><img src="../<%= imgPath%>images/flags/flagge_DE_AT_big.gif"; width="20" <% If laenderkuerzel = "DE" & lan3 = "0" Then Response.Write("style='border:1px solid #000'")%>/><%=strDElang %></a>
                                                             </li>
                                                             <li style="transform: rotate(0);">
                                                                 <!--<a id="ButtonEnglischLangPicker" class="btn btn-primary btn-sm" href="<%'= navParent%>&lan=EN"><img src="<%'= imgPath%>images/flags/flagge_GB.gif" <%' If laenderkuerzel = "en" Then Response.Write("style='border:1px solid #000'")%>/>EN</a>-->
                                                                 <a id="ButtonEnglischLangPicker2" href="<%= navParent%>?lan2=EN&lan3=0" class="stretched-link" style="text-decoration: none;"><img src="../<%= imgPath%>images/flags/flagge_GB_big.gif"; width="20"; <% If laenderkuerzel = "EN" & lan3 = "0" Then Response.Write("style='border:1px solid #000'")%>/><%=strENlang %></a>
                                                             </li>
                                                             <li style="transform: rotate(0);">
                                                                 <!--<a id="ButtonSerbischLangPicker" class="btn btn-primary btn-sm" href="<%'= navParent%>&lan=SRB"><img src="<%'= imgPath%>images/flags/flagge_BIH.gif" <%' If laenderkuerzel = "yu" Then Response.Write("style='border:1px solid #000'")%> />BIH</a>-->
                                                                 <a id="ButtonSerbischLangPicker2" href="<%= navParent%>?lan2=SRB&lan3=0" class="stretched-link" style="text-decoration: none;"><img src="../<%= imgPath%>images/flags/flagge_BIH_big.gif"; width="20"; <% If laenderkuerzel = "DE" & lan3 = "0" Then Response.Write("style='border:1px solid #000'")%>/><%=strBIHLang %></a>
                                                             </li>
                                                             <li style="transform: rotate(0);">
                                                                 <!--<a id="ButtonSerbischZweiLangPicker" class="btn btn-primary btn-sm" href="<%'= navParent%>&lan=SM"><img src="<'%= imgPath%>images/flags/flagge_SM.gif" <%' If laenderkuerzel = "yu" Then Response.Write("style='border:1px solid #000'")%> />SRB</a>-->
                                                                 <a id="ButtonSerbischZweiLangPicker2" href="<%= navParent%>?lan2=SRB&lan3=1" class="stretched-link" style="text-decoration: none;"><img src="../<%= imgPath%>images/flags/flagge_SM_big.gif"; width="20"; <% If laenderkuerzel = "SRB" & lan3 = "1" Then Response.Write("style='border:1px solid #000'")%>/><%=strSRBlang %></a>
                                                             </li>
                                                             <li style="transform: rotate(0);">
                                                                 <!--<a id="ButtonBulgariaLangPicker" class="btn btn-primary btn-sm"  href="<%'= navParent%>&lan=BG"><img src="<%'= imgPath%>images/flags/flagge_BG.gif" <%' If laenderkuerzel = "bg" Then Response.Write("style='border:1px solid #000'")%>/>BG</a>-->
                                                                 <a id="ButtonBulgariaLangPicker2" href="<%= navParent%>?lan2=BG&lan3=0" class="stretched-link" style="text-decoration: none;"><img src="../<%= imgPath%>images/flags/flagge_BG_big.gif"; width="20"; <% If laenderkuerzel = "BG" & lan3 = "0" Then Response.Write("style='border:1px solid #000'")%>/><%=strBGlang %></a>
                                                             </li>
                                                             <li style="transform: rotate(0);">
                                                                 <!--<a id="ButtonTürkeiLangPicker" class="btn btn-primary btn-sm"  href="<%'= navParent%>&lan=TR"><img src="<%'= imgPath%>images/flags/flagge_TR.gif" <%' If laenderkuerzel = "yu" Then Response.Write("style='border:1px solid #000'")%>/>TR</a>-->
                                                                 <a id="ButtonTürkeiLangPicker2" href="<%= navParent%>?lan2=TR&lan3=0" class="stretched-link" style="text-decoration: none;"><img src="../<%= imgPath%>images/flags/flagge_TR_big.gif"; width="20"; <% If laenderkuerzel = "EN" & lan3 = "0" Then Response.Write("style='border:1px solid #000'")%>/><%=strENlang%></a>                                                                                                                                                                                                                                                                                                                                                             
                                                             </li>
                                                          </ul>
                                                     </div>
                                                </div>            
    
                               <div class="d-none d-md-block">                                                     
                               <nav class="navbar fixed-top navbar-expand-lg navbar-light" style="background-color:#fff" data-spy="affix" data-offset-top="197">                                 
                                                      <a class="navbar-brand" href="../newpageJulius_Sidebar.aspx?lan2=DE&lan3=0"><img src="../images/Logo_small.png" style:"width:120px" alt="Schriftzug: Verag AG Blaue Schrift: Verag Spedition Graue Schrift: AG" data-toggle="tooltip" data-placement="top" title="https://www.verag.ag"/></a>              
                                                       <div style="margin-left:30%;margin-right:-30%">
                                                                                                        <div class="btn-group">
                                                                                                            <%If Me.Page.User.Identity.Name = "test" Then %>
                                                                                                                <a type="button" class="btn btn-primary" href="Welcome.aspx">Startseite</a>
                                                                                                            <%ElseIf Me.Page.User.Identity.Name = "test2" Then%>
                                                                                                                <a type="button" class="btn btn-primary" href="LKWs.aspx">LKWs</a>
                                                                                                            <%ElseIf Me.Page.User.Identity.Name = "userwithlongername" Then%>
                                                                                                                <a type="button" class="btn btn-primary" href="Welcome.aspx">Startseite</a>
                                                                                                            <%ElseIf Me.Page.User.Identity.Name = "Userwithlongername" Then%>
                                                                                                                <a type="button" class="btn btn-primary" href="Welcome.aspx">Startseite</a>
                                                                                                            <% End If %>
                                                                                                          <!--   <button type="button" class="btn btn-danger dropdown-toggle dropdown-toggle-split" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" style="background-color:#fff; color:#043381;border:hidden;">
                                                                                                          <span class="visually-hidden">Toggle Dropdown</span>
                                                                                                          </button>-->
                                                                                                         <!-- <div class="dropdown-menu">
                                                                                                            <a class="dropdown-item" href="#">Action</a>
                                                                                                            <a class="dropdown-item" href="#">Another action</a>
                                                                                                            <a class="dropdown-item" href="#">Something else here</a>
                                                                                                            <div class="dropdown-divider"></div>
                                                                                                            <a class="dropdown-item" href="#">Separated link</a>
                                                                                                          </div>-->
                                                                                                        </div>                                               
                                                                                                          <div class="btn-group">
                                                                                                           <%If Me.Page.User.Identity.Name = "test" Then %>
                                                                                                              <a type="button" class="btn btn-primary" href="CustomsAviso.aspx">Aufträge</a>
                                                                                                           <%ElseIf Me.Page.User.Identity.Name = "test2" Then%>
                                                                                                              <a type="button" class="btn btn-primary" href="Invoices.aspx">Rechnungen</a>
                                                                                                           <%ElseIf Me.Page.User.Identity.Name = "userwithlongername" Then%>
                                                                                                              <a type="button" class="btn btn-primary" href="Invoices.aspx">Rechnungen</a>
                                                                                                           <%ElseIf Me.Page.User.Identity.Name = "Userwithlongername" Then%>
                                                                                                             <a type="button" class="btn btn-primary" href="CustomsAviso.aspx" aria-disabled="false" data-bs-toggle="tooltip" data-bs-placement="top" title="Aufträge" style="background-color:#fff;color:#043381;text-align:left;border:none">Aufträge</a>
                                                                                                           <% End If %>
                                                                                                          <!-- <button type="button" class="btn btn-danger dropdown-toggle dropdown-toggle-split" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false" style="background-color:#fff; color:#043381;border:hidden;">
                                                                                                          <span class="visually-hidden">Toggle Dropdown</span>
                                                                                                          </button>-->
                                                                                                         <!-- <div class="dropdown-menu">
                                                                                                            <a class="dropdown-item" href="#">Action</a>
                                                                                                            <a class="dropdown-item" href="#">Another action</a>
                                                                                                            <a class="dropdown-item" href="#">Something else here</a>
                                                                                                            <div class="dropdown-divider"></div>
                                                                                                            <a class="dropdown-item" href="#">Separated link</a>
                                                                                                          </div>-->
                                                                                                        </div>                                                    
                                                                                                          <div class="btn-group">
                                                                                                              <%If Me.Page.User.Identity.Name = "test" Then %>
                                                                                                                <a type="button" class="btn btn-primary" href="Invoices.aspx">Rechnungen</a>
                                                                                                              <%ElseIf Me.Page.User.Identity.Name = "test2" Then%>
                                                                                                                <a type="button" class="btn btn-primary" href="Cards_Boxes.aspx">Karten_Boxen</a>
                                                                                                              <%ElseIf Me.Page.User.Identity.Name = "userwithlongername" Then%>
                                                                                                                 <a type="button" class="btn btn-primary" href="CustomsAviso.aspx" aria-disabled="false" data-bs-toggle="tooltip" data-bs-placement="top" title="Aufträge" style="background-color:#fff;color:#043381;text-align:left;border:none">Aufträge</a> 
                                                                                                              <%ElseIf Me.Page.User.Identity.Name = "Userwithlongername" Then%>
                                                                                                              <a type="button" class="btn btn-primary" href="Invoices.aspx">Rechnungen</a>
                                                                                                              <% End If %>
                                                                                                         <!--  <button type="button" class="btn btn-danger dropdown-toggle dropdown-toggle-split" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false" style="background-color:#fff; color:#043381;border:hidden;">
                                                                                                            <span class="visually-hidden">Toggle Dropdown</span>
                                                                                                          </button>-->
                                                                                                         <!-- <div class="dropdown-menu">
                                                                                                            <a class="dropdown-item" href="#">Action</a>
                                                                                                            <a class="dropdown-item" href="#">Another action</a>
                                                                                                            <a class="dropdown-item" href="#">Something else here</a>
                                                                                                            <div class="dropdown-divider"></div>
                                                                                                            <a class="dropdown-item" href="#">Separated link</a>
                                                                                                          </div>-->
                                                                                                        </div>                                                                                                
                                                                              </div>                            
             
                                           <div class="dropdown" id="dropdownbtnmain"  style="position: absolute; top:-18px; right:202px; width:200px;z-index:1032; margin-right:2px;">
                                                  <button class="dropbtn" class="btn btn-primary" id="dropbtnbtnbtn" style="height:50px; width:205px;right:-194px;white-space:nowrap" 
                                                  <button type="button" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#exampleModal" style="background-color:#fff;color:#043381; width:30px;height:50px;white-space:nowrap"><img src="../images/samples/default-avatar.jpg"; width="15"; /><a data-bs-toggle="modal" data-bs-target="#exampleModal"><asp:LoginName class="pointer" ID="LoginName2" runat="server" style="margin-left:6px"/></a></button>
                                              </button>                                                
                                              <ul class="dropdown-content" id="dropdownmenuecont" style="width:210px;right:-198px;top:45px;z-index:1032;margin-right:-2px;">                           
                                                           <li><button type="button" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#exampleModal" style="text-decoration: none;background-color:#fff;color:#043381;z-index:1032;text-align:left;margin-left:-16px;border:none;font-size:16px;white-space: nowrap; width:200px"><img src="../images/Icons/main/gear_blue.png"; style="font-size:14px;width:15px; height:15px;color:#043381;background-color:#fff;margin-right:6px;" />Profil bearbeiten</button></li>                                                              
                                                         <li><a type="button" class="btn btn-primary"  href="../login/Logout.aspx" style="text-decoration: none;background-color:#fff;color:#043381;text-align:left;border:none;font-size:16px;width:200px;z-index:1032;margin-left:-16px;width:200px"><img src="../images/Icons/main/Logout.svg.png"; style="font-size:14px;width:20px; height:20px;color:#043381;background-color:#fff; margin-right:6px;"/>Logout</a></li>                     
                                                        <!-- <div class="dropdown-divider"></div>-->                                                                       
       </ul></div>  

                                   <div class="dropdown" id="langbutmenu" style="background-color:#fff; color:#043381;position:absolute;top:16%;right:35px;z-index:1031;width:154px">
                                              <button class="dropbtn" id="dropbtnlang" style="color:#043381;background-color:#fff;position:absolute;top:16%;right:45px;z-index:1031"><center><img id="myImage" src="../<%=flagpath%>" style="border:1px solid #fff;width:32px; justify-items:center;" alt="Logo Schriftzug: Verag Spedition AG Blaue Schrift: Verag Spedition Graue Schrift: AG" /></center></button>
                                              <div class="dropdown-content" id="langdropdown" style="position:absolute; width:100%;top:2%;right:35px;z-index:1031">     
                                                  <%  Dim stringDE = "&nbsp  DE"
                                                      Dim stringEN = "&nbsp  EN"
                                                      Dim stringBIH = "&nbsp BIH"
                                                      Dim stringSRB = "&nbsp SRB"
                                                      Dim stringBG = "&nbsp  BG"
                                                      Dim stringTR = "&nbsp  TR"%>
                                              <!--<a id="ButtonOesterreichLangPicker" class="btn btn-primary btn-sm" onclick="changeflag(A)" href="<%'= navParent%>?menuID=<%'= curentMenuId %>&lan=de"><img src="<%'= imgPath%>images/flags/flagge_A.gif" <%' If laenderkuerzel = "de" Then Response.Write("style='border:1px solid #000'")%> /> DE</a>-->
                                                  <a id="ButtonDeutschLangPicker" class="btn btn-primary btn-sm"  href="<%= navParent%>&lan2=DE&lan3=0" style="color:#043381;background-color:#fff;border:hidden;width:155px"><img src="../<%= imgPath%>images/flags/flagge_DE_AT_big.gif"; width="20"; <% If laenderkuerzel = "de" Then Response.Write("style='border:1px solid #000'")%>/><%=stringDE%></a>
                                                  <a id="ButtonTürkeiLangPicker" class="btn btn-primary btn-sm"   href="<%= navParent%>&lan2=TR&lan3=0" style="color:#043381;background-color:#fff;border:hidden;width:155px"><img src="../<%= imgPath%>images/flags/flagge_TR_big.gif"; width="20"; <% If laenderkuerzel = "yu" Then Response.Write("style='border:1px solid #000'")%>/><%=stringTR%></a>
                                                  <a id="ButtonEnglischLangPicker" class="btn btn-primary btn-sm" href="<%= navParent%>&lan2=EN&lan3=0" style="color:#043381;background-color:#fff;border:hidden;width:155px"><img src="../<%= imgPath%>images/flags/flagge_GB_big.gif"; width="20"; <% If laenderkuerzel = "en" Then Response.Write("style='border:1px solid #000'")%>/><%=stringEN%></a>
                                                  <a id="ButtonSerbischLangPicker" class="btn btn-primary btn-sm" href="<%= navParent%>&lan2=SRB&lan3=0" style="color:#043381;background-color:#fff;border:hidden;width:155px"><img src="../<%= imgPath%>images/flags/flagge_BIH_big.gif"; width="20"; <% If laenderkuerzel = "yu" Then Response.Write("style='border:1px solid #000'")%> /><%=stringBIH%></a> 
                                                  <a id="ButtonSerbischZweiLangPicker" class="btn btn-primary btn-sm" href="<%= navParent%>&lan2=SRB&lan3=1" style="color:#043381;background-color:#fff;border:hidden;width:155px"><img src="../<%= imgPath%>images/flags/flagge_SM_big.gif"; width="20"; <% If laenderkuerzel = "yu" Then Response.Write("style='border:1px solid #000'")%> /><%=stringSRB%></a> 
                                                  <a id="ButtonBulgariaLangPicker" class="btn btn-primary btn-sm" href="<%= navParent%>&lan2=BG&lan3=0" style="color:#043381;background-color:#fff;border:hidden;width:155px"><img src="../<%= imgPath%>images/flags/flagge_BG_big.gif"; width="20"; <% If laenderkuerzel = "bg" Then Response.Write("style='border:1px solid #000'")%>/><%=strSRBlang %></a>                                             
                                              </div>
                                </div>                            
                   </nav></div>   
          <!-- Container zur Ausrichtung des Contents-->          
        <div style="margin-left:5px;margin-right:5px">
         <div style="height:95px;"></div> 
            <form id="leftLinks" runat="server" style="float:initial">                
        <asp:ContentPlaceHolder id="ContentPlaceHolder1" runat="server">
           
        </asp:ContentPlaceHolder>               
                </form>
        </div>
 </li>    
  
     <script type="text/javascript" src="../js/toptions/top_up-min.js"></script>   
         <script type="text/javascript" src="../js/scrollscript.js"></script>   
         <!-- JQUERY Script fuer Modal-->
         <script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
         <!-- jQuery CDN - Slim version (=without AJAX) -->
        <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
        <!-- Popper.JS -->
        <script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.2/dist/umd/popper.min.js" integrity="sha384-IQsoLXl5PILFhosVNubq5LC7Qb9DXgDA9i+tQ8Zj3iwWAwPtgFTxbJ8NT4GN1R8p" crossorigin="anonymous"></script>
        <!-- Bootstrap JS -->
       <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.min.js" integrity="sha384-cVKIPhGWiC2Al4u+LWgxfKTRIcfu0JTxR+EQDz/bgldoEyl4H0zUF0QKbrJ0EcQF" crossorigin="anonymous"></script>  
     <script>
         // Filter table
         $(document).ready(function () {
             $("#tableSearch").on("keyup", function () {
                 var value = $(this).val().toLowerCase();
                 $("#myTable tr").filter(function () {
                     $(this).toggle($(this).text().toLowerCase().indexOf(value) > -1)
                 });
             });
         });
     </script>
    <script type="text/javascript">
        $(document).ready(function () {
            $('#sidebarCollapse').on('click', function () {
                $('#sidebar').toggleClass('active');
            });
        });
    </script>   
</body>
</html>
