<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MessageList.aspx.cs" Inherits="ETongJin.YM.Web.Home.MessageList" %>

<!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">
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
    <title>留言/回复 - Powered by E桶金</title>
    <link rel="stylesheet" href="images/user.css" type="text/css" media="screen,projection" />

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

    <%if (false)
      {%>

    <script type="text/javascript" src="../Utility/jquery-dev.js"></script>

    <%}%>

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

    <script type="text/ecmascript" src="../Utility/layer/js/jquery.nyroModal-1.5.0.pack.js"></script>

    <link type="text/css" rel="stylesheet" href="../Utility/layer/styles/nyroModal.css" />

    <script type="text/javascript">
        function CheckAll(obj) {
            var allcheck = document.getElementsByName("productid");
            for (i = 0; i < allcheck.length; i++) {
                allcheck[i].checked = obj.checked;
            }
        }
        parent.menuSelect("messageList" + queryString("t"));

        $(function() {
            $.nyroModalSettings({
                bgColor: "#cccccc"
            });
            function preloadImg(image) {
                var img = new Image();
                img.src = image;
            }
            preloadImg('../utility/layer/img/ajaxLoader.gif');
        });

    </script>

    <meta http-equiv="x-ua-compatible" content="ie=7" />
</head>
<body>
    <div class="wrap">
        <form id="form1" runat="server">
        <div class="panel ym_h_rt ym_line">
            <ul class="ym_head">
                <li class="title">
                    <%if (Request.QueryString["t"] == "1") Response.Write("卖家"); else Response.Write("买家"); %>
                    留言/回复</li>
            </ul>
            <table class="tableBorder" border="0" cellpadding="0" cellspacing="1" width="99%">
                <tr>
                    <th colspan="4" align="right">
                        筛选信息
                        <asp:DropDownList ID="ddlStatus" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddlStatus_SelectedIndexChanged">
                            <asp:ListItem Text="按属性" Value="-1" Selected="True"></asp:ListItem>
                            <asp:ListItem Text="等待回复" Value="0"></asp:ListItem>
                            <asp:ListItem Text="已经回复" Value="1"></asp:ListItem>
                        </asp:DropDownList>
                    </th>
                </tr>
                <tr align="center">
                    <td style="width: 50px;">
                        <b>商品ID</b>
                    </td>
                    <td>
                        <b>留言内容</b>
                    </td>
                    <td width="40px">
                        <b>留言者</b>
                    </td>
                    <td width="60px">
                        <b>日期</b>
                    </td>
                    <td width="50px">
                        <b>状态</b>
                    </td>
                </tr>
                <asp:Repeater ID="Repeater1" runat="server" OnItemDataBound="Repeater1_ItemDataBound">
                    <ItemTemplate>
                        <tr bgcolor="#FFFFFF" onmouseover="javascript:this.bgColor='#E3E1D7'" onmouseout="javascript:this.bgColor='#FFFFFF'">
                            <td align="center">
                                <input type="hidden" runat="server" id="oid" value='<%#Eval("id")%>' />
                                <input type="hidden" runat="server" id="OrderStatus" value='<%#Eval("msgStatus")%>' />
                                <input type="hidden" runat="server" id="isask" value='<%#Eval("isask")%>' />
                                <input type="hidden" runat="server" id="seller" value='<%#Eval("seller")%>' />
                                <input type="hidden" runat="server" id="buyer" value='<%#Eval("buyer")%>' />
                                <a href="<%# "/show.aspx?i="+Eval("PID")%>" target="_blank">
                                    <%#Eval("PID")%></a>
                            </td>
                            <td>
                                <%#ETongJin.Common.StringOperate.delHtml(Eval("question").ToString())%>
                            </td>
                            <td>
                                <%if (Request.QueryString["t"] == "1")
                                  {%>
                                <a href="/usershow.aspx?n=<%#Eval("seller") %>" target="_blank">
                                    <%#Eval("seller") %></a><%}
                                  else
                                  {%>
                                <a href="/usershow.aspx?n=<%#Eval("buyer") %>" target="_blank">
                                    <%#Eval("buyer") %></a><%} %>
                            </td>
                            <td>
                                <%#Eval("qtime")%>
                            </td>
                            <td>
                                <asp:PlaceHolder ID="phAction" runat="server"></asp:PlaceHolder>
                            </td>
                        </tr>
                    </ItemTemplate>
                </asp:Repeater>
                <tr>
                    <th colspan="4" style="text-align: center;">
                        <div id="tnt_pagination">
                            <%= PageStr%></div>
                        <div class="ym12_mian_y">
                            <br />
                            如果留言状态为：“等我回复”，那么单击按钮可以回复网友给您的留言。您可以在这里回复或者删除留言。</div>
                    </th>
                </tr>
            </table>
        </div>
        </form>
    </div>
</body>
</html>
