<!--#include file="conn.asp"-->
<!--#include file="check.asp"-->
<!--#include file="train_info.asp"-->
<!--#include file="../inc/char.asp"-->
<!--#include file="../inc/setup.asp"-->
<!--#include file="../inc/sql.asp"-->
<%
	End If
		
	set rs=server.createobject("adodb.recordset")
	sql="select * from train_join where tid="&Request.Cookies("admin_train_id")&" and ttype=0 and zhuangtai=1"
	rs.open sql,conn,1,1
	aspnum=rs.recordcount
	if aspnum="" then aspnum=0
	rs.close                                                                    
	set rs=nothing
	
	set rs=server.createobject("adodb.recordset")
	sql="select * from train_join where tid="&Request.Cookies("admin_train_id")&" and ttype=0 and zhuangtai=0"
	rs.open sql,conn,1,1
	joinnum=rs.recordcount
	if joinnum="" then joinnum=0
	rs.close                                                                    
	set rs=nothing
	
	action1=Trim(Request.QueryString("action"))
	
	if action1="refresh" then
		conn.execute ("update train set refresh=getdate() where id="&ReplaceBadChar(Request.Cookies("admin_train_id"))&"")
		response.write"<SCRIPT language=JavaScript>alert('数据刷新成功，现在为您返回');"
		response.write"this.location.href='index.asp';</SCRIPT>"
		response.end
	end if
	
	if action1="close" then
		conn.execute ("update train set hideuser=1 where id="&ReplaceBadChar(Request.Cookies("admin_train_id"))&"")
		response.write"<SCRIPT language=JavaScript>alert('屏蔽帐号成功，现在为您返回');"
		response.write"this.location.href='index.asp';</SCRIPT>"
		response.end
	end if
	
	if action1="open" then
		conn.execute ("update train set hideuser=0 where id="&ReplaceBadChar(Request.Cookies("admin_train_id"))&"")
		response.write"<SCRIPT language=JavaScript>alert('激活帐号成功，现在为您返回');"
		response.write"this.location.href='index.asp';</SCRIPT>"
		response.end
	end if
	notice_type=4
%>
<!--#include file="../inc/notice.asp"-->
<!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>
<title><%=homename%>--机构管理中心首页</title>
<link href="images/Style_company.css" rel="stylesheet" type="text/css" />
<script language="javascript">
function openScript(url, width, height){
	var Win = window.open(url,"openScript",'width=' + width + ',height=' + height + ',resizable=0,scrollbars=yes,menubar=no,status=no' );
}
</script>
<script src="../count/tongji.asp"></script>
<script language="javascript" type="text/javascript">
    <!--
    var Browser_isIE = window.ActiveXObject ? true : false;
    var GpArray = new Array("index.asp","manage.asp", "pwd.asp", "publish_new.asp", "whkc.asp", "sign.asp?type=ask", "sign.asp?type=join", "tmoney.asp", "mail_box.asp", "../html/train/<%=Request.Cookies("admin_train_id")%>/","pay_list.asp","Card_list.asp", "login_out.asp");
    function MO_0(obj)
    {
        obj.className = "menu_td2";
    }
    
    function MU_0(obj)
    {
        obj.className = "menu_td";
    }
    function Gp(pIndex)
    {
        location.href = GpArray[pIndex];
    }
    function Gout()
    {
        if(confirm("提示：确定要退出系统？")){ location.href = "login_out.asp";}
    }
    //-->
</script>
<style type="text/css">
    .menu_span {line-height:31px;padding:12px 5px 12px 48px; margin-left:15px;}
