result.ejs 2.07 KB
<!DOCTYPE html>
<html lang="ko">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel='stylesheet' href='/vendors/bootstrap/css/bootstrap.min.css' />
    <link rel='stylesheet' href='/vendors/bootstrap/css/bootstrap-grid.min.css' />
    <link rel='stylesheet' href='/vendors/bootstrap/css/bootstrap-reboot.min.css' />
    <link rel='stylesheet' href='/css/category.css'>

    <title>📝 결과</title>
    <h1>
    🥘 맛집 현황</h1>
<table class="table">
    <thead class="thead-dark">
        <tr>
            <th>음식점명</th>
            <th>전화번호</th>
            <th>대표음식</th>
            <th>도로명주소</th>
        </tr>
    </thead>
    <tbody>
        <%for (var i =0; i <stores.length; i++){%>
            <tr>
                <td>
                    <%=stores[i].RESTRT_NM%>
                </td>
                <td>
                    <%=stores[i].TASTFDPLC_TELNO%>
                </td>
                <td>
                    <%=stores[i].REPRSNT_FOOD_NM%>
                </td>
                <td>
                    <%=stores[i].REFINE_ROADNM_ADDR%>
                </td>
            </tr>
            <%}%>
    </tbody>
</table>



<h3>총 맛집 개수 :
    <%=stores.length%>
</h3>


<h1>🍔 패스트푸드점 현황 </h1>

<table class="table">
    <thead class="thead-dark">
        <tr>
            <th>사업장명</th>
            <th>도로명주소</th>
        </tr>
    </thead>
    <tbody>
        <%for (var i =0; i <fast_food_stores.length; i++){%>
            <tr>
                <td>
                    <%=fast_food_stores[i].BIZPLC_NM%>
                </td>
                <td>
                    <%=fast_food_stores[i].REFINE_ROADNM_ADDR%>
                </td>
            </tr>
            <%}%>
    </tbody>
</table>

<h3>패스트푸드점 개수 :
    <%=fast_food_stores.length%>
</h3>
</head>

<body>
    <%- include('components/locationJumbotron') -%>
        <%- include(`results/${category}`) -%>
            <%- include(`components/grade`) -%>

</body>

</html>