<!--#include file="../Conn.asp" -->


<%if session("admin")="" then
response.Redirect "login.asp"
end if
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>泰华地产后台管理</title>
<style type="text/css">
<!--
body,td,th {
	font-family: 宋体;
	font-size: 12px;
}
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	overflow:hidden;
	
}
a:link {
	color: #135294;
	text-decoration: none;
}
a:visited {
	text-decoration: none;
	color: #135294;
}
a:hover {
	text-decoration: underline;
	color: #FF0000;
}
a:active {
	text-decoration: none;
	color: #135294;
}
.top_table {
	background-image: url(skins/images/top_bg.gif);
	height: 41px;
	width: 100%;
}
.top_table_leftbg {
	background-image: url(skins/images/top_table_leftbg.gif);
	background-repeat: repeat-y;
	height: 41px;
	width: 100%;
}
.system_logo {
	text-align: left;
	float: left;
	width: 180px;
}
div.menu {
	text-align: left;
	margin: 0px;
	height: 23px;
	padding-top: 18px;
}
div.menu ul {
	margin: 0px;
	padding: 0px;
	list-style-type: none;
	display: inline;
}
div.menu ul li {
	font-family: "宋体";
	font-size: 12px;
	line-height: 20px;
	background-image: url(skins/images/menu01.gif);
	float: left;
	height: 23px;
	width: auto;
	margin-left: 1px;
	padding-top: 0px;
	padding-right: 0px;
	padding-bottom: 0px;
	padding-left: 10px;
	position:relative;
}
div.menu ul li a {
	color: #FFFFFF;
	text-decoration: none;
}
div.menu ul li a:hover{
	color:#FFFF77;
	text-decoration: none;
}
div.menu ul li .menu_div {
	font-size: 10px;
	background-image: url(skins/images/menu01_right.gif);
	height: 23px;
	width: 3px;
	display: inline;
}
div.menu_childs {
	background-color: #F5FDFF;
	white-space: nowrap;
	border: 1px solid #185790;
	display:none;
	z-index: 100;
	left: 0px;
	top: 22px;
	width: 150px;
	position:absolute;
}
div.menu_childs ul li{
	float: left;
	width: 150px;
	line-height: 15px;
	background: none;
	padding: 0px;
}
div.menu_childs ul li a {
	color:#135294;
	text-decoration: none;
	width: 148px;
	height: 20px;
	line-height: 20px;
	padding-left: 15px;
}
div.menu_childs ul li a:hover{
	color:#FFFFFF;
	background: #337ABB;
	text-decoration: none;
	width: 148px;
	display: block;
}
.top_table_2 {
	background-color: #337ABB;
	height: 23px;
	width: 100%;
}
.main_left {
	width: 180px;
	background-image: url(skins/images/left_bg.gif);
}
.main_left_top {
	background-image: url(skins/images/left_menu_bg.gif);
}
.main_left_title {
	font-size: 14px;
	font-weight: bold;
	color: #FFFFFF;
	text-align: left;
	text-indent: 15px;
}
.left_iframe {
	height: 92%;
	width: 180px;
	visibility: inherit;
}
.main_iframe {
	height: 92%;
	width: 100%;
	visibility: inherit;
}
-->
</style>
<script language = "javaScript" src = "inc/admin.js" type="text/javascript"></script>
<SCRIPT>
var status = 1;
var Menus = new DvMenuCls;
document.onclick=Menus.Clear;
function switchSysBar(){
     if (1 == window.status){
		  window.status = 0;
          switchPoint.innerHTML = '<img src="skins/images/left.gif" title="关闭/打开左栏">';
          document.all("leftmain").style.display="none"
     }
     else{
		  window.status = 1;
          switchPoint.innerHTML = '<img src="skins/images/right.gif" title="关闭/打开左栏">';
          document.all("leftmain").style.display=""
     }
}
</SCRIPT>
</head>

<body>
<div class="top_table">
	<div class="top_table_leftbg">
		<div class="system_logo"><img src="skins/images/gl.gif" border="0" / ></div>
		<div class="menu">
			<ul>
<%
Dim TempStr,Menu_1,Menu_2

TempStr = "<a style=""cursor:hand;"">房源管理</a>"

TempStr = TempStr & "@@<a href=""admintwohouse.asp"" target=""frmright"">房源管理</a>"




TempStr = TempStr & "||<a style=""cursor:hand;"">经济人管理</a>"
TempStr = TempStr & "@@<a href=""addjjren.asp"" target=""frmright"">添加经济人</a>"
TempStr = TempStr & "@@<a href=""jjren.asp"" target=""frmright"">经济人管理</a>"

