<%@ Page Language="c#" Inherits="Web.User.manageReview" CodeBehind="manageReview.aspx.cs" %>

<!DOCTYPE html>
<!--[if lt IE 9]><html class="lte-ie8"><![endif]-->
<!--[if gt IE 8]><!-->
<html>
<!--<![endif]-->
<head>
    <title>评论管理</title>
     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <!--#include file="../Css/userCssEdit.htm"-->

    <script language="javascript" type="text/javascript">
	        function can()
	        {
	         document.all.content.value="";
	         document.all.save.disabled = true;
	        }
	        function windowClose()
	        {
	         window.close();
	        }
    </script>

</head>
<body>
    <form method="post" runat="server">
    <div class="list-func-box func-box">
        <div class="hd">
            评论管理
        </div>
        <div class="bd">
            <asp:DataGrid ID="reviewGrid" runat="server" AutoGenerateColumns="False" PageSize="1"
                AllowPaging="True" CssClass="list-table" OnItemCommand="reviewGrid_ItemCommand">
                <Columns>
                    <asp:BoundColumn DataField="pkId" HeaderText="ID" HeaderStyle-CssClass="title"></asp:BoundColumn>
                    <asp:BoundColumn DataField="title" HeaderText="评论主题" HeaderStyle-CssClass="title">
                        <HeaderStyle Width="150px"></HeaderStyle>
                    </asp:BoundColumn>
                    <asp:BoundColumn DataField="name" HeaderText="用户名" HeaderStyle-CssClass="title">
                    </asp:BoundColumn>
                    <asp:BoundColumn DataField="content" HeaderText="评论内容" HeaderStyle-CssClass="title">
                    </asp:BoundColumn>
                    <asp:TemplateColumn HeaderText="审核" HeaderStyle-CssClass="title">
                        <ItemTemplate>
                            <asp:DropDownList ID="pass" runat="server" SelectedIndex='<%# DataBinder.Eval(Container, "DataItem.passed") %>'>
                                <asp:ListItem Value="0" Selected="True">未审核</asp:ListItem>
                                <asp:ListItem Value="1">已审核</asp:ListItem>
                            </asp:DropDownList>
                            &nbsp;
                            <asp:Button ID="saveCheck" runat="server" Text="保 存" CommandName="saveCheck"></asp:Button>
                        </ItemTemplate>
                    </asp:TemplateColumn>
                    <asp:BoundColumn DataField="updateTime" HeaderText="时间" HeaderStyle-CssClass="title">
                    </asp:BoundColumn>
                    <asp:BoundColumn DataField="ipAddress" HeaderText="IP地址" HeaderStyle-CssClass="title">
                    </asp:BoundColumn>
                    <asp:TemplateColumn HeaderText="管理" HeaderStyle-CssClass="title" ItemStyle-CssClass="td-a">
                        <ItemTemplate>
                            <asp:LinkButton ID="edit" runat="server" CommandName="edit">编辑</asp:LinkButton>&nbsp;
                            <asp:LinkButton ID="del" runat="server" CommandName="del">删除</asp:LinkButton>
                        </ItemTemplate>
                    </asp:TemplateColumn>
                </Columns>
                <PagerStyle Visible="False"></PagerStyle>
            </asp:DataGrid>
            <table class="edit-table" id="Table1">
                <tr>
                    <th>
                        修改评论内容：
                    </th>
                    <td>
                    <asp:TextBox ID="content" runat="server" Width="500px" TextMode="MultiLine" Height="120px"></asp:TextBox>
                    </td>
                </tr>
            </table>
        </div>
        <div class="ft">
            <div class="action-field txt-c">
                <asp:Button ID="save" CssClass="btn" runat="server" Text="保 存" Enabled="False" OnClick="save_Click">
                </asp:Button>
                &nbsp;
                <input type="button" class="btn" value="取 消" onclick="can();" />
            </div>
            <!--/action-field-->
        </div>
    </div>
    </form>
</body>
</html>
