Skip to content

Instantly share code, notes, and snippets.

@maestrotex
Created June 10, 2022 09:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maestrotex/8a52aba7ee0906ca4c49bb27e12b6989 to your computer and use it in GitHub Desktop.
Save maestrotex/8a52aba7ee0906ca4c49bb27e12b6989 to your computer and use it in GitHub Desktop.
<html><head>
<meta charset="utf-8">
<title>Error</title>
<script type="text/javascript" src="../ClientGlobalContext.js.aspx"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
<style type="text/css">
.footer {
position: fixed;
bottom: 0;
right: 0;
padding-bottom: 10px;
padding-right: 10px;
}
.footerButton {
width: 150px;
}
</style>
<script type="text/javascript">
function onPageLoad() {
debugger;
var urlParams = getUrlParameters();
document.getElementById("errorMessage").innerHTML="You cannot add same course for the student as already the student registered for the course for same date.</br> Check the Existing Record : <a target='_blank' href="+urlParams+">Record Link</a>";
}
function getUrlParameters() {
var queryString = location.search.substring(1);
var paramsvalue = encodeURI(queryString).split("=")[1];
return decodeURIComponent(decodeURIComponent(paramsvalue));
}
</script>
<meta></head>
<body onload="onPageLoad();" onfocusout="parent.setEmailRange();" style="overflow-wrap: break-word;">
<div id="errorMessage" style="font-family: Arial;padding:20px" class="alert alert-danger">
</div>
<div style="width:95%;text-align:right">
<button class="btn btn-primary" onclick="javascript:window.close('','_parent','');">OK</button>
</div>
</body></html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment