<%@ page language="java" contentType="text/html;charset=euc-kr"%>
<%@ page import="java.util.HashMap"%>
<%@ page import="com.eactive.eai.batch.rule.sysInfo.SysInfoManager"%>
<%@ page import="com.eactive.eai.batch.rule.sysInfo.SysInfoVO"%>

<%
    
	SysInfoManager manager  = SysInfoManager.getInstance();

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

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

        <form name="frm" action="" method="POST">
        
        <%
        	if (al != null && al.length > 0) {
        		SysInfoVO vo = null;
                %>
                <table width="800" border=0 bgcolor='black' cellpadding="1" cellspacing="1">
        <tr bgcolor='white'>
            <td align='right' bgcolor="#ccccff">&nbsp; 시스템코드 &nbsp;</td>
            <td align='right' bgcolor="#ccccff">&nbsp; 시스템명   &nbsp;</td>
            <td align='right' bgcolor="#ccccff">&nbsp; 시스템 IP   &nbsp;</td>
            <td align='right' bgcolor="#ccccff">&nbsp; 포트   &nbsp;</td>
            <td align='right' bgcolor="#ccccff">&nbsp; ID   &nbsp;</td>
            <td align='right' bgcolor="#ccccff">&nbsp; 비밀번호   &nbsp;</td>
            <td align='right' bgcolor="#ccccff">&nbsp; 송신디렉토리   &nbsp;</td>
            <td align='right' bgcolor="#ccccff">&nbsp; 수신디렉토리   &nbsp;</td>
            <td align='right' bgcolor="#ccccff">&nbsp; SFTP여부   &nbsp;</td>
        </tr>           
                <%
        		for (int j=0; j < al.length; j++) {
        			vo = manager.getSysInfo(al[j]);
        %>

		<tr bgcolor='white'>
		<tr bgcolor='white'>
		    <td align='left'>&nbsp;<%=vo.getSysCd()%></td>
		    <td align='left'>&nbsp;<%=vo.getSysName()%></td>
		    <td align='left'>&nbsp;<%=vo.getSysIp()%></td>
		    <td align='left'>&nbsp;<%=vo.getSysPort     ()%></td>
		    <td align='left'>&nbsp;<%=vo.getUserId      ()%></td>
		    <td align='left'>&nbsp;<%=vo.getUserPassword()%></td>
		    <td align='left'>&nbsp;<%=vo.getSendDir     ()%></td>
		    <td align='left'>&nbsp;<%=vo.getRecvDir     ()%></td>
		    <td align='left'>&nbsp;<%=vo.getSftpYn      ()%></td>
		</tr>     
      <%
        		}
                %></table><br><% 
        	}
      %>
        </form>
    </body>
</html>