<%@ page language="C#" autoeventwireup="true" inherits="fxAddressBook, 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>Address Book</title>
    <meta name="Browser" content="NetFront" />
    <asp:Literal runat="server" ID="activeStyleSheet"></asp:Literal>
    <style type="text/css">
  .bumper
  {
  padding-left:10px;
  }
  </style>
</head>
<body>
    <form id="form1" runat="server">
        <table border="0" cellpadding="2" cellspacing="2" width="735px">
      <tr>
        <td height="35px" bgcolor="black" colspan="3" >
          <asp:Image ID="hdr1" runat="server" ImageUrl="Images/faxcorelogo_transparent.gif" />
          <asp:Label ID="Label4" runat="server" Font-Bold="True" ForeColor="White" Text="Recipient Properties"></asp:Label></td>
      </tr>
      <tr>
        <td>
          <asp:Button ID="btnBack" runat="server" OnClick="btnBack_Click" Text="Back" CssClass="btn_Main" CausesValidation="False" />
          <asp:Button ID="btnViewRecp" runat="server" OnClick="btnViewRecp_Click" Text="Recipient"
            CssClass="btn_Main" CausesValidation="False" />
          <asp:ImageButton ID="imgFaxcoreAddress" runat="server" ImageUrl="Images/address-icon 32x32.png"
            OnClick="imgFaxcoreAddress_Click" CausesValidation="False" CssClass="bumper" />
          <asp:ImageButton ID="imgManualEntry" runat="server" ImageUrl="Images/id_card_add.png" OnClick="imgManualEntry_Click" CausesValidation="False" CssClass="bumper"/>
          <asp:ImageButton ID="imgExchange" runat="server" ImageUrl="Images/Ex2007_32.jpg" OnClick="imgExchange_Click" CausesValidation="False" CssClass="bumper"/>
          </td>
        <td align="right">
          <asp:Label ID="lblSearch" runat="server" Text="Search:"></asp:Label>
          <asp:TextBox ID="txtSearch" runat="server" ></asp:TextBox>
          <asp:ImageButton ID="imgSearch" runat="server" ImageUrl="Images/search_filter.gif"
            OnClick="imgSearch_Click" CausesValidation="False" /></td>
        <td align="right">
          <asp:Button ID="btnSave" runat="server" Text="Save" OnClick="btnSave_Click" CssClass="btn_Main" /></td>
      </tr>
      <tr>
        <td colspan="3" style="height: 23px">
          <asp:Panel ID="pnlManualEntry" runat="server" Width="100%">
            <table width="100%">
              <tr>
                <td style="width: 122px" colspan="3">
                  <asp:Label ID="Label1" runat="server" Text="Please enter the recipient details and click [Save]"
                    Width="726px" Font-Bold="True"></asp:Label></td>
              </tr>
              <tr>
                  <td style="width: 122px; height: 26px;">
                      <asp:Label ID="Label2" runat="server" Text="Recipient Name" Width="119px"></asp:Label>
                  </td>
                  <td style="width: 253px; height: 26px;">
                      <asp:TextBox ID="txtRecipientName" runat="server"></asp:TextBox>
                      &nbsp;
                  </td>
                  <td align="right" rowspan="3">
                      <asp:RadioButtonList ID="rbtAddressBookType" runat="server" AutoPostBack="true" 
                          
                          RepeatDirection="Horizontal" Visible="False">
                      </asp:RadioButtonList>
                      <asp:ListBox ID="lstManualAddedRecp" runat="server" Visible="False">
                      </asp:ListBox>
                      &nbsp;</td>
              </tr>
              <tr>
                <td style="width: 122px; height: 24px;">
                  <asp:Label ID="lblCompanyName" runat="server" Text="Company Name" Width="118px"></asp:Label></td>
                <td style="width: 253px; height: 24px;">
                  <asp:TextBox ID="txtCompanyName" runat="server"></asp:TextBox>
                </td>
              </tr>
              <tr>
                <td style="width: 122px">
                  <asp:Label ID="Label3" runat="server" Text="Fax"></asp:Label></td>
                <td style="width: 253px">
                  <asp:TextBox ID="txtFax" runat="server"></asp:TextBox>
                  <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtFax"
                    ErrorMessage="Missing Fax Number">*</asp:RequiredFieldValidator>
                  <asp:Button ID="btnAddManualRecipient" runat="server" OnClick="btnAddManualRecipient_Click"
                    Text="Add Recipient" CssClass="btn_Main" Visible="False" /></td>
              </tr>
              <tr>
                <td colspan="3" style="height: 20px">
                  <asp:Label ID="lblInfo" runat="server" ForeColor="Blue"></asp:Label>
                  <asp:ValidationSummary ID="ValidationSummary1" runat="server" DisplayMode="SingleParagraph" />
                </td>
              </tr>
            </table>
          </asp:Panel>
          <asp:GridView ID="GridView1" AllowSorting="True" runat="server" AllowPaging="True"
            AutoGenerateColumns="False" BackColor="White" BorderColor="#999999" BorderStyle="Solid"
            BorderWidth="1px" CellPadding="2" ForeColor="Black" Width="735px" EmptyDataText="No address available."
            EnableViewState="true" DataKeyNames="AddressID" OnPageIndexChanged="GridView1_PageIndexChanged"
            OnPageIndexChanging="GridView1_PageIndexChanging" PageSize="4">
            <PagerSettings Mode="NextPrevious" />
            <FooterStyle BackColor="#CCCCCC" />
            <Columns>
              <asp:TemplateField>
                <ItemTemplate>
                  <asp:CheckBox ID="chkSel" runat="server" />
                  <asp:CheckBox ID="chkRaw" runat="server" Visible="false" Checked='<%# Eval("IsRaw") %>' />
                </ItemTemplate>
                <ItemStyle HorizontalAlign="Center" />
              </asp:TemplateField>
              <asp:BoundField DataField="RecipientName" HeaderText="Recipient Name" />
              <asp:BoundField DataField="RecipientCompany" HeaderText="Company Name" />
              <asp:BoundField DataField="RecipientFax" HeaderText="Fax Number" />
              <asp:BoundField DataField="IsRaw" HeaderText="Is Raw" InsertVisible="False" Visible="False" />
              <asp:BoundField DataField="AddressID" HeaderText="Address ID" 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></td>
      </tr>
    </table>

    </form>
</body>
</html>
