LanguageController erstellt

This commit is contained in:
ja
2021-08-26 10:21:32 +02:00
parent 2faaf86953
commit 3f46455522
5 changed files with 38 additions and 46 deletions

View File

@@ -61,6 +61,6 @@
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<h1> Karten / Boxen:</h1>
</asp:Content>

View File

@@ -341,7 +341,21 @@
<!-- </div> -->
<%
Dim navParent = "Customers.master?"
Dim navParent = ""
If Request.QueryString("Par1") = "1" Then
navParent = "/Customers/Welcome.aspx?"
ElseIf Request.QueryString("Par1") = "2" Then
navParent = "/Customers/CustomerIndex.aspx?"
ElseIf Request.QueryString("Par1") = "3" Then
navParent = "/Customers/Invoices.aspx?"
ElseIf Request.QueryString("Par1") = "4" Then
navParent = "/Customers/LKWs.aspx?"
ElseIf Request.QueryString("Par1") = "5" Then
navParent = "/Customers/Card_Boxes.aspx?"
Else
navParent = "Customers.master?"
End If
Dim laenderkuerzel As String = "de"
Dim imgPath As String = ""
@@ -415,9 +429,9 @@
<span class="navbar-toggler-icon"></span>-->
<li>
<%If Me.Page.User.Identity.Name = "test" Then %>
<a href="Invoices.aspx">Rechnungen</a>
<a href="Invoices.aspx?Par1=3">Rechnungen</a>
<%ElseIf Me.Page.User.Identity.Name = "test2" Then %>
<a href="LKWs.aspx">LKWs</a>
<a href="LKWs.aspx?Par1=4">LKWs</a>
<%End If %>
</li>
<!-- </ul>-->
@@ -429,9 +443,9 @@
<span class="navbar-toggler-icon"></span>-->
<li>
<%If Me.Page.User.Identity.Name = "test" Then %>
<a href="CustomerIndex.aspx">Kundenseite</a>
<a href="CustomerIndex.aspx?Par1=2">Kundenseite</a>
<%ElseIf Me.Page.User.Identity.Name = "test2" Then %>
<a href="Cards_Boxes.aspx">Karten_Boxen</a>
<a href="Cards_Boxes.aspx?Par1=5">Karten_Boxen</a>
<%End If %>
</li>
<!-- </ul>-->
@@ -444,7 +458,7 @@
<%If Me.Page.User.Identity.Name = "test" Then %>
<a href="#" aria-disabled="true">Coming soon</a>
<%ElseIf Me.Page.User.Identity.Name = "test2" Then %>
<a href="Invoices.aspx">Rechnungen</a>
<a href="Invoices.aspxPar1=3">Rechnungen</a>
<%End If %>
</li>
<!-- </ul>-->
@@ -502,19 +516,17 @@
<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>
</button>
<a class="navbar-brand" href="../newpageJulius_Sidebar.aspx?lan2=DE"><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 id="myImage" src="../<%=flagpath%>" style="border:1px solid #fff;width:30px;"/></button>
<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 id="myImage" src="../<%=flagpath%>" style="border:1px solid #fff;width:30px;"/></button>
<ul class="nav nav-pills">
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" data-bs-toggle="dropdown" href="#" role="button" aria-expanded="false"><asp:LoginName ID="LoginName2" runat="server" /></a>
<a class="nav-link dropdown-toggle" data-bs-toggle="dropdown" href="#" role="button" aria-expanded="false"><asp:LoginName ID="LoginName2" runat="server" /></a>
<ul class="dropdown-menu">
<li><a class="dropdown-item" href="#">Profil bearbeiten</a>
<button type="button" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#exampleModal" style="background-color:#fff"><img src="../images/samples/default-avatar.jpg"; width="80"; /></button>
</li>
<div class="dropdown-divider"></div>
<li><button type="button" class="btn btn-primary" style="background-color:#fff"><img src="../images/Icons/main/Logout.svg"; style="width:20px; height:20px" />Logout</button></li>
</ul>
<li><button type="button" class="btn btn-primary" style="background-color:#fff"><img src="../images/Icons/main/Logout.svg"; style="width:20px; height:20px" />Logout</button></li>
</ul>
</ul>
</nav>
</div>
@@ -523,7 +535,7 @@
<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">
<div class="offcanvas-body">
<% Dim strDElang = "&nbsp Deutsch"
Dim strENlang = "&nbsp Englisch"
Dim strBIHLang = "&nbsp Bosnisch"
@@ -531,6 +543,7 @@
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" Then Response.Write("style='border:1px solid #000'")%>/><%=strDElang %></a>
@@ -623,10 +636,11 @@
<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>

