<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="qqkefumanage.aspx.cs" Inherits="FangPage.Admin.qqkefumanage" %>

<%@ Register TagPrefix="cc1" Namespace="FangPage.Control" Assembly="FangPage.Control" %>
<%@ Import Namespace="FangPage.Common" %>
<!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 id="Head1" runat="server">
    <title>客服QQ号码管理</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <link href="styles/bmsmanager.css" type="text/css" rel="stylesheet">
    <link href="styles/datagrid.css" type="text/css" rel="stylesheet">

    <script type="text/javascript" src="js/common.js"></script>

    <meta content="MSHTML 6.00.3790.0" name="GENERATOR">
</head>
<body leftmargin="5" topmargin="5" rightmargin="5" bottommargin="5">
    <form id="Form1" method="post" runat="server">
    <div class="Navbutton" style="width: 98%;">
        <table cellspacing="1" cellpadding="4" align="left" class="table1">
            <tr>
                <td width="60">&nbsp;
                <input title="选中/取消选中" onclick="CheckAll(this.form)" type="checkbox" name="chkall"
                        id="chkall" />全选
                </td>
                <td align="left">
                    <cc1:Button ID="DelRec" runat="server" Text=" 删 除 " ButtonImgUrl="images/dell.gif"></cc1:Button>&nbsp;
                    <button type="button" class="ManagerButton" onclick="javascript:window.location.href='qqkefuadd.aspx';">
                        <img src="images/add.gif" /> 添 加 </button>
                </td>
            </tr>
        </table>
    </div>
    <cc1:DataGrid ID="DataGrid1" runat="server" IsFixConlumnControls="true" OnSortCommand="Sort_Grid" AllowPaging="true" OnPageIndexChanged="DataGrid_PageIndexChanged" PageSize="10">
        <Columns>
            <asp:TemplateColumn HeaderText="选择">
                <ItemTemplate>
                    <input id="selid" onclick="javascript:SH_SelectOne(this)" type="checkbox" value="<%# DataBinder.Eval(Container, "DataItem.id").ToString() %>"
                        name="selid" />
                    <%# DataGrid1.LoadSelectedCheckBox(DataBinder.Eval(Container, "DataItem.id").ToString())%>
                </ItemTemplate>
            </asp:TemplateColumn>
            <asp:BoundColumn DataField="id" SortExpression="id" HeaderText="id [递增]" Visible="false">
            </asp:BoundColumn>
            <asp:BoundColumn DataField="displayorder" SortExpression="displayorder" HeaderText="显示顺序">
            </asp:BoundColumn>
            <asp:BoundColumn DataField="qq" SortExpression="qq" HeaderText="号码"></asp:BoundColumn>
            <asp:TemplateColumn HeaderText="名称">
                <ItemTemplate>
                    <%# ColorStr(DataBinder.Eval(Container, "DataItem.name").ToString(), DataBinder.Eval(Container, "DataItem.color").ToString())%>
                </ItemTemplate>
            </asp:TemplateColumn>
            <asp:TemplateColumn HeaderText="头像" >
                <ItemTemplate>
                    <%# FaceStr(DataBinder.Eval(Container, "DataItem.face").ToString())%>
                </ItemTemplate>
            </asp:TemplateColumn>
            <asp:TemplateColumn HeaderText="操作">
                <ItemTemplate>
                    <a href="qqkefuedit.aspx?id=<%# DataBinder.Eval(Container, "DataItem.id").ToString()%>">
                        编辑</a>
                </ItemTemplate>
            </asp:TemplateColumn>
        </Columns>
    </cc1:DataGrid>
    <div class="Navbutton">
        <cc1:Button ID="SaveFriend" runat="server" Text="保存修改"></cc1:Button>
    </div>
    </form>
</body>
</html>
