<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%@ include file="../common/common.jsp"%>
<title>品牌植入方式</title>
<script type="text/javascript">
function showimg(o){
	var html = '<img src='+o.src+' width="400px" height="300px" />';
	top.$.openWindow(" ",html,420,300,false);
}
</script>
</head>
<body>
<div class="open-content open-pad" style="height: 400px; overflow: hidden; overflow-y: auto;">
    <c:if test="${!empty list}">
        <c:forEach items="${list}" var="item">
        <div class="place-title"><span>${typeName}：${item.modeName}</span></div>
	    <ul class="ulFrm mTop10">
	        <li>
	            <span class="label labelW80">
                    <c:if test="typeNum != 2">创意截图</c:if>
                    <c:if test="typeNum == 2">植入截图</c:if>
	            </span>
	            <ul class="place-img clearfix2 inline">
                    <c:set value="${ fn:split(item.imgUrls, ';') }" var="imgArr" />
                    <c:forEach items="${imgArr}" var="imgUrl">
                        <li><img src="${imgUrl}" width="98" height="58" valign="middle" onclick="showimg(this)" onerror="javascript:this.src='static/img/noimg.jpg';" /></li>
                    </c:forEach>
	            </ul>
	        </li>
	        <c:if test="typeNum == 1">
	        <li>
	            <span class="label labelW80 alignTop">广&nbsp;告&nbsp;&nbsp;语</span>
	            <span class="label">${item.slogan}</span>
	        </li>
	        </c:if>
	        <li>
	            <span class="label labelW80">频&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;次</span>
	            <span class="label">${item.frequency}次</span>
	        </li>
	        <li>
	            <span class="label labelW80">时&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;长</span>
	            <span class="label">${item.length}秒</span>
	        </li>
	    </ul>
	    </c:forEach>
    </c:if>
    <c:if test="${empty list}">
        <div class="place-title"><span>暂无植入方式</span></div>
    </c:if>
</div>
<div class="open-fixed-buttons">
    <a href="javascript:top.$.closeWindow();" class="btn-radius">关闭</a>
</div>
</body>
</html>