<%@ page language="java" contentType="text/html;charset=euc-kr"%>
<%@ page import="com.eactive.eai.batch.code.CodeMessageManager"%>
<%@ page import="com.eactive.eai.batch.code.CodeMessageVO"%>

<%
    
	CodeMessageManager manager  = CodeMessageManager.getInstance();

	String[] al = manager.getAllCodes();
	
%>

<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">
        
        <%
        	if (al != null && al.length > 0) {
        		CodeMessageVO vo = null;
                %>
                <table width="800" border=0 bgcolor='black' cellpadding="1" cellspacing="1">
        <tr bgcolor='white'>
            <td align='right' bgcolor="#ccccff">&nbsp; code id &nbsp;</td>
            <td align='right' bgcolor="#ccccff">&nbsp; code txt   &nbsp;</td>
            <td align='right' bgcolor="#ccccff">&nbsp; 조치사항   &nbsp;</td>
            <td align='right' bgcolor="#ccccff">&nbsp; SMS발송 여부   &nbsp;</td>
            <td align='right' bgcolor="#ccccff">&nbsp; 심각도   &nbsp;</td>
        </tr>           
                <%
        		for (int j=0; j < al.length; j++) {
        			vo = manager.getMessageVO(al[j]);
        %>

		<tr bgcolor='white'>
		<tr bgcolor='white'>
		    <td align='left'>&nbsp;<%=vo.getMsgKey()%></td>
		    <td align='left'>&nbsp;<%=vo.getMsgTxt()%></td>
		    <td align='left'>&nbsp;<%=vo.getMsgEtc()%></td>
		    <td align='left'>&nbsp;<%=vo.getSmsSendType()%></td>
		    <td align='left'>&nbsp;<%=vo.getItsmObstclGrdDstcd()%></td>
		</tr>     
		
      <%
        		}
                %></table><br><% 
        	}
      %>
        </form>
    </body>
</html>