<%-- 
    Document   : szallodavezeto_elbocsajtas
    Created on : 2009.03.18., 12:07:20
    Author     : Sensei
--%>

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

<!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;
            }
            .style5 {font-size: 14pt; font-weight: bold; color: #666666; font-style: italic; }
        </style>
        <SCRIPT LANGUAGE="JavaScript">
            function program_kiirasa(){
                javascript:window.location.href='szallodavezeto_programok.jsp';
            }
            function program_torlese(){
                javascript:window.location.href='szallodavezeto_programok_torlese.jsp';
            }
            function alkalmazott_felvetele(){
                javascript:window.location.href='szallodavezeto_uj_alkalmazott.jsp';
            }
            function alkalmazott_torlese(){
                javascript:window.location.href='szallodavezeto_elbocsajtas.jsp';
            }
        </SCRIPT>
    </head>
    <form action="SzallodavezetoServlet" 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">Szállodavezető!</h2>
            
            <p align="left">&nbsp;</p>
            <table width="795" height="27" border="1" align="center" bgcolor="#DDD8C1">
                <tr>
                <td onmouseover="this.style.color='red'" onmouseout="this.style.color='black'"><div align="center" onclick ="program_kiirasa()"><strong>Programok kiírása</strong></div></td>
                <td onmouseover="this.style.color='red'" onmouseout="this.style.color='black'"><div align="center" onclick ="program_torlese()"><strong>Programok törlése</strong></div></td>
                <td onmouseover="this.style.color='red'" onmouseout="this.style.color='black'"><div align="center" onclick ="alkalmazott_felvetele()"><strong>Alkalmazott felvétele</strong></div></td>
                <td onmouseover="this.style.color='red'" onmouseout="this.style.color='black'"><div align="center" onclick ="alkalmazott_torlese()"><strong>Alkalmazott elbocsájtása</strong></div></td>
                
            </table> 
            <blockquote>
              <div align="center">
                <input type="submit" value="Listaz" name="alkalmazottlista"/>
              </div>
              <p class="style5">Az alkalmazottak  listája: </p>
                
                <blockquote>
                    <table width="472" border="1">
                        <tr>
                            <td width="274"><div align="left" class="style5"><strong>Felhasználónév</strong></div></td>
                            <td width="274"><div align="left" class="style5"><strong>Név</strong></div></td>
                            <td width="153"><strong class="style5">Beosztás</strong></td>
                            <td width="23"></td>
                        </tr>
                        <%
            LinkedList<EmberDTO> ll = (LinkedList<EmberDTO>) request.getSession().getAttribute("emberek_szv");
            if (ll != null) {
                for (int i = 0; i < ll.size(); ++i) {
                    System.out.println(ll.get(i).getBeosztas());
                %>
                        <tr>
                            <td width="274"><div align="left"><strong><%out.println(ll.get(i).getFelhasznalonev());%></strong></div></td>
                            <td width="274"><div align="left"><strong><%out.println(ll.get(i).getNev());%></strong></div></td>
                            <td width="153"><strong><%out.println(ll.get(i).getBeosztas());%></strong></td>
                            <td width="23"><input type="checkbox" name="chackbox1" value="ON" /></td>
                        </tr>
                        
                        <%
                }
            }
            %>
                        
                    </table>
                    <blockquote>
                        <blockquote>
                            <blockquote>
                                <blockquote>
                                    <blockquote>
                                        <blockquote>
                                            <blockquote>
                                                <blockquote>
                                                    <p align="left">
                                                        <input type="submit" value="Alkalmazott törlése" name="torol" />
                                                    </p>
                                                </blockquote>
                                            </blockquote>
                                        </blockquote>
                                    </blockquote>
                                </blockquote>
                            </blockquote>
                        </blockquote>
                    </blockquote>
                </blockquote>
        </blockquote>
        </body>
    </form>
</html>