<%-- 
    Document   : vendeg_etel_igenyles
    Created on : 2009.03.18., 2:02:51
    Author     : Sensei
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ page import="java.util.LinkedList" %>
<%@ page import="com.HotelServices.model.dto.impl.SzakacsDAOImpl" %>
<%@ page import="com.HotelServices.model.dto.EtelDTO" %> 


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <title>JSP Page</title>
        <style type="text/css">
            
            .style1 {
                font-family: Georgia, "Times New Roman", Times, serif;
                font-weight: bold;
                font-size: 30pt;
                color: #ECE9D8;
                font-style: italic;
            }
            .style7 {font-size: 14pt; font-weight: bold; color: #000000; font-style: italic; }
            .style8 {font-size: 12pt; font-weight: bold; color: #000000; font-style: italic; }
        </style>
        <SCRIPT LANGUAGE="JavaScript">
            function etel_igenyles(){
                javascript:window.location.href='vendeg_etel_igenyles.jsp';
            }
            function takaritas_igenyles(){
                javascript:window.location.href='vendeg_takaritas_igenyles.jsp';
            }
            function program_igenyles(){
                javascript:window.location.href='vendeg_program_igenyles.jsp';
            }
            function szobat_kivesz(){
                javascript:window.location.href='vendeg_szobat_kivesz.jsp';
            }
        </SCRIPT>
        
    </head>
    <form action="VendegServlet" method="POST">
        
        <body  bgcolor="#FFFFCC" style="background-image: url('back.jpg'); background-position: top center; background-repeat: no-repeat; background-attachment: fixed;"> 
            <h2 align="center" class="style1">Étel igénylés!</h2>
            <table width="795" height="27" border="1" align="center" bgcolor="#DDD8C1">
                <tr>
                    <td width="195" onmouseover="this.style.color='red'" onmouseout="this.style.color='black'"><div align="center" onclick ="szobat_kivesz()"><strong>Szobafoglalás</strong></div></td>
                    <td width="149" onmouseover="this.style.color='red'" onmouseout="this.style.color='black'"><div align="center" onclick ="etel_igenyles()"><strong>Heti menü</strong></div></td>
                    <td width="141" onmouseover="this.style.color='red'" onmouseout="this.style.color='black'"><div align="center" onclick ="takaritas_igenyles()"><strong>Takarítás</strong></div></td>
                    <td width="282" onmouseover="this.style.color='red'" onmouseout="this.style.color='black'"><div align="center" onclick ="program_igenyles()"><strong>Szállodai programaok</strong></div></td>
                </tr>
            </table>
            
            <div align="center">
              <p>
                <input type="submit" value="Etelek" name="lista_etel" />
                </p>
            </div>
            <table width="565" border="1" align="center">
                <tr class="style7">
                    <td width="73" class="style7"><div align="center">Nap</div></td>
                    <td width="40"><div align="center">Menü</div></td>
                    <td width="200"><div align="center">Etelek</div></td>
                    <td width="29"><div align="center">fő</div></td>
                </tr>
                <%LinkedList<EtelDTO> ll = (LinkedList<EtelDTO>) request.getSession().getAttribute("etel");
            if (ll != null) {
                for (int i = 0; i < ll.size(); ++i) {

                %>
                <tr class="style7">
                    <td class="style7"><div align="center"><%out.println(ll.get(i).getNap()); %></div></td>
                    <td><div align="center"><%out.println(ll.get(i).getMenu());%></div></td>
                    <td><table width="300" border="1" align="center">
                            <tr>
                                <td width="55" class="style8">Előétel:</td>
                                <td><%out.println(ll.get(i).getEloetel()); %></td>
                            </tr>
                            <tr>
                                <td class="style8">Főétel:</td>
                                <td><%out.println(ll.get(i).getFoetel()); %></td>
                            </tr>
                            <tr>
                                <td class="style8">Desszert:</td>
                                <td><%out.println(ll.get(i).getDesszert()); %></td>
                            </tr>
                    </table></td>
                    <td><div align="center">
                            <input type="text" name="fo" value="" size="2" />
                    </div></td>
                </tr>
                <%                }
            }
                %>	  
            </table>
            <p>&nbsp;</p>
            <div align="center">
                <p>
                    <input type="submit" value="Rendel" name="rendel" />
                </p>
                <p>&nbsp;</p>
                <p>&nbsp;</p>
            </div>
        </body>
    </form>
</html>

