Erstellung der neuen Login Seite und einer neuen Kundenseite.
This commit is contained in:
498
Kundenseite.aspx
Normal file
498
Kundenseite.aspx
Normal file
@@ -0,0 +1,498 @@
|
||||
<%@ Page Language="VB" Debug="true" AutoEventWireup="false" CodeFile="Kundenseite.aspx.vb" Inherits="_Default" %>
|
||||
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<!-- Bootstrap -->
|
||||
<html lang="en"></html>
|
||||
<!-- Required meta tags -->
|
||||
<meta charset="utf-8"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" title="Verag Spedition AG AvisoTV Flex"/>
|
||||
|
||||
<!-- Bootstrap CSS -->
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous"/>
|
||||
<link rel="stylesheet" href="https://unpkg.com/bootstrap-table@1.18.3/dist/bootstrap-table.min.css"/>
|
||||
<!-- Bootstrap CSS -->
|
||||
<!--<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">-->
|
||||
<link href="bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous"/>
|
||||
<link rel="stylesheet" href="https://unpkg.com/bootstrap-table@1.18.3/dist/bootstrap-table.min.css"/>
|
||||
|
||||
<%@ import Namespace="MySql.Data.MySqlClient" %>
|
||||
<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>
|
||||
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
|
||||
<title>VERAG AVISO-TV Online</title>
|
||||
<link rel="stylesheet" type="text/css" href="css/main.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="css/style.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="css/status.css"/>
|
||||
<link rel="SHORTCUT ICON" href="images/Icons/favicon/favicon.ico" />
|
||||
<!-- <link rel="stylesheet" type="text/css" href="css/edit_main.css"> -->
|
||||
|
||||
<style>
|
||||
body{
|
||||
background-image: url(images/road.jpg);
|
||||
background-position:center center;
|
||||
background-repeat: no-repeat;
|
||||
background-attachment:fixed;
|
||||
background-size:cover;
|
||||
background-color:#fff;
|
||||
}
|
||||
#headertable:hover{
|
||||
background-color:aliceblue;
|
||||
color:#043381;
|
||||
}
|
||||
.dropbtn {
|
||||
background-color: #043381;
|
||||
position: absolute;
|
||||
color: #043381;
|
||||
background-color:#fff;
|
||||
padding: 1em;
|
||||
font-size: 1em;
|
||||
border: none;
|
||||
}
|
||||
#bodycontent{
|
||||
background-color:#fff;
|
||||
/*padding:2px 13px 0px 13px;*/
|
||||
padding: 0.07849293563579278vw 0.5102040816326531vw 0vw 0.5102040816326531vw;
|
||||
max-width: /*575px;*/ 126.65198237885463vw;
|
||||
}
|
||||
/* Dropdown Content (Hidden by Default) */
|
||||
.dropdown-content {
|
||||
display: none;
|
||||
position: absolute;
|
||||
background-color: #fff;
|
||||
min-width:160px;
|
||||
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
|
||||
z-index: 1;
|
||||
}
|
||||
/* Links inside the dropdown */
|
||||
.dropdown-content a {
|
||||
color: black;
|
||||
padding:0.75em 1em;
|
||||
text-decoration: none;
|
||||
display: block;
|
||||
}
|
||||
/* Change color of dropdown links on hover */
|
||||
.dropdown-content a:hover {
|
||||
background-color: #043381;
|
||||
color: #fff;
|
||||
}
|
||||
/* Show the dropdown menu on hover */
|
||||
.dropdown:hover .dropdown-content {
|
||||
display: block;
|
||||
}
|
||||
/* Change the background color of the dropdown button when the dropdown content is shown */
|
||||
.dropdown:hover .dropbtn {
|
||||
background-color: #043381;
|
||||
}
|
||||
table{
|
||||
border-collapse: collapse;
|
||||
border-spacing: 0px;
|
||||
border: 1px solid #ddd;
|
||||
border:1px solid #ddd;
|
||||
background-color:white;
|
||||
color:#043381;
|
||||
overflow-x:auto;
|
||||
width: 60%;
|
||||
}
|
||||
#flex-container{
|
||||
width:1800px;
|
||||
}
|
||||
/*Modal*/
|
||||
.modal-header,
|
||||
.modal-footer {
|
||||
border: none !important;
|
||||
}
|
||||
.modal-dialog {
|
||||
height: 100% !important; /* required */
|
||||
margin: 0 0.8px !important;
|
||||
padding: 8px 0 !important;
|
||||
overflow-y: auto !important; /* required */
|
||||
width: 100%;
|
||||
position: center;
|
||||
|
||||
@media (min-width: 4sm) {
|
||||
margin: 0 auto !important;
|
||||
padding: 1.75rem 0 !important;
|
||||
max-width: initial !important; // overwrite default max-width
|
||||
width: fit-content !important; // flexible width
|
||||
min-width: 1500px !important; // makes it fat enough by default
|
||||
}
|
||||
}
|
||||
.modal-content {
|
||||
max-height: 100% !important; /* required */
|
||||
width:auto;
|
||||
}
|
||||
.modal-body {
|
||||
padding-top: 0 !important;
|
||||
overflow-y: auto !important; /* required */
|
||||
}
|
||||
|
||||
.table>:not(caption)>*>*{padding:.5rem .5rem;background-color:var(--bs-table-bg);border-bottom-width:1px;box-shadow:inset 0 0 0 9999px var(--bs-table-accent-bg)}.table>tbody{vertical-align:inherit}.table>thead{vertical-align:bottom}.table>:not(:last-child)>:last-child>*{border-bottom-color:currentColor}.caption-top{caption-side:top}.table-sm>:not(caption)>*>*{padding:.25rem .25rem}.table-bordered>:not(caption)>*{border-width:1px 0}.table-bordered>:not(caption)>*>*{border-width:0 1px}.table-borderless>:not(caption)>*>*{border-bottom-width:0}.table-striped>tbody>tr:nth-of-type(odd){--bs-table-accent-bg:var(--bs-table-striped-bg);color:var(--bs-table-striped-color)}.table-active{--bs-table-accent-bg:var(--bs-table-active-bg);color:var(--bs-table-active-color)}.table-hover>tbody>tr:hover{--bs-table-accent-bg:var(--bs-table-hover-bg);color:var(--bs-table-hover-color)}.table-primary{--bs-table-bg:#cfe2ff;--bs-table-striped-bg:#c5d7f2;--bs-table-striped-color:#000;--bs-table-active-bg:#bacbe6;--bs-table-active-color:#000;--bs-table-hover-bg:#bfd1ec;--bs-table-hover-color:#000;color:#000;border-color:#bacbe6}
|
||||
.table-secondary {
|
||||
--bs-table-bg: #e2e3e5;
|
||||
--bs-table-striped-bg: #d7d8da;
|
||||
--bs-table-striped-color: #000;
|
||||
--bs-table-active-bg: #cbccce;
|
||||
--bs-table-active-color: #000;
|
||||
--bs-table-hover-bg: #043381;
|
||||
--bs-table-hover-color: #000;
|
||||
color: #000;
|
||||
border-color: #cbccce
|
||||
}
|
||||
/*Button Dropdown Menue Language Picker*/
|
||||
.dropbtn {
|
||||
background-color: #fff;
|
||||
left: 65%;
|
||||
right: auto;
|
||||
width: 100px;
|
||||
height: 20%;
|
||||
position: relative;
|
||||
color: #043381;
|
||||
padding: 0px;
|
||||
font-size:16px;
|
||||
font-size: 1em;
|
||||
border: none;
|
||||
z-index:562;
|
||||
}
|
||||
/* Dropdown Content (Hidden by Default) */
|
||||
.dropdown-content {
|
||||
display: none;
|
||||
position: relative;
|
||||
left: 65%;
|
||||
color:#043381;
|
||||
background-color: #fff;
|
||||
min-width: 30px;
|
||||
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
|
||||
z-index: 1000;
|
||||
}
|
||||
/* Links inside the dropdown */
|
||||
.dropdown-content a {
|
||||
color: black;
|
||||
/*padding: 12px 16px;*/
|
||||
padding: 0.8492569002123143vw 1.132342533616419vw;
|
||||
text-decoration: none;
|
||||
z-index:812;
|
||||
}
|
||||
/* Change color of dropdown links on hover */
|
||||
.dropdown-content a:hover {
|
||||
background-color: #fff;
|
||||
color:#043381;
|
||||
background-color: floralwhite;
|
||||
}
|
||||
/* Show the dropdown menu on hover */
|
||||
.dropdown:hover .dropdown-content {
|
||||
display: block;
|
||||
z-index:5000;
|
||||
}
|
||||
/* Change the background color of the dropdown button when the dropdown content is shown */
|
||||
.dropdown:hover .dropbtn {
|
||||
background-color: #fff;
|
||||
color:#043381;
|
||||
}
|
||||
.btn btn-primary btn-sm{
|
||||
background-color: #fff;
|
||||
color:#043381;
|
||||
}
|
||||
|
||||
/*Um alle Items der navbar nach rechts zu shiften außer das Nav-Brand(Logo) */
|
||||
.navbar-nav {
|
||||
margin-left: auto;
|
||||
}
|
||||
li {
|
||||
list-style-type: none;
|
||||
}
|
||||
@media (max-width: 575px){
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
border-spacing: 0.125em;
|
||||
width: /*575px;*/ 126.65198237885463vw;
|
||||
border: /*1px*/2.1744791666666665vw solid #ddd;
|
||||
background-color: white;
|
||||
color: #043381;
|
||||
overflow-x:auto;
|
||||
font-size:3.3769100169779285vw;
|
||||
}
|
||||
.containerSearch{
|
||||
width:17.621145374449338vw;
|
||||
}
|
||||
}
|
||||
@media (min-width: 575px) {
|
||||
#offcanvasWithBothOptions {
|
||||
min-width: 17.692852087756545vw;
|
||||
max-width: 17.692852087756545vw;
|
||||
}
|
||||
#normaltable {
|
||||
padding-left: -0.125em;
|
||||
}
|
||||
#conovertab{
|
||||
max-width:150px 11.25em;
|
||||
margin-left:35px;
|
||||
overflow-x:auto;
|
||||
}
|
||||
.containerSearch{
|
||||
width:3.1821797931583133vw;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
<script src="js/netzwerk.js" type="text/javascript"></script>
|
||||
<link rel="stylesheet" type="text/css" href="../stylesheets/style.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="../stylesheets/example.css"/>
|
||||
<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>
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="css/StyleSheetWebsiteNew.css"/>
|
||||
|
||||
<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>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="containerall">
|
||||
<form id="leftLinks" runat="server">
|
||||
|
||||
<div id="bodycontent">
|
||||
|
||||
<span class="content_all" style="background-color:#fff">
|
||||
|
||||
<!-- <div id="nav-main">
|
||||
<div id="art-logo"></div>
|
||||
</div>
|
||||
<div id="main-menu">
|
||||
</div> -->
|
||||
<!-- </div> -->
|
||||
|
||||
<%
|
||||
Dim navParent = "Kundenseite.aspx?"
|
||||
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
|
||||
%>
|
||||
|
||||
<!-- <div class="pagecontent">-->
|
||||
<!-- <div class="content_all"><div class="content_all"> -->
|
||||
|
||||
<!-- Dropdown Button Languages-->
|
||||
<!-- <%'Dim name As String
|
||||
'name = "AvisoTV_Flex.aspx"%>
|
||||
|
||||
<div Class="dropdown">
|
||||
<button Class="dropbtn"> <img id="myImage" src="images/flags/flagge_A.gif" style="border:1px solid #000;width:30px;"/>Language Picker</button>
|
||||
<div Class="dropdown-content">
|
||||
<a id="ButtonOesterreichLangPicker" class="btn btn-primary btn-sm" onclick="changeflag(A)" href="<%'=name %>?AvisoId=<%'=Request.QueryString("AvisoId")%>&lan2=DE"><img src="images/flags/flagge_A.gif" style="border:1px solid #000;width:30px;"/>Österreich</a>
|
||||
<a id="ButtonDeutschLangPicker" class="btn btn-primary btn-sm" onclick="changeflag(D)" href="<%'=name %>?AvisoId=<%'=Request.QueryString("AvisoId")%>&lan2=de"><img src="images/flags/flagge_D.gif" style="border:1px solid #000;width:30px;"/>Deutsch</a>
|
||||
<a id="ButtonEnglischLangPicker" class="btn btn-primary btn-sm" onclick="changeflag(GB)" href="<%'=name %>?AvisoId=<%'=Request.QueryString("AvisoId")%>&lan2=EN"><img src="images/flags/flagge_GB.gif" style="border:1px solid #000;width:30px;"/>Englisch</a>
|
||||
<a id="ButtonSerbischLangPicker" class="btn btn-primary btn-sm" onclick="changeflag(BIH)" href="<%'=name %>?AvisoId=<%'=Request.QueryString("AvisoId")%>&lan2=SRB"><img src="images/flags/flagge_BIH.gif" style="border:1px solid #000;width:30px;"/>Bosnien und Herzegowina</a>
|
||||
<a id="ButtonSerbischZweiLangPicker" class="btn btn-primary btn-sm" onclick="changeflag(SM)" href="<%'=name %>?AvisoId=<%'=Request.QueryString("AvisoId")%>&lan2=SRB"><img src="images/flags/flagge_SM.gif" style="border:1px solid #000;width:30px;"/>Serbien</a>
|
||||
<a id="ButtonBulgariaLangPicker" class="btn btn-primary btn-sm" onclick="changeflag(BG)" href="<%'=name %>?AvisoId=<%'=Request.QueryString("AvisoId")%>&lan2=BG"><img src="images/flags/flagge_BG.gif" style="border:1px solid #000;width:30px;"/>Bulgarien</a>
|
||||
<a id="ButtonTürkeiLangPicker" class="btn btn-primary btn-sm" onclick="changeflag(TR)" href="<%'=name %>?AvisoId=<%'=Request.QueryString("AvisoId")%>&lan2=TR"><img src="images/flags/flagge_TR.gif" style="border:1px solid #000;width:30px;"/>Türkei</a>
|
||||
</div>
|
||||
</div> -->
|
||||
<%
|
||||
'Dim lan As String = Request.QueryString("lan")
|
||||
'If lan ="" then lan="de"
|
||||
'Dim menuID As String = Request.QueryString("menuID")
|
||||
'If menuID = "" Then menuID = "1"
|
||||
'Dim DB2 As New cDBFunctions
|
||||
%>
|
||||
<%
|
||||
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)) %>
|
||||
<!-- </div> -->
|
||||
<div class="container">
|
||||
<!-- Navigation Bar-->
|
||||
<nav class="navbar navbar-expand-lg navbar-light">
|
||||
<li class="nav-item">
|
||||
<a class="navbar-brand" href="newpageJulius_Sidebar.aspx"><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>
|
||||
</li>
|
||||
</nav>
|
||||
</div>
|
||||
<!-- Webiste-Content-->
|
||||
<h1>Kundencenter</h1>
|
||||
<div id="line"></div>
|
||||
<br/>
|
||||
<h3>Hier finden Sie Informationen zu den aktuell an der Grenze stehenden LKWs.</h3>
|
||||
|
||||
<%Try
|
||||
VERAG_PROG_ALLGEMEIN.cAllgemein.ERR_OP_GLOBAL = VERAG_PROG_ALLGEMEIN.ERROR_OP.SHOW
|
||||
'Dim AD As New VERAG_PROG_ALLGEMEIN.cAdressen(799124)
|
||||
Dim VERAGSQL = New VERAG_PROG_ALLGEMEIN.SQL
|
||||
' MsgBox(VERAGSQL.GetADMINConnectionString())
|
||||
'Response.Write(AD.Ordnungsbegriff)
|
||||
Dim STANDORT = "SUB"
|
||||
If (Request.QueryString.Count > 0) AndAlso (Request.QueryString("STANDORT") IsNot Nothing) Then
|
||||
Try
|
||||
STANDORT = (Request.QueryString("STANDORT"))
|
||||
Catch ex As Exception
|
||||
STANDORT = "SUB"
|
||||
End Try
|
||||
End If
|
||||
If True Then
|
||||
Dim AVISO_dt As System.Data.DataTable = VERAG_PROG_ALLGEMEIN.cAviso.getAVISO_List(STANDORT)
|
||||
If AVISO_dt IsNot Nothing Then
|
||||
|
||||
If True Then 'AVISO.Status <> 1 And AVISO.Status <> 2 Then 'SENDUNGSTABELLE
|
||||
'%>
|
||||
<h2><%=STANDORT %></h2>
|
||||
|
||||
<div class="container">
|
||||
<input class="form-control mb-4" id="tableSearch" type="text"
|
||||
placeholder="Type something to search list items">
|
||||
|
||||
<table class="table table-hover" id="normaltable" border="0" cellspacing="0" contenteditable="false">
|
||||
<thead style="height:/*20px;*/ 1.56128024980484vh; background-color:#043381; color:#fff; font-weight:900">
|
||||
<tr ><th>LKW-Nr.</th><th>Kennzeichen</th><th>Standort</th><th>Frächter</th><th>Fracht</th></tr>
|
||||
</thead>
|
||||
<tbody id="myTable">
|
||||
<tr><td>1</td><td>PAN WE 231</td><td>SUBEN</td><td>TESTFRÄCHTER</td><td>2 Pck Teer</td></tr>
|
||||
<tr><td>2</td><td>BMV 6N 888</td><td>SUBEN</td><td>TESTFRÄCHTER</td><td>2 Pck Teer</td></tr>
|
||||
<tr><td>3</td><td>PD6 C7 111</td><td>SUBEN</td><td>TESTFRÄCHTER</td><td>2 Pck Teer</td></tr>
|
||||
<tr><td>4</td><td>BMV 6N 888</td><td>SUBEN</td><td>TESTFRÄCHTER</td><td>2 Pck Kohle</td></tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!--<br><br>
|
||||
Die Mitarbeiter der VERAG Spedition AG haben sich auf die Bereiche Zoll und Steuer spezialisiert und können so ihren Kunden einen individuell abgestimmten Service anbieten.
|
||||
<br><br>
|
||||
Nehmen Sie sich etwas Zeit, um sich über unser umfangreiches Dienstleistungsangebot zu informieren! -->
|
||||
<br/><br/><br/>
|
||||
<% End If
|
||||
End If
|
||||
End If
|
||||
Catch ex As Exception
|
||||
Response.Write(ex.Message & ex.StackTrace)
|
||||
End Try %>
|
||||
|
||||
|
||||
|
||||
<div></div></div>
|
||||
<%-- <div class="footer_menu">
|
||||
<div class="footer_menu_content">
|
||||
<table>
|
||||
<tr>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>--%>
|
||||
<div class="align-self-end">
|
||||
<div class="footer">
|
||||
<div class="footer_content"><b>VERAG Spedition AG</b> A-4975 Suben 100 Tel.: +43 7711 2777-0, Fax: +43 7711 31600, email: info@verag.ag</div> </div>
|
||||
</div> </form>
|
||||
</div>
|
||||
<!-- Bootstrap-->
|
||||
<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://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.0/umd/popper.min.js" integrity="sha384-cs/chFZiN24E4KMATLdqdvsezGxaGsi4hLGOzlXwp5UZB1LY//20VyM2taTB4QvJ" crossorigin="anonymous"></script>
|
||||
<!-- Bootstrap JS -->
|
||||
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.0/js/bootstrap.min.js" integrity="sha384-uefMccjFJAIv6A+rW+L4AHf99KvxDjWSu1z9VI8SKNVmz4sk7buKt/6v9KI65qnm" crossorigin="anonymous"></script>
|
||||
<!-- jQuery Custom Scroller CDN -->
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/malihu-custom-scrollbar-plugin/3.1.5/jquery.mCustomScrollbar.concat.min.js"></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>
|
||||
</body>
|
||||
12
Kundenseite.aspx.vb
Normal file
12
Kundenseite.aspx.vb
Normal file
@@ -0,0 +1,12 @@
|
||||
|
||||
Partial Class _Default
|
||||
Inherits System.Web.UI.Page
|
||||
|
||||
|
||||
|
||||
Sub test()
|
||||
|
||||
End Sub
|
||||
|
||||
|
||||
End Class
|
||||
@@ -1,323 +0,0 @@
|
||||
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="KundenseiteJulius.aspx.vb" Inherits="KundenseiteJulius" %>
|
||||
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<!-- Bootstrap -->
|
||||
<html lang="en"></html>
|
||||
<!-- Required meta tags -->
|
||||
<meta charset="utf-8"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
|
||||
<!-- Bootstrap CSS -->
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous"/>
|
||||
<link rel="stylesheet" href="https://unpkg.com/bootstrap-table@1.18.3/dist/bootstrap-table.min.css"/>
|
||||
|
||||
<%@ import Namespace="MySql.Data.MySqlClient" %>
|
||||
<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>
|
||||
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
|
||||
<title>VERAG AG Kundenseite</title>
|
||||
<link rel="stylesheet" type="text/css" href="css/main.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="css/style.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="css/status.css"/>
|
||||
<LINK REL="SHORTCUT ICON" HREF="images/Icons/favicon/favicon.ico" />
|
||||
<!-- <link rel="stylesheet" type="text/css" href="css/edit_main.css"> -->
|
||||
|
||||
<style>
|
||||
body{
|
||||
background-image: url(images/road.jpg);
|
||||
background-position:center center;
|
||||
background-repeat: no-repeat;
|
||||
background-attachment:fixed;
|
||||
background-size:cover;
|
||||
background-color:#043381;
|
||||
}
|
||||
.dropbtn {
|
||||
color: #043381;
|
||||
position: absolute;
|
||||
background-color: #fff;
|
||||
padding: 1em;
|
||||
font-size: 1em;
|
||||
border: none;
|
||||
}
|
||||
|
||||
/* Dropdown Content (Hidden by Default) */
|
||||
.dropdown-content {
|
||||
display: none;
|
||||
position: absolute;
|
||||
background-color: #fff;
|
||||
min-width: 10em;
|
||||
box-shadow: 0em 0.5em 1em 0em rgba(0,0,0,0.2);
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
/* Links inside the dropdown */
|
||||
.dropdown-content a {
|
||||
color: #043381;
|
||||
padding: 0.75em 1em;
|
||||
text-decoration: solid;
|
||||
display: block;
|
||||
}
|
||||
|
||||
/* Change color of dropdown links on hover */
|
||||
.dropdown-content a:hover {
|
||||
background-color: #043384;
|
||||
color: #fff;
|
||||
text-shadow: 0.313em;
|
||||
}
|
||||
|
||||
/* Show the dropdown menu on hover */
|
||||
.dropdown:hover .dropdown-content {
|
||||
display: block;
|
||||
background-color:#fff;
|
||||
border-color:#043384;
|
||||
|
||||
}
|
||||
|
||||
/* Change the background color of the dropdown button when the dropdown content is shown */
|
||||
.dropdown:hover .dropbtn {
|
||||
background-color: #043389;
|
||||
}
|
||||
|
||||
table{
|
||||
border-collapse: collapse;
|
||||
border-spacing: 0;
|
||||
width: 100%;
|
||||
border: 0.063em solid #ddd;
|
||||
}
|
||||
|
||||
#flex-container {
|
||||
width: 2600px;
|
||||
min-height: 0.52em;
|
||||
max-height: 1.6em;
|
||||
min-width: 0.32em;
|
||||
max-width:fit-content;
|
||||
}
|
||||
|
||||
/*Modal*/
|
||||
.modal-header,
|
||||
.modal-footer {
|
||||
border: none !important;
|
||||
}
|
||||
|
||||
.modal-dialog {
|
||||
height: 100% !important; /* required */
|
||||
margin: 0 0.5rem !important;
|
||||
padding: 0.5rem 0 !important;
|
||||
overflow-y: auto !important; /* required */
|
||||
width: 100%;
|
||||
position: center;
|
||||
|
||||
@media (min-width: 4sm) {
|
||||
margin:0 auto !important;
|
||||
padding:1.75rem 0 !important;
|
||||
max-width:initial !important; // overwrite default max-width
|
||||
width: fit-content !important; // flexible width
|
||||
min-width:1500px !important; // makes it fat enough by default
|
||||
}
|
||||
}
|
||||
|
||||
.modal-content {
|
||||
max-height: 100% !important; /* required */
|
||||
width:auto;
|
||||
}
|
||||
|
||||
.modal-body {
|
||||
padding-top: 0 !important;
|
||||
overflow-y: auto !important; /* required */
|
||||
}
|
||||
|
||||
@media (max-width: 575px) {
|
||||
#bodycontent{
|
||||
max-width:/*575px;*/ 126.65198237885463vw;
|
||||
}
|
||||
#main-page{
|
||||
max-width:/*575px;*/ 126.65198237885463vw;
|
||||
}
|
||||
h2{
|
||||
font-size:32px;
|
||||
font-size:2em;
|
||||
}
|
||||
#ButtonHauptpage{
|
||||
font-size:28px;
|
||||
font-size:1.75em;
|
||||
}
|
||||
#dropdown{
|
||||
font-size:28px;
|
||||
font-size:1.75em;
|
||||
}
|
||||
.Label1{
|
||||
font-size:18px;
|
||||
font-size:1.125em;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 575px) {
|
||||
h2 {
|
||||
font-size: 28px;
|
||||
font-size:1.75em;
|
||||
}
|
||||
|
||||
#ButtonHauptpage {
|
||||
font-size: 17px;
|
||||
font-size:1.063em;
|
||||
}
|
||||
|
||||
#dropdown {
|
||||
font-size: 32px;
|
||||
font-size:2em;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
<script src="js/netzwerk.js" type="text/javascript"></script>
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="../stylesheets/style.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="../stylesheets/example.css"/>
|
||||
<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>
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="css/StyleSheetWebsiteNew.css"/>
|
||||
|
||||
|
||||
<!-- <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script> -->
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<!-- <a href="login/login_TEST.aspx" style="position:absolute;left:10px;top:10px;">LOGIN</a>-->
|
||||
<div class="container-xxl align-self-auto">
|
||||
<div class="align-self-center">
|
||||
<form id="leftLinks" runat="server">
|
||||
|
||||
<!--<a href="sendFeedback.aspx" toptions="type = iframe, effect = fade, width = 500, height = 500, overlayClose = 1,shaded=0, layout = flatlook" style='padding:0px;margin:0px;width:50px;height:11px;color:#fff;text-decoration: none;'>
|
||||
<div class="feedback">
|
||||
<div class="feedback_txt">
|
||||
Feedback
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
<a href="sendFeedback.php" toptions="type = iframe, effect = fade, width = 500, height = 500, overlayClose = 1,shaded=0, layout = flatlook" style='padding:0px;margin:0px;width:50px;height:11px;color:#fff;text-decoration: none;'>
|
||||
<div class="aviso">
|
||||
<div class="aviso_txt">
|
||||
<nobr>Neues Aviso</nobr>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
-->
|
||||
<div id="bodycontent">
|
||||
<!-- Dropdown Button Languages-->
|
||||
|
||||
<div class="container-xxl">
|
||||
<!-- <div id="nav-main">
|
||||
<div id="art-logo"></div>
|
||||
</div>
|
||||
|
||||
<div id="main-menu">
|
||||
</div> -->
|
||||
</div>
|
||||
<div id="main-page">
|
||||
<div class="pagecontent">
|
||||
<br />
|
||||
|
||||
<p><h2>Willkommen im Kundenportal:</h2></p>
|
||||
<br />
|
||||
<a id="ButtonHauptpage" class="btn btn-primary btn-sm" href="newpageJulius_Sidebar.aspx?AvisoId=<%=Request.QueryString("AvisoId")%>&lan2=DE" rel="nofollow" target="_blank" data-toggle="tooltip" data-placement="top" title="Zur Hauptzeite wechseln." style="background-color:#043381">Home</a>
|
||||
<br />
|
||||
<br />
|
||||
<p><asp:Label ID="Label1" runat="server" Text="Bitte wählen sie eine der unten aufgeführten Funktionen:"></asp:Label></p>
|
||||
<br />
|
||||
<asp:Panel ID="Panel1" runat="server">
|
||||
<div Class="dropdown">
|
||||
<button Class="dropbtn" data-toggle="tooltip" data-placement="top" title="Zum Auswählen einer Funktion bitte klicken!">Funktionen</button>
|
||||
<div Class="dropdown-content">
|
||||
<a id="Buttonlabeltitleenue" style="background-color:#043381;color:#fff"><b style="font-weight:700;font-kerning:auto;font-size:medium;">Kunden-Menü:</b></a>
|
||||
<a id="Buttonadmin" class="btn btn-primary btn-sm" href="admin/admin.aspx?AvisoId=<%=Request.QueryString("AvisoId")%>&lan2=DE" data-toggle="tooltip" data-placement="top" title="Lässt das Admin-Panel erscheinen." style="background-color:#fff;color:#043381">Admin-Panel</a>
|
||||
<a id="ButtonaFlexTV" class="btn btn-primary btn-sm" href="AvisoTV_FLEX.aspx?AvisoId=<%=Request.QueryString("AvisoId")%>&lan2=DE" data-toggle="tooltip" data-placement="top" title="Zeigt das AVISP TV an." style="background-color:#fff;color:#043381">AVISO TV-Panel</a>
|
||||
<a id="ButtonaStatus" class="btn btn-primary btn-sm" href="status_Julius.aspx?AvisoId=<%=Request.QueryString("AvisoId")%>&lan2=DE" data-toggle="tooltip" data-placement="top" title="Zeigt den Status einer bestimmten vom AVISO Panel ausgegebenen sowie codierten AVISO-Nummer aus." style="background-color:#fff;color:#043381">Status-Panel</a>
|
||||
</div>
|
||||
</div>
|
||||
</asp:Panel>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<!-- Bootstrap-->
|
||||
<script type="text/javascript" src="js/toptions/top_up-min.js"></script>
|
||||
|
||||
<!-- Scroll Script-->
|
||||
<script src="//code.jquery.com/jquery-1.11.3.min.js"></script>
|
||||
<script type="text/javascript" src="js/scrollscript.js"></script>
|
||||
|
||||
<!--Hover Info -->
|
||||
<script type="text/javascript">
|
||||
|
||||
$(document).ready(function () {
|
||||
$(".btn").click(function () {
|
||||
$("#myModal").modal("show");
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<script type="text/javascript" src="js/languageupdatescript.js"></script>
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,5 +0,0 @@
|
||||
|
||||
Partial Class KundenseiteJulius
|
||||
Inherits System.Web.UI.Page
|
||||
|
||||
End Class
|
||||
158
login/login_FLEX.aspx
Normal file
158
login/login_FLEX.aspx
Normal file
@@ -0,0 +1,158 @@
|
||||
<%@ Page Language="VB" Debug="true" AutoEventWireup="false" CodeFile="login_FLEX.aspx.vb" Inherits="login_login_TEST" %>
|
||||
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<%@ import Namespace="MySql.Data.MySqlClient" %>
|
||||
|
||||
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
|
||||
<title>VERAG Spedition AG Login</title>
|
||||
<link rel="stylesheet" type="text/css" href="../css/main.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="../css/style.css"/>
|
||||
<LINK REL="SHORTCUT ICON" HREF="../images/Icons/favicon/favicon.ico" />
|
||||
<!-- <link rel="stylesheet" type="text/css" href="css/edit_main.css"> -->
|
||||
<script src="js/netzwerk.js" type="text/javascript"></script>
|
||||
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="../../stylesheets/style.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="../../stylesheets/example.css"/>
|
||||
<style>
|
||||
@media (min-width: 768px) {
|
||||
|
||||
}
|
||||
</style>
|
||||
<script type="text/javascript">
|
||||
function FocusOnInput() {
|
||||
document.getElementById("UserName").focus();
|
||||
}
|
||||
</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>
|
||||
<!-- <script type="text/javascript" src="../js/toptions/top_up-min.js"></script> -->
|
||||
<!--[if IE]>
|
||||
<link rel="stylesheet" type="text/css" href="../css/main.css">
|
||||
<![endif]-->
|
||||
|
||||
<!--[if IE 6]>
|
||||
<link rel="stylesheet" type="text/css" href="../css/main.css">
|
||||
<![endif]-->
|
||||
|
||||
<!--[if lt IE 7]>
|
||||
<link rel="stylesheet" type="text/css" href="../css/main.css">
|
||||
<![endif]-->
|
||||
|
||||
<!--[if lte IE 5.5999]>
|
||||
<link rel="stylesheet" type="text/css" href="../css/main.css">
|
||||
<![endif]-->
|
||||
|
||||
<!--[if gte IE 5.5]>
|
||||
<link rel="stylesheet" type="text/css" href="../css/main.css">
|
||||
<![endif]-->
|
||||
|
||||
|
||||
|
||||
<script type = "text/javascript">
|
||||
|
||||
function goBack()
|
||||
{
|
||||
window.history.back()
|
||||
}
|
||||
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body onload="FocusOnInput()">
|
||||
|
||||
|
||||
|
||||
<!-- #include file="../navigation.aspx" -->
|
||||
|
||||
<div id="main-page">
|
||||
<div class="pagecontent">
|
||||
<form id="form1" runat="server">
|
||||
<asp:Login ID = "Login1" runat = "server" OnAuthenticate= "ValidateUser">
|
||||
<LayoutTemplate>
|
||||
<table cellpadding="0" style="font-family:Arial;font-size:11px;border:1px solid gray">
|
||||
<tr style="background-color:#003680;color:#fff;height:30px;font-size:12px">
|
||||
<td align="center" colspan="2" style="color:#fff;">Bitte melden Sie sich an:</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<asp:LinkButton ID="LinkButton1" href="login/login_TEST.aspx" runat="server">admin</asp:LinkButton>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right">
|
||||
|
||||
<asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName" required>Benutzername:</asp:Label>
|
||||
</td>
|
||||
<td>
|
||||
|
||||
<asp:TextBox ID="UserName" runat="server"></asp:TextBox>
|
||||
<asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="UserName" ErrorMessage="Der Benutzername ist erforderlich." ToolTip="Der Benutzername ist erforderlich." ValidationGroup="Login1">*</asp:RequiredFieldValidator>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right">
|
||||
<asp:Label ID="Label2" runat="server" AssociatedControlID="UserID" required>Kundennummer:</asp:Label>
|
||||
</td>
|
||||
<td>
|
||||
<asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
|
||||
<asp:RequiredFieldValidator ID="UserIDrequired" runat="server" ControlToValidate="UserID" ErrorMessage="Die Kundennummer ist erforderlich." ToolTip="Die Kundennummer ist erforderlich." ValidationGroup="Login1">*</asp:RequiredFieldValidator>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right">
|
||||
<asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password">Kennwort:</asp:Label>
|
||||
</td>
|
||||
<td>
|
||||
<asp:TextBox ID="Password" runat="server" TextMode="Password"></asp:TextBox>
|
||||
<asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="Password" ErrorMessage="Das Kennwort ist erforderlich." ToolTip="Das Kennwort ist erforderlich." ValidationGroup="Login1">*</asp:RequiredFieldValidator>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td >
|
||||
<asp:CheckBox ID="RememberMe" runat="server" Text="Anmeldedaten speichern." />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" colspan="2" style="color:Red;">
|
||||
<asp:Literal ID="FailureText" runat="server" EnableViewState="False"></asp:Literal>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="middle" colspan="2">
|
||||
<br/> <asp:Button ID="LoginButton" runat="server" CommandName="Login" Text="Anmelden" ValidationGroup="Login1"/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</LayoutTemplate>
|
||||
</asp:Login>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
||||
61
login/login_FLEX.aspx.vb
Normal file
61
login/login_FLEX.aspx.vb
Normal file
@@ -0,0 +1,61 @@
|
||||
Imports System.Data.SqlClient
|
||||
Imports System.Data
|
||||
|
||||
Partial Class login_login_TEST
|
||||
Inherits System.Web.UI.Page
|
||||
|
||||
Protected Sub ValidateUser(sender As Object, e As EventArgs)
|
||||
Dim userId As Integer = 0
|
||||
' cDBFunctions.GetNewOpenConnection()
|
||||
Dim ConnectionString = ""
|
||||
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 COUNT(*) FROM [VERAG_HOMEPAGE].[dbo].[Users] WHERE Username=@Username AND Password=@Password")
|
||||
' cmd.CommandType = CommandType.StoredProcedure
|
||||
cmd.Parameters.AddWithValue("@Username", Login1.UserName)
|
||||
cmd.Parameters.AddWithValue("@Password", Login1.Password)
|
||||
cmd.Connection = con
|
||||
con.Open()
|
||||
' userId = Convert.ToInt32(cmd.ExecuteScalar())
|
||||
Dim dr As SqlDataReader = cmd.ExecuteReader()
|
||||
If dr.HasRows Then
|
||||
dr.Read()
|
||||
'MsgBox(dr.Item(0).ToString())
|
||||
Select Case dr.Item(0)
|
||||
Case 0
|
||||
Login1.FailureText = "Username and/or password is incorrect."
|
||||
Exit Select
|
||||
Case -2
|
||||
Login1.FailureText = "Account has not been activated."
|
||||
Exit Select
|
||||
Case Else
|
||||
FormsAuthentication.RedirectFromLoginPage(Login1.UserName, Login1.RememberMeSet)
|
||||
'FormsAuthentication.SetAuthCookie(Login1.UserName, True)
|
||||
'Response.Redirect("mypage.aspx")
|
||||
Exit Select
|
||||
End Select
|
||||
End If
|
||||
dr.Close()
|
||||
con.Close()
|
||||
End Using
|
||||
|
||||
|
||||
End Using
|
||||
End Sub
|
||||
|
||||
|
||||
|
||||
Protected Sub LoginButton_Click(sender As Object, e As EventArgs)
|
||||
|
||||
End Sub
|
||||
End Class
|
||||
@@ -682,7 +682,7 @@
|
||||
<a href="DownloadsJulius.aspx?menuID=41&lan=<%=laenderkuerzel %>" rel="nofollow" target="_blank" data-toggle="tooltip" data-placement="right" title="Alle Downloads auf einen Blick..">Downloads</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="KundenseiteJulius.aspx?menuID=45&lan=<%=laenderkuerzel %>" rel="nofollow" target="_blank" data-toggle="tooltip" data-placement="right" title="Lässt das Kundenportal erscheinen.">Kundenbereich</a>
|
||||
<a href="Kundenseite.aspx?lan=<%=laenderkuerzel %>" rel="nofollow" target="_blank" data-toggle="tooltip" data-placement="right" title="Lässt das Kundenportal erscheinen.">Kundenbereich</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="login/login_TEST.aspx?menuID=46&lan=<%=laenderkuerzel %>" data-toggle="tooltip" data-placement="right" title="Hier tauchen Sie in die Welt von VERAG ein.">Login</a>
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user