<%@ page contentType="text/html; charset=GBK" session="false"%>

<%@ taglib uri="/cmsTag" prefix="cms"%>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
   <head>

      <%
      	response.setHeader("Pragma", "No-cache");
      	response.setHeader("Cache-Control", "no-cache");
      	response.setDateHeader("Expires", 0);
      %>
      <title>视频内容管理</title>
      <link rel="stylesheet" type="text/css" href="../../style/default/main.css" />
      <script type="text/javascript" src="../common/js/jquery-1.7.gzjs"></script>
      <script type="text/javascript" src="../javascript/dialog/lhgdialog.min.js?skin=iblue"></script>
      <!--加载 js -->



      <script type="text/javascript">


</script>

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


      <!--加载 js 结束 -->


   </head>

   <body>

      <button type="button" id="save" onclick='javascript:gotoAddVideoContentPage();'>
         <img src="../../core/style/default/images/add2.png" alt="" />
         添加视频
      </button>
      &nbsp;
      <br>
      <br>
      <cms:SystemManageContentList modelName="视频" page="true" pageSize="5" classId="${param.classId}" modelId="${param.modelId}">
      
         <div>
            <page:page />
         </div>
         <table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="b5d6e6">
            <tr>
               <td width="3%" height="22" background="images/bg.gif" bgcolor="#FFFFFF">
                  <div align="center">
                     <input type="checkbox" name="checkbox" value="checkbox" />
                  </div>
               </td>
               <td width="5%" height="22" background="images/bg.gif" bgcolor="#FFFFFF">
                  <div align="center">
                     <span class="STYLE1">ID</span>
                  </div>
               </td>
               <td width="35%" height="22" background="images/bg.gif" bgcolor="#FFFFFF">
                  <div align="center">
                     <span class="STYLE1">标题</span>
                  </div>
               </td>

               <%--<td width="8%" height="22" background="images/bg.gif" bgcolor="#FFFFFF">
						<div align="center">
							<span class="STYLE1">预览图</span>
						</div>
					</td>

					--%>


               <td width="10%" height="22" background="images/bg.gif" bgcolor="#FFFFFF">
                  <div align="center">
                     <span class="STYLE1">所属栏目</span>
                  </div>
               </td>
               <td width="15%" height="22" background="images/bg.gif" bgcolor="#FFFFFF">
                  <div align="center">
                     <span class="STYLE1">视频名称</span>
                  </div>
               </td>
               
                <td width="5%" height="22" background="images/bg.gif" bgcolor="#FFFFFF">
                  <div align="center">
                     <span class="STYLE1">媒体类型</span>
                  </div>
               </td>
               <td width="8%" height="22" background="images/bg.gif" bgcolor="#FFFFFF">
                  <div align="center">
                     <span class="STYLE1">添加者</span>
                  </div>
               </td>
               <td width="4%" height="22" background="images/bg.gif" bgcolor="#FFFFFF">
                  <div align="center">
                     <span class="STYLE1">点击</span>
                  </div>
               </td>
               <td width="15%" height="22" background="images/bg.gif" bgcolor="#FFFFFF" class="STYLE1">
                  <div align="center">
                     操作
                  </div>
               </td>
            </tr>

            <cms:Content>
               <tr>
                  <td height="20" bgcolor="#FFFFFF" style="margin-top: 10px;">
                     <div align="center">
                        <input type="checkbox" name="checkbox4" value="checkbox" />
                     </div>
                  </td>

                  <td height="20" bgcolor="#FFFFFF" style="margin-top: 10px;">
                     <div align="center" class="STYLE1">
                        <div align="center">
                           ${Info.contentId}
                        </div>
                     </div>
                  </td>
                  <td height="20" bgcolor="#FFFFFF" style="margin-top: 50px;">
                     <div align="left">
                        <span class="STYLE1">&nbsp;[预览] ${Info.title}</span>
                     </div>
                  </td>

                  <%--<td height="40" bgcolor="#FFFFFF" style="margin-top: 10px;">
							<div align="center">
								<img height='67' width='76' src='<cms:Domain/>/${Info.classPhotoURL}'></img>
							</div>
						</td>

						--%>
                  <td height="20" bgcolor="#FFFFFF" style="margin-top: 10px;">
                     <div align="center">
                        <span class="STYLE1">${Info.className}</span>
                     </div>
                  </td>
                  <td bgcolor="#FFFFFF" style="margin-top: 10px;">
                     <div align="center">
                        <span class="STYLE1">${Info.videoName} 
                     </div>
                  </td>
                  <td bgcolor="#FFFFFF" style="margin-top: 10px;">
                     <div align="center">
                        <span class="STYLE1">${Info.mediaType} 
                     </div>
                  </td>
                  <td bgcolor="#FFFFFF" style="margin-top: 10px;">
                     <div align="center">
                        <span class="STYLE1">${Info.creator} 
                     </div>
                  </td>
                  <td height="20" bgcolor="#FFFFFF" style="margin-top: 10px;">
                     <div align="center">
                        <span class="STYLE1">${Info.clickCount}</span>
                     </div>
                  </td>
                  <td height="20" bgcolor="#FFFFFF" style="margin-top: 10px;">
                     <div align="center">
                        <span class="STYLE4"><img src="images/edt.gif" width="16" height="16" /><a href="media/EditVideoContent.jsp?id=${Info.contentId}&classId=${Info.classId}">编辑</a>&nbsp; &nbsp; <img src="images/del.gif" width="16" height="16" /><a href="javascript:deleteVideo('${Info.modelId}','${Info.classId}','${Info.contentId}');">删除</a> </span>
                     </div>
                  </td>
               </tr>
            </cms:Content>


         </table>
         <div>
            <page:page />
         </div>
      </cms:SystemManageContentList>

      </div>
   </body>

</html>
<script type="text/javascript">

function gotoAddVideoContentPage()
{
	window.location.href="media/VideoGeneralAdd.jsp?classId=${param.classId}";
}

function submitGenerateClassForm()
{

  // document.getElementById("generateContentForm").action="../../engine/generateContent.cmd";
    document.getElementById("statictype").value=1;
   document.getElementById("generateForm").submit();
   
}

function submitGenerateContentForm()
{

  // document.getElementById("generateContentForm").action="../../engine/generateContent.cmd";
    document.getElementById("statictype").value=2;
   document.getElementById("generateForm").submit();
   
}

//dialog操作
function deleteVideo(modelId,classId,contentId)
{
	var dialog = $.dialog({ 
   					title :'提示',
    				width: '160px', 
    				height: '60px', 
                    lock: true, 
    				icon: '32X32/i.png', 
    				
                    content: '您确认删除此内容吗？',
                    
                    ok: function () { 
       
     window.location='../../content/deleteVideo.cmd?contentId='+contentId+'&classId='+classId+'&&modelId='+modelId;
       
    }, 
    cancel: true 
                    
	
	//../../content/deleteUserDefineContent.cmd?contentId=${Info.contentId}&classId=${Info.classId}&&modelId=${Info.modelId}；
	});



} 

</script>