</style>
</head>
<body>
    <div id="body">
    <div id="top">
    <div class="top_logo"></div>
    <div class="top_gochat"><img src="images/c_chat.gif" /> <font id="KfChatState" color="white">您的帐号状态(<b><% If hideuser=0 Then Response.Write("公开") else Response.Write("隐藏")%></b>)</font><font color="white"> 审核状态(<b><% If zhuangtai=1 Then Response.Write("已审核") else Response.Write("未审核")%></b>)</font></div>
    <div class="top_userinfo">用户名：<u><%= Request.Cookies("admin_train_name") %></u>　　机构名称：<u><%= Request.Cookies("train_name") %></u>　　登陆次数：<%= dlnum %></div>
    <div class="img_logout"><input type="button" value="" class="btn_out" onclick="Gout()" title="退出" /></div>
    </div>
    <div id="main">
    <div id="left">
    <div id="left_menu" class="m_c">
    <div class="part_title">功 能 菜 单</div>
    <div style="width:100%;line-height:18px; margin-bottom:5px;">
    <table cellpadding="0" cellspacing="4" border="0" width="95%" style="text-align:left; margin:0 auto;">
    <tr>
        <td class="menu_td" onmouseover="MO_0(this)" onmouseout="MU_0(this)" onclick="Gp(0)">
            <span class="menu_span" style="background:url(images/c_menu_def_s.gif) 0px 6px no-repeat;color:#C33;">管理首页</span></td>
    </tr>
    <tr>
        <td class="menu_td" onmouseover="MO_0(this)" onmouseout="MU_0(this)" onclick="Gp(1)">
            <span class="menu_span" style="background:url(images/c_menu_0_s.gif) 0px 6px no-repeat;">基本设置</span></td>
    </tr>
    <tr>
        <td class="menu_td" onmouseover="MO_0(this)" onmouseout="MU_0(this)" onclick="Gp(2)">
            <span class="menu_span" style="background:url(images/c_menu_1_s.gif) 0px 6px no-repeat;">帐号维护</span></td>
    </tr>
    <tr>
        <td class="menu_td" onmouseover="MO_0(this)" onmouseout="MU_0(this)" onclick="Gp(3)">
        <span class="menu_span" style="background:url(images/c_menu_lw_s.gif) 0px 6px no-repeat;">发布课程</span></td>
    </tr>
    <tr>
        <td class="menu_td" onmouseover="MO_0(this)" onmouseout="MU_0(this)" onclick="Gp(4)">
        <span class="menu_span" style="background:url(images/c_menu_addr_s.gif) 0px 6px no-repeat;">课程管理</span></td>
    </tr>
    <tr>
        <td style="background-color:#F0F0F0;" height="1"></td>
    </tr>
    <tr>
        <td class="menu_td" onmouseover="MO_0(this)" onmouseout="MU_0(this)" onclick="Gp(5)">
            <span class="menu_span" style="background:url(images/c_menu_2_s.gif) 0px 6px no-repeat;">咨询列表</span></td>
    </tr>
    <tr>
        <td class="menu_td" onmouseover="MO_0(this)" onmouseout="MU_0(this)" onclick="Gp(6)">
            <span class="menu_span" style="background:url(images/c_menu_3_s.gif) 0px 6px no-repeat;">报名列表</span></td>
    </tr>
    <tr>
        <td class="menu_td" onmouseover="MO_0(this)" onmouseout="MU_0(this)" onclick="Gp(7)">
            <span class="menu_span" style="background:url(images/c_menu_4_s.gif) 0px 6px no-repeat;">帐户管理</span></td>
    </tr>
    <tr>
        <td class="menu_td" onmouseover="MO_0(this)" onmouseout="MU_0(this)" onclick="Gp(8)">
            <span class="menu_span" style="background:url(images/c_menu_5_s.gif) 0px 6px no-repeat;">站内信箱</span></td>
    </tr>
    <tr>
        <td class="menu_td" onmouseover="MO_0(this)" onmouseout="MU_0(this)" onclick="Gp(9)">
            <span class="menu_span" style="background:url(images/c_menu_style_s.gif) 0px 6px no-repeat;">机构预览</span></td>
    </tr>
    <tr>
        <td class="menu_td" onmouseover="MO_0(this)" onmouseout="MU_0(this)" onclick="Gp(10)">
            <span class="menu_span" style="background:url(images/new_1.jpg) 0px 6px no-repeat;">支付记录</span></td>
    </tr>
    <tr>
        <td class="menu_td" onmouseover="MO_0(this)" onmouseout="MU_0(this)" onclick="Gp(11)">
            <span class="menu_span" style="background:url(images/new_2.jpg) 0px 6px no-repeat;">购卡记录</span></td>
    </tr>
    <tr>
        <td class="menu_td" onmouseover="MO_0(this)" onmouseout="MU_0(this)" onclick="Gp(12)">
            <span class="menu_span" style="background:url(images/c_menu_6_s.gif) 0px 6px no-repeat;">退出系统</span></td>
    </tr>
    </table>
    </div>
    </div>
    <div style="margin-top:10px;">技术支持：<a href="http://www.wishcn.com" target="_blank" title="网愿科技">网愿科技</a></div>
    </div>
    <div id="right">
        
