<%@ Page Language="C#" AutoEventWireup="true" CodeFile="videomanage.aspx.cs" Inherits="system_Video_videomanage" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<%@ Import Namespace="System.Data" %>

<!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="/App_Themes/SystemCSS/css/core.css" rel="stylesheet" type="text/css" />
<link href="/App_Themes/SystemCSS/css/base.css" rel="stylesheet" type="text/css" />
<script src="/App_Themes/SystemCSS/js/jquery-1.4.3.min.js" type="text/javascript"></script>
</head>
<body style="background:#fff;">
    <form id="form1" runat="server">
    <div class="right" id="RightHighSet">
  <div class="r_tit">
    <h2>视频评论管理</h2>
  </div>
  <div class="t_h48"></div>
  <!--留空48PX-->
  <div class="tab_bd">
  <%--<table width="100%" class="tab_mn" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <th>标题</th>
    <th>评论内容</th>
    <th>日期</th>
    <th>操作</th>
  </tr>
  
  <% foreach (DataRow dr in dt.Rows)
     {%>
  <tr align="center">
    <td><%=dr["Title"] %></td>
    <td><%=dr["Content"] %></td>
    <td><%=dr["AddTime"] %></td>
    <td><a href="#" runat="server">删除</a></td>
  </tr>
<%} %>
</table>--%>

<asp:GridView ID="GridView1" GridLines="None" runat="server" Width="100%" 
          DataKeyNames="Id" AutoGenerateColumns="False"
            CssClass="tab_style">
            <Columns>
            <asp:BoundField DataField="vid" HeaderText="编号" SortExpression="Id" ItemStyle-HorizontalAlign="Center"
                    HeaderStyle-Width="40px">
                    <HeaderStyle Width="40px"></HeaderStyle>
                    <ItemStyle HorizontalAlign="Center"></ItemStyle>
                </asp:BoundField>
                <asp:BoundField DataField="Title" HeaderText="标题"  
                    ItemStyle-HorizontalAlign="Center" >
<ItemStyle HorizontalAlign="Center"></ItemStyle>
                </asp:BoundField>
                <asp:BoundField DataField="Content" HeaderText="评论内容" 
                    ItemStyle-HorizontalAlign="Center" >
<ItemStyle HorizontalAlign="Center"></ItemStyle>
                </asp:BoundField>
                <asp:BoundField DataField="AddTime" HeaderText="评论时间" 
                    ItemStyle-HorizontalAlign="Center" >
<ItemStyle HorizontalAlign="Center"></ItemStyle>
                </asp:BoundField>
                <asp:TemplateField HeaderText="删除" HeaderStyle-Width="40px">
                    <ItemTemplate>
                        <asp:LinkButton ID="btnDelete" CommandArgument='<%# Eval("vid") %>' 
                            runat="server" OnCommand="btnDelete_Command" Text="<div class=&quot;bluelk&quot; id=&quot;de&quot; onclick=&quot;JavaScript:return confirm('确定要删除该记录吗？')&quot;>[删除]</div>"></asp:LinkButton>
                    </ItemTemplate>

<HeaderStyle Width="40px"></HeaderStyle>
                </asp:TemplateField>
            </Columns>
            <EmptyDataTemplate>
                暂无相关数据!
            </EmptyDataTemplate>
        </asp:GridView>

<div style="margin:20px 0px 20px 0px;">
    <table align='center' style='clear:both;'><tr><td><webdiyer:aspnetpager id="AspNetPager1" horizontalalign="Center" font-bold="true"
                    runat="server" width="100%" centercurrentpagebutton="True" onpagechanging="AspNetPager1_PageChanging"
                    firstpagetext="首页" prevpagetext="上一页" nextpagetext="下一页" lastpagetext="尾页" pageindexboxtype="TextBox"
                    currentpagebuttontextformatstring="{0:[0]}" alwaysshow="false" shownavigationtooltip="True"
                    pagesize="10">
                </webdiyer:aspnetpager></td></tr></table>
        </div>
</div>
</div>
<script language="javascript"> 
 
var MS = "IE";
if(navigator.userAgent.indexOf("Firefox") > 0) {
    MS = "FF";
}
if (document.getElementById("RightHighSet")!=null) {
    if (document.documentElement.clientHeight > 200) {
        document.getElementById("RightHighSet").style.height = document.documentElement.clientHeight + "px";
    }
}
 
var t = 0;
 
window.onresize = function() {
    var now = new Date();
    now = now.getTime();
    if (now - t > 30) {
        if (document.getElementById("RightHighSet")!=null) {
            if (document.documentElement.clientHeight > 200) {
                document.getElementById("RightHighSet").style.height = document.documentElement.clientHeight + "px";
            }
            t = now;
        }
    }
}
</script>
    </form>
</body>
</html>
