<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<jsp:include page="head.jsp"/>

<body>

<div class="container" align="center">
    <jsp:include page="header.jsp"/>
    <jsp:include page="menu.jsp"/>

    <div class="content">
        <table border="0" cellpadding="10" cellspacing="0" width="100%" style="font-weight: bold;font-family:tahoma;font-size:14pt;color:#808080;border-color:#6a5acd" >
            <tr><td>
                <fieldset><legend> 동네예보(FRCS) </legend>
                    <table align="center" border="1" cellpadding="1" cellspacing="0" style="border: 1px solid;font-weight: normal;font-family:tahoma;font-size:12pt;">
                        <thead>
                        <tr style="background-color: antiquewhite;">
                            <th style="width: 100px;">구역코드</th>
                            <th style="width: 120px;">예보구역</th>
                            <th style="width: 55px;">상태</th>
                            <th style="width: 130px;">마지막 요청 시각</th>
                            <th style="width: 600px;">동네예보</th>
                        </tr>
                        </thead>
                        <c:forEach var="entry" items="${list}" varStatus="status">
                            <tr>
                                <td align="center">${entry.value.VILG_FRCS_ZONE_CD}</td>
                                <td>${entry.value.VILG_FRCS_ZONE_NM}</td>
                                <td align="center">
                                    <c:choose>
                                        <c:when test="${entry.value.requestResult eq '0'}">
                                            &nbsp;&nbsp;실패&nbsp;&nbsp;
                                        </c:when>
                                        <c:otherwise>
                                            &nbsp;&nbsp;성공&nbsp;&nbsp;
                                        </c:otherwise>
                                    </c:choose>
                                </td>
                                <td align="center">&nbsp;${entry.value.requestTime}&nbsp;</td>
                                <td align="left">&nbsp;${entry.value.requestValue}&nbsp;</td>
                            </tr>
                        </c:forEach>
                    </table>
                    <br>
                    <table align="center" border="0" cellpadding="1" cellspacing="0" style="font-weight: normal;font-family:tahoma;font-size:12pt;">
                        <tr>
                            <td><button type="button" onclick="requestFrcs()">동네예보 요청</button></td>
                        </tr>
                    </table>

            </fieldset>
            </td></tr>
        </table>
    </div>
</div>

</body>
</html>
