<%@ page language="C#" autoeventwireup="true" inherits="fxInbox, FaxCore.OSA40" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Inbox</title>
    <meta name="Browser" content="NetFront" />
    <asp:Literal runat="server" id="activeStyleSheet"></asp:Literal>
</head>
<body>
    <form id="form1" runat="server">
 <table border="0" cellpadding="2" cellspacing="2" width="735px">
            <tr>
                <td colspan="5" height="35px" bgcolor="black">
                    <asp:Image ID="hdr1" runat="server" ImageUrl="~/Images/faxcorelogo_transparent.gif" />
                    <asp:Label ID="Label2" runat="server" Font-Bold="True" ForeColor="White" Text="INBOUND FAX"
                        Font-Italic="True" Font-Size="X-Large"></asp:Label>
                </td>
            </tr>
            <tr>
                <td style="height: 28px;" >
                    <asp:Button ID="btnBack" runat="server" Text="Back" OnClick="btnBack_Click" />
                </td>
                
                <td align="right" style="padding-right:10px" colspan="4">
                    Search :&nbsp;
                    <asp:TextBox ID="txtSearch" runat="server" Width="195px"></asp:TextBox>
                    <asp:ImageButton ID="imgSearch" runat="server" ImageUrl="~/Images/search_filter.gif"
                        OnClick="imgSearch_Click" />
                </td>
            </tr>
            <tr>
                <td colspan="5" style="height: 23px">
                    <asp:GridView ID="gvInbox" AllowSorting="True" runat="server" AllowPaging="True"
                        AutoGenerateColumns="False" BackColor="White" BorderColor="#999999" BorderStyle="Solid"
                        BorderWidth="1px" CellPadding="3" ForeColor="Black" Width="99%" EmptyDataText="No Message available."
                        OnPageIndexChanged="gvInbox_PageIndexChanged" OnPageIndexChanging="gvInbox_PageIndexChanging"
                        PageSize="4" DataKeyNames="xMessageID">
                        <PagerSettings Mode="NextPrevious" />
                        <FooterStyle BackColor="#CCCCCC" />
                        <Columns>
                            <asp:TemplateField>
                                <ItemTemplate>
                                    <asp:Button ID="btnPreview" runat="server" OnClick="btnPreview_Click" Text="Preview"
                                        CommandArgument='<%#Eval("xMessageID")%>' />
                                </ItemTemplate>
                                <ItemStyle HorizontalAlign="Center" />
                            </asp:TemplateField>
                            <asp:BoundField DataField="xMessageID" HeaderText="MessageID" />
                            <asp:BoundField DataField="xMsgNo" HeaderText="MessageNo " />
                            <asp:BoundField DataField="xCrDate" HeaderText="Date" />
                            <asp:BoundField DataField="xSenderName" HeaderText="From" />
                            <asp:BoundField DataField="xCallerID" HeaderText="Caller ID" />
                            <asp:BoundField DataField="xRowNum" HeaderText="Row number" Visible="False" />
                        </Columns>
                        <PagerStyle BackColor="Silver" ForeColor="Black" HorizontalAlign="Center" />
                        <SelectedRowStyle BackColor="#000099" Font-Bold="True" ForeColor="White" />
                        <HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" HorizontalAlign="Left" />
                        <AlternatingRowStyle BackColor="#CCCCCC" />
                        <PagerTemplate>
                            <table width="100%" cellspacing="1" cellpadding="1">
                                <tr>
                                    <%-- <td width="15%" align="right">
                    <asp:ImageButton ID="btnPageBegin" runat="server" ImageUrl="~/Img/prevend.png"
                      CommandName="Page" CommandArgument="First" ToolTip="First" />
                  </td>--%>
                                    <td width="35%" align="left">
                                        <asp:ImageButton ID="btnPagePrev" runat="server" ImageUrl="~/Images/prev.png" CommandName="Page"
                                            CommandArgument="Prev" ToolTip="Prev" />
                                    </td>
                                    <td width="35%" align="right">
                                        <asp:ImageButton ID="btnPageNext" runat="server" ImageUrl="~/Images/next.png" CommandName="Page"
                                            CommandArgument="Next" ToolTip="Next" />
                                    </td>
                                    <%--  <td width="15%" align="left">
                    <asp:ImageButton ID="btnPageEnd" runat="server" ImageUrl="~/Img/nextend.png" CommandName="Page"
                      CommandArgument="Last" ToolTip="Last" />
                  </td>--%>
                                </tr>
                            </table>
                        </PagerTemplate>
                    </asp:GridView>
                    <asp:Label ID="lblPage" runat="server"></asp:Label>
                    <asp:Label ID="Label1" runat="server" Text="Label" Visible="False"></asp:Label></td>
            </tr>
            
        </table>
    </form>
</body>
</html>
