<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="../common/common.jsp"%>
<title>资源推荐</title>
</head>
<link rel="stylesheet" type="text/css" href="${staticPath}webupload/progress.css">
<body>
<%@ include file="../common/head.jsp"%>
<div class="screen main">
    <%@ include file="../common/left.jsp" %>
    <div class="main-content">
        <div class="btn-radius">资源推荐</div>
        <form name="dataForm" action="/" method="post">
        <div class="search-group">
            <input type="hidden" name="download" value="1" />
            <div class="search-item">推荐资源名称&nbsp;&nbsp;<input type="text" id="resourceName" name="resourceName" class="text {text:'请输入关键字'}" size="12" /></div>
            <div class="search-item">
                资源类型
                <div class="select {width:120}">
                    <select id="resourceType" name="resourceType">
                        <option value="">全部</option>
                        <option value="1">电视节目</option>
                        <option value="2">电视硬广</option>
                        <option value="3">网络长视频 </option>
                        <option value="4">网络短视频</option>
                        <option value="5">APP</option>
                    </select>
                </div>
            </div>
            <div class="search-item">
                显示状态
                <div class="select">
                    <select id="status" name="status">
                        <option value="">全部</option>
                        <option value="2">已显示</option>
                        <option value="0">已隐藏</option>
                    </select>
                </div>
            </div>
            <div class="search-item">
                <a href="javascript:void(0);" onclick="getList(1)" class="btn-radius">搜 索</a>
            </div>
        </div>
        </form>
        <div class="rFloat buttons">
            <c:if test="${funcMap['resource_recom_add'] eq 1}">
                <a href="javascript:platformModfiy('add','资源推荐');" class="btn">+新增</a>
            </c:if>
        </div>
        已选 <span id="checkCount" class="orange">0</span> 条&nbsp;&nbsp;
        <c:if test="${funcMap['resource_recom_all_delete'] eq 1}">
            <a href="javascript:void(0);" onclick="delRecordBatch()" class="btn del">批量删除</a>
        </c:if>
        <table class="table mTop10" cellpadding="0" cellspacing="0">
            <thead>
                <tr>
                    <th width="44"><input type="checkbox" class="checkbox checkbox-white {click:checkAll}" name="all" value="" /></th>
                    <th>资源名称</th>
                    <th width="98" class="nop">资源类型</th>
                    <th>播出频道</th>
                    <th width="98" class="nop">推荐图</th>
                    <th>推荐类型</th>
                    <th>排序号</th>
                    <th>显示状态</th>
                    <th width="98">操作</th>
                </tr>
            </thead>
            <tbody id="list"></tbody>
        </table>
        <div class="mTop20">
            <div id="page" class="rFloat"></div>
            累计 <span id="count" class="blue">0</span> 条
        </div>
        <input type="hidden" id="curPage" >
    </div>
    <div class="clear"></div>
</div>
<iframe name="hframe" style="display: none;"></iframe>
<%@ include file="../common/footer.jsp"%>
<script type="text/javascript" src="${staticPath}webupload/webuploader.min.js"></script>
<script type="text/javascript" src="${staticPath}webupload/upload.js"></script>
<script type="text/javascript" src="${staticPath}js/advertise/resource_recom.js"></script>
<script type="text/javascript">
var update_flag = "${funcMap['resource_recom_update']}",delete_flag = "${funcMap['resource_recom_delete']}";
var update_status_flag = "${funcMap['resource_recom_set_status']}";
$(function(){
    getList(1);
    $.resetText();
    $(".text").input();
    $(".select").uiSelect();
    $.checkbox();
});
</script>
</body>
</html>