<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="messageForwardShow.aspx.cs" Inherits="Web.User.messageForwardShow" %>
<!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>转发留言列表</title>
    <link href="../../Css/jbedu.CSS" type="text/css" rel="stylesheet"/>
    <script type="text/javascript" src="../../Css/jQuery.js" charset="gb2312"></script> 
</head>
<body style="background-color:#EDF1FA">
    <form id="form1" runat="server">
    <div>
    <tr>
                <td class="table_bg" valign="top">
                &nbsp;
        <br />
&nbsp;&nbsp;&nbsp;
                <asp:HyperLink runat="server" ID="IsReply" Text="未回复" Font-Underline="true" BackColor="LightBlue" ForeColor="Blue"></asp:HyperLink>
                &nbsp;
                <asp:HyperLink runat="server" ID="NoReply" Text="已回复" Font-Underline="true" ForeColor="Blue"></asp:HyperLink>
                    <br />
                    <br />
                    <asp:DataGrid ID="newsGrid" runat="server" AllowSorting="True" AutoGenerateColumns="False"
                        Width="100%" BackColor="#EDF1FA" AllowPaging="True" 
            PageSize="5">
                        <PagerStyle Mode="NumericPages" />
                        <Columns>
                            <asp:BoundColumn Visible="False" DataField="pkId" HeaderText="ID号"></asp:BoundColumn>
                            <asp:TemplateColumn HeaderText="标题">
                                <ItemTemplate>
                                    <asp:HyperLink ID="intactTitle" NavigateUrl='<%#("javascript:showDetail("+DataBinder.Eval(Container, "DataItem.pkId")+")")%>'
                                        runat="server" Text='<%# "[" + DataBinder.Eval(Container, "DataItem.classname") + "]" + DataBinder.Eval(Container, "DataItem.title") %>'>
                                    </asp:HyperLink>
                                </ItemTemplate>
                            </asp:TemplateColumn>
                            <asp:TemplateColumn HeaderText="发布人及信息">
                                <ItemTemplate>
                                    <asp:Label ID="info" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.author") %>'
                                        ToolTip='<%# "发布Ip地址："+DataBinder.Eval(Container, "DataItem.updateIp")+"  发布时间："+DataBinder.Eval(Container, "DataItem.updateTime") %>'>
                                    </asp:Label>
                                </ItemTemplate>
                            </asp:TemplateColumn>
                            <asp:TemplateColumn HeaderText="发布时间">
                                <ItemTemplate>
                                    <asp:Label ID="publishTime" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.updateTime") %>'
                                        ToolTip='<%# "发布Ip地址："+DataBinder.Eval(Container, "DataItem.updateIp")+"  发布时间："+DataBinder.Eval(Container, "DataItem.updateTime") %>'>
                                    </asp:Label>
                                </ItemTemplate>
                            </asp:TemplateColumn>
                            <asp:TemplateColumn HeaderText="联系方式">
                                <ItemTemplate>
                                    <asp:Label ID="tel" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.tel") %>'
                                        ToolTip='<%# "发布Ip地址："+DataBinder.Eval(Container, "DataItem.updateIp")+"  发布时间："+DataBinder.Eval(Container, "DataItem.updateTime") %>'>
                                    </asp:Label>
                                </ItemTemplate>
                            </asp:TemplateColumn>
                            <asp:TemplateColumn HeaderText="是否已回复">
                                <ItemTemplate>
                                    <asp:Label ID="IsRet" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.reContent") %>'
                                        ToolTip='<%# "发布Ip地址："+DataBinder.Eval(Container, "DataItem.updateIp")+"  发布时间："+DataBinder.Eval(Container, "DataItem.updateTime") %>'>
                                    </asp:Label>
                                </ItemTemplate>
                            </asp:TemplateColumn>
                            <asp:TemplateColumn HeaderText="执         行">
                                <ItemTemplate>
                                    <asp:LinkButton ID="reply" runat="server" CommandName="reply" Visible="<%#(IsForward == true) ? true :false %>">点击回复</asp:LinkButton>
                                </ItemTemplate>
                            </asp:TemplateColumn>
                            <asp:BoundColumn Visible="False" DataField="grade" HeaderText="等级"></asp:BoundColumn>
                            <asp:TemplateColumn Visible="False">
                                <ItemTemplate>
                                    <font face="宋体">
                                        <asp:Label ID="ContentLabel" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.retime") %>'>
                                        </asp:Label></font>
                                </ItemTemplate>
                            </asp:TemplateColumn>
                        </Columns>
                    </asp:DataGrid>
                </td>
            </tr>
    </div>
    </form>
    <script language="javascript">
        function showDetail(pkId) {
            w = 400;
            h = 370;
            LeftPosition = (screen.width) ? (screen.width - w) / 2 : 0;
            TopPosition = (screen.height) ? (screen.height - h) / 2 : 0;
            settings = 'height=' + h + ',width=' + w + ',top=' + TopPosition + ',left=' + LeftPosition + ',scrollbars=' + scroll + ',toolbar=no,menubar=no,scrollbars=yes,resizable=yes,location=no,status=no';
            window.open("MessageBoardDetailNew.aspx?pkId=" + pkId, "", settings);

        }
    </script>
</body>
</html>
