422 lines
22 KiB
Plaintext
422 lines
22 KiB
Plaintext
<%@ Page Language="VB" Debug="true" AutoEventWireup="false" CodeFile="login_FLEX.aspx.vb" Inherits="login_FLEX"%>
|
|
|
|
<!DOCTYPE html>
|
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head>
|
|
<%@ import Namespace="MySql.Data.MySqlClient"%>
|
|
<!-- 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"/>
|
|
|
|
<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="../css/login/loginFLEX.css"/>
|
|
<!-- <link rel="stylesheet" type="text/css" href="../css/style.css"/>-->
|
|
|
|
<script type="text/javascript">
|
|
function FocusOnInput() {
|
|
document.getElementById("CustomerID").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>
|
|
<style>
|
|
.txt_design2 {
|
|
color: #003680;
|
|
font-size: 1.725em;
|
|
}
|
|
.bg-email-icon {
|
|
background: url("../../images/Icons/service/mail-icon.gif") no-repeat 1.75% 11px white;
|
|
padding-left: 28px;
|
|
padding-right: 50px;
|
|
width: 227px;
|
|
height: 28px;
|
|
border: 1px gray solid;
|
|
border-radius: 5px 5px 0px 0px;
|
|
}
|
|
|
|
.bg-user-icon {
|
|
background: url("../../images/Icons/service/username-icon-png-5.png") no-repeat 1.75% 11px white;
|
|
padding-left: 28px;
|
|
padding-right: 50px;
|
|
width: 227px;
|
|
height: 28px;
|
|
border: 1px gray solid;
|
|
border-radius: 5px 5px 0px 0px;
|
|
}
|
|
|
|
.bg-key-icon {
|
|
background: url("../../images/Icons/service/key-icon-png-22_small.png") no-repeat 1.75% 10px white;
|
|
padding-left: 28px;
|
|
padding-right: 50px;
|
|
width: 227px;
|
|
height: 28px;
|
|
border: 1px gray solid;
|
|
border-radius: 5px 5px 0px 0px;
|
|
margin-left: -4px;
|
|
}
|
|
|
|
.bg-UID-icon {
|
|
background: url("../../images/Icons/main/icon0-vector-493-01.png") no-repeat 1.75% 11px white;
|
|
padding-left: 28px;
|
|
padding-right: 50px;
|
|
margin-left: -4px;
|
|
width: 207px;
|
|
height: 28px;
|
|
border: 1px gray solid;
|
|
border-radius: 5px 5px 0px 0px;
|
|
}
|
|
@media (max-width: 558.98px) {
|
|
body {
|
|
font-family: 'Poppins', sans-serif;
|
|
background: #fafafa;
|
|
background-image: url(../../images/road.jpg);
|
|
background-position: center center;
|
|
background-repeat: no-repeat;
|
|
background-attachment: fixed;
|
|
background-size: cover;
|
|
background-color: #fff;
|
|
overflow-y: clip;
|
|
overflow-x: clip;
|
|
}
|
|
|
|
#content_container {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
width: 400px;
|
|
height: 613px;
|
|
margin: 0 auto;
|
|
margin-top: 250px;
|
|
}
|
|
|
|
.container-fluid {
|
|
width: 400px;
|
|
height: 613px;
|
|
background-color: rgba(255,255,255,0.5);
|
|
top:50%;
|
|
bottom: auto;
|
|
left: -195px;
|
|
right: 520px;
|
|
margin: auto;
|
|
}
|
|
#tbl_main_M {
|
|
font-family: Arial;
|
|
font-size: 11px;
|
|
border: 1px solid gray;
|
|
width: 300px;
|
|
height: 613px;
|
|
}
|
|
#lbl_Ueberschrift_M {
|
|
background-color: #003680;
|
|
font-size: 1.85em;
|
|
color: #fff;
|
|
}
|
|
#lbl_login_M {
|
|
background-color: #003680;
|
|
font-size: 2em;
|
|
color: #fff;
|
|
margin-top:-20px;
|
|
}
|
|
.txt_design {
|
|
color: #003680;
|
|
font-size: 1.85em;
|
|
}
|
|
|
|
.txt_design2 {
|
|
color: #003680;
|
|
font-size: 1.895em;
|
|
margin-right: 1px;
|
|
}
|
|
|
|
#Login1_LoginButton_M {
|
|
background-color: #003680;
|
|
color: #fff;
|
|
width: 140px;
|
|
height: 26px;
|
|
margin-bottom:-30px;
|
|
padding-inline: 2px 2px;
|
|
padding: 12px 1px 0px 1px;
|
|
}
|
|
|
|
#Password_M {
|
|
margin-right: -20px;
|
|
margin-top:-20px;
|
|
}
|
|
|
|
#UserName_M {
|
|
font-size: 17px;
|
|
}
|
|
|
|
#CustomerID_M {
|
|
color: #003680;
|
|
font-size: 1.125em;
|
|
}
|
|
.bg-email-icon {
|
|
background: url("../../images/Icons/service/mail-icon.gif") no-repeat 1.75% 11px white;
|
|
padding-left: 28px;
|
|
padding-right: 50px;
|
|
width: 227px;
|
|
height: 38px;
|
|
border: 1px gray solid;
|
|
border-radius: 5px 5px 5px 5px;
|
|
}
|
|
|
|
.bg-user-icon {
|
|
background: url("../../images/Icons/service/username-icon-png-5.png") no-repeat 1.75% 11px white;
|
|
padding-left: 28px;
|
|
padding-right: 50px;
|
|
width: 227px;
|
|
height: 38px;
|
|
border: 1px gray solid;
|
|
border-radius: 5px 5px 5px 5px;
|
|
}
|
|
|
|
.bg-key-icon {
|
|
background: url("../../images/Icons/service/key-icon-png-22_small.png") no-repeat 1.75% 10px white;
|
|
padding-left: 28px;
|
|
padding-right: 50px;
|
|
width: 227px;
|
|
height: 38px;
|
|
border: 1px gray solid;
|
|
border-radius: 5px 5px 5px 5px;
|
|
margin-left: -4px;
|
|
}
|
|
|
|
.bg-UID-icon {
|
|
background: url("../../images/Icons/main/icon0-vector-493-01.png") no-repeat 1.75% 11px white;
|
|
padding-left: 28px;
|
|
padding-right: 50px;
|
|
margin-left: -4px;
|
|
width: 207px;
|
|
height: 38px;
|
|
border: 1px gray solid;
|
|
border-radius: 5px 5px 5px 5px;
|
|
}
|
|
|
|
#Login1_btn_ForgotPW_M{
|
|
font-size:17px;
|
|
margin-top:80px;
|
|
}
|
|
#tblrowbuttons{
|
|
height:40px;
|
|
}
|
|
#lbl_for_chkbox{
|
|
font-size:18px;
|
|
margin-left:8px;
|
|
color:#003680;
|
|
}
|
|
|
|
}
|
|
</style>
|
|
<!-- <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()">
|
|
<div id="content_container">
|
|
<div class="container-fluid">
|
|
<form id="form1" runat="server">
|
|
<asp:Login ID = "Login1" runat = "server" OnAuthenticate= "ValidateUser" DestinationPageUrl="../Customers/CustomsAviso.aspx" >
|
|
<LayoutTemplate>
|
|
<center>
|
|
<!-- Große Bildschirme-->
|
|
<div class="d-none d-md-block">
|
|
<table id="tbl_main" cellpadding="0" style="margin: 6px 0px 6px 6px; border:none">
|
|
<tr style="color:#003680; height:30px;">
|
|
<td align="left" style="color:#fff;font-kerning:auto;">
|
|
<asp:Label ID="lbl_login" runat="server" Text="Login" style=" color: #003680;font-size: 1.320901320901321em; font-weight: 600; margin-left:162px"></asp:Label>
|
|
</td>
|
|
</tr>
|
|
<tr style="color:#003680; height:46px;">
|
|
<td align="left">
|
|
<asp:TextBox ID="CustomerID" CssClass="bg-UID-icon" runat="server" required="true" ValidationGroup="txt_checkUID" Width="320" Placeholder="User-ID" style="margin-left: 22px" OnClick="this.value='';" Font-Size="1.25em"></asp:TextBox>
|
|
<asp:RequiredFieldValidator ID="CustomerIDrequired" runat="server" ControlToValidate="CustomerID" SetFocusOnError="false" ValidationGroup="txt_checkUID" ErrorMessage="Please enter the User-ID."></asp:RequiredFieldValidator>
|
|
<asp:RegularExpressionValidator ID="valid_getNumberInput" ControlToValidate="CustomerID" ValidationGroup="txt_checkUID" runat="server" Display="Dynamic" SetFocusOnError="false" ValidationExpression="[0-9]{4,10}"></asp:RegularExpressionValidator>
|
|
</td>
|
|
</tr>
|
|
<tr style="color:#003680; height:46px;">
|
|
<td align="left" colspan="2">
|
|
<asp:TextBox ID="UserName" runat="server" CssClass="bg-user-icon" TextMode="SingleLine" Width = "320" ValidationGroup="txt_Username" required="true" Font-Size="1.25em" style="margin-left:22px;color:#003680" OnClick="this.value='';" Placeholder="Username" ></asp:TextBox>
|
|
<asp:RequiredFieldValidator ID="UserNamerequired" runat="server" ControlToValidate="UserName" ErrorMessage="Please enter the Username." ToolTip="The Username is required." ValidationGroup="txt_Username"></asp:RequiredFieldValidator>
|
|
<asp:RegularExpressionValidator ID="check_UserName_regex" ControlToValidate="UserName" ValidationGroup="txt_check_username" runat="server" Display="Dynamic" SetFocusOnError="true" ValidationExpression="^([a-zA-Z]{4,30})$"></asp:RegularExpressionValidator>
|
|
</td>
|
|
</tr>
|
|
<tr style="color:#003680; height:46px;">
|
|
<td align="left" colspan="2">
|
|
<asp:TextBox ID="Password" runat="server" CssClass="bg-key-icon" TextMode="Password" required="true" Width = "320" Font-Size="1.25em" ValidationGroup="chk_PWField" MaxLength="30" AutoCompleteType="Enabled" CausesValidation="true" style="margin-left:22px;color:#003680" OnClick="this.value='';" Placeholder="Password"></asp:TextBox>
|
|
<asp:RequiredFieldValidator ID="Passwordrequired" runat="server" ControlToValidate="Password" ErrorMessage="Password is needed to authenticate." ToolTip="Please enter the Password." ValidationGroup="chk_PWField"></asp:RequiredFieldValidator>
|
|
<asp:RegularExpressionValidator ID="checkpwdREGEX" ControlToValidate="Password" ValidationGroup="chk_PWField" runat="server" Display="Dynamic" SetFocusOnError="true" ValidationExpression="^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[^a-zA-Z\d]){4,35}$"></asp:RegularExpressionValidator>
|
|
</td>
|
|
</tr>
|
|
<tr style="color:#003680; height:23px;">
|
|
<td align="left" colspan="2">
|
|
<asp:Button ID="LoginButton" runat="server" CommandName="Login" BorderStyle="None" Text="Login" ValidationGroup="Login1" target="_top" OnClientClick="bust2()" Width="320px" Font-Size="20px" style="margin-left:22px; padding:0px 0px 0px 0px"/>
|
|
</td>
|
|
</tr>
|
|
<tr id="tblrowbuttons" style="color:#003680; height:23px;">
|
|
<td align="left" colspan="2">
|
|
<asp:CheckBox ID="RememberMe" runat="server" Text="Remember me." style="margin-left:22px;" />
|
|
</td>
|
|
<td align="right" colspan="4">
|
|
|
|
<a ID="LinkButton2" runat="server" target="_top" href="ForgotPW.aspx" style="margin-left:-154px;margin-right:-42px"> I forgot my password</a>
|
|
</td>
|
|
</tr>
|
|
<tr style="color:#003680; height:23px">
|
|
<td align="center" style="color:Red;" colspan="2">
|
|
<asp:Literal ID="FailureText" runat="server" EnableViewState="False"></asp:Literal>
|
|
</td>
|
|
</tr>
|
|
|
|
</table>
|
|
</div>
|
|
<!--Smartphone-Bildschirme-->
|
|
<div class="d-md-none">
|
|
<table id="tbl_main_M" cellpadding="0" style="margin: 4px 0px 4px 4px;border:none">
|
|
<tr style="color:#003680; height:30px;">
|
|
<td align="left" style="color:#fff;font-kerning:auto;">
|
|
<asp:Label ID="lbl_login_M" runat="server" Text="Login" style=" color: #003680;font-size: 2.320901320901321em; font-weight: 800; margin-left:132px;margin-top:20px"></asp:Label>
|
|
</td>
|
|
</tr>
|
|
<tr style="color:#003680; height:86px">
|
|
<td align="left">
|
|
<asp:TextBox ID="CustomerID_M" CssClass="bg-UID-icon" runat="server" required="true" ValidationGroup="txt_checkUID_M" Width="325" Placeholder="User-ID" Font-Size="2.025em" OnClick="this.value='';" style="margin-left: 22px;margin-top:20px;"></asp:TextBox>
|
|
<asp:RequiredFieldValidator ID="CustomerID_M_required" runat="server" ControlToValidate="CustomerID_M" SetFocusOnError="false" ValidationGroup="txt_checkUID_M" ErrorMessage="Please enter the User-ID."></asp:RequiredFieldValidator>
|
|
<asp:RegularExpressionValidator ID="valid_getNumber_M_Input" ControlToValidate="CustomerID_M" ValidationGroup="txt_checkUID_M" runat="server" Display="Dynamic" SetFocusOnError="false" ValidationExpression="[0-9]{4,10}"></asp:RegularExpressionValidator>
|
|
</td>
|
|
</tr>
|
|
<tr style="color:#003680; height:86px;">
|
|
<td align="left" colspan="2">
|
|
|
|
<asp:TextBox id="UserName_M" runat="server" CssClass="bg-user-icon" TextMode="SingleLine" Width = "325" ValidationGroup="txt_Username" Placeholder="Username" required="true" Font-Size="2.025em" style="margin-left:22px;color:#003680" OnTextChanged="Username_M_TextChanged" OnClick="this.value='';"></asp:TextBox>
|
|
|
|
<asp:RequiredFieldValidator ID="UserName_M_required" runat="server" ControlToValidate="UserName_M" ErrorMessage="Please enter the Username." ToolTip="The Username is required." ValidationGroup="txt_Username"></asp:RequiredFieldValidator>
|
|
<asp:RegularExpressionValidator ID="check_UserName_M_regex" ControlToValidate="UserName_M" ValidationGroup="txt_check_username" runat="server" Display="Dynamic" SetFocusOnError="true" ValidationExpression="^([a-zA-Z]{4,30})$"></asp:RegularExpressionValidator>
|
|
</td>
|
|
</tr>
|
|
<tr style="color:#003680; height:86px;">
|
|
<td align="left" colspan="2">
|
|
<asp:TextBox ID="Password_M" runat="server" CssClass="bg-key-icon" TextMode="Password" required="true" Width = "325" Font-Size="2.025em" ValidationGroup="chk_PWField" MaxLength="30" AutoCompleteType="Enabled" CausesValidation="true" style="margin-left:22px;color:#003680" OnClick="this.value='';" Placeholder="Password" Text="Password"></asp:TextBox>
|
|
<asp:RequiredFieldValidator ID="Passwordrequired_M" runat="server" ControlToValidate="Password_M" ErrorMessage="Password is needed to authenticate." ToolTip="Please enter the Password." ValidationGroup="chk_PWField"></asp:RequiredFieldValidator>
|
|
<asp:RegularExpressionValidator ID="checkpwd_M_REGEX" ControlToValidate="Password_M" ValidationGroup="chk_PWField_M" runat="server" Display="Dynamic" SetFocusOnError="true" ValidationExpression="^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[^a-zA-Z\d]){4,35}$"></asp:RegularExpressionValidator>
|
|
</td>
|
|
</tr>
|
|
<tr style="color:#003680; height:143px;">
|
|
<td align="left" colspan="2">
|
|
<asp:Button ID="LoginButton_M" runat="server" CommandName="Login" BorderStyle="None" Text="Login" ValidationGroup="Login1" target="_top" OnClientClick="bust2()" Width="320px" Font-Size="20px" style="margin-left:22px; padding:0px 0px 0px 0px"/>
|
|
</td>
|
|
</tr>
|
|
<tr style="color:#003680; height:46px;">
|
|
<td align="left" colspan="2">
|
|
<asp:CheckBox ID="RememberMe_M" runat="server" style="margin-left:22px;"/><label for="RememberMe_M" id="lbl_for_chkbox">Remember me.</label>
|
|
</td>
|
|
<td align="right" colspan="2">
|
|
<a id="btn_ForgotPW_M" runat="server" target="_top" href="ForgotPW.aspx" style="margin-left:-164px;margin-right:-62px;"> I forgot my password</a>
|
|
</td>
|
|
</tr>
|
|
<tr style="color:#003680; height:fit-content">
|
|
<td align="center" style="color:Red;" colspan="2">
|
|
<asp:Literal ID="FailureText_M" runat="server" EnableViewState="False"></asp:Literal>
|
|
</td>
|
|
</tr>
|
|
|
|
</table>
|
|
</div>
|
|
</center>
|
|
</LayoutTemplate>
|
|
</asp:Login>
|
|
|
|
|
|
</form>
|
|
</div>
|
|
</div>
|
|
<script type="text/javascript">
|
|
function bust2() {
|
|
if (top.location == self) {
|
|
var zipphone2_1 = getElementById("#CustomerID").val();
|
|
var zipphone2_2 = getElementById("#UserName").val();
|
|
var zipphone2_3 = getElementById("#Password").val();
|
|
alert("send:" + zipphone2_1)
|
|
alert("send:" + zipphone2_2)
|
|
alert("send:" + zipphone2_3)
|
|
var val = document.getElementById("CustomerID").value;
|
|
//parent.location.replace('../Customers/Welcome.aspx');
|
|
top.location = '../Customers/Welcome.aspx';
|
|
}
|
|
}
|
|
</script>
|
|
<script type="text/javascript">
|
|
function bust1() {
|
|
if (top.location != self) {
|
|
var zipphone2_1 = getElementById("#CustomerID").val();
|
|
var zipphone2_2 = getElementById("#UserName").val();
|
|
var zipphone2_3 = getElementById("#Password").val();
|
|
alert("send:" + zipphone2_1)
|
|
alert("send:" + zipphone2_2)
|
|
alert("send:" + zipphone2_3)
|
|
parent.location.replace('../Customers/Welcome.aspx');
|
|
// top.location = '../newpageJulius_Sidebar.aspx';
|
|
}
|
|
}
|
|
</script>
|
|
<script type="text/javascript">
|
|
function reloadpage() {
|
|
window.parent.location.reload();
|
|
}
|
|
</script>
|
|
</body>
|
|
</html> |