<%@ page language="C#" autoeventwireup="true" inherits="Admin_UserManagement_AnonymousAsk, ShopWe" %>

<%@ 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 runat="server">
    <title>商品匿名咨询</title>
    <link href="../css/my.css" rel="stylesheet" type="text/css" />
    <link href="../JS/TableSort/tablesort.css" rel="stylesheet" type="text/css" />
    <link href="../css/volti.css" rel="stylesheet" type="text/css" />
    <link href="../Themes/Default/Plugin/ThickBox/thickbox.css" rel="stylesheet" type="text/css" />

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

    <script type="text/javascript" src="../Themes/Default/JS/jquery-1.3.2.min.js"></script>

    <script type="text/javascript" src="../Themes/Default/Plugin/ToolTip/Word.js"></script>

    <script type="text/javascript" src="../Themes/Default/Plugin/ThickBox/thickbox.js"></script>

    <style type="text/css">

#tooltip{
	position:absolute;
	border:1px dashed #666666;
	background:#f7f5d1;
	padding:8px;
	color:#333;
	display:none;
	}	
.tooltip{
	color:#21759B;
	text-decoration: none;
	}	

    </style>
</head>
<body>
    <form id="form1" runat="server">
        <div class="k_all3">
            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="name">
                <tr>
                    <td style="width: 305px">
                        <div class="name_noe">
                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                    <td align="center" height="22px">
                                        默认操作</td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Button ID="DeleteSelect" runat="server" Text="删除所选咨询" OnClick="DeleteSelect_Click"
                                            CssClass="butt_tle" Height="22px" Width="90px" />
                                        <asp:Button ID="UpdateSelectAsk" runat="server" Text="将选中的咨询标记已处理" CssClass="butt_tle"
                                            Height="22px" Width="200px" OnClick="UpdateSelectAsk_Click" /></td>
                                </tr>
                            </table>
                        </div>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                </tr>
            </table>
            <div id="all">
                <table width="100%" cellpadding="0" cellspacing="0" id="bk">
                    <thead>
                        <tr>
                            <th style="width: 30px">
                                <input id="ChkAll" type="checkbox" onclick="Check(this,'CheckBoxSelect','RepeaterTable')" />
                            </th>
                            <th style="width: 230px">
                                商品名称
                            </th>
                            <th style="width: 90px">
                                咨询用户
                            </th>
                            <th style="width: 40px">
                                标题
                            </th>
                            <th style="width: 60px">
                                联系方式</th>
                            <th style="width: 120px">
                                咨询日期</th>
                            <th style="width: 60px">
                                咨询内容</th>
                            <th>
                                是否处理</th>
                        </tr>
                    </thead>
                    <tbody>
                        <asp:Repeater ID="RepeaterTable" runat="server">
                            <ItemTemplate>
                                <tr>
                                    <td>
                                        <asp:CheckBox ID="CheckBoxSelect" runat="server" ToolTip='<%# Eval("ID") %>' BorderStyle="None"
                                            BorderWidth="0px" /></td>
                                    <td>
                                        <a href='../../Product.aspx?id=<%# Eval("GoodsID") %>' target="_blank" class="blue">
                                            <%# Eval("GoodsName")%>
                                        </a>
                                    </td>
                                    <td>
                                        <a href='UserInfo.aspx?id=<%# Eval("UserID")%>' target="_blank" class="blue">
                                            <%# Eval("Name")%>
                                        </a>
                                    </td>
                                    <td>
                                        <%# Eval("Title")%>
                                    </td>
                                    <td>
                                        <%# Eval("Contact")%>
                                    </td>
                                    <td>
                                        <%# Eval("Date")%>
                                    </td>
                                    <td>
                                        <a href="#TB_inline?height=150&amp;width=400&amp;inlineId=<%#Eval("ID").ToString() %>"
                                            class="thickbox">[查看]</a>
                                        <div style="display: none" id="<%#Eval("ID").ToString()%>">
                                            <%# GetAskInfo(Eval("Body").ToString())%>
                                        </div>
                                    </td>
                                    <td class="ys_1">
                                        <%# Eval("State") %>
                                    </td>
                                </tr>
                            </ItemTemplate>
                        </asp:Repeater>
                    </tbody>
                </table>
                <div id="bk_line">
                    <div class="txte">
                        <img src="../Themes/Default/Images/bj.png" />
                        <asp:Literal ID="CountItem" runat="server" Text="0"></asp:Literal>
                    </div>
                    <webdiyer:AspNetPager ID="AspNetPagerItem" runat="server" CssClass="yahoo2" PageSize="15"
                        OnPageChanged="AspNetPagerItem_PageChanged" AlwaysShow="True">
                    </webdiyer:AspNetPager>
                </div>
            </div>
        </div>
    </form>
</body>
</html>