TempStr = TempStr & "@@<a href=""member.asp"" target=""frmright"">注册会员管理</a>"


TempStr = TempStr & "||<a style=""cursor:hand;"">资讯管理</a>"
TempStr = TempStr & "@@<a href=""addnews.asp"" target=""frmright"">资讯信息添加</a>"
TempStr = TempStr & "@@<a href=""editnews.asp"" target=""frmright"">资讯信息管理</a>"
TempStr = TempStr & "@@<a href=""News/NewsType.asp"" target=""frmright"">资讯分类管理</a>"

TempStr = TempStr & "||<a style=""cursor:hand;"">分店管理</a>"
TempStr = TempStr & "@@<a href=""addfendian.asp"" target=""frmright"">添加分店</a>"
TempStr = TempStr & "@@<a href=""fdadmin.asp"" target=""frmright"">分店管理</a>"




TempStr = TempStr & "||<a style=""cursor:hand;"">管理员管理</a>"
TempStr = TempStr & "@@<a href=""manageadmin.asp"" target=""frmright"">管理员添加</a>"
TempStr = TempStr & "@@<a href=""manageadmin.asp"" target=""frmright"">管理员管理</a>"
TempStr = TempStr & "@@<a href=""manageadmin.asp"" target=""frmright"">修改登录密码</a>"



Menu_1 = Split(TempStr , "||")
For i = 0 To Ubound(Menu_1)
	Menu_2 = Split(Menu_1(i) , "@@")
	
%>
				<li id="menu_<%=i%>" onMouseOver="Menus.Show(this,0)" onMouseOut="Menus.Hide(0);" onClick="getleftbar(this);">
					<table border="0" cellspacing="0" cellpadding="0">
						<tr>
							<td height="23" valign="bottom"><%=Menu_2(0)%></td>
							<td width="6" height="23"></td>
							<td width="3" height="23"><img src="skins/images/menu01_right.gif" width="3" height="23" /></td>
						</tr>
					</table>
				<div class="menu_childs">
					<ul>
<%
	For j = 1 To Ubound(Menu_2)
		Response.Write "<li>"& Menu_2(j) &"</li>"
	Next
%>
					</ul>
				</div>
				</li>
<%
Next
%>
			</ul>
		</div>
	</div>
</div>
<div class="top_table_2"></div>
<table width="100%" height="90%" border="0" cellpadding="0" cellspacing="0" bgcolor="#337ABB">
	<tr>
		<td valign="top" class="main_left" id="leftmain" name="leftmain"><table width="100%" border="0" cellpadding="0" cellspacing="0" class="main_left_top">
			<tr>
				<td height="32" class="main_left_title" id="leftmenu_title">常用快捷功能</td>
			</tr>
		</table>
		<iframe frameborder="0" id="frmleft" name="frmleft" src="left.htm" class="left_iframe" allowtransparency="true" scrolling="no"></iframe>
		</td>
		<td width="10" id="switchPoint" style="cursor:hand;" onClick="switchSysBar();"><img src="skins/images/right.gif" width="9" height="41" title="关闭/打开左栏" border="0" /></td>
		<td width="100%" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
			<tr>
				<td width="20" height="32" valign="top" background="skins/images/bg2.gif"><img src="skins/images/teble_top_left.gif" width="8" height="8"></td>
				<td height="32" background="skins/images/bg2.gif">&nbsp;</td>
				<td height="32" align="right" background="skins/images/bg2.gif" style="color:#135294;">用户名：<font color=red><%=session("Admin")%></font>(<font color=red><%
		  select case session("Flag")
		  	case 1
				response.write "系统CEO-站长"
		  	case 2
				response.write "管理员"
			case 3
				response.write "业务员"			
		  end select
		  %> </font>) | <a href="Index.asp">后台首页</a> | <a href="../Index.asp" target="_blank">网站首页</a> | <a href="../Logout.asp">退出</a> </td>
				<td width="20" height="32" align="right" valign="top" background="skins/images/bg2.gif"><img src="skins/images/teble_top_right.gif" width="8" height="8"></td>
				<td width="16" align="right" valign="top"></td>
			</tr>
		</table>
		<iframe frameborder="0" scrolling="yes" id="frmright" name="frmright" src="main_index.asp" class="main_iframe"></iframe>
			<table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#C4D8ED">
				<tr>
					<td align="left" valign="bottom"><img src="skins/images/teble_bottom_left.gif" width="5" height="6"></td>
					<td align="right" valign="bottom"><img src="skins/images/teble_bottom_right.gif" width="5" height="6"></td>
					<td width="16" bgcolor="#337ABB"></td>
				</tr>
			</table></td>
	</tr>
</table>
</body>
</html>