<%-- 
    Document   : szallodavezeto_programok_torlese
    Created on : 2009.03.18., 12:37:18
    Author     : Sensei
--%>

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


<!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" > 
            <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>
                <p class="style5">Az eddig kiírt programok listája: </p>
                <input type="submit" value="Listaz" name="lista" />
                <blockquote>
                    <table width="607" border="1">
                        <tr>
                            <td width="569"><div align="left"><strong>Program neve</strong></div></td>
                            <td width="100"><div align="Center"><strong>Dátum</strong></div></td>
                            <td width="22"><div align="center">
                                    <input type="checkbox" name="chackbox1" value="ON"/>
                            </div></td>
                        </tr>
                        <%
            LinkedList<ProgramokDTO> ll = (LinkedList<ProgramokDTO>) request.getSession().getAttribute("programok_szv");
            if (ll != null) {
                for (int i = 0; i < ll.size(); ++i) {
                    
                        %>
                        <tr>
                            <td width="569"><div align="left"><strong><%out.println(ll.get(i).getNev());%></strong></div></td>
                            <td width="100"><div align="Center"><strong><%out.println(ll.get(i).getDatum());%></strong></div></td>
                            <td width="22"><div align="center">
                                    <input type="checkbox" name="chackbox<%out.println(i);%>" value="ON"/>
                            </div></td>
                        </tr>
                        <%
                }
            }
                        %>
                        
                    </table>
                    <blockquote>
                        <blockquote>
                            <blockquote>
                                <blockquote>
                                    <blockquote>
                                        <p align="right">
                                            <input type="submit" value="Törlés" name="torol" />
                                        </p>
                                    </blockquote>
                                </blockquote>
                            </blockquote>
                        </blockquote>
                    </blockquote>
                </blockquote>
            </blockquote>
        </body>
    </form>
</html>


