<%@ page contentType="text/html;charset=euc-kr" pageEncoding="euc-kr"%>
<%@ page import="com.eactive.eai.batch.common.SMSManager"%>
<%@ page import="com.eactive.eai.batch.common.StringUtil"%>
<% request.setCharacterEncoding("euc-kr"); %> 
<%
    
	String telno       = StringUtil.nvlTrim(request.getParameter("telno" ), "");
	String text        = StringUtil.nvlTrim(request.getParameter("text" ), "");
	SMSManager manager  = SMSManager.getInstance();

	
	boolean result = false;

	if (telno != null && telno.length() >0 && text != null && text.length() > 0){
		result = manager.sendSMS( telno, text ) ;
	}

%>

<html>
    <head>
        <title>
           문자 메시지 보내기 테스트
        </title>
        <script>
        function doAction() {
        	
            document.frm.submit();
        } 
        </script>
    </head>
    <body>
        <p style="font-size:12pt;">
        <b>문자 메시지 보내기 테스트</b> <br><br>
        </p>

        <form name="frm" action="" method="POST">
        <table border='0' width="800" >
        <tr>
        <td align='left'>
        <table width="800" 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="telno" size="13" class="form1" value="<%=telno%>"></td>
            <td align='right' width='780' bgcolor="#ccccff">메시지 :&nbsp;</td>
            <td><input type="text" name="text" size="80" class="form1" value="<%=text%>"></td>
            <td align="right"><input type="button" class="form1" value="    확인    " onclick="doAction();"></td>
        </tr>
        </table>
        </td>
        </tr>
        </table>
        <br>
        </form>
    </body>
</html>