<%@ 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>
<div class="open-content open-pad">
    <form id="dataForm" method="post">
    <input type="hidden" id="id" name="id" value="${map.id}" />
    <ul class="ulFrmTwo width166 ulFrm" style="padding-top: 30px;">
        <li>
            <span class="label labelW80 labelRight"><em>*</em>&nbsp;剧名：</span>
            <select name="name" id="name">
                <option value="${map.name}">${map.name}</option>
            </select>
        </li>
        <li>
            <span class="label labelW80 labelRight"><em>*</em>&nbsp;集数：</span>
            <input type="text" name="mediaNum" class="text {text:'请输入整数数字'}" value="${map.mediaNum}" />
        </li>
        <li>
            <span class="label labelW80 labelRight"><em>*</em>&nbsp;媒体：</span>
            <select name="mediaName" id="mediaName">
                <option value="${map.mediaName}">${map.mediaName}</option>
            </select>
        </li>
        <li>
            <span class="label labelW80 labelRight"><em>*</em>&nbsp;体裁：</span>
            <select name="firstTheme" id="firstTheme" disabled="disabled">
                <option value="${map.firstTheme}">${map.firstTheme}</option>
            </select>
        </li>
        <li>
            <span class="label labelW80 labelRight"><em>*</em>&nbsp;细分体裁：</span>
            <select name="secondTheme" id="secondTheme" disabled="disabled">
                <option value="${map.secondTheme}">${map.secondTheme}</option>
            </select>
        </li>
        <li>
            <span class="label labelW80 labelRight">进线预估：</span>
            <input type="text" name="jinxian" class="text {text:'请输入'}" value="${map.jinxian}" onkeyup="isNumber(this)" maxlength="7" /> <span class="label">元</span>
        </li>
        <li>
            <span class="label labelW80 labelRight"><em>*</em>&nbsp;播出日期：</span>
            <input type="text" name="showDate" id="showDate" class="text {text:'播出日期'}" size="14" value="${map.showDate}"/>
        </li>
        <li>
            <span class="label labelW80 labelRight"><em>*</em>&nbsp;播出时间：</span>
            <input type="text" name="showTime" id="showTime" class="text {text:'播出时间'}" size="14" value="${map.showTime}"/>
        </li>
        <li>
            <span class="label labelW80 labelRight">选择类型：</span>
            <input type="radio" class="radio {click:switchType}" name="type" value="0" <c:if test="${not empty map.type && map.type == 0}">checked="checked"</c:if> /><label>产品</label>
            <input type="radio" class="radio {click:switchType}" name="type" value="1" <c:if test="${map.type == 1}">checked="checked"</c:if> /><label>栏目</label>
        </li>
        <li>
	        <span class="label labelW80 labelRight">产品/栏目：</span>
            <select name="typeName" id="typeName">
                <option value="${map.typeName}">${map.typeName}</option>
            </select>
	    </li>
        <li>
            <span class="label labelW80 labelRight">时长：</span>
            <input type="text" name="duration" class="text {text:'请输入'}" value="${map.duration}" onkeyup="isNumber(this)" maxlength="8" /> <span class="label">分</span>
        </li>
    </ul>
    </form>
</div>
<div class="open-fixed-buttons">
    <a href="javascript:save();" class="btn-radius">提交</a>
    <a href="javascript:top.$.closeWindow();" class="btn-radius cancel">取消</a>
</div>
<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">
$(function(){
    $.resetText();
    $(".text").input();
    $(".select").uiSelect();
    $.radio();
    $("#showDate").datetimepicker();
    $("#showTime").datetimepicker({format: 'H:i', timepicker: true, datepicker: false, step:1 });
    var mapType = '${map.type}', mapTypeName = '${map.typeName}';
    if (!isEmpty(mapType)){
        initSelectForTypeName(mapType, mapTypeName);
    }
});
</script>
</body>
</html>