<%@ Page Language="C#" AutoEventWireup="true" Inherits="EoyooCMS.ManageCode.Content_VideoList" %>

<!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><%=naviname %> - [视频列表]</title>
    <meta http-equiv="Pragma" content="no-cache" />
    <meta http-equiv="Cache-Control" content="no-cache" />
    <meta http-equiv="Expires" content="0" />
    <script type="text/javascript" src="Script/Jquery.js"></script>
    <script type="text/javascript" src="Script/Common.js"></script>
    <script type="text/javascript" src="Script/Content_VideoList.js"></script>
    <script src="/Plugin/flowplayer/flowplayer-3.2.11.min.js" type="text/javascript"></script>
    <link href="Style/Iframe.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="wrapper-div">
    <!-- 弹出框 -->
    <div id="ouBox" class="ouBox">
        <a class="close" title="关闭" href="#"></a>
        <div class="video"></div>
    </div>
    <!-- end 弹出框 -->
	<!-- 视频列表管理 -->
        <!-- 标 -->
            <div class="title-tab">
            <div class="title"><span class="title-ico titico7 F B"><%=naviname %> - <span class="V NoB">列表管理</span></span></div>
            <ul class="menu">
                <li><a class="<%=sift=="all"?"active":"" %>" href="<%=getFormUrl %>?naviid=<%=naviid %>&naviname=<%=naviname %>&sift=all"><span>全部</span></a></li>
                <li><a class="<%=sift=="1"?"active":"" %>" href="<%=getFormUrl %>?naviid=<%=naviid %>&naviname=<%=naviname %>&sift=1"><span>精品</span></a></li>
                <li><a class="<%=sift=="2"?"active":"" %>" href="<%=getFormUrl %>?naviid=<%=naviid %>&naviname=<%=naviname %>&sift=2"><span>推荐</span></a></li>
                <li><a class="<%=sift=="3"?"active":"" %>" href="<%=getFormUrl %>?naviid=<%=naviid %>&naviname=<%=naviname %>&sift=3"><span>置顶</span></a></li>
            </ul>
            </div>
        <!-- end 标 -->
        
        <div class="clear-8"></div>
            <a href="Content_VideoList_Control.aspx?com=add&naviid=<%=naviid %>&naviname=<%=naviname %>" class="bule-btn m_right6 W f_left text_centent">添加视频</a>
        <div class="clear-8"></div>
        
        <!-- 通用table -->
        <table class="table-1">
        	<thead>
            	<tr>
                	<th width="60%" class="text_left">视频名称 <span class="X NoB">[视频总数:<%=_pageCount %>]</span></th>
                    <th width="14%">点击/评论</th>
                    <th width="12%">添加时间</th>
                    <th width="8%">操作</th>
                </tr>
            </thead>
            <tbody id="article_Tbody">
            <%if (_videoListDat.Rows.Count > 0) %>
            <%{ %>
                <%foreach (System.Data.DataRow dat in _videoListDat.Rows) %>
                <%{ %>
            	    <tr>
                	    <td class="text_left">
                        <%if (dat["picpath"].ToString() != "") %>
                        <%{ %>

                            <%if (dat["picpath"].ToString().IndexOf("/") >= 0) %>
                            <%{ %>
                            <img class="small-images" src="<%=dat["picpath"].ToString() %>">
                            <%}else {%>
                            <img class="small-images" src="../UpLoad/Video_Pic/<%=dat["picpath"].ToString() %>">
                            <%} %>

                    	    
                        <%} %>
                            <a class="B H" href="Content_VideoList_Control.aspx?com=alter&naviid=<%=naviid %>&naviname=<%=naviname %>&videoid=<%=dat["id"].ToString() %>"><%=EoyooCMS.Common.StringPlus.StrCut(dat["title"].ToString(),60,"...")%></a> <span class="X">(视频：<%=_videoListDat.Rows.Count%>)</span>
                            <br />
                            <span class="V"><%=EoyooCMS.Common.StringPlus.StrCut(EoyooCMS.Common.StringPlus.RemoveHtml(dat["content"].ToString()), 118, "…")%></span>
                            <br />
                            <span class="V">
                                <%if (dat["attribute1"].ToString() == "True") %>
                                <%{ %>
                                <a href="1" title="<%=dat["title"].ToString() %>" rel="attribute" rev="<%=dat["id"].ToString() %>" name="1" class="Q underline">取消精品</a> |
                                <%} else { %>
                                <a href="1" title="<%=dat["title"].ToString() %>"  rel="attribute" rev="<%=dat["id"].ToString() %>" name="0" class="F underline">精品</a> |
                                <%} %>
                        	     
                                <%if (dat["attribute2"].ToString() == "True") %>
                                <%{ %>
                                <a href="2" title="<%=dat["title"].ToString() %>"  rel="attribute" rev="<%=dat["id"].ToString() %>" name="1" class="Q underline">取消推荐</a> |
                                <%} else { %>
                                <a href="2" title="<%=dat["title"].ToString() %>"  rel="attribute" rev="<%=dat["id"].ToString() %>" name="0" class="F underline">推荐</a> |
                                <%} %>

                                <%if (dat["attribute3"].ToString() == "True") %>
                                <%{ %>
                                <a href="3" title="<%=dat["title"].ToString() %>"  rel="attribute" rev="<%=dat["id"].ToString() %>" name="1" class="Q underline">取消置顶</a>
                                <%} else { %>
                                <a href="3" title="<%=dat["title"].ToString() %>"  rel="attribute" rev="<%=dat["id"].ToString() %>" name="0" class="F underline">置顶</a>
                                <%} %>
                            </span>
                        </td>
                        <td><span class="X Size9"><%=dat["clicks"].ToString()%> / <%=dat["review"].ToString()%></span></td>
                        <td>
                    	    <span class="G">(<%=getTime1(dat["addtime"].ToString())%>)</span><br />
                            <span class="V Size9"><%=getTime2(dat["addtime"].ToString())%></span>
                        </td>
                        <td>
                            <%if (dat["picpath"].ToString().IndexOf("/") >= 0) %>
                            <%{ %>
                            <a href="<%=dat["videopath"].ToString()%>" rel="playvideo" class="F underline">[观看视频]</a><br />
                            <%}else{ %>
                            <a href="/upload/video/<%=dat["videopath"].ToString()%>" rel="playvideo" class="F underline">[观看视频]</a><br />
                            <%} %>  
                    	    <a href="Content_VideoList_Control.aspx?com=alter&naviid=<%=naviid %>&naviname=<%=naviname %>&videoid=<%=dat["id"].ToString() %>" class="Q underline">[编辑]</a>
                            <br />
                            <a href="<%=dat["id"].ToString() %>" title="<%=dat["title"].ToString() %>" rel="del" rev="<%=dat["videopath"].ToString() %>" class="R underline">[删除]</a>
                        </td>
                    </tr>
                <%} %>  
            <%} %>
            <%else %>
            <%{ %>
            <tr>
                <td  colspan="4" class="text_left"><span class="V">暂无数据</span> <a class="Q B underline" href="Content_VideoList_Control.aspx?com=add&naviid=<%=naviid %>&naviname=<%=naviname %>">[马上添加]</a></td>
            </tr>
            <%} %>   
            </tbody>
        </table>
        <!-- end 通用table -->
        <div class="clear-8"></div>
            <a href="Content_VideoList_Control.aspx?com=add&naviid=<%=naviid %>&naviname=<%=naviname %>" class="bule-btn W f_left text_centent">添加视频</a>
            <p class="PageBox">
                <%=getPagesInfo%>
            </p>
        <div class="clear-8"></div>
    <!-- end 视频列表管理 -->
</div>
</body>
</html>
