<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="LandingPageAdmin.aspx.cs" Inherits="NikaiDSR.LandingPageAdmin" %>

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

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div class="content_holder">
        <div class="bg_shadow">
            <table border="2" cellspacing="0" cellpadding="0" width="100%">
                <tr>
                <td width="350px" colspan="2">
                        <h1>
                            <asp:Literal ID="Literal1" runat="server" Text="Home" /></h1>
                    <br />
                    </td>
                </tr>
                    <tr>
                    <td width="150px">
                        <telerik:RadDatePicker Width="190" ID="dtSearch" runat="server" Culture="en-US"
                            EnableTyping="False" Skin="Sunset" style="float:left">
                            <Calendar UseColumnHeadersAsSelectors="False" UseRowHeadersAsSelectors="False" ViewSelectorText="x">
                            </Calendar>
                            <DateInput DateFormat="dd/MM/yyyy" DisplayDateFormat="dd/MM/yyyy" ReadOnly="True">
                            </DateInput>
                        </telerik:RadDatePicker>
                        <telerik:RadComboBox ID="cmbExecutive" runat="server" style="float:left"/>
                        <asp:Button ID="btnGo" runat="server" Text="Go" OnClick="btnGo_Click" style="float:left"/>
                        <asp:Literal ID="txtDate" runat="server" />
                    </td>
                </tr>
            </table>
                </div>

            <%--<div style="text-align: right;">
                <asp:Literal ID="txtDate" runat="server" />
            </div>--%>

            <br />
            <telerik:RadGrid ID="Grid" runat="server" OnNeedDataSource="Grid_NeedDataSource" OnItemDataBound="Grid_ItemDataBound">
                <MasterTableView>
                    <Columns>
                        <telerik:GridBoundColumn DataField="Site_User_Id" UniqueName="UserId" Display="false" />
                        <telerik:GridBoundColumn DataField="DSR_Id" UniqueName="DSR_Id" Display="false" />
                        <telerik:GridBoundColumn DataField="DSR_Head_Id" UniqueName="DSR_Head_Id" Display="false" />
                        <telerik:GridBoundColumn DataField="A_Date" DataFormatString="{0:dddd MMM dd,yyyy}" UniqueName="Date" Display="false" />
                        <telerik:GridBoundColumn HeaderText="Executive" DataField="Name" UniqueName="Name" />
                        <telerik:GridBoundColumn HeaderText="Attendance Status" DataField="A_Status" UniqueName="Attendance" />
                        <telerik:GridBoundColumn HeaderText="DSR Submited" DataField="DSR_Status" UniqueName="DSR" />
                        <telerik:GridTemplateColumn>
                            <ItemTemplate>
                                <asp:LinkButton ID="btnViewDSR" runat="server" Text="View DSR" Visible="false" />
                                <asp:LinkButton ID="btnChangeAttendance" runat="server" Text="Change Attendance" Visible="false" />
                            </ItemTemplate>
                        </telerik:GridTemplateColumn>
                    </Columns>
                </MasterTableView>
            </telerik:RadGrid>
    </div>
</asp:Content>
