package org.apache.jsp;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import java.util.LinkedList;
import com.HotelServices.model.dto.impl.TakaritoDAOImpl;
import com.HotelServices.model.dto.TakaritasDTO;

public final class takarito_005findex_jsp extends org.apache.jasper.runtime.HttpJspBase
    implements org.apache.jasper.runtime.JspSourceDependent {

  private static final JspFactory _jspxFactory = JspFactory.getDefaultFactory();

  private static java.util.Vector _jspx_dependants;

  private org.apache.jasper.runtime.ResourceInjector _jspx_resourceInjector;

  public Object getDependants() {
    return _jspx_dependants;
  }

  public void _jspService(HttpServletRequest request, HttpServletResponse response)
        throws java.io.IOException, ServletException {

    PageContext pageContext = null;
    HttpSession session = null;
    ServletContext application = null;
    ServletConfig config = null;
    JspWriter out = null;
    Object page = this;
    JspWriter _jspx_out = null;
    PageContext _jspx_page_context = null;


    try {
      response.setContentType("text/html;charset=UTF-8");
      pageContext = _jspxFactory.getPageContext(this, request, response,
      			null, true, 8192, true);
      _jspx_page_context = pageContext;
      application = pageContext.getServletContext();
      config = pageContext.getServletConfig();
      session = pageContext.getSession();
      out = pageContext.getOut();
      _jspx_out = out;
      _jspx_resourceInjector = (org.apache.jasper.runtime.ResourceInjector) application.getAttribute("com.sun.appserv.jsp.resource.injector");

      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write(" \r\n");
      out.write("\r\n");
      out.write("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\"\r\n");
      out.write("\"http://www.w3.org/TR/html4/loose.dtd\">\r\n");
      out.write("\r\n");
      out.write("<html>\r\n");
      out.write("    <head>\r\n");
      out.write("        <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\r\n");
      out.write("        <title>JSP Page</title>\r\n");
      out.write("        <style type=\"text/css\">\r\n");
      out.write("            \r\n");
      out.write("            .style1 {\r\n");
      out.write("                font-family: Georgia, \"Times New Roman\", Times, serif;\r\n");
      out.write("                font-weight: bold;\r\n");
      out.write("                font-size: 30pt;\r\n");
      out.write("                color: #ECE9D8;\r\n");
      out.write("                font-style: italic;\r\n");
      out.write("            }\r\n");
      out.write("            .style4 {\r\n");
      out.write("                font-size: 14pt;\r\n");
      out.write("                font-weight: bold;\r\n");
      out.write("                color: #666666;\r\n");
      out.write("                font-style: italic;\r\n");
      out.write("            }\r\n");
      out.write("            .style5 {font-size: 18pt; font-weight: bold; color: #666666; font-style: italic; }\r\n");
      out.write("            .style7 {font-size: 14pt; font-weight: bold; color: #000000; font-style: italic; }\r\n");
      out.write("        </style>\r\n");
      out.write("        \r\n");
      out.write("    </head>\r\n");
      out.write("    <form action=\"TakaritoServlet\" method=\"POST\">\r\n");
      out.write("        <body  bgcolor=\"#FFFFCC\" style=\"background-image: url('back.jpg'); background-position: top center; background-repeat: no-repeat\" > \r\n");
      out.write("            <h2 align=\"center\" class=\"style1\">Takarító</h2>\r\n");
      out.write("            <blockquote>\t\r\n");
      out.write("                \t<div align=\"left\"></div>\r\n");
      out.write("                \t\r\n");
      out.write("           \t  <div align=\"left\">\r\n");
      out.write("           \t    <p><span class=\"style5\">A takarításra váró szobák listája:</span>\r\n");
      out.write("           \t      <input type=\"submit\" value=\"Listaz\" name=\"lista\" />\r\n");
      out.write("       \t        </p>\r\n");
      out.write("           \t  </div>\r\n");
      out.write("                \t  <table width=\"695\" border=\"1\" align=\"center\">\r\n");
      out.write("                    <tr>\r\n");
      out.write("                        <td width=\"82\" class=\"style7\"><div align=\"center\">Szobaszám</div></td>\r\n");
      out.write("                        <td width=\"535\" class=\"style7\"><div align=\"center\">Leírás</div></td>\r\n");
      out.write("                        <td width=\"56\" class=\"style7\"><div align=\"center\"></div></td>\r\n");
      out.write("                    </tr>\r\n");
      out.write("                    ");
LinkedList<TakaritasDTO> ll = (LinkedList<TakaritasDTO>) request.getSession().getAttribute("takaritaslista");
            if (ll != null) {
                for (int i = 0; i < ll.size(); ++i) {

                    
      out.write("\r\n");
      out.write("                    <tr>\r\n");
      out.write("                        <td>");
out.println(ll.get(i).getSzobaszam());
      out.write("</td>\r\n");
      out.write("                        <td>");
out.println(ll.get(i).getLeiras());
      out.write("</td>\r\n");
      out.write("                        <td><input type=\"submit\" value=\"Takarít");
out.println(i);
      out.write("\" name=\"takarit");
out.println(i);
      out.write("\" /></td>\r\n");
      out.write("                    </tr>\r\n");
      out.write("                    ");
                }
            }
                    
      out.write("\r\n");
      out.write("                </table>\r\n");
      out.write("                <p align=\"left\" class=\"style5\">&nbsp;</p>\r\n");
      out.write("        </blockquote>\r\n");
      out.write("        </body>\r\n");
      out.write("    </form>\r\n");
      out.write("</html>\r\n");
    } catch (Throwable t) {
      if (!(t instanceof SkipPageException)){
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
          out.clearBuffer();
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
      }
    } finally {
      _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }
}
