<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Admin_VideoManage.aspx.cs" Inherits="MyITJob.Admin.Admin_VideoManage" %>

<!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>后台视频管理 - <%=Application["PageTitle"]%></title>
    <link href="../images/Admin_Style.css" rel="stylesheet" type="text/css" />
    <script src="../MyITJob.js" type="text/javascript"></script>
<script language="javascript" type="text/javascript">
function CheckAll(form){
  for (var i=0;i<form.elements.length;i++){
    var e = form.elements[i];
    if (e.name != 'chkAll' && e.disabled == false && e.type == 'checkbox') {
      e.checked = form.chkAll.checked;
      if (e.checked)
        hL(e);
      else
        dL(e);
    }
  }
}

function hL(E){
  while (E.tagName!='TR') {E=E.parentElement;}
  E.className='tdbg2';
}
function dL(E){
  while (E.tagName!='TR') {E=E.parentElement;}
  E.className='tdbg';
}
function Submit1_onclick() {

}

</script>    
</head>
<body>
    <form id="form1" runat="server">
        <div>            
              <table align="center" border="0" cellpadding="2" cellspacing="1" class="border" width="100%">
                <tr class="topbg">
                  <td colspan="2" height="22"><table width="100%">
                    <tr class="topbg">
                      <td align="center"><b>网 站 视 频 文 件 管 理</b></td>
                    </tr>
                  </table></td>
                </tr>
                <tr class="tdbg">
                  <td width="100" height="30" align="right"><strong>视频筛选：</strong></td>
                  <td class="dh">
                  <%foreach ( ClassLibrary1.strClass.dhClass d in dh) {%>
                    <a <%= d.id == q("Action") ? "class='dhcss'":"" %> href="?Action=<%=d.id %>&zt=<%=q("zt") %>"><%=d.name %></a>
                  <%} %>                  
                  </td>
                </tr>
                <tr class="tdbg">
                  <td width="100" height="30" align="right"><strong>视频状态：</strong></td>
                  <td class="dh">
                  <%foreach ( ClassLibrary1.strClass.dhClass d in dh2) {%>
                    <a <%= d.id == q("zt") ? "class='dhcss'":"" %> href="?Action=<%=q("Action") %>&zt=<%=d.id %>"><%=d.name %></a>
                  <%} %>                  
                  </td>
                </tr>
              </table>
              <br />
                <table width='100%' border='0' align='center' cellpadding='6' cellspacing='1' class='border'>
                    <tr class='topbg'>
                        <td width="6%" align='center'><strong class="Glow">选中</strong></td>
                        <td width="12%" align='center'><strong class="Glow">登录名</strong></td>
                        <td width="8%" align='center'><strong class="Glow">身份</strong></td>
                        <td width="39%" align='center'><strong class="Glow">视频文件名称</strong></td>
                        <td width="11%" align='center'><strong class="Glow">视频类型</strong></td>
                        <td width="9%" align='center'><strong class="Glow">是否推荐</strong></td>
                        <td width="15%" align='center'>
                            <strong class="Glow">操作</strong></td>
                    </tr>
                    <asp:Panel ID="Rp1_Panel" runat="server">
                    <asp:Repeater ID="RP1" runat="server">
                        <ItemTemplate>
                            <tr class='tdbg' onmouseout="this.className='tdbg'" onmouseover="this.className='tdbgmouseover'">
                                <td align='center'><input name="checkbox" id="checkbox" type="checkbox" value="<%#Eval("id") %>" /></td>
                                <td align='center'><a href="<%#goUrl() %>" target="_blank"><%#Eval("UserName") %></a></td>
                                <td align='center'><%#Eval("UserClass") %></td>
                                <td align='center'><%#Eval("VideoName") %><%#FileExists() %></td>
                                <td align='center'><%#Eval("VideoClass") %></td>
                              <td align='center'><strong><%#isPast()%></strong></td>
                                <td>
                                <div id="Tj<%#Eval("id") %>" class="YnEnter">
                                    <a href="Admin_VideoManage.aspx?id=<%#Eval("id")%>&Action=top">首页</a>
                                	<a href="Admin_VideoManage.aspx?id=<%#Eval("id")%>&Action=tj">推荐</a>
                                    <a href="Admin_VideoManage.aspx?id=<%#Eval("id")%>&Action=pt">普通</a>
                                </div>
                                <a href="###" onclick="YnEnterDiv('Tj<%#Eval("id")%>')">推荐/普通</a> |
                                <a href="Admin_VideoManage.aspx?Action=Del&id=<%# Eval("id")%>" onclick="return confirm('确定要删除此数据以及视频文件吗？此操作不可逆。')">删除</a></td>
                            </tr>
                        </ItemTemplate>
                    </asp:Repeater>
                    </asp:Panel>
                </table>
              <div><input name='chkAll' type='checkbox' onclick='CheckAll(this.form)' value='checkbox' /><asp:Button ID="del_Button" runat="server" Text="删 除" OnClick="del_Button_Click" /></div>
                <div id="paging" runat="server"></div>
        </div>
            <span style="color:Red;">备注：这里备注一些操作上的具体含义。</span><br />
    推荐/普通→首页：显示在视频专区右侧的视频，用√√显示在管理页面。<br />
    推荐/普通→推荐：显示在视频专区左侧的视频。用√显示在管理页面。<br />
    推荐/普通→普通：不会显示在视频专区内的视频。用×显示在管理页面。（×不表示不可用，只是表示不推荐状态而已。）<br />
    删除：删除数据库数据和视频文件，该操作不可逆。
    <table align="center" border="0" cellpadding="2" cellspacing="1" class="border" width="100%">
        <tr class="tdbg">
            <td class="topbg">
                <div align="center">
                    Copyright 2009-2019 
                    <%=Application["PageTitle"] %>
                    All Rights Reserved.</div>
            </td>
        </tr>
    </table>
    </form>
</body>
</html>