<script type="text/javascript">
function showwelcome()
{
    var welcomeTxt = ""; //var day = new Date(); day.getHours();
    var time = 14;
　　if ((time >= 0) && (time < 7))  
　　　　welcomeTxt="早上好，";
　　else if ((time >= 7) && (time < 12))  
　　　　welcomeTxt="上午好，";
　　else if ((time >= 12) && (time < 14))  
　　　　welcomeTxt="中午好，";
　　else if ((time >= 14) && (time < 18))  
　　　　welcomeTxt="下午好，";
　　else if ((time >= 18) && (time < 24))  
　　　　welcomeTxt="晚上好，";
    document.write(welcomeTxt);
}
</script>
<div class="part_title">&nbsp; >> <%= Request.Cookies("admin_train_name") %> 欢迎进入-培训会员管理中心首页</div>
<div style="width:100%;text-align:center;padding:1px;">
<div style="width:100%;text-align:left; border-bottom: solid 5px #69c; line-height:30px;">
<div style="float:left; margin-left:10px;"><span style="font-size:14px; color:#369; font-weight:bold;">
<script>showwelcome();</script><span id="ctl00_CPH1_Label_name" style="color:#CC3333;"><%= Request.Cookies("admin_train_name") %></span></span>
，咨询信息共有 <span style="color:#C33; font-weight:bold;"><%= aspnum %></span> 条未读，报名信息共有 <span style="color:#C33; font-weight:bold;"><%= joinnum %></span> 条未读</div>
<div style="float:right; margin-right:10px; color:#666; background: url(images/chat_date.gif) left 8px no-repeat; padding-left:20px;"> <div id="jnkc">
</div>
<script>setInterval("jnkc.innerHTML=new Date().toLocaleString()+' 星期'+'日一二三四五六'.charAt(new Date().getDay());",1000);
</script></div>
<div style="clear:both;"></div>
</div>
    <br />
    <script type="text/javascript">
    function showMenuTxt(id)
    {
        var menutxtObj = document.getElementById("menuIntroduce");
        if (!id) menutxtObj.innerHTML = '显示功能简要说明';
        else menutxtObj.innerHTML = document.getElementById("menutxt_"+id).innerHTML;
    }
    </script>
    <table cellpadding="3" cellspacing="0" border="1" rules="all" bordercolor="#6699cc" width="750px" class="tde">
    <thead>
    <tr class="tde_head">
        <td align="left" height="23px">&nbsp;功能菜单列表</td>
    </tr>
    </thead>
    <tbody>
    <tr>
        <td>
            <table width="100%" cellspacing="5" cellpadding="3" border="0">
            <tr align="center">
                <td class="menu_td" onmouseover="MO_0(this);showMenuTxt(-1);" onmouseout="MU_0(this);showMenuTxt();" onclick="Gp(1)">
                    <img src="images/c_menu_0.gif" /><br />基本设置</td>
                <td width="58px" class="menu_td" onmouseover="MO_0(this);showMenuTxt(1);" onmouseout="MU_0(this);showMenuTxt();" onclick="Gp(2)" >
                    <img src="images/c_menu_1.gif" /><br />帐号维护</td>
                <td width="58px" class="menu_td" onmouseover="MO_0(this);showMenuTxt(2);" onmouseout="MU_0(this);showMenuTxt();" onclick="Gp(3)">
                    <img src="images/c_menu_lw.gif" /><br />发布课程</td>
                <td width="58px" class="menu_td" onmouseover="MO_0(this);showMenuTxt(3);" onmouseout="MU_0(this);showMenuTxt();" onclick="Gp(4)">
                    <img src="images/c_menu_addr.gif" /><br />课程管理</td>
                <td width="58px" class="menu_td" onmouseover="MO_0(this);showMenuTxt(4);" onmouseout="MU_0(this);showMenuTxt();" onclick="Gp(5)" >
                    <img src="images/c_menu_2.gif" /><br />咨询列表</td>
                <td width="58px" class="menu_td" onmouseover="MO_0(this);showMenuTxt(5);" onmouseout="MU_0(this);showMenuTxt();" onclick="Gp(6)" >
                    <img src="images/c_menu_3.gif" /><br />报名列表</td>
                <td width="58px" class="menu_td" onmouseover="MO_0(this);showMenuTxt(6);" onmouseout="MU_0(this);showMenuTxt();" onclick="Gp(7)" >
                    <img src="images/c_menu_4.gif" /><br />帐户管理</td>
                <td width="58px" class="menu_td" onmouseover="MO_0(this);showMenuTxt(7);" onmouseout="MU_0(this);showMenuTxt();" onclick="Gp(8)" >
                    <img src="images/c_menu_5.gif" /><br />站内信箱</td>
                <td width="58px" class="menu_td" onmouseover="MO_0(this);showMenuTxt(8);" onmouseout="MU_0(this);showMenuTxt();" onclick="Gp(9)" >
                    <img src="images/c_menu_style.gif" /><br />机构预览</td>
                <td width="58px" class="menu_td" onmouseover="MO_0(this);showMenuTxt(9);" onmouseout="MU_0(this);showMenuTxt();" onclick="Gp(10)" >
                    <img src="images/c_menu_6.gif" /><br />退出系统</td>
            </tr>
            <tr><td colspan="10" style="background-color:#F2F2F2;border: solid 1px #F0F0F0;">
                <div id="menuIntroduce" style="line-height:20px; color:#828282; text-indent:6px; width:100%;">显示功能简要说明</div></td>
            </tr>
            </table>
        </td>
    </tr>
    </tbody>
    </table>
    <div style="display:none;">
        <div id="menutxt_-1"><font color="#336699">基本设置</font> - 会员可在此修改机构的基本信息</div>
        <div id="menutxt_1"><font color="#336699">帐号维护</font> - 机构可在此修改用户密码和密码取回的问题与答案等信息</div>
        <div id="menutxt_2"><font color="#336699">发布课程</font> - 机构会员可在此发布机构的近期的培训课程</div>
        <div id="menutxt_3"><font color="#336699">课程管理</font> - 机构可在此管理，修改或者删除之前所发布的培训课程</div>
        <div id="menutxt_4"><font color="#336699">咨询列表</font> - 查询所有人员的咨询信息，并且可通过邮件对其进行回复</div>
        <div id="menutxt_5"><font color="#336699">报名列表</font> - 查询所有人员的报名信息，并且可通过邮件对其进行回复</div>
        <div id="menutxt_6"><font color="#336699">帐户管理</font> - 培训机构可在此查询帐号的帐户信息，并且可通过我们的自助平台进行充值</div>
        <div id="menutxt_7"><font color="#336699">站内信箱</font> - 机构可在此浏览本机构的所有站内信息</div>
        <div id="menutxt_8"><font color="#336699">机构预览</font> - 机构可在此浏览本机构的预览页面</div>
        <div id="menutxt_9"><font color="#336699">退出系统</font> - 如果您想退出机构的管理中心，请正常退出系统，以维护系统的安全</div>
    </div>
    <table width="766px" cellpadding="3" cellspacing="5" border="0" style="margin-top:2px;">
    <tr>
        <td width="50%" valign="top">
            <table cellpadding="3" cellspacing="0" border="1" rules="all" bordercolor="#6699cc" width="100%" class="tde">
            <thead class="tde_head">
            <tr>
                <td align="left" height="23px">&nbsp;您的综合信息</td>
            </tr>
            </thead>
            <tbody>
            <tr>
                <td height="200px" valign="top">
                <div style="margin: 5px 10px; line-height:20px; color:#525252;">
                机构名称：<font color="#336699"><%= Request.Cookies("train_name") %></font><br />
                注册日期：<font color="#336699"><%= setup %></font><br />
                审核状态：<font color="#336699"><% If zhuangtai=1 Then Response.Write("已审核") else Response.Write("未审核")%>
                </font> 刷新时间:<span id="ctl00_CPH1_Label_datetimeout" style="color:#CC3333;">
                <%  if refresh&"a"="a" then Response.Write("未刷新") else Response.Write(refresh) %>
                </span>&nbsp;<a href="?action=refresh"><img src="images/button_31.gif" align="absmiddle"  border="0"></a>
                <hr size=1 />
                功能类型：<span id="ctl00_CPH1_Label_paytype" style="color:#CC3333;"><% if action<>"ture" then Response.Write("普通会员") else Response.Write("高级会员")%></span> [<a href="tmoney.asp">帐户管理</a>]<br />
                会员期限：<font color="#336699"><%= begintime %>---<%= endtime %></font><br />
                剩余天数：<span id="ctl00_CPH1_Label_paydays" style="color:#CC3333;"><% if endt>0 then Response.Write(endt) else Response.Write("0") %></span> 天&nbsp;&nbsp;&nbsp;可发布课程数量：<span id="ctl00_CPH1_Label_paydays" style="color:#CC3333;"><%= subject_num %> </span>个<br /> 
                帐号状态：<span id="ctl00_CPH1_Label_datetimeout" style="color:#CC3333;"><% If hideuser=0 Then Response.Write("公开") else Response.Write("隐藏")%>
                </span> &nbsp;&nbsp;&nbsp;改变帐号状态--->&nbsp;<% If hideuser=1 Then %><a href="?action=open"><img src="images/button_17.gif" align="absmiddle"  border="0"></a><% Else %><a href="?action=close"><img src="images/button_18.gif" align="absmiddle"  border="0"></a><% End If %><br />
                最后登陆：<span id="ctl00_CPH1_Label_datetimeout" style="color:#CC3333;"><%= lasttime %></span><br />
                登陆地址：<span id="ctl00_CPH1_Label_datetimeout" style="color:#CC3333;"><%= ip %></span>&nbsp;&nbsp;&nbsp;&nbsp;登陆次数：<span id="ctl00_CPH1_Label_datetimeout" style="color:#CC3333;"><%= dlnum %></span>
                    <span id="ctl00_CPH1_Label_history"></span></div></td>
            </tr>
            </tbody>
            </table>
        </td>
        <td valign="top">
            <table cellpadding="3" cellspacing="0" border="1" rules="all" bordercolor="#6699cc" width="100%" class="tde">
            <thead class="tde_head">
            <tr>
                <td align="left" height="23px">&nbsp;站点公告</td>
            </tr>
            </thead>
            <tbody>
            <tr>
                <td height="200px" valign="top" ><table width="95%" border="0" cellpadding="3" cellspacing="0">
  <tr>
    <td><MARQUEE onmousemove=this.stop() onmouseout=this.start()  scrollAmount=2 direction="up"><%=ntitle%></MARQUEE></td>
  </tr>
</table>
</td>
            </tr>
            </tbody>
            </table>
        </td>
    </tr>
    <tr>
        <td colspan="2"><img src="images/icon_light.gif" />
        您好，如果您有什么意见或建议，请<a href="../about/call_me.asp" title="提交您的意见或建议" target="_blank"><u><font color=blue>[点击这里]</font></u></a>告诉我们。</td>
    </tr>
    </table>
</div>

    </div>
    <div style="clear:both;"></div>
    </div>
    </div>
<%
	conn.close
	set conn=nothing
%>
</body>
</html>
