<%@page import="com.yeshi.buwan.util.VideoTypeUtil"%>
|
<%@page import="com.yeshi.buwan.domain.web.HotTypeAdmin"%>
|
<%@page import="com.yeshi.buwan.domain.web.BanquanVideoAdmin"%>
|
<%@page import="com.yeshi.buwan.domain.DetailSystem"%>
|
<%@page import="com.yeshi.buwan.domain.web.DetailSystemSelect"%>
|
<%@page import="com.yeshi.buwan.domain.web.BanquanKeyAdmin"%>
|
<%@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/sspb.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(){
|
$(".detailsystemcheck").click(function(){
|
if($(this).is(":checked"))//添加
|
{
|
$.ajax({url : encodeURI("/BuWan/ClassAdminServlet?type=addSuperHotType&system="+$(this).attr("id")+"&ids="+$(this).attr("key")),//encodeURI
|
cache : false,
|
success : function(data) {
|
alert("添加成功");
|
}
|
});
|
|
}
|
else//删除
|
{
|
|
$.ajax({url : encodeURI("/BuWan/ClassAdminServlet?type=deleteSuperHotType&system="+$(this).attr("id")+"&ids="+$(this).attr("key")),//encodeURI
|
cache : false,
|
success : function(data) {
|
alert("删除成功");
|
}
|
});
|
|
}
|
});
|
|
$(".deleteKey").click(function(){
|
|
if (confirm("是否真的要删除?") == true)
|
$.ajax({url : encodeURI("/BuWan/ClassAdminServlet?type=deleteHotTypeAll&ids="+$(this).attr("key")),//encodeURI
|
cache : false,
|
success : function(data) {
|
window.location="hotTypeList.action";
|
}
|
});
|
|
|
});
|
|
$("#deleteChecked").click(function(){
|
var keys="";
|
for(var i=0;i<$(".movedata").length;i++)
|
{
|
var ds=$(".movedata")[i];
|
if(ds.checked)
|
{
|
keys+=ds.getAttribute("value")+",";
|
}
|
}
|
if(keys.length>0)
|
{
|
if (confirm("是否真的要删除?") == true)
|
$.ajax({url : encodeURI("/BuWan/ClassAdminServlet?type=deleteHotTypeAll&ids="+keys),//encodeURI
|
cache : false,
|
success : function(data) {
|
alert("删除成功");
|
window.location="hotTypeList.action";
|
}
|
});
|
}
|
|
});
|
|
|
});
|
|
</script>
|
|
|
<script type="text/javascript">
|
function p_del() {
|
var msg = "您真的确定要删除吗?";
|
if (confirm(msg) == true) {
|
return true;
|
} else {
|
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 searchSubmit()
|
{
|
window.location="hotTypeList.action?key="+$("#key").val()+"&detailsystem="+$("#detailsystem").val();
|
}
|
|
</script>
|
|
|
|
|
</head>
|
<%
|
List<HotTypeAdmin> list=(List<HotTypeAdmin>)request.getAttribute("hotTypeAdminList");
|
PageEntity pageEntity=(PageEntity)request.getAttribute("pageEntity");
|
List<DetailSystem> detailSystemList=( List<DetailSystem>)request.getAttribute("detailSystemList");
|
if(pageEntity==null)//设置默认值
|
{
|
pageEntity= new PageEntity();
|
pageEntity.setPageIndex(1);
|
pageEntity.setPageSize(20);
|
pageEntity.setParams(null);
|
pageEntity.setTotalCount(100);
|
}
|
%>
|
|
<body>
|
<div title="视频名称添加" style="display: none" id="searchdialog">
|
<div class="div_te" style="float: left;">
|
<ul id="platform">
|
<%
|
for(int i=0;i<detailSystemList.size();i++)
|
{
|
out.print("<li value="+ detailSystemList.get(i).getId()+">");
|
out.print( "<input type='checkbox' class='detailsystem' value="+detailSystemList.get(i).getId()+">"+detailSystemList.get(i).getAppName());
|
out.print("</li>");
|
}
|
%>
|
</ul>
|
</div>
|
|
<input type="text" style="width:200px;" id="searchcontent"
|
name="searchcontent"><input type="button" value="搜索"
|
id="search">
|
<table id="searchresult">
|
</table>
|
|
|
|
|
</div>
|
|
|
<div class="div_bj">
|
|
<div class="div_ban">热门频道</div>
|
<div class="div_rdtg"></div>
|
|
<div class="qxsc">
|
<div class="ck" style="float:left;"></div>
|
<div class="sc_1" style="float:left;margin-top: 0px;"></div>
|
<div>
|
<input type="button" value="添加热门分类+" class="but_tj"
|
onclick="javascript:window.location='/BuWan/hottype_add.jsp'" />
|
</div>
|
</div>
|
|
<div class="div_cont">
|
<div class="div_cont01">
|
<ul>
|
<li class="xz" style="margin-left:1%">选择</li>
|
<li class="sx" style="margin-left:10%">编号</li>
|
<li class="mc" style="margin-left:8%">名称</li>
|
<li class="ap" style="width:400px; margin-left: 0%;">APP名称</li>
|
<li class="cj" style="margin-left:7%">创建时间</li>
|
<li class="sc_2" style="margin-left:8%">删除</li>
|
</ul>
|
</div>
|
|
<%
|
for(HotTypeAdmin bv:list) {
|
%>
|
<div class="div_tab">
|
<table>
|
<tr>
|
<td><input type="checkbox"
|
value="<%=bv.getHotType().getId()%>" class="td_ck movedata"
|
name="movedata" />
|
</td>
|
<td class="sx_00"><div class="div_s0"><%=bv.getHotType().getId()%></div>
|
</td>
|
<td><div class="div_td1"><%=VideoTypeUtil.getVideoTypeName(bv.getHotType().getType())%></div>
|
</td>
|
<td>
|
<div class="div_td0">
|
<div class="div_te">
|
|
<ul>
|
<%
|
for(DetailSystemSelect dss:bv.getDetailSystemList()) {
|
%>
|
<li><input class="detailsystemcheck"
|
key="<%=bv.getHotType().getId()%>"
|
id="<%=dss.getDetailSystem().getId()%>" type="checkbox"
|
<%=dss.isSelected()?"checked":""%> /><%=dss.getDetailSystem().getAppName()+("("+(dss.getDetailSystem().getPlatform()==1?"A":"I")+")")%></li>
|
|
|
<%
|
}
|
%>
|
</ul>
|
</div>
|
</div>
|
</td>
|
|
<td><%=StringUtil.isNullOrEmpty(bv.getHotType().getCreatetime())?"": TimeUtil.getAllTime(Long.parseLong(bv.getHotType().getCreatetime()))%></td>
|
<td><a key="<%=bv.getHotType().getId()%>" class="deleteKey"><img
|
src="/BuWan/img/lajitong.png" /> </a>
|
</td>
|
</tr>
|
</table>
|
</div>
|
<%
|
}
|
%>
|
<div class="div_bot">
|
<div class="ck_k">
|
<input type="checkbox" class="ck_1"
|
onclick="if(this.checked==true) { checkAll('movedata'); } else { clearAll('movedata'); }" />
|
</div>
|
<div class="qx_1">全选</div>
|
<div class="sc_1_1">
|
<input type="button" id="deleteChecked" value="删除" class="sc" />
|
</div>
|
</div>
|
|
<div class="div_ym">
|
<page:page preimage="/BuWan/img/page_pre.png"
|
url="hotTypeList.action"
|
totalLines="<%=pageEntity.getTotalCount() %>"
|
pagesize="<%=pageEntity.getPageSize() %>"
|
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" src="/BuWan/js/countheight.js">
|
|
</script>
|
</html>
|