admin
2021-01-23 0a18a8cb0a7a57bf1f82df425251334c57f8c39a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
<%@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>