<%@ page language="C#" autoeventwireup="true" masterpagefile="../../MasterPage/Default.Master" inherits="Admin_SysSetting_QQ_QQList, YBBQYCMS_deploy" theme="Standard" viewStateEncryptionMode="Never" %>

<asp:Content ID="Content1" ContentPlaceHolderID="PageBody" runat="server">
<table style="width:100%">
 <tr>
    <td>
    <DataLayerWebControls:HeadMenuWebControls ID="HeadMenuWebControls1" runat="server"
         HeadOPTxt="客服列表" HeadTitleTxt="客服管理" HeadHelpTxt="帮助">
        <DataLayerWebControls:HeadMenuButtonItem ButtonPopedom="New" ButtonUrl="QQManger.aspx?CMD=New"
            ButtonUrlType="Href" ButtonVisible="True" ButtonName="客服" />
    </DataLayerWebControls:HeadMenuWebControls>
    <DataLayerWebControls:TabOptionWebControls ID="TabOptionWebControls1" runat="server">
        <DataLayerWebControls:TabOptionItem ID="TabOptionItem1" runat="server" Tab_Name="客服列表">
            <asp:GridView ID="GridView1" runat="server" >
                <Columns>
                <asp:TemplateField>
                                  <ItemTemplate>
                                         <input name="CheckBox" id="CheckBox" value="<%#Eval("ID") %>" type="checkbox" />
                                  </ItemTemplate>
                                  <HeaderTemplate>
                                         &nbsp;<input id="CheckboxAll" type="checkbox" value="0" onclick="SelectAll();" />
                                  </HeaderTemplate>
                   </asp:TemplateField>
                    <asp:TemplateField  HeaderText="序号"> 
                        <ItemTemplate>
                        <%# (this.AspNetPager1.CurrentPageIndex - 1) * this.AspNetPager1.PageSize + Container.DataItemIndex + 1%>
                        </ItemTemplate>
                        <ItemStyle Wrap="True" />  
                        <HeaderStyle Wrap="False" />    
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="客服号码" >
                    <ItemTemplate>
                    <a href="QQManger.aspx?QId=<%#Eval("ID")%>&CMD=List"><%# Eval("Num")%></a>
                    </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="客服妮称"  >
                    <ItemTemplate>
                     <%# Eval("AsName") %>
                    </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="在线状态">
                    <ItemTemplate>
                    <font color="#668a00"><%# Eval("State").ToString() == "1" ? "√" : "×"%></font>
                    </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="操作">
                    <ItemTemplate>
                    <a href="QQManger.aspx?CMD=Edit&QId=<%# Eval("ID") %>" alt="编辑">编辑</a>
                    </ItemTemplate>
                    </asp:TemplateField>    
                </Columns>
            </asp:GridView>
            <DataLayerWebControls:AspNetPager ID="AspNetPager1" runat="server" OnPageChanged="AspNetPager1_PageChanged">
            </DataLayerWebControls:AspNetPager>
            <asp:Button ID="Button2" Visible="false" CssClass="button_bak" runat="server" Text="删除" OnClientClick="return deleteop();" OnClick="Button2_Click" />
        </DataLayerWebControls:TabOptionItem>
        <DataLayerWebControls:TabOptionItem ID ="TabOptionItem2" runat ="server" Tab_Name="MSN客服">
    
               
                        <table width="100%" border="0" cellspacing="1" cellpadding="3" align="center">
                            <tr>
                                <td class="table_body">
                                    MSN号码</td>
                                <td class="table_none">
                                    <asp:TextBox ID="Num_Input" runat="server" CssClass="text_input" ></asp:TextBox>
                                </td>
                            </tr>
                               <tr>
                                <td class="table_body">
                                    呢称</td>
                                <td class="table_none">
                                    <asp:TextBox ID="AsName_Input" runat="server" CssClass="text_input" ></asp:TextBox>
                                </td>
                            </tr>
                           
                            <tr>
                                <td class="table_body">
                                    状态说明</td>
                                <td class="table_none">
                                    在线提示语：<asp:TextBox ID="OnLine_Input" runat="server" Text="在线"></asp:TextBox>
                                    离线提示语：<asp:TextBox ID="UnLine_Input" runat="server" Text="离线"></asp:TextBox>
                                </td>
                            </tr>
                          <tr>
                        <td align="right" colspan="2">
                            <asp:Button ID="Button1" runat="server" CssClass="button_bak" Text="确定" OnClick="button1_Click"  />
                            <input id="Reset1" class="button_bak" type="reset" value="重填" />
                        </td>
                    </tr>
                        </table>
        </DataLayerWebControls:TabOptionItem>
<DataLayerWebControls:TabOptionItem ID ="TabOptionItem3" runat ="server" Tab_Name="旺旺客服">
    
               
                        <table width="100%" border="0" cellspacing="1" cellpadding="3" align="center">
                            <tr>
                                <td class="table_body">
                                    旺旺号码</td>
                                <td class="table_none">
                                    <asp:TextBox ID="WWNum_Input" runat="server" CssClass="text_input" ></asp:TextBox>
                                </td>
                            </tr>
                               <tr>
                                <td class="table_body">
                                    呢称</td>
                                <td class="table_none">
                                    <asp:TextBox ID="WWAsName_Input" runat="server" CssClass="text_input" ></asp:TextBox>
                                </td>
                            </tr>
                           
                            <tr>
                                <td class="table_body">
                                    状态说明</td>
                                <td class="table_none">
                                    在线提示语：<asp:TextBox ID="WWOnLine_Input" runat="server" Text="在线"></asp:TextBox>
                                    离线提示语：<asp:TextBox ID="WWUnLine_Input" runat="server" Text="离线"></asp:TextBox>
                                </td>
                            </tr>
                          <tr>
                        <td align="right" colspan="2">
                            <asp:Button ID="Button3" runat="server" CssClass="button_bak" Text="确定" OnClick="button3_Click"  />
                            <input id="Reset2" class="button_bak" type="reset" value="重填" />
                        </td>
                    </tr>
                        </table>
        </DataLayerWebControls:TabOptionItem>
    </DataLayerWebControls:TabOptionWebControls>

<script language="javascript" type="text/javascript">
<!--

    function SelectAll() {
        var e = document.getElementsByTagName("input");
        var IsTrue;
        if (document.getElementById("CheckboxAll").value == "0") {
            IsTrue = true;
            document.getElementById("CheckboxAll").value = "1"
        }
        else {
            IsTrue = false;
            document.getElementById("CheckboxAll").value = "0"
        }
        for (var i = 0; i < e.length; i++) {
            if (e[i].type == "checkbox") {
                e[i].checked = IsTrue;
            }
        }
    }
    function deleteop() {
        var checkok = false;
        var e = document.getElementsByTagName("input");
        for (var i = 0; i < e.length; i++) {
            if (e[i].type == "checkbox") {
                if (e[i].checked == true) {
                    checkok = true;
                    break;
                }
            }
        }
        if (checkok)
            return confirm('删除后不可恢复,确认要批量删除选中记录吗？');
        else {

            alert("请选择要删除的记录!");
            return false;
        }
    }
// -->
    </script>
</td>
</tr>
</table>
</asp:Content>
