<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8" %>
<html>
<head>
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/styles/recensione.css"/>
    <title>Title</title>
    <script src="${pageContext.request.contextPath}/script/checkRecensione.js"></script>
</head>
<body>
<%@include file="../../header.jsp"%>
<% int idOrdine= (int) request.getAttribute("idOrdine");%>
<% int idUtente= (int) request.getAttribute("idUtente");%>
<div class="recensioneContainer">
    <form method="post" action="AggiungiRecensione" onsubmit="return validateReviewForm()">
        <div class="rate">
            <input type="radio" id="star5" name="rate" value="5" />
            <label for="star5" title="text"></label>
            <input type="radio" id="star4" name="rate" value="4" />
            <label for="star4" title="text"></label>
            <input type="radio" id="star3" name="rate" value="3" />
            <label for="star3" title="text"></label>
            <input type="radio" id="star2" name="rate" value="2" />
            <label for="star2" title="text"></label>
            <input type="radio" id="star1" name="rate" value="1" />
            <label for="star1" title="text"></label>
        </div><br>

        <textarea class="text" id="text" name="text" rows="3" placeholder="Inserisci testo"></textarea><br>
        <input type="hidden" value="<%=idOrdine%>" name="idOrdine">
        <input type="hidden" value="<%=idUtente%>" name="idUtente">
        <input id="submit" class="submit" type="submit" value="Invia" >
    </form>
</div>
<%@include file="../../footer.jsp"%>
</body>
</html>
