<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="List.aspx.vb" Inherits="EDSL.Admin.ValueList" MasterPageFile="~/masterpages/main.master" %>
<asp:Content id="conMain" runat="server" ContentPlaceHolderID="ContentPlaceHolder1">
  <div id="divHeaderText" class="divHeaderText" runat="server"></div>      
  <div id="divContent" class="divContent" runat="server"></div>      
  <div class="content-box">
    <asp:UpdatePanel ID="pnlContainer" runat="server">
      <ContentTemplate>
        <h2>Search</h2>
        <div class="formleft">
          <div class="formtabrow">
            <div class="tablab"><asp:Label ID="Label1" Text="Value name" runat="server"></asp:Label></div>
            <div class="tabcon"><asp:TextBox  CssClass="textbox" ID="txtSearchValueName" runat="server" ></asp:TextBox></div>
            <div class="cl"></div>
          </div>
        </div>
        <div class="formright">
          <asp:Button CssClass="greenbutton" Width="70px" ToolTip="Search" Text="Search" AlternateText="Search" runat="server" ID="btnSearch" OnClick="btnSearch_Click" />
          <asp:Button runat="server" ID="btnSearchClear" OnClick="btnSearchClear_Click" CssClass="greenbutton" Text="Clear search" />
        </div>
        <div class="cl"></div>
        <div class="separator"></div>
        
        <div class="datatable">
          <table cellpadding="0" cellspacing="0">
            <tr>
              <td class="td_control">
                <asp:ImageButton ImageUrl="~/images/icon_asc.png" AlternateText="&nbsp;" runat="server" ID="btnOB1a" OnCommand="btnOrderBy_Click" CommandArgument="1,a" />
                <asp:ImageButton ImageUrl="~/images/icon_dsc.png" AlternateText="&nbsp;" runat="server" ID="btnOB1d" OnCommand="btnOrderBy_Click" CommandArgument="1,d" />
              </td>
              <td class="td_control"></td>
            </tr>
            <asp:Repeater ID="repRepeater" runat="server">
              <HeaderTemplate>
                <tr>
                  <td class="td_head">Value name</td>
                  <td class="td_head"></td>
                </tr>
              </HeaderTemplate>
              <ItemTemplate>
                <tr class="trRowMain">
                  <td class="td_cell"><asp:HyperLink ID="HyperLink1"  CssClass="titlelink" runat="server" ToolTip="Edit" NavigateUrl='<%# "~/ValueAdmin/Edit.aspx?id=" &  DataBinder.Eval(Container.DataItem, "ValueID")  %>'>  <%# DataBinder.Eval(Container.DataItem, "ValueDesc") %></asp:HyperLink></td>
                  <td class="td_cell"><asp:HyperLink ID="repHypEdit" runat="server" ImageUrl="~/images/icon_edit.png" ToolTip="Edit" NavigateUrl='<%# "~/ValueAdmin/Edit.aspx?id=" &  DataBinder.Eval(Container.DataItem, "ValueID")  %>'></asp:HyperLink></td>
                </tr>
              </ItemTemplate>
            </asp:Repeater>
          </table>
        </div>
        <div class="pagination">
          <span class="left">
            <asp:ImageButton ID="btnFirst" runat="server" CssClass="alink" ImageUrl="~/images/icon_first.png" ToolTip="Goto first" AlternateText="&nbsp;" />
            <asp:ImageButton ID="btnPrev" runat="server" CssClass="alink" ImageUrl="~/images/icon_previous.png" ToolTip="Goto previous" AlternateText="&nbsp;" />
            <div id="divPageIndicator" style="display: inline;" runat="server"></div>
            <asp:ImageButton ID="btnNext" runat="server" CssClass="alink" ImageUrl="~/images/icon_next.png" ToolTip="Goto next" AlternateText="&nbsp;" />
            <asp:ImageButton ID="btnLast" runat="server" CssClass="alink" ImageUrl="~/images/icon_last.png" ToolTip="Goto last" AlternateText="&nbsp;" />
          </span>
          <span class="right"><asp:Label ID="lblCurrentPage" CssClass="lblCurrentPage" runat="server"></asp:Label></span>
          <div class="cl"></div>
        </div>
      </ContentTemplate>
    </asp:UpdatePanel>
  </div>
</asp:Content>
