Login Prüfung wurde umgebaut
This commit is contained in:
@@ -256,7 +256,6 @@
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);
|
||||
|
||||
function EndRequestHandler(sender, args) {
|
||||
$('.classTarget).datepicker({ dateFormat: 'dd.MM.yyyy' });
|
||||
}
|
||||
@@ -266,21 +265,28 @@
|
||||
var v1 = Date.parse(document.getElementById("pickdate1").text);
|
||||
var v2 = Date.parse(document.getElementById("pickdate2").text);
|
||||
|
||||
If(compareDate(v1)=f) {
|
||||
If(compareDate(v1)==false) {
|
||||
alert("Datum nicht im gültigen Rahmen!");
|
||||
}
|
||||
</script>
|
||||
<script type="text/javascript">
|
||||
function (compareDate(str1, str2) as Boolean{
|
||||
function compareDate(str1, str2){
|
||||
// str1 format should be dd/mm/yyyy. Separator can be anything e.g. / or -. It wont effect
|
||||
var date1 = new Date(str1);
|
||||
var date2 = new Date(str2);
|
||||
var year0 = new Date('01.01.2001')
|
||||
if (date1.getFullYear() < year0.getFullYear()){
|
||||
return false;
|
||||
} else {
|
||||
return true
|
||||
}
|
||||
});
|
||||
if (date1.getFullYear() < year0.getFullYear()) {
|
||||
return false;
|
||||
} else {
|
||||
return true;
|
||||
}
|
||||
};
|
||||
</script>
|
||||
<script type="text/javascript">
|
||||
window.onmessage = function (event) {
|
||||
if (event.data == 'reply') {
|
||||
console('Reply received!');
|
||||
}
|
||||
};
|
||||
</script>
|
||||
</asp:Content>
|
||||
@@ -145,23 +145,18 @@
|
||||
<script>
|
||||
function bust1() {
|
||||
if (top != self) {
|
||||
var s1 = getElementById("#CustomerID").val()
|
||||
var s2 = getElementById("#UserName").val()
|
||||
var s2 = getElementById("#Password").val()
|
||||
sessionStorage.setItem("usrnm", s1)
|
||||
sessionStorage.setItem("psw", s2)
|
||||
sessionStorage.setItem("Kdnnr", s3)
|
||||
window.top.postMessage(getElementById("#CustomerID").val(),'*')
|
||||
window.top.postMessage(getElementById("#UserName").val(), '*')
|
||||
window.top.postMessage(getElementById("#Password").val(), '*')
|
||||
|
||||
top.location.replace('../Customers/Welcome.aspx');
|
||||
}
|
||||
}
|
||||
function bust2() {
|
||||
if (top != self) {
|
||||
var s1 = getElementById("#CustomerID").val()
|
||||
var s2 = getElementById("#UserName").val()
|
||||
var s2 = getElementById("#Password").val()
|
||||
sessionStorage.setItem("usrnm", s1)
|
||||
sessionStorage.setItem("psw", s2)
|
||||
sessionStorage.setItem("Kdnnr", s3)
|
||||
window.top.postMessage(getElementById("#CustomerID").val(), '*')
|
||||
window.top.postMessage(getElementById("#UserName").val(), '*')
|
||||
window.top.postMessage(getElementById("#Password").val(), '*')
|
||||
top.location.replace('../admin/admin.aspx');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -617,6 +617,15 @@
|
||||
//topup
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</script>
|
||||
<script type="text/javascript">
|
||||
window.onmessage = function (event) {
|
||||
if (event.data == '717858') {
|
||||
alert("")
|
||||
console('KDN received!');
|
||||
return '717858';
|
||||
}
|
||||
};
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user