<%@ 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  onkeydown="keyLogin()">
<%@ 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">
            <div class="search-item">电视台名称&nbsp;&nbsp;<input type="text" id="platformName" name="platformName" class="text {text:'请输入关键字'}" size="12" /></div>
            <div class="search-item">
                类型
                <div class="select {width:120}">
                    <select id="type" name="type">
                        <option value="">全部</option>
                        <option value="1">剧编及备播</option>
                        <option value="2">剧排进程</option>
                        <option value="3">节目编排</option>
                    </select>
                </div>
            </div>
            <div class="search-item">
                <a href="javascript:void(0);" id="programScheduleSearch" onclick="getList(1)" class="btn-radius">搜 索</a>
            </div>
        </div>
        </form>
        <div class="rFloat buttons">
            <c:if test="${funcMap['program_schedule_add'] eq 1}">
                <a href="javascript:platformModfiy('add','节目编排信息');" class="btn">+新增</a>
            </c:if>
            <a href="${staticPath}excel/节目编排模板.xlsx" class="btn">下载模板</a>
			<c:if test="${funcMap['program_schedule_import_excel'] eq 1}">
			    <span class="btn upfile">
			    <form id="fileForm" action="import_excel_for_program_schedule.do" method="post" enctype="multipart/form-data" target="hframe">
			        <span class="webuploader-pick">导入表</span>
			        <input type="file" name="excelfile" id="excelfile" onchange="importExcel()"; />
			        <input type="hidden" id="isSure" name="isSure" />
			    </form>
			    </span>
			</c:if>
			<c:if test="${funcMap['program_schedule_import_pic'] eq 1}">
			    <div id="picker" class="btn"></div>
			</c:if>
        </div>
        已选 <span id="checkCount" class="orange">0</span> 条&nbsp;&nbsp;
        <c:if test="${funcMap['program_schedule_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><input type="checkbox" class="checkbox checkbox-white {click:checkAll}" name="all" value="" /></th>
                    <th>电视台名称</th>
                    <th>更新日期</th>
                    <th>类型</th>
                    <th>编排图</th>
                    <th>上传时间</th>
                    <th>排序号</th>
                    <th>关联文件</th>
                    <th>上传人</th>
                    <th>操作</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/program_schedule.js"></script>
<script type="text/javascript">
	var update_flag = "${funcMap['program_schedule_update']}",delete_flag = "${funcMap['program_schedule_delete']}";
	$(function(){
	    $.resetText();
	    $(".text").input();
	    $(".select").uiSelect();
	    $.checkbox();
	    getList(1);
	    uploadRar('picker', '导入图片', 2, true, null, null,true,"myCallbcak");
	})
	function myCallbcak(url){
	    alert("导入完成。", 1, function(){
	        location.reload();
	    });
	}
	function keyLogin(){
		if (event.keyCode==13) {  //回车键的键值为13
			$("#programScheduleSearch").click();  //调用搜索按钮的登录事件
		}
	}
</script>
</body>
</html>