<%@page import="com.yeshi.buwan.util.Constant"%>
|
<%@page import="com.yeshi.buwan.domain.ShareContent"%>
|
<%@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/video_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 changeShow(id) {
|
var u = "/BuWan/VideoServlet?type=changeVideoShow&id=" + id;
|
$.ajax({
|
url : u,
|
cache : false,
|
success : function(data) {
|
alert("修改成功");
|
}
|
});
|
}
|
</script>
|
<!-- 输入框 -->
|
</head>
|
<%
|
List<ShareContent> list=(List<ShareContent>)request.getAttribute("shareList");
|
System.out.println(list.size());
|
PageEntity pageEntity=(PageEntity)request.getAttribute("pageEntity");
|
if(pageEntity==null)//设置默认值
|
{
|
pageEntity= new PageEntity();
|
pageEntity.setPageIndex(1);
|
pageEntity.setPageSize(Constant.pageCount);
|
pageEntity.setParams(null);
|
pageEntity.setTotalCount(100);
|
}
|
%>
|
|
<body>
|
<div class="div_bj">
|
<input type="hidden" id="videoids" value="">
|
<div class="div_ban">分享内容</div>
|
<div class="div_rdtg"></div>
|
|
<div class="qxsc">
|
<div class="qq">
|
<div class="ck">
|
<input type="checkbox"
|
onclick="if(this.checked==true) { checkAll('movedata'); } else { clearAll('movedata'); }"
|
class="ck_1" />
|
</div>
|
<div class="qx">全选</div>
|
<div class="sc_1">
|
<input type="button" value="删除"
|
onclick="controlCheck('deleteListShare.action')" class="sc" />
|
</div>
|
</div>
|
|
<div class="sous">
|
<form action="shareList.action">
|
<div>
|
<input type="text" class="img_sous" name="key"
|
value="<%=StringUtil.isNullOrEmpty(pageEntity.getParams().get("key"))?"":pageEntity.getParams().get("key")%>" />
|
</div>
|
<div>
|
<input type="submit"
|
style="background: url('/BuWan/img/fadajing.png');width: 50px;height: 45px;"
|
class="img_fdj" value="">
|
</div>
|
</form>
|
</div>
|
<div style="margin-left:900;">
|
<div class="bsous">
|
<a href="getShareDetailSystem.action"><input type="button"
|
value="添加分享 +" class="but_sous" /> </a>
|
</div>
|
</div>
|
|
|
|
</div>
|
|
<div class="div_cont">
|
<div class="div_cont01">
|
<ul>
|
<li class="xz">选择</li>
|
<li>编号</li>
|
<li>APP名称</li>
|
<li>平台类型</li>
|
<li class="fx">分享内容</li>
|
<li class="fx2">分享链接</li>
|
<li>创建时间</li>
|
<li class="sc0">删除</li>
|
<li class="cz">修改</li>
|
</ul>
|
</div>
|
<%
|
for(ShareContent info:list)
|
{
|
%>
|
<div class="div_tab">
|
<table>
|
<tr>
|
<td><input type="checkbox" id="movedata" name="movedata"
|
class="movedata" value=<%=info.getId()%> class="td_ck" />
|
</td>
|
<td><%=info.getId()%></td>
|
<td><%=info.getDetailSystem().getAppName()%></td>
|
<td><%=info.getDetailSystem().getPlatform()==1?"Android":"IOS"%></td>
|
<td><textarea disabled rows="5" cols="30"><%=info.getShareContent()%></textarea>
|
</td>
|
<td><textarea disabled rows="5" cols="30"><%=info.getShareUrl()%></textarea>
|
</td>
|
<td><%=StringUtil.isNullOrEmpty(info.getCreatetime())?"":TimeUtil.getGernalTime(Long.parseLong(info.getCreatetime()))%></td>
|
<td><a href="deleteShare.action?id=<%=info.getId()%>"
|
onclick="return p_del()"><img
|
src="/BuWan/img/lajitong.png" /> </a>
|
</td>
|
|
<td><a href="getShare.action?id=<%=info.getId()%>"><img
|
src="/BuWan/img/xiugai.png" /> </a>
|
</td>
|
</tr>
|
</table>
|
</div>
|
<%
|
}
|
%>
|
|
<div class="div_bot">
|
<div class="ck_k">
|
<input type="checkbox"
|
onclick="if(this.checked==true) { checkAll('movedata'); } else { clearAll('movedata'); }"
|
class="ck_1" />
|
</div>
|
<div class="qx_1">全选</div>
|
|
|
<div class="sc_1_1">
|
<input type="button" value="添加推荐" class="sc" id="addRecommend"
|
style="width: 80px;" />
|
</div>
|
<div class="sc_1_1">
|
<input type="button" value="添加到合集" class="sc"
|
id="addIntersectionVideo" style="width: 80px;" />
|
</div>
|
</div>
|
|
<div class="div_ym">
|
<page:page preimage="/BuWan/img/page_pre.png"
|
url="shareList.action"
|
totalLines="<%=pageEntity.getTotalCount() %>"
|
pagesize="<%=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" src="/BuWan/js/countheight.js">
|
|
</script>
|
</html>
|