<%@ page import="java.util.ArrayList"%>
<%@ page language="java" contentType="text/html;charset=euc-kr"%>
<%@ page import="com.eactive.eai.batch.scheduler.ScheduleBasisManager"%>
<%@ page import="com.eactive.eai.batch.common.StringUtil"%>

<%
    
	String day       = StringUtil.nvlTrim(request.getParameter("day" ), "");

	ArrayList<String> holicodes = null;
	
	if (day != null && day.length() >0){
		holicodes = ScheduleBasisManager.getInstance().getIntervalTypes( day );	
	}

%>

<html>
    <head>
        <title>
            휴일 정보 Informations
        </title>
        <script>
        function doAction() {
        	
            document.frm.submit();
        } 
        </script>
    </head>
    <body>
        <p style="font-size:12pt;">
        <b>휴일  Informations</b> <br><br>
        </p>

        <form name="frm" action="" method="POST">
        <table border='0' width="800" >
        <tr>
        <td align='left'>
        <table width="450" border=0 bgcolor='black' cellpadding="1" cellspacing="1">
        <tr bgcolor='white'>
            <td align='right' width='180' bgcolor="#ccccff">날짜 : &nbsp;</td>
            <td><input type="text" name="day" size="10" class="form1" value="<%=day%>"></td>
            <td align="right"><input type="button" class="form1" value="    확인    " onclick="doAction();"></td>
        </tr>
        </table>
        </td>
        </tr>
        </table><br>
        
        <%
        	if (holicodes !=null && holicodes.size() > 0) {
        		for (int j=0; j <holicodes.size(); j++) {
        			String code = holicodes.get(j);
        %>

        <table width="800" border=0 bgcolor='black' cellpadding="1" cellspacing="1">
        <tr bgcolor='white'>
            <td align='right' width='350' bgcolor="#ccccff">&nbsp; CODE  : &nbsp;</td>
            <td align='left'>&nbsp;<input type="text" name="batchCode" size='60' value="<%=code%>"></td>
        </tr>           
		
        </table><br>
      <%
        		}
        	}
      %>
        </form>
    </body>
</html>