<%@ page language="C#" autoeventwireup="true" inherits="admin_from, aoshuosoft" %>

<!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></title>
    <link rel="stylesheet" href="admin.css" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <asp:Panel ID="addedit" runat="server"  Width="100%" Visible="false">
            <table class="adminmaintable" border="0" cellpadding="3" cellspacing="1">
                <tr>
                    <td class="bt" style="text-align: center; height: 40px;" colspan="2">
                        鿴޸Ķ</td>
                </tr>
                <tr>
                    <td>
                        Ʒƣ</td>
                    <td >
                        <asp:Literal ID="name" runat="server"></asp:Literal></td>
                </tr>
                <tr>
                    <td >
                        </td>
                    <td >
                        <asp:Literal ID="number" runat="server"></asp:Literal></td>
                </tr>
                <tr>
                    <td>
                        ջַ</td>
                    <td>
                        <asp:Literal ID="incomeaddress" runat="server"></asp:Literal></td>
                </tr>
                <tr>
                    <td>
                        ջ</td>
                    <td>
                        <asp:Literal ID="incomename" runat="server"></asp:Literal></td>
                </tr>
                <tr>
                    <td>
                        ջ˵绰</td>
                    <td>
                        <asp:Literal ID="incomephone" runat="server"></asp:Literal></td>
                </tr>
                <tr>
                    <td >
                        Ҫ</td>
                    <td >
                        <asp:TextBox ID="explain" runat="server" Height="106px" TextMode="MultiLine" Width="488px"></asp:TextBox></td>
                </tr>
                <tr>
                    <td>
                        ״̬</td>
                    <td>
                        <asp:RadioButton ID="no" Text="ȴ" runat="server" GroupName="0" />
                        <asp:RadioButton ID="yes" runat="server" Text="" GroupName="0" /></td>
                </tr>
                <tr>
                    <td>
                    </td>
                    <td>
                        <asp:Button ID="editfrom" runat="server" Text=" " OnClick="addfrom_Click" />
                        </td>
                </tr>
            </table>
        </asp:Panel>
        <asp:Panel ID="all" runat="server"  Width="100%" Visible="false">
         <asp:GridView OnPageIndexChanging="GridView1_PageIndexChanging" ID="GridView1" runat="server" AutoGenerateColumns="False" Width="100%" GridLines="None" ForeColor="#333333" AllowPaging="True" CellPadding="4" PageSize="20">
                <Columns>
                    <asp:TemplateField HeaderText="Ʒ" ><ItemTemplate><a href="buy.aspx?action=edit&id=<%#Eval("id") %>"><%#Eval("name")%></a></ItemTemplate></asp:TemplateField>
                    <asp:TemplateField HeaderText="Ʒ"><ItemTemplate><a> <%#Eval("number") %></a></ItemTemplate></asp:TemplateField>
                    <asp:TemplateField HeaderText="ջַ"><ItemTemplate><a><%#Eval("incomeaddress").ToString().PadRight(100).Remove(10) %></a></ItemTemplate></asp:TemplateField> 
                    <asp:TemplateField HeaderText="ջ"><ItemTemplate><a><%#Eval("incomename") %></a></ItemTemplate></asp:TemplateField> 
                    <asp:TemplateField HeaderText="ջ˵绰"><ItemTemplate><a><%#Eval("incomephone") %></a></ItemTemplate></asp:TemplateField>
                    <asp:TemplateField HeaderText="״̬"><ItemTemplate><a><%#Eval("state") %></a></ItemTemplate></asp:TemplateField>
                    <asp:BoundField DataField="user" HeaderText="" />
                    <asp:TemplateField HeaderText="༭"><ItemTemplate><a href="buy.aspx?action=edit&id=<%#Eval("id") %>">༭</a></ItemTemplate></asp:TemplateField>
                    <asp:TemplateField HeaderText="ɾ"><ItemTemplate><a href="buy.aspx?action=del&id=<%#Eval("id") %>" onclick="return confirm('ɾɻָҪɾ')">ɾ</a></ItemTemplate></asp:TemplateField>
                </Columns>
             <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
             <RowStyle BackColor="#EFF3FB" />
             <EditRowStyle BackColor="#2461BF" />
             <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
             <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
             <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
             <AlternatingRowStyle BackColor="White" />
            </asp:GridView>
            <asp:Literal ID="tj" runat="server"></asp:Literal></asp:Panel>
    </div>
    </form>
</body>
</html>
