<%@page import="com.yeshi.buwan.util.Constant"%>
|
<%@page import="com.yeshi.buwan.domain.VideoIntersectionVideo"%>
|
<%@page import="com.yeshi.buwan.domain.VideoIntersection"%>
|
<%@page import="com.yeshi.buwan.domain.HomeType"%>
|
<%@page import="com.yeshi.buwan.util.TimeUtil"%>
|
<%@page import="java.util.concurrent.TimeUnit"%>
|
<%@page import="com.yeshi.buwan.web.tag.PageEntity"%>
|
<%@page import="com.yeshi.buwan.util.StringUtil"%>
|
<%@page import="com.yeshi.buwan.domain.VideoInfo"%>
|
<%@page import="com.yeshi.buwan.domain.SystemInfo"%>
|
<%@ page language="java" import="java.util.*"%>
|
<%@ page contentType="text/html; charset=UTF-8"%>
|
<%@ page pageEncoding="UTF-8"%><%@ taglib prefix="page" uri="/pagelib"%>
|
<!doctype html>
|
<html>
|
<head>
|
<meta charset="utf-8">
|
<title>首页banner</title>
|
<link rel="stylesheet" href="/BuWan/css/gongyong.css"
|
type="text/css" />
|
<link rel="stylesheet"
|
href="/BuWan/css/intersection_list.css"
|
type="text/css" />
|
<LINK rel=stylesheet
|
href="/BuWan/js/jquery-ui-1.11.4/jquery-ui.css" />
|
<script type="text/javascript" src="/BuWan/js/jquery.min.js"></script>
|
<script type="text/javascript" src="/BuWan/js/check.js"></script>
|
<script type="text/javascript" src="/BuWan/js/jquery.js"></script>
|
<script type="text/javascript"
|
src="/BuWan/js/jquery-ui-1.11.4/jquery-ui.js"></script>
|
<script type="text/javascript">
|
function p_del() {
|
var msg = "您真的确定要删除吗?";
|
if (confirm(msg) == true) {
|
return true;
|
} else {
|
return false;
|
}
|
}
|
|
function getNextVideoTypeList(typeId) {
|
$.ajax({
|
url : "/BuWan/VideoTypeServlet?type=getNextVideoTypeList&id="
|
+ typeId,
|
cache : false,
|
success : function(data) {
|
if (data != null && data != "[]") {
|
$(this).parent().nextAll().remove();
|
var printR = "<select class='select'>";
|
printR += "<option value="+typeId+">--请选择--</option>";
|
$.each(eval(data), function(i, item) {
|
printR += "<option value="+item.Id+">" + item.Name
|
+ "</option>";
|
});
|
printR += "</select>";
|
|
$("#vt").append(printR);
|
$(".select").unbind();
|
$(".select").change(function() {
|
$(this).nextAll().remove();
|
$("#videoType").val($(this).val());
|
if ($(this).val() != $(this).prev().val())
|
getNextVideoTypeList($(this).val());
|
});
|
|
}
|
}
|
});
|
}
|
|
function loadVideoType() {
|
//获取顶级元素
|
//getAllParentType
|
$
|
.ajax({
|
url : "/BuWan/VideoTypeServlet?type=getAllParentType&id="
|
+ $("#videoType").val(),
|
cache : false,
|
success : function(data) {
|
if (data != null && data != "[]") {
|
|
$
|
.each(
|
eval(data),
|
function(i, item) {
|
var printR = "<select class='select'>";
|
|
$
|
.each(
|
eval(item),
|
function(j,
|
item1) {
|
if (item1.Selected == 0) {
|
printR += "<option value="+item1.Id+">"
|
+ item1.Name
|
+ "</option>";
|
} else {
|
printR += "<option selected='selected' value="+item1.Id+">"
|
+ item1.Name
|
+ "</option>";
|
}
|
|
});
|
printR += "</select>";
|
$("#vt").append(printR);
|
});
|
|
$(".select").unbind();
|
$(".select").change(function() {
|
$(this).nextAll().remove();
|
$("#videoType").val($(this).val());
|
if ($(this).val() != $(this).prev().val())
|
getNextVideoTypeList($(this).val());
|
});
|
|
}
|
}
|
});
|
}
|
|
//下一步
|
$("#next").click(function() {
|
if ($("#videType").val() < 1) {
|
alert("请选择视频类型");
|
return false;
|
}
|
});
|
|
function changeShow(id) {
|
var u = "/BuWan/VideoServlet?type=changeVideoShow&id=" + id;
|
$.ajax({
|
url : u,
|
cache : false,
|
success : function(data) {
|
alert("修改成功");
|
}
|
});
|
}
|
</script>
|
<!-- 输入框 -->
|
<script type="text/javascript">
|
$(function(){
|
$("#quanxuan").click(function() {
|
if(this.checked==true) { checkAll('movedata'); } else { clearAll('movedata'); }
|
});
|
|
$("#deleteCheck").click(function() {
|
controlCheck('deleteListIntersectionVideo.action?type=1');
|
});
|
});
|
|
</script>
|
|
</head>
|
<%
|
List<VideoIntersectionVideo> list=(List<VideoIntersectionVideo>)request.getAttribute("videoList");
|
PageEntity pageEntity=(PageEntity)request.getAttribute("pageEntity");
|
if(pageEntity==null)//设置默认值
|
{
|
pageEntity= new PageEntity();
|
pageEntity.setPageIndex(1);
|
pageEntity.setPageSize(20);
|
pageEntity.setParams(null);
|
pageEntity.setTotalCount(100);
|
}
|
%>
|
|
<body>
|
<div class="div_bj">
|
|
<div class="div_ban">合辑视频</div>
|
<div class="div_rdtg"></div>
|
|
<div class="qxsc">
|
<div class="ck">
|
<input type="checkbox" class="ck_1" id="quanxuan" />
|
</div>
|
<div class="qx">全选</div>
|
<div class="sc_1">
|
<input type="button" value="删除" class="sc" id="deleteCheck" />
|
</div>
|
<div>
|
<a href="videoList.action"><input
|
type="button" value="添加合辑视频+" class="but_tj" /> </a>
|
</div>
|
</div>
|
|
|
<div class="div_cont">
|
<div class="div_cont01">
|
<ul>
|
<li class="xz">选择</li>
|
<li class="xz">合辑名称</li>
|
<li class="bh">视频编号</li>
|
<li class="bh">视频名称</li>
|
<li class="xz">删除</li>
|
</ul>
|
</div>
|
<%
|
for(VideoIntersectionVideo vi:list) {
|
%>
|
<div class="div_tab">
|
<table>
|
<tr>
|
<td><input type="checkbox" class="td_ck movedata"
|
name="movedata" value="<%=vi.getId()%>"/>
|
</td>
|
<td><%=vi.getIntersection().getName()%></td>
|
<td><%=vi.getVideo().getId()%></td>
|
<td><%=vi.getVideo().getName()%></td>
|
<td><a
|
href="deleteIntersectionVideo.action?id=<%=vi.getId()%>"><img
|
src="/BuWan/img/lajitong.png" onclick="return p_del()"/> </a>
|
</td>
|
|
</tr>
|
</table>
|
</div>
|
<%
|
}
|
%>
|
<div class="div_bot">
|
<div class="ck_k">
|
<input type="checkbox" class="ck_1" />
|
</div>
|
<div class="qx_1">全选</div>
|
<div class="sc_1_1">
|
<input type="button" value="删除" class="sc" />
|
</div>
|
</div>
|
|
<div class="div_ym">
|
<page:page preimage="/BuWan/img/page_pre.png"
|
url="intersectionVideoList.action"
|
totalLines="<%=pageEntity.getTotalCount() %>"
|
pagesize="<%=com.yeshi.buwan.util.Constant.pageCount %>"
|
nextimage="/BuWan/img/page_next.png"
|
pagebg="/BuWan/img/page_page.png"
|
inputbg="i/BuWan/mg/page_page.png"
|
pageindex="<%=pageEntity.getPageIndex() %>"
|
gobg="/BuWan/img/page_page.img"
|
params="<%=pageEntity.getParams() %>" />
|
</div>
|
</div>
|
</div>
|
</body>
|
<script type="text/javascript">
|
loadVideoType();
|
</script>
|
|
<script type="text/javascript" src="/BuWan/js/countheight.js">
|
|
</script>
|
</html>
|