View File

@@ -1,17 +0,0 @@
<%@ Page Title="" Language="VB" MasterPageFile="~/Customers/Customers.master" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="Customers_Default" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder3" Runat="Server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<li><a class="dropdown-item" href="#">Profil bearbeiten</a>
<button type="button" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#exampleModal" style="background-color:#fff"><img src="../images/samples/default-avatar.jpg"; width="80"; /></button>
</li>
<div class="dropdown-divider"></div>
<li><button type="button" class="btn btn-primary" style="background-color:#fff"><img src="../images/Icons/main/Logout.svg"; style="width:20px; height:20px" />Logout</button></li>
</asp:Content>

View File

@@ -1,5 +0,0 @@

Partial Class Customers_Default
Inherits System.Web.UI.Page
End Class

View File

@@ -105,24 +105,24 @@
</div>
<div class="carousel-inner">
<div class="carousel-item active">
<a href="Invoices.aspx"> <img src="../images/pics/pexels-kampus-production-7477713.jpg" id="imgcar" style="width:100%;height:auto" alt="First slide"></a>
<a href="Invoices.aspx?Par1=3"> <img src="../images/pics/pexels-kampus-production-7477713.jpg" id="imgcar" style="width:100%;height:auto" alt="First slide"></a>
<div class="carousel-caption d-none d-md-block" style="background:linear-gradient(to right, #003680 , #0055cc);opacity:80%">
<a href="Invoices.aspx" ><h5 style="opacity:100%">Rechnungen</h5></a>
<a href="Invoices.aspx"> <p style="color:#fff;opacity:100%">Hier erfahren sie alles über Ihre Rechnungen.</p></a>
<a href="Invoices.aspx?Par1=3" ><h5 style="opacity:100%">Rechnungen</h5></a>
<a href="Invoices.aspx?Par1=3"> <p style="color:#fff;opacity:100%">Hier erfahren sie alles über Ihre Rechnungen.</p></a>
</div>
</div>
<div class="carousel-item">
<a href="CustomerIndex.aspx"><img class="d-block w-100" src="../images/pics/pexels-photoscom-93398.jpg" id="imgcar" style="width:100%;height:auto" alt="Second slide"></a>
<a href="CustomerIndex.aspx?Par1=2"><img class="d-block w-100" src="../images/pics/pexels-photoscom-93398.jpg" id="imgcar" style="width:100%;height:auto" alt="Second slide"></a>
<div class="carousel-caption d-none d-md-block" style="background:linear-gradient(to right, #003680 , #0055cc);opacity:80%">
<a href="CustomerIndex.aspx"> <h5 style="opacity:100%">Kundenseite</h5></a>
<a href="CustomerIndex.aspx"><p style="color:#fff;opacity:100%">Hier beginnt alles mit Ihren Aufträgen.</p></a>
<a href="CustomerIndex.aspx?Par1=2"> <h5 style="opacity:100%">Kundenseite</h5></a>
<a href="CustomerIndex.aspx?Par1=2"><p style="color:#fff;opacity:100%">Hier beginnt alles mit Ihren Aufträgen.</p></a>
</div>
</div>
<div class="carousel-item">
<a href="Welcome.aspx"><img class="d-block w-100" src="../images/pics/pexels-jopwell-2422293.jpg" id="imgcar" style="width:100%;height:auto" alt="Third slide"></a>
<a href="Welcome.aspx?Par1=1"><img class="d-block w-100" src="../images/pics/pexels-jopwell-2422293.jpg" id="imgcar" style="width:100%;height:auto" alt="Third slide"></a>
<div class="carousel-caption d-block w-90" style="background:linear-gradient(to right, #003680 , #0055cc);opacity:80%;width:100%;height:auto">
<a href="Welcome.aspx"><h5 style="opacity:100%">Startseite</h5></a>
<a href="Welcome.aspx"><p style="color:#fff;opacity:100%">Der Einstieg zu Ihrem Profil.</p></a>
<a href="Welcome.aspx?Par1=1"><h5 style="opacity:100%">Startseite</h5></a>
<a href="Welcome.aspx?Par1=1"><p style="color:#fff;opacity:100%">Der Einstieg zu Ihrem Profil.</p></a>
</div>
</div>
</div>