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
<%@page import="com.yeshi.buwan.domain.special.Special"%>
<%@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.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>修改分类</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>
 
<%
    Special special = (Special) request.getAttribute("special");
%>
 
<body>
 
    <form action="updateSpecial.action">
 
        <input type="hidden" value="<%=special.getId()%>" name="id">
        <div class="div_bj">
            <div class="div_ban">用户Banner修改</div>
            <div class="div_rdtg"></div>
 
 
            <div class="nr0">
 
                <div class="div_002">
                    <div class="text_001">名称:</div>
                    <div>
                        <div class="bs-docs-example">
                            <input type="text" name="name" class="wbk" value="<%=special.getName()%>">
                        </div>
                    </div>
                </div>
 
                <div class="div_002">
                    <div class="text_001">图片栏:</div>
                    <div>
                        <div class="bs-docs-example">
                             <img alt="" style="width: 150px;" src="<%=StringUtil.getAbsoluteUrl(request, special.getPicture())%>">
                            <input type="text" name="picture" class="wbk" value="<%=special.getPicture()%>">
                        </div>
                    </div>
                </div>
 
 
                <div class="div_002">
                    <div class="text_001">排序权重:</div>
                    <div>
                        <div class="bs-docs-example">
                            <input type="text" name="orderby" class="wbk" value="<%=special.getOrderby()%>"> 
                        </div>
                    </div>
                </div>
                
                <div class="div_002">
                    <div class="text_001">是否显示:</div>
                    <div>
                        <div class="bs-docs-example">
                            <input type="checkbox" name="show" class="wbk" <%=special.isShow()?"checked":""%>> 
                        </div>
                    </div>
                </div>
                
                
                <div class="div_002">
                    <div class="text_001">是否在Banner显示:</div>
                    <div>
                        <div class="bs-docs-example">
                            <input type="checkbox" name="showonmain" class="wbk" <%=(special.isShowonmain()?"checked":"" )%> > 
                        </div>
                    </div>
                </div>
 
                <div class="div_002">
                    <div class="text_001">简介:</div>
                    <div>
                        <div class="bs-docs-example">
                            <textarea rows="5" cols="50" name="introduction"><%=special.getIntroduction()%></textarea>
                        </div>
                    </div>
                </div>
 
 
 
 
                <div class="div_002">
                    <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>
 
</html>