<%@ 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="type" name="type" value="${map.type}" />
    <ul class="ulFrmTwo width230 flex clearfix2">
    	<c:if test="${map.type==0}">
	    	<li>
	            <span class="label labelW80 labelRight"><em>*</em>&nbsp;产品</span>
	            <select name="productName" id="productName">
	                <option value="${map.productName}">${map.productName}</option>
	            </select>
	        </li>
	        <li>
	            <span class="label labelW80 labelRight"><em></em>&nbsp;品牌</span>
	            <select name="brandName" id="brandName">
	                <option value="${map.brandName}">${map.brandName}</option>
	                <option value="">下拉选择</option>              
	            </select>
	        </li>
        </c:if>
        <c:if test="${map.type==1}">
	    	<li>
	            <span class="label labelW80 labelRight"><em>*</em>&nbsp;栏目</span>
	            <select name="productName" id="productName">
	                <option value="${map.productName}">${map.productName}</option>
	            </select>
	        </li>
	        <li>
	            <span class="label labelW80 labelRight"><em></em>&nbsp;内容</span>              
	            <select name="brandName" id="brandName">
	                <option value="${map.brandName}">${map.brandName}</option> 
	                <option value="">下拉选择</option>             
	            </select>
	        </li>
        </c:if>
        <li>
            <span class="label labelW80 labelRight"><em></em>&nbsp;广告主</span>
            <input type="text" name="advMaster" class="text" value="${map.advMaster}" placeholder="请输入广告主" size="12" maxlength="20"/>
        </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="showEnv" id="showEnv">
                <option value="">下拉选择</option>
                <option value="0" <c:if test="${map.showEnv == 0}"> selected="selected"</c:if>>新闻</option>
                <option value="1" <c:if test="${map.showEnv == 1}"> selected="selected"</c:if>>电视剧</option>
                <option value="2" <c:if test="${map.showEnv == 2}"> selected="selected"</c:if>>广告片</option>
                <option value="3" <c:if test="${map.showEnv == 3}"> selected="selected"</c:if>>栏目</option>
                <option value="4" <c:if test="${map.showEnv == 4}"> selected="selected"</c:if>>宣传片</option>
                <option value="5" <c:if test="${map.showEnv == 5}"> selected="selected"</c:if>>小品</option>
                <option value="6" <c:if test="${map.showEnv == 6}"> selected="selected"</c:if>>电影</option>
                <option value="7" <c:if test="${map.showEnv == 7}"> selected="selected"</c:if>>天气预报</option>
                <option value="8" <c:if test="${map.showEnv == 8}"> selected="selected"</c:if>>动画片</option>
                <option value="9" <c:if test="${map.showEnv == 9}"> selected="selected"</c:if>>记录片</option>
            </select>
        </li>
        <li>
            <div class="tvNameSelect" <c:choose><c:when test="${map.showEnv == 1}"></c:when><c:otherwise>style="display:none"</c:otherwise></c:choose> >	
	            <span class="label labelW80 labelRight "><em>*</em>&nbsp;播出节目</span>        
	            <select name="tvName" id="tvName">
	                <c:choose><c:when test="${map.showEnv == 1}"><option value="${map.tvName}">${map.tvName}</option></c:when><c:otherwise><option value=""></option></c:otherwise></c:choose> 
	            </select>
            </div>
            <div class="tvNameInput" <c:choose><c:when test="${map.showEnv != 1}"></c:when><c:otherwise>style="display:none"</c:otherwise></c:choose> >	
                <span class="label labelW80 labelRight "><em>*</em>&nbsp;播出节目</span>                 
	            <input type="text" name="tvNameInput" id="tvNameInput" class="text"  value="<c:choose><c:when test="${map.showEnv != 1}">${map.tvName}</c:when><c:otherwise></c:otherwise></c:choose>"
	            placeholder="请输入播出节目"  size="12" maxlength="20"/>
            </div>        
        </li>
        <li>
            <span class="label labelW80 labelRight"><em>*</em>&nbsp;播出日期</span>
            <input type="text" name="showDate" id="showDate" class="text" placeholder="请输入播出日期"  size="12" value="${map.showDate}"/>
        </li>
        <li>
            <span class="label labelW80 labelRight"><em>*</em>&nbsp;播出时间</span>
            <input type="text" name="showTime" id="showTime" class="text" placeholder="请输入播出时间"  size="12" value="${map.showTime}"/>
        </li>
        <li>
            <span class="label labelW80 labelRight"><em>*</em>&nbsp;时长(分)</span>
            <input type="text" name="showDuration" class="text" value="${map.showDuration}"  onkeyup="isNumber(this)" placeholder="请输入时长(分)"  maxlength="6" size="12"/>
        </li>
        <li>
            <span class="label labelW80 labelRight"><em></em>&nbsp;刊例价格(万)</span>
            <input type="text" name="price" class="text" value="${map.price}" onkeyup="isNumber(this)"  placeholder="刊例价格(万)"  size="12" maxlength="8"/>
        </li>
        <li>
            <span class="label labelW80 labelRight"><em></em>&nbsp;联系方式</span>
            <input type="text" name="phone" class="text" value="${map.phone}" size="12" placeholder="请输入联系方式"  maxlength="20"/>
        </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/adspecial/adspecial.js"></script>
<script type="text/javascript" src="${staticPath}js/common/jquery.datetimepicker.js"></script>
<script type="text/javascript">
$(function(){
    $.resetText();
    $(".text").input();
    $(".select").uiSelect();
    $("#showDate").datetimepicker();
    $("#showTime").datetimepicker({format: 'H:i', timepicker: true, datepicker: false, step:1});
});
</script>
</body>
</html>