<%
if exsm.userid="" or exsm.userid=0 or not isnumeric(exsm.userid) or exsm.stockholder="" or not exsm.stockadmin then adminlogin
set rs=stock_conn.execute("select username from ex_user where lockuser=0 and userclass=1 and id="&exsm.userid&"")
if rs.eof and rs.bof then adminlogin
sub adminlogin()
	set rs=stock_conn.execute("select username,lockuser,userclass from ex_user where id="&exsm.userid&"")
	if rs.eof and rs.bof then
		exsm.errmess="非法进入！请返回。"
		call exsm.endinfo("no")
		exit sub
	elseif not rs(2)=1 then
		exsm.errmess="您没有管理权限！请返回。"
		call exsm.endinfo("no")
		exit sub
	elseif not exsm.stockadmin then
		exsm.errmess="您没有管理权限！请返回。"
		call exsm.endinfo("no")
		exit sub
	elseif rs(1)=1 then
		exsm.errmess="您的帐户已被锁定，请联系其他管理员。"
		call exsm.endinfo("no")
		exit sub
	end if
end sub
sub adminmenutop(admintitle)
	exsm.title 1,admintitle
%>
	<table width="<%=exsm.assignwidth%>" cellspacing="0" cellpadding="0" align="center" border="0">
		<tr>
			<td width="160" valign="top">
				<table class="tableborder1" cellspacing="1" cellpadding="3" align="center" border="0" style="width:160">
					<tr>
						<th height="25">-=>管理选项<=-</th>
					</tr>
					<tr>
						<td class="tablebody1">
							<font class="bluefont">■</font> <a href="ex_sm_admin_index.asp">管理首页</a> | <a href="ex_sm_index.asp">股市首页</a>
							<br><font class="bluefont">■</font> <a href="ex_sm_help.asp?action=exsession&window=0">论坛模式</a> | <a href="ex_sm_help.asp?action=exsession&window=1">独立模式</a>
						</td>
					</tr>
				</table>
				<table class="tableborder1" cellspacing="1" cellpadding="3" align="center" border="0" style="width:160"><br>
					<tr>
						<th height="25">-=>基本设置<=-</th>
					</tr>
					<tr>
						<td class="tablebody1">
							<font class="bluefont">■</font> <a href="ex_sm_admin_setting.asp">基本设置</a> | <a href="ex_sm_admin_setting.asp?action=tradesetting">交易设置</a>
							<br><font class="bluefont">■</font> <a href="ex_sm_admin_setting.asp?action=aisetting">ａｉ设置</a> | <a href="ex_sm_admin_setting.asp?action=pssetting">上市设置</a>
							<br><font class="bluefont">■</font> <a href="ex_sm_admin_setting.asp?action=regsetting">开户设置</a> | <a href="ex_sm_admin_setting.asp?action=usersetting">帐户设置</a>
							<br><font class="bluefont">■</font> <a href="ex_sm_admin_setting.asp?action=sharebonus">分红设置</a> | <a href="ex_sm_admin_setting.asp?action=servesetting">服务设置</a>
							<br><font class="bluefont">■</font> <a href="ex_sm_admin_setting.asp?action=exconfig" onclick="javascript:{if(confirm('您确定要恢复股市默认设置吗？\n如果股市发生错误、设置搞乱了建议使用该功能。')){return true;}return false;}">恢复股市默认设置</a>
						</td>
					</tr>
				</table>
				<table class="tableborder1" cellspacing="1" cellpadding="3" align="center" border="0" style="width:160"><br>
					<tr>
						<th height="25">-=>股票管理<=-</th>
					</tr>
					<tr>
						<td class="tablebody1">
							<font class="bluefont">■</font> <a href="ex_sm_admin_gupiao.asp">股票管理</a> | <a href="ex_sm_admin_gupiao.asp?action=newstock">新股上市</a>
						</td>
					</tr>
				</table>
				<table class="tableborder1" cellspacing="1" cellpadding="3" align="center" border="0" style="width:160"><br>
					<tr>
						<th height="25">-=>社区干预<=-</th>
					</tr>
					<tr>
						<td class="tablebody1">
							<font class="bluefont">■</font> <a href="ex_sm_admin_intervene.asp">社区干预</a>
						</td>
					</tr>
				</table>
				<table class="tableborder1" cellspacing="1" cellpadding="3" align="center" border="0" style="width:160"><br>
					<tr>
						<th height="25">-=>客户管理<=-</th>
					</tr>
					<tr>
						<td class="tablebody1">
							<font class="bluefont">■</font> <a href="ex_sm_admin_user.asp?action=userlist">客户管理</a> | <a href="ex_sm_admin_user.asp">奖扣管理</a>
							<br><font class="bluefont">■</font> <a href="ex_sm_admin_user.asp?action=clearanceuser" onclick="javascript:{if(confirm('您确定要清理股市中存在但是论坛中已经不存在的客户吗？')){return true;}return false;}">清理客户</a>
							<br><font class="bluefont">■</font> <a href="ex_sm_admin_user.asp?action=useradmin">添加管理员</a> | <a href="ex_sm_admin_user.asp?action=admin">管理</a>
						</td>
					</tr>
				</table>
				<table class="tableborder1" cellspacing="1" cellpadding="3" align="center" border="0" style="width:160"><br>
					<tr>
						<th height="25">-=>公告管理<=-</th>
					</tr>
					<tr>
						<td class="tablebody1">
							<font class="bluefont">■</font> <a href="ex_sm_admin_announcements.asp">浏览公告</a> | <a href="ex_sm_admin_announcements.asp?action=glance1">浏览新闻</a>
							<br><font class="bluefont">■</font> <a href="ex_sm_admin_announcements.asp?action=addann1">发布公告</a> | <a href="ex_sm_admin_announcements.asp?action=addann">发布新闻</a>
							<br><font class="bluefont">■</font> <a href="ex_sm_admin_announcements.asp?action=editann1">管理公告</a> | <a href="ex_sm_admin_announcements.asp?action=editann">管理新闻</a>
						</td>
					</tr>
				</table>
				<table class="tableborder1" cellspacing="1" cellpadding="3" align="center" border="0" style="width:160"><br>
					<tr>
						<th height="25">-=>日志管理<=-</th>
					</tr>
					<tr>
						<td class="tablebody1">
							<font class="bluefont">■</font> <a href="ex_sm_admin_log.asp">全部日志</a>
						</td>
					</tr>
				</table>
				<table class="tableborder1" cellspacing="1" cellpadding="3" align="center" border="0" style="width:160"><br>
					<tr>
						<th height="25">-=>数据库管理<=-</th>
					</tr>
					<tr>
						<td class="tablebody1">
							<font class="bluefont">■</font> <a href="ex_sm_admin_data.asp">数据库管理</a>
						</td>
					</tr>
				</table>
				<table class="tableborder1" cellspacing="1" cellpadding="3" align="center" border="0" style="width:160"><br>
					<tr>
						<th height="25">-=>无限股市<=-</th>
					</tr>
					<tr>
						<td class="tablebody1">
							<font class="bluefont">■</font> <a href="http://www.czie.com/bbs/" target="_blank">版权所有：<br><font class="bluefont">■</font> 幻日论坛<br><font class="bluefont">■</font> 当前版本：1.7.5(虚拟版)</a>
						</td>
					</tr>
				</table>
			</td>
			<td>&nbsp;</td>
			<td width="100%" valign="top">
<%
end sub
sub adminmenubottom()
%>
			</td>
		</tr>
	</table>
<%
end sub
%>