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
<%@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/hottype_add.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() {
        $
                .ajax({
                    url : "/BuWan/ClassAdminServlet?type=getVideoType&parentId=0",
                    cache : false,
                    success : function(data) {
                        var jsonData = eval(data);
                        $("#step2").remove();
                        $.each(jsonData, function(index, objVal) { //遍历对象数组,index是数组的索引号,objVal是遍历的一个对象。  
                            //val["属性"]可取到对应的属性值。  
                            $("#step1").append(
                                    "<option value="+objVal["Id"]+">"
                                            + objVal["Name"] + "</option>")
                        });
                    }
                });
    });
 
    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>";
 
                    $("#pingdao").append(printR);
                    $(".select").unbind();
                    $(".select").change(function() {
                        $(this).nextAll().remove();
                        $("#videoType").val($(this).val());
                        if ($(this).val() != $(this).prev().val())
                            getNextVideoTypeList($(this).val());
                    });
 
                }
            }
        });
    }
</script>
<!-- 输入框 -->
 
<script type="text/javascript">
    function searchSubmit() {
        window.location = "banQuanVideoList.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>
 
    <form action="addHotType.action">
        <div class="div_bj">
            <div class="div_ban">热门分类添加</div>
            <div class="div_rdtg"></div>
 
 
            <div class="nr0">
 
                <div class="div_002">
                    <div class="text_001">频道:</div>
                    <div>
                        <div id="pingdao" class="bs-docs-example"></div>
                    </div>
                    <input type="hidden" id="videoType" name="videoType" value="1">
                </div>
                <div class="div_002" style="margin-left:33%;">
                    <div>
                        <input type="submit" class="submit_blue" value="确定"
                            onclick="submitAdd()" /> <input type="button"
                            class="submit_blue" value="取消" />
                    </div>
                </div>
            </div>
        </div>
    </form>
</body>
<script type="text/javascript" src="/BuWan/js/countheight.js">
    
</script>
<script type="text/javascript">
    getNextVideoTypeList(0);
</script>
 
</html>