<%@ 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">
<link rel="stylesheet" type="text/css" href="${staticPath}/css/jquery.datetimepicker.css" />
<body>
<%@ include file="../common/head.jsp"%>
<div class="screen main">
    <%@ include file="../common/left.jsp" %>
    <div class="main-content">
        <div class="main-title">剧场数据管理</div>
        <form id="dataForm" name="dataForm" class="search-form" action="export.do" method="post">
        <div class="search-group">
            <div class="search-item"><div class="label">电视剧名：</div><input type="text" id="name" name="name" class="text {text:'请输入关键字'}" size="11" /></div>
            <div class="search-item"><div class="label">体裁：</div>
				<select id ="firstTheme" name="firstTheme">
					<option value=""></option>
				</select>
            </div>
            <div class="search-item">
                <div class="label">细分体裁：</div>
                <select id="secondTheme" name="secondTheme">
                    <option value=""></option>
                </select>
            </div>
            <div class="search-item">
                <div class="label">类型：</div>
                <div class="select {width:120}">
                    <select id="type" name="type">
                        <option value="">请选择类型</option>
                        <option value="0">产品</option>
                        <option value="1">栏目</option>
                    </select>
                </div>
            </div>
        </div>
        <div class="search-group">
            <div class="search-item">
                <div class="label">媒体等级：</div>
                <div class="select {width:120}">
                    <select id="mediaRank" name="mediaRank">
                        <option value="">请选择媒体等级</option>
                        <option value="0">央视频道</option>
                        <option value="1">一线卫视</option>
                        <option value="2">二线卫视</option>
                        <option value="3">三线卫视</option>
                        <option value="4">四线卫视</option>
                        <option value="5">五线卫视</option>
                        <option value="6">六线卫视</option>
                        <option value="7">七线卫视</option>
                        <option value="8">卡通频道</option>
                    </select>
                </div>
            </div>
            <div class="search-item">
                <div class="label">播出媒体：</div>
                <select id="mediaName" name="mediaName">
                    <option value=""></option>
                </select>
            </div>
            <div class="search-item">
                <div class="label">集数：</div>
                <div class="twoContent">
	                <input type="text" name="mediaNumMin" id="mediaNumMin" class="text {text:'最小集数'}"  size="14" />
	                <span>-</span>
	                <input type="text" name="mediaNumMax" id="mediaNumMax" class="text {text:'最大集数'}"  size="14" />
                </div>
            </div>
            <div class="search-item"><div class="label">产品/栏目名：</div><input type="text" id="typeName" name="typeName" class="text {text:'请输入关键字'}" size="11" /></div>
        </div>
        <div class="search-group">
            <div class="search-item">
                <div class="label">播出日期：</div>
                <div class="twoContent">
                    <input type="text" name="showDateStart" id="showDateStart" class="text {text:'开始日期'}" size="10" />
                    <span>-</span>
                    <input type="text" name="showDateEnd" id="showDateEnd" class="text {text:'结束日期'}" size="10" />
                </div>
            </div>
            <div class="search-item">
                <div class="label">播出时间：</div>
                <div class="twoContent">
	                <input type="text" name="showTimeStart" id="showTimeStart" class="text {text:'开始时间'}"  size="3"/>
	                <span>-</span>
	                <input type="text" name="showTimeEnd" id="showTimeEnd" class="text {text:'结束时间'}"  size="3"/>
                </div>
            </div>
            <div class="search-item">
                <div class="label">进线预估：</div>
                <div class="twoContent">
	                <input type="text" name="jinxianMin" id="jinxianMin" class="text {text:'最小'}"  size="5" />
	                <span>-</span>
	                <input type="text" name="jinxianMax" id="jinxianMax" class="text {text:'最大'}"  size="5" />
                </div>
            </div>
            <div class="search-item">
                <a href="javascript:void(0);" onclick="getList(1)" class="search-btn">搜 索</a>
            </div>
        </div>
        </form>
        <div class="table-content">
            <div class="rFloat buttons">
                <c:if test="${funcMap['adtheatre_add'] eq 1}">
                    <a href="javascript:platformModfiy('add','剧场信息');" class="btn">+新增</a>
                </c:if>
                <c:if test="${funcMap['adtheatre_import_template'] eq 1}">
                    <a href="${staticPath}excel/剧场数据导入模板.xlsx" class="btn">下载模板</a>
                </c:if>
                <c:if test="${funcMap['adtheatre_importExcel'] eq 1}">
                    <span class="btn upfile">
                    <form id="fileForm" action="import_excel.do" method="post" enctype="multipart/form-data" target="hframe">
                        <span class="webuploader-pick">导入表</span>
                        <input type="file" name="excelfile" id="excelfile" onchange="importExcel()"; />
                    </form>
                    </span>
                </c:if>
                <c:if test="${funcMap['adtheatre_export'] eq 1}">
                    <a href="javascript:document.dataForm.submit();" class="btn">导出</a>
                </c:if>
            </div>
            已选 <span id="checkCount" class="orange">0</span> 条&nbsp;&nbsp;
            <c:if test="${funcMap['adtheatre_batchDelete'] 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 class="nop">剧名</th>
                        <th class="nop">媒体</th>
                        <th class="nop">集数</th>
                        <th class="nop">体裁</th>
                        <th class="nop">细分体裁</th>
                        <th class="nop">播出日期</th>
                        <th class="nop">播出时间</th>
                        <th class="nop">类型</th>
                        <th class="nop">产品/栏目</th>
                        <th class="nop">时长（分）</th>
                        <th class="nop">进线预估（元）</th>
                        <th class="nop">节目数据</th>
                        <th width="88">操作</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>
        </div>
    </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/common/jquery.datetimepicker.js"></script>
<script type="text/javascript" src="${staticPath}js/adtheatre/adtheatre.js"></script>
<script type="text/javascript">
var update_flag = "${funcMap['adtheatre_update']}",delete_flag = "${funcMap['adtheatre_delete']}";
var data_query = "${funcMap['adtheatre_data_query']}";
var data_update = "${funcMap['adtheatre_data_update']}";
$(function(){
    $.resetText();
    $(".text").input();
    $(".select").uiSelect();
    $.checkbox();
    getList(1);
    $("#showDateStart, #showDateEnd").datetimepicker();
    $("#showTimeStart, #showTimeEnd").datetimepicker({format: 'H:i', timepicker: true, datepicker: false, step:1 });
})
function myCallbcak(url){
    alert("导入完成。", 1, function(){
        getList(1);
    });
}
</script>
</body>
</html>