<!--#include file="Conn.asp"--><%Checklogin()%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>管理区域</title>
<link rel="stylesheet" href="css/common.css" type="text/css" />
<link rel="stylesheet" href="css/alert.css" type="text/css" />
<script language="javascript" src="system/js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="js/js.js"></script>
</head>
<body class="clear">
<!--#include file="panel.asp"-->
<div id="man_zone">
	<%Set Rs=Server.CreateObject("ADODB.RecordSet")
		  Rs.Open "select id,em_user from employee where em_role="&Session("employee_id"),conn,1,1
		  Do while not Rs.bof and not Rs.eof
	%>
	
	
	<div class="tagclound">
		<h1 class="tagCloundHead2"><%=Rs("em_user")%>的客户画像:</h1>
		<div class="tagArea">
	<%Set Rs1=Server.CreateObject("ADODB.RecordSet")
		  Rs1.Open "Select tagName,count(id) as count from tagTable where employeeId="&Rs("id")&" GROUP BY tagName",conn,1,1
		  Do while Not Rs1.Bof And Not Rs1.eof 
	%>
		<a href="subTag.asp?employeeId=<%=Rs("id")%>&tagName=<%=Server.urlEnCode(Rs1("tagName"))%>" ><%=Rs1("tagName")%>(<%=Rs1("count")%>)</a>
	<%    Rs1.moveNext
		  loop
	%>
		</div>
	<%Rs1.Close:Set Rs1=Nothing%>
	</div>
	<%
		Rs.moveNext
		loop
		Rs.close
		Set Rs=Nothing
		Conn.Close
		Set Conn=Nothing
	%>
</div>
</body>
</html>