<%@ page contentType="text/html; charset=euc-kr" %>

<%
	request.setCharacterEncoding("euc-kr");
%>

<table width="100%" border="0" cellpadding="0" cellspacing="1"
	bgcolor="#CDDCED">
	<tr>
		<td
			style="PADDING-LEFT: 10px; PADDING-RIGHT: 20px; PADDING-TOP: 5px; PADDING-BOTTOM: 5px;"
			bgcolor="#FFFFFF">
			<table width="100%" border="0" align="center" cellpadding="0"
				cellspacing="0">
				<tr>
					<td width="15">
						<img src="<%=request.getContextPath()%>/image/search/icon_arrow.gif" width="11" height="11">
					</td>
					<td>
						<span class="style2">설정이 완료 되었습니다.</span>
					</td>
				</tr>
			</table>
		</td>
	</tr>
</table>

<%
	String databaseSetupResult = (String)request.getAttribute("databaseSetupResult");
	
	String resultMessage = "";
	String resultErrorMessage = "";
	
	if( databaseSetupResult.equals("success") ) {
		resultMessage = "성공";
	}
	else if( databaseSetupResult.equals("fail") ) {
		resultMessage = "실패";
		resultErrorMessage = (String)request.getAttribute("databaseSetupError");
	}
%>


<br>

<table width="100%" border="0" cellpadding="0" cellspacing="1"
	bgcolor="#CDDCED">
	<tr>
		<td
			style="PADDING-LEFT: 10px; PADDING-RIGHT: 20px; PADDING-TOP: 5px; PADDING-BOTTOM: 5px;"
			bgcolor="#FFFFFF">
			<table width="100%" border="0" align="center" cellpadding="0"
				cellspacing="0">
				<tr>
					<td>
						<%
							if( databaseSetupResult.equals("success") ) {
						%>				
								Setup이 성공적으로 완료 되었습니다.<br>
								서버를 재 기동 시켜주시기 바랍니다.
						<%
							}
							else if( databaseSetupResult.equals("fail") ) {
						%>
								Setup이 실패 했습니다.<br>
								Setup을 다시 실행해 주시기 바랍니다.
						<%
							}
						%>
					</td>
				</tr>			
			</table>
		</td>
	</tr>
</table>


<br>

<table width="100%" border="0" cellpadding="0" cellspacing="1"
	bgcolor="#CDDCED">
	<tr>
		<td
			style="PADDING-LEFT: 10px; PADDING-RIGHT: 20px; PADDING-TOP: 5px; PADDING-BOTTOM: 5px;"
			bgcolor="#FFFFFF">
			<table width="100%" border="0" align="center" cellpadding="0"
				cellspacing="0">
				<tr>
					<td>
						<span class="style2">Database 생성 결과 : <%=resultMessage%></span>
					</td>
				</tr>
<%
	if( databaseSetupResult.equals("fail") ) {
%>				<tr>
					<td>
						<pre><%=resultErrorMessage%></pre>
					</td>
				</tr>
<%
	}
%>				
			</table>
		</td>
	</tr>
</table>
