Login sowie Logout funktioniert
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<%@ Page Language="VB" Debug="true" AutoEventWireup="false" CodeFile="login_FLEX.aspx.vb" Inherits="login_login_TEST" %>
|
||||
<%@ Page Language="VB" Debug="true" AutoEventWireup="false" CodeFile="login_FLEX.aspx.vb" Inherits="login_login_TEST"%>
|
||||
|
||||
<!DOCTYPE html>
|
||||
|
||||
@@ -66,8 +66,9 @@
|
||||
</script>
|
||||
<style>
|
||||
body {
|
||||
background-color: #fff;
|
||||
background-image: none;
|
||||
background-color:#fff;
|
||||
background-image:none;
|
||||
|
||||
}
|
||||
|
||||
#Login1_LoginButton {
|
||||
@@ -81,11 +82,11 @@
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body onload="FocusOnInput()">
|
||||
<body onload="FocusOnInput()" style="overflow-x:hidden;border:0px;margin:0px" >
|
||||
<!-- #include file="../navigation.aspx" -->
|
||||
<div class="container-fluid" style="width:252px;height:216px;">
|
||||
<form id="form1" runat="server">
|
||||
<asp:Login ID = "Login1" runat = "server" OnAuthenticate= "ValidateUser">
|
||||
<asp:Login ID = "Login1" runat = "server" OnAuthenticate= "ValidateUser" ClientIDMode="AutoID">
|
||||
<LayoutTemplate>
|
||||
<table cellpadding="0" style="font-family:Arial;font-size:11px;border:1px solid gray">
|
||||
<tr style=" background-image: linear-gradient(to right, #003680 , #0055cc);color:#fff;height:30px;font-size:12px">
|
||||
@@ -130,50 +131,33 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="left" colspan="2">
|
||||
<br/> <asp:Button ID="LoginButton" runat="server" CommandName="Login" Text="Anmelden" ValidationGroup="Login1" target="_top" OnClientClick="bust1()"/>
|
||||
<br/> <asp:Button ID="LoginButton" runat="server" CommandName="Login" Text="Anmelden" ValidationGroup="Login1" target="_top" PostBackUrl="../newpageJulius_Sidebar.aspx"></asp:Button>
|
||||
</td>
|
||||
<td align="middle" colspan="2">
|
||||
<asp:LinkButton ID="LinkButton1" href="../login/login_TEST.aspx" runat="server" target="_top" OnClientClick="bust1()">Admin-Login</asp:LinkButton>
|
||||
<asp:LinkButton ID="LinkButton1" runat="server" target="_top" OnClientClick="bust2">Admin-Login</asp:LinkButton>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</LayoutTemplate>
|
||||
</asp:Login>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
function bust1() {
|
||||
if (window.top.location != window.location) {
|
||||
var zipphone1_1 = getElementById("#CustomerID").val();
|
||||
var zipphone1_2 = getElementById("#UserName").val();
|
||||
var zipphone1_3 = getElementById("#Password").val();
|
||||
alert("send:"+zipphone1_1)
|
||||
alert("send:"+zipphone1_2)
|
||||
alert("send:"+zipphone1_3)
|
||||
postMessage(zipphone1_1,'*')
|
||||
po
|
||||
/*window.top.postMessage(getElementById("#CustomerID").val(),'*')
|
||||
window.top.postMessage(getElementById("#UserName").val(), '*')
|
||||
window.top.postMessage(getElementById("#Password").val(), '*')*/
|
||||
//parent.location.replace('../Customers/Welcome.aspx');
|
||||
top.location.replace('../Customers/Welcome.aspx');
|
||||
}
|
||||
}
|
||||
</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)
|
||||
//parent.location.replace('../Customers/Welcome.aspx');
|
||||
top.location.replace('../Customers/Welcome.aspx');
|
||||
}
|
||||
alert("Funktion2");
|
||||
if (top != self) {
|
||||
top.onbeforeunload = function () { };
|
||||
top.location = '../admin/admin.aspx';
|
||||
}
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</script>
|
||||
<script type="text/javascript">
|
||||
function bust1() {
|
||||
alert("Funktion1");
|
||||
if (top != self) {
|
||||
top.onbeforeunload = function () { };
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user