<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Wierszowki.Models.ReportViewData>" %>
<%@ Import Namespace="Wierszowki.Helpers"%>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Raporty
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>Raporty</h2>
    <h3>Proszę wybrać raport:</h3>
<table class="reportTable">
    <tr>
        <td style="text-align:left; vertical-align:top;">
            <h4>Karta wierszówkowa</h4>
            <% using (Html.BeginForm("AuthorCard", "Report")) { %>
            <table>
                <tr>
                    <td>
                        <label for="Year">Rok:</label>
                    </td>
                    <td>
                        <%= Html.YearSelect("year")%>
                    </td>
                </tr>
                <tr>
                    <td>
                        <label for="Month">Miesiąc:</label>
                    </td>
                    <td>
                        <%= Html.MonthSelect("month")%>
                    </td>
                </tr>
                <tr>
                    <td>
                    <label for="Employment">Autor:</label>
                    </td>
                    <td>
                    <%= Html.DropDownList("author", new SelectList(Model.Authors, "Id", "FullName"))%>
                    </td>
                </tr>
                <tr>
                    <td></td>
                    <td><input type="submit" value="Pokaż" /></td>
                </tr>
            </table>
            <% } %>
        </td>
        <td style="text-align:left; vertical-align:top;">
            <h4>Wierszówki miesięczne</h4>
            <% using (Html.BeginForm("Authors", "Report")) { %>
            <table>
                <tr>
                    <td>
                        <label for="Year">Rok:</label>
                    </td>
                    <td>
                        <%= Html.YearSelect("year")%>
                    </td>
                </tr>
                <tr>
                    <td>
                        <label for="Month">Miesiąc:</label>
                    </td>
                    <td>
                        <%= Html.MonthSelect("month")%>
                    </td>
                </tr>
                <tr>
                    <td></td>
                    <td><input type="submit" value="Pokaż" /></td>
                </tr>
            </table>
            <% } %>
        </td>
        <td style="text-align:left; vertical-align:top;">
            <h4>Wierszówki miesięczne wg wprowadzającego i wybranego miesiąca</h4>
            <% using (Html.BeginForm("All", "Report")) { %>
            <table>
                <tr>
                    <td>
                        <label for="Year">Rok:</label>
                    </td>
                    <td>
                        <%= Html.YearSelect("year")%>
                    </td>
                </tr>
                <tr>
                    <td>
                        <label for="Month">Miesiąc:</label>
                    </td>
                    <td>
                        <%= Html.MonthSelect("month")%>
                    </td>
                </tr>
                <tr>
                    <td>
                        <label for="user">Wprowadzający:</label>
                    </td>
                    <td>
                        
                        <%= Html.DropDownList("user", Model.UserList)%>
                    </td>
                </tr>                
                <tr>
                    <td></td>
                    <td><input type="submit" value="Pokaż" /></td>
                </tr>
            </table>
            <% } %>
        </td>
    </tr>
    <tr>
        <td style="text-align:left; vertical-align:top;">
            <h4>Wierszówki miesięczne wg tytułów</h4>
            <% using (Html.BeginForm("AuthorsByMagazines", "Report")) { %>
            <table>
                <tr>
                    <td>
                        <label for="Year">Rok:</label>
                    </td>
                    <td>
                        <%= Html.YearSelect("year")%>
                    </td>
                </tr>
                <tr>
                    <td>
                        <label for="Month">Miesiąc:</label>
                    </td>
                    <td>
                        <%= Html.MonthSelect("month")%>
                    </td>
                </tr>
                <tr>
                    <td></td>
                    <td><input type="submit" value="Pokaż" /></td>
                </tr>
            </table>
            <% } %>
        </td>
        <td style="text-align:left; vertical-align:top;">
            <h4>Wierszówki miesięczne wg tytułów i formy zatrudnienia</h4>
            <% using (Html.BeginForm("AuthorsByMagazinesByEmployment", "Report")) { %>
            <table>
                <tr>
                    <td>
                        <label for="Year">Rok:</label>
                    </td>
                    <td>
                        <%= Html.YearSelect("year")%>
                    </td>
                </tr>
                <tr>
                    <td>
                        <label for="Month">Miesiąc:</label>
                    </td>
                    <td>
                        <%= Html.MonthSelect("month")%>
                    </td>
                </tr>
                <tr>
                    <td>
                        <label for="Month">Zatrudnienie:</label>
                    </td>
                    <td>
                        <%= Html.DropDownList("employment", Model.EmploymentTypeList)%>
                    </td>
                </tr>
                <tr>
                    <td></td>
                    <td><input type="submit" value="Pokaż" /></td>
                </tr>
            </table>
            <% } %>
        </td>
        <td style="text-align:left; vertical-align:top;"></td>
    </tr>
</table>
</asp:Content>