<%
/***********************************************************************************
*	Name			:	EgToolKitHomepage.jsp
*	Purpose			:	Home page for the ToolKit page 
***********************************************************************************/
%>

<%@ page language = "java" contentType = "text/html; charset=UTF-8" pageEncoding = "UTF-8" %>

<%
	response.setHeader("Cache-Control","no-store");
	response.setHeader("Pragma","no-cache");
	response.setDateHeader("Expires", -1);
	session.setAttribute("reqFromForTk","HomePage");
	String isError = request.getParameter("isError");
	boolean isErrorPage = (isError != null && isError.equals("true"));
	String margin_val = isErrorPage ? "210px" : "0px";
%>

<html>
<head>
<script language="javascript" src="/final/admin/eg_scripts/timeout.js"></script>
<script src="/final/jquery/jquery.js"></script>
<LINK href="/final/admin/eg_styles/adminstyle_blue.css" type="text/css" rel="stylesheet">
<script>
function resetPage()
{
	window.parent.location.replace("/final/toolkit");
}
</script>
<style>
.alert {
  padding: 30px 60px;
  margin:30px 60px 30px 60px;
  background-color: #BFC9CA;
  display:block;
}
.closebtn {
  margin-left:15px;
  margin-right: 5px;
  margin-top: 5px;
  color: white;
  font-weight: bold;
  float: right;
  font-size: 22px;
  line-height: 20px;
  cursor: pointer;
  transition: 0.3s;
}
.closebtn:hover {
  color: black;
}
.display-label{
	margin-right:10px;
	font-size:14px;
	text-align: justify;
	text-justify: inter-word;
}
</style>
</head>
<body style="margin-top:<%=margin_val%>">
<%
	if(isErrorPage)
	{
		String error_msg = (String)session.getAttribute("tk_errorMsg");
		session.removeAttribute("tk_errorMsg");
%>
	<div class="alert" id="alertMsg">
		<table width="100%">
			<tr>
				<td><div id="displayLabel" class="display-label"><b style='color:white;font-size:20px'>Error!</b>&nbsp;<%=error_msg%></div></td>
				<td><span class="closebtn" onclick="$('#alertMsg').css('display','none');resetPage()">&times;</span></td>
			</tr>
		</table>
	</div>
<%
	}
	else
	{
%>
	<table border="0" align="center" cellspacing="0" cellpadding="0" width="95%" height="100%">
		<tr>
			<td align="center" valign="middle">
				<table border="0" align="center" cellspacing="0" cellpadding="0" width="80%" >
					<tr>
						<td height="6" id="inner_top_left" width="7" class="eg_subcontentbg"><img src="/final/admin/eg_images/spacer.gif" border="0" width="7" height="6"></td>
						<td height="6" id="eg_subcontentbg" width="100%" colspan="3"><img src="/final/admin/eg_images/spacer.gif" height="6"></td>
						<td height="6" id="inner_top_right" width="20" class="eg_subcontentbg"><img src="/final/admin/eg_images/spacer.gif" border="0" width="7px" height="6px"></td>
					</tr>
					<tr>
						<td class="form_spacing" id="eg_subcontentbg">&nbsp;</td>
						<td width="100%" class="form_spacing" id="eg_subcontentbg" align="center" valign="middle" colspan="3"><strong>Click on a specific node in the tree to access the tool of your choice.</strong></td>
						<td class="form_spacing" id="eg_subcontentbg">&nbsp;</td>
					</tr>
					<tr>
						<td height="6" id="inner_bott_left" width="7" class="eg_subcontentbg"> <img src="/final/admin/eg_images/spacer.gif" width="7" height="6" border="0"></td>
						<td id="eg_subcontentbg"  width="100%" colspan="3"><img src="/final/admin/eg_images/spacer.gif" height="6" border="0"></td>
						<td height="6" align="right" id="inner_bott_right" width="20" class="eg_subcontentbg"> <img src="/final/admin/eg_images/spacer.gif" width="7px" height="6px" border="0"></td>
					</tr>
				</table>
			</td>
		</tr>
	</table>
<%
	}
%>
</body>
</html>