<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="../common/common.jsp" %>
<%@ taglib prefix="fn" uri="/WEB-INF/fn.tld"%>
<title>品牌植入分析</title>
<script type="text/javascript">
$(function(){
	$.resetText();
	$(".text").input();
	$.checkbox();
	$(".table").hoverTable(true, true);
	$(".select").uiSelect();
	$("#start_time, #end_time").datetimepicker();
	changeDateTab(7);
	$(".tab-buttons").tabMenu({isAdd:false,children:".button",removeClass:"active",fun:function(obj){
		changeBenchTab($(obj).data("tab"));
	}});
	$("#tabMenu").tabMenu({removeClass:"btn-disabled",fun:function(obj){
		changeDateTab(obj.dataset.day);
	}});
	changeTagName();
});
</script>
<link rel="stylesheet" type="text/css" href="${staticPath}css/jquery.datetimepicker.css" />
<script type="text/javascript" src="${staticPath}js/common/jquery.datetimepicker.js"></script>
<script type="text/javascript" src="${staticPath}js/analysis/benchmark.js"></script>
<script type="text/javascript" src="${staticPath}js/echarts/esl.js"></script>
<script type="text/javascript" src="${staticPath}js/echarts/chartHead.js"></script>
<script type="text/javascript" src="${staticPath}js/echart/pie.js"></script>
</head>
<body>
<%@ include file="../common/head.jsp" %>
<div class="screen main">
	<div class="radius-tabs">
		<span class="button active">品牌对标分析</span>
	</div>
	<div class="mTop20">
		<span class="orange">对标品牌</span>&nbsp;&nbsp;&nbsp;&nbsp;
		<ul class="ben-item inline">
			<c:forEach items="${brandList}" var="brand">
				<li>
					<a href="javascript:void(0);" onclick="delBenId(this);" data-brand='${brand.brand}' class="del">x</a>
					<div class="ben-img"><span><img src="${brand.brand_img_url}" width="100" height="100" onerror="javascript:this.src='static/img/noimg.jpg';"/></span></div>
					<div class="ben-title" name="ben-title">《${brand.brand}》</div>
				</li>
			</c:forEach>
			<c:if test="${fn:length(brandList) < 2}">
				<li id="addBen">
					<a href="javascript:addBenId();" class="ben-img"><span>+添加</span></a>
					<div class="ben-title">&nbsp;</div>
				</li>
			</c:if>
		</ul>
	</div>
	<div class="mTop20">
		<div class="rFloat">节目类型&nbsp;&nbsp;
			<div class="select {onchange:changeBenchType}">
				<select id="benchType">
					<option value="1">综艺</option>
					<option value="2">栏目</option>
					<option value="3">电视剧</option>
					<option value="4">电影</option>
				</select>
			</div>
		</div>
		<span class="orange">对标时间</span>&nbsp;&nbsp;&nbsp;&nbsp;
		<div class="buttons inline" id="tabMenu">
			<span class="btn btn-disabled" data-day="0">全部</span>
			<span class="btn" data-day="7">最近一周</span>
			<span class="btn btn-disabled" data-day="90">最近三月</span>
			<span class="btn btn-disabled" data-day="365">最近一年</span>
		</div>
		<span class="pLeft20"><input type="text" name="start_time" id="start_time" class="text {text:'开始时间'}" size="10" /> - <input type="text" name="end_time" id="end_time" class="text {text:'结束时间'}" size="10" /></span>
	</div>
	<ul class="tab-buttons mTop20">
		<li class="button button-33 active" data-tab="1">软广结构</li>
		<li class="button button-33" data-tab="2">软广效果</li>
		<li class="button button-33" data-tab="3">比较分析</li>
	</ul>
	<div class="box-pd">
		<div class="hd-title">软广频次</div>
		<div class="box-sub-pad">
			<div class="box-row">
				<div class="row-50">
					<div class="sub-title"><span name='brand_1'></span> <span name='title_1'></span> </div>
					<div class="padContent">
						<div id="chart_1" style="height:300px;"></div>
					</div>
				</div>
				<div class="row-50">
					<div class="sub-title"><span name='brand_2'></span> <span name='title_2'></span> </div>
					<div class="padContent">
						<div id="chart_2" style="height:300px;"></div>
					</div>
				</div>
			</div>
		</div>

		<div class="hd-title mTop20">软广时长</div>
		<div class="box-sub-pad">
			<div class="box-row">
				<div class="row-50">
					<div class="sub-title"><span name='brand_1'></span> <span name='title_3'></span></div>
					<div class="padContent">
						<div id="chart_3" style="height:300px;"></div>
					</div>
				</div>
				<div class="row-50">
					<div class="sub-title"><span name='brand_2'></span> <span name='title_4'></span></div>
					<div class="padContent">
						<div id="chart_4" style="height:300px;"></div>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
<%@ include file="../common/footer.jsp" %>
</body>
</html>