<%@ 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>
                        <select id="user" name="user">
                            <option value="3">zbyszek</option>
                            <option value="4">slawek</option>
                        </select>
                    </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>
                        <select id="employment" name="employment">
                            <option value="1">AACT</option>
                            <option value="2">Sam Press</option>
                            <option value="3">Umowa o dzieło</option>
			                <option value="4">Faktura VAT</option>
                        </select>
                    </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>