<%-- 
    Document   : takarito_index
    Created on : 2009.03.18., 12:02:41
    Author     : Sensei
--%>

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

<!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;
            }
            .style4 {
                font-size: 14pt;
                font-weight: bold;
                color: #666666;
                font-style: italic;
            }
            .style5 {font-size: 18pt; font-weight: bold; color: #666666; font-style: italic; }
            .style7 {font-size: 14pt; font-weight: bold; color: #000000; font-style: italic; }
        </style>
        
    </head>
    <form action="TakaritoServlet" method="POST">
        <body  bgcolor="#FFFFCC" style="background-image: url('back.jpg'); background-position: top center; background-repeat: no-repeat" > 
            <h2 align="center" class="style1">Takarító</h2>
            <blockquote>	
                	<div align="left"></div>
                	
           	  <div align="left">
           	    <p><span class="style5">A takarításra váró szobák listája:</span>
           	      <input type="submit" value="Listaz" name="lista" />
       	        </p>
           	  </div>
                	  <table width="695" border="1" align="center">
                    <tr>
                        <td width="82" class="style7"><div align="center">Szobaszám</div></td>
                        <td width="535" class="style7"><div align="center">Leírás</div></td>
                        <td width="56" class="style7"><div align="center"></div></td>
                    </tr>
                    <%LinkedList<TakaritasDTO> ll = (LinkedList<TakaritasDTO>) request.getSession().getAttribute("takaritaslista");
            if (ll != null) {
                for (int i = 0; i < ll.size(); ++i) {

                    %>
                    <tr>
                        <td><%out.println(ll.get(i).getSzobaszam());%></td>
                        <td><%out.println(ll.get(i).getLeiras());%></td>
                        <td><input type="submit" value="Takarít<%out.println(i);%>" name="takarit<%out.println(i);%>" /></td>
                    </tr>
                    <%                }
            }
                    %>
                </table>
                <p align="left" class="style5">&nbsp;</p>
        </blockquote>
        </body>
    </form>
</html>
