<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="gbook.aspx.cs" Inherits="JuSNS.Web.system.sys.gbook" %>

<!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>
    <title id="ptitle" runat="server">留言管理</title>
    <link href="../images/css/style.css" rel="stylesheet" type="text/css" />

    <script language="javascript" type="text/javascript" src="../../js/ajax.js"></script>

    <script language="javascript" type="text/javascript" src="../../js/public.js"></script>


</head>
<body>
    <table width="99%" border="0" align="center" cellpadding="5" cellspacing="1">
        <tr>
            <td width="120" align="center" valign="top">
                <div class="menu">
                    <ul>
                        <%=this.GetSystemMenu(sort)%>
                    </ul>
                </div>
            </td>
            <td valign="top">
                <div class="navip">
                    <span class="Blue">
                    <a href="index.aspx">空间管理</a> 
                    <a href="Email.aspx">电子邮件设置</a> 
                    <a href="EmailSend.aspx">邮件通知</a> 
                    <a href="EmailSys.aspx">发送邮件内容编辑</a> 
                    <a href="SysKey.aspx">关键字过滤</a> 
                    <a href="gbook.aspx">留言管理</a> 
                    <a href="EmailSTMP.aspx">邮件服务器设置</a> 
                    <a href="Area.aspx">地区管理</a> 
                        </span>
                </div>
               <div style="padding:6px 8px 0px 8px;">
               <div><a href="gbook.aspx">所有留言</a> <a href="gbook.aspx?a=1">管理员留言管理</a></div>
                <form id="form1" runat="server">
                        <asp:Repeater runat="server" ID="Rpt_SysNotepad">
                <HeaderTemplate>
                    <table width="100%" border="0" cellpadding="3" cellspacing="1" class="maintable">
                        <tr class="maintablehead">
                            <td align="center" style="width: 5%;">
                                编号</td>
                            <td align="center" style="width: 12%;">
                                留言者</td>
                            <td align="center" style="width: 18%;">
                                留言时间</td>
                            <td align="center" style="width: 42%;">
                                留言内容</td>
                            <td align="center" style="width: 11%;">
                                留言IP</td>
                            <td align="center" style="width: 12%;">
                                操作</td>
                        </tr>
                </HeaderTemplate>
                <ItemTemplate>
                    <tr class="maintablelist">
                        <td align="center">
                            <%# DataBinder.Eval(Container.DataItem, "ID")%>
                        </td>
                        <td align="center">
                            <a href="../../user?r=<%# DataBinder.Eval(Container.DataItem, "SendID")%>" target="_blank"><%# DataBinder.Eval(Container.DataItem, "UserName")%></a>
                        </td>
                        <td align="center">
                            <%# DataBinder.Eval(Container.DataItem, "PostTime")%>
                        </td>
                        <td>
                            <%# JuSNS.Common.Public.CheckSma(JuSNS.Common.Input.HtmlEncode(Convert.ToString(DataBinder.Eval(Container.DataItem, "Content"))))%>
                        </td>
                        <td align="center">
                            <%#DataBinder.Eval(Container.DataItem, "PostIP")%>
                        </td>
                        <td>
                          <%#GetRep(DataBinder.Eval(Container.DataItem, "RecID"), DataBinder.Eval(Container.DataItem, "ID"))%>
                            <a href="javascript:del(<%# DataBinder.Eval(Container.DataItem, "ID")%>);">删除</a>
                        </td>
                    </tr>
                </ItemTemplate>
                <FooterTemplate>
                    </table>
                </FooterTemplate>
            </asp:Repeater>
           
                        <div class="pagination" runat="server" id="DivPage" align="center">
                        </div>
                    
                </form>
                </div> 
                
            </td>
        </tr>
    </table>
</body>
</html>
<script language="javascript" type="text/javascript">
function edit(id)
{
    self.location="gbookedit.aspx?id="+id;
}
function del(id)
{
    if(confirm('你确认删除此留言吗?'))
        self.location="gbook.aspx?action=del&id="+id;
}
</script>