<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="QQAskConfigList.aspx.cs"
    Inherits="WstWeb.Admin.Basic.QQAskConfigset" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!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>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link rel="stylesheet" type="text/css" href="../css/style.css" />
    <script src="../Js/jquery-1.6.min.js" type="text/javascript"></script>
    <script src="../Js/easyui/jquery.easyui.min.js" type="text/javascript"></script>
    <script src="../Js/easyui/easyui-lang-zh_CN.js" type="text/javascript"></script>
    <script src="../Js/PublicComm.js" type="text/javascript"></script>
    <script src="../Js/WinFuns.js" type="text/javascript"></script>
    <script src="../Js/pageloader.js" type="text/javascript"></script>
    <script type="text/javascript">
        //刷新
        var RefreshPage = function (v_istop) {
            if (v_istop) $("#hdnIsTop").val("1");
            else $("#hdnIsTop").val("0");
            __doPostBack("lbtnRefresh", "");
        }
        var CloseChildPage = function (v_istop) {
            new WinFuns().CloseNewWindow("wincomm");
            setTimeout(function () { RefreshPage(v_istop); }, 200);
        }
        var EditInfo = function (v_id) {
            if (v_id == "-1") {
                top.IndexNewWindow("basic/QQAskConfigAdd.aspx?from=main&id=" + v_id, "添加客服", 450, 450);
            }
            else {
                top.IndexNewWindow("basic/QQAskConfigAdd.aspx?from=main&id=" + v_id, "编辑客服", 450, 450);

            }
        }
        $(function () {
            //top.ResizeIFrame();
        });
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="ctright">
        <div class="map">
            <h3>
                <strong class="left">客服设置管理</strong><strong class="right search_icon"><a href="JavaScript:void(0)"
                    onclick="EditInfo(-1)"> 添加</a></strong></h3>
        </div>
        <div class="formclum">
            <table width="100%" border="0" cellpadding="0" cellspacing="0" style="margin-top: 5px;">
                <tbody>
                    <tr>
                        <td width="100" align="right">
                            客服号码：
                        </td>
                        <td align="left">
                            <asp:TextBox ID="txtQQ" CssClass="inp1" runat="server" Width="120"></asp:TextBox>
                            <asp:Button ID="btn_cx" runat="server" Text="" CssClass="button10" OnClick="btn_cx_Click" />
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
        <div class="clear">
        </div>
        <div class="form" style="margin-top: 10px;">
            <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CssClass="gridView"
                CellPadding="0" CellSpacing="0">
                <Columns>
                    <asp:TemplateField HeaderText="客服类型" ItemStyle-Width="80">
                        <ItemTemplate>
                            <%#Eval("ShowStyle").ToString() == "1" ? "诚信通旺旺" : "QQ客服"%>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField DataField="QQ" HeaderText="客服号码" ItemStyle-Width="120" />
                    <asp:BoundField DataField="QQNIck" HeaderText="提示语" ItemStyle-Width="120" />
                    <asp:TemplateField HeaderText="是否显示" ItemStyle-Width="80">
                        <ItemTemplate>
                            <%#Eval("ShowHide").ToString() == "1" ? "是" : "否"%>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="修改" ItemStyle-Width="60">
                        <ItemTemplate>
                            <a href="javascript:void(0)" class="bluelk" onclick="EditInfo(<%# Eval("Id") %>);">[修改]</a>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="删除" ItemStyle-Width="60">
                        <ItemTemplate>
                            <asp:LinkButton ID="lbtn_sc" class="bluelk" CommandArgument='<%# Eval("Id") %>' Text="<div class=&quot;bluelk&quot; id=&quot;de&quot; onclick=&quot;JavaScript:return confirm('确定要删除该记录吗？')&quot;>[删除]</div>"
                                runat="server" OnCommand="lbtn_sc_Command"></asp:LinkButton>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
            </asp:GridView>
            <div class="page-fenye">
                <webdiyer:AspNetPager ID="AspNetPager1" HorizontalAlign="Center" Font-Bold="true"
                    runat="server" Width="100%" CenterCurrentPageButton="True" OnPageChanging="AspNetPager1_PageChanging"
                    ShowPageIndexBox="Always" FirstPageText="首页" PrevPageText="上一页" NextPageText="下一页"
                    LastPageText="尾页" PageIndexBoxType="TextBox" CurrentPageButtonTextFormatString="{0:[0]}"
                    AlwaysShow="True" ShowNavigationToolTip="True" PageSize="20" CustomInfoHTML="记录总数：%RecordCount%"
                    CustomInfoSectionWidth="200px" ShowCustomInfoSection="Left" CustomInfoStyle="text-valign:middle;margin-right:0px;"
                    CustomInfoClass="bluelk">
                </webdiyer:AspNetPager>
            </div>
        </div>
    </div>
    <input type="hidden" id="hdnIsTop" runat="server" value="0" />
    <asp:LinkButton ID="lbtnRefresh" runat="server" OnClick="lbtnRefresh_Click"></asp:LinkButton>
    </form>
</body>
</html>
