<%@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('deleteListIntersection.action');
|
});
|
});
|
|
</script>
|
|
<!-- 输入框 -->
|
</head>
|
<%
|
List<VideoIntersection> list=(List<VideoIntersection>)request.getAttribute("intersectionList");
|
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" id="quanxuan" class="ck_1" />
|
</div>
|
<div class="qx">全选</div>
|
<div class="sc_1">
|
<input type="button" value="删除" id="deleteCheck" class="sc" />
|
</div>
|
<div>
|
<a href="/BuWan/intersection_add.jsp"><input
|
type="button" value="添加合辑+" class="but_tj" /> </a>
|
</div>
|
</div>
|
|
|
<div class="div_cont">
|
<div class="div_cont01">
|
<ul>
|
<li style="margin-left:-2%">选择</li>
|
<li style="margin-left:10%">编号</li>
|
<li style="margin-left:7%">合辑名称</li>
|
<li style="margin-left:7%">创建时间</li>
|
<li style="margin-left:7%">删除</li>
|
<li style="margin-left:7%">修改</li>
|
</ul>
|
</div>
|
<%
|
for(VideoIntersection in:list) {
|
%>
|
<div class="div_tab">
|
<table>
|
<tr>
|
<td><input type="checkbox" class="td_ck movedata"
|
name="movedata" value="<%=in.getId()%>" />
|
</td>
|
<td><%=in.getId()%></td>
|
<td><a href="intersectionVideoList.action?id=<%=in.getId()%>"
|
class="h_a"><%=in.getName()%></a></td>
|
<td><%=StringUtil.isNullOrEmpty(in.getCreatetime())?"": TimeUtil.getGernalTime(Long.parseLong(in.getCreatetime()))%></td>
|
<td><a href="deleteIntersection.action?id=<%=in.getId()%>"
|
onclick="return p_del()"><img
|
src="/BuWan/img/lajitong.png" /> </a>
|
</td>
|
<td><a href="getIntersection.action?id=<%=in.getId()%>"><img
|
src="/BuWan/img/xiugai.png" /> </a>
|
</td>
|
</tr>
|
</table>
|
</div>
|
|
<%
|
}
|
%>
|
|
<div class="div_ym">
|
<page:page preimage="/BuWan/img/page_pre.png"
|
url="intersectionList.action"
|
totalLines="<%=pageEntity.getTotalCount() %>" pagesize="20"
|
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>
|