<%@ 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>
<div class="open-content open-pad">
    <form id="dataForm" method="post">
    <ul class="ulFrm">
        <li>
            <span class="label labelW80 labelRight"><em>*</em>&nbsp;媒体名称</span>
            <input type="text" name="platformName" class="text {text:'请填写媒体名称。'}" size="30" value="${map.platformName}" />
        </li>
        <li>
            <span class="label labelW80 labelRight alignTop"><em>*</em>&nbsp;媒体<br />LOGO</span>
            <div class="webuploader">
	            <img id="imgUrl" src="${map.imgUrl}"<c:if test="${empty(map.imgUrl)}"> class="contentTxt"</c:if> />
	            <div id="picker" class="jia"></div>
            </div>
        </li>
        <li>
            <span class="label labelW80 labelRight"><em>*</em>&nbsp;媒体类型</span>
            <input type="radio" class="radio" name="type" value="1" <c:if test="${empty map.type || map.type == 1}">checked="checked"</c:if> /><label>电视频道</label>&nbsp;&nbsp;&nbsp;&nbsp;
            <input type="radio" class="radio" name="type" value="2" <c:if test="${map.type == 2}">checked="checked"</c:if> /><label>视频平台</label>&nbsp;&nbsp;&nbsp;&nbsp;
            <input type="radio" class="radio" name="type" value="3" <c:if test="${map.type == 3}">checked="checked"</c:if> /><label>其他</label>
        </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/advertise/platform.js"></script>
<script type="text/javascript">
$(function(){
    $.resetText();
    $(".text").input();
    $(".select").uiSelect();
    $.radio();
    /*上传单张图片按钮初始化*/
    uploadImg('picker', '+', 1, true, false, null,"myCallbcak");
});
function myCallbcak(url){
	$("#imgUrl").show();
    $("#imgUrl").attr("src",url);
}
</script>
</body>
</html>