<!--#include file="conn/conn_index.asp"-->
<!--#include file="inc/setup.asp"-->
<!--#include file="inc/sql.asp"-->
<%
	end if
%>
<HTML>
<HEAD>
<link rel="Shortcut Icon" href="Images/favicon.ico">
<link rel="Bookmark" href="Images/favicon.ico">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<TITLE><%= homename %>--培训教育</TITLE>
<meta name="Keywords" content="<%= webmeta %>">
<meta name="Description" content="<%= webmeta1 %>">
<link href="css/train.css" rel="stylesheet" type="text/css">
<script language="JavaScript">
 function login_check(){
 if (document.login.uname.value==""){
  alert("-请输入用户名-");
  document.login.uname.focus();
  return false;
 }
  if (document.login.pwd.value==""){
  alert("-请输入登陆密码-");
  document.login.pwd.focus();
  return false;
 }
  if (document.login.CheckCode.value==""){
  alert("-请输入登陆密码-");
  document.login.CheckCode.focus();
  return false;
 }
}
function search(){     
    if(document.searcher.keyword.value==null || document.searcher.keyword.value==""){
      alert("请输入课程关键字");
      document.searcher.keyword.focus();
      return false;
    }
}
</script>
<style>
.c_coach_title{background:#f80; font-weight:bold; height:24px;padding:0 0 0 5px;}
</style>
</HEAD>
<BODY topMargin=0 leftmargin="0" rightmargin="0">
<!--#include file="top.asp"-->
<table width="977" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr> 
    <td height="8"></td>
  </tr>
</table>
<table width="974" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr> 
    <td width="789" valign="top">
<table width="99%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="46%" valign="top">
<table width="99%" border="0" cellpadding="0" cellspacing="0" background="images/train/ss_1333.gif" class="qianlanbk">
              <tr> 
                <td width="28%" height="28" background="images/train/ss_03.gif"><table width="94%" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr> 
                      <td height="4"></td>
                    </tr>
                    <tr> 
                      <td><div align="center"><font color="#000099">课程搜索</font></div></td>
                    </tr>
                  </table></td>
                <td width="0%"><img src="images/train/ss_05.gif" width="20" height="28" alt=""></td>
                <td width="72%" background="images/train/ss_06.gif">&nbsp;</td>
              </tr>
            <tr> 
                <td height="115" colspan="3"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class=normal>
                        <form name="searcher"  action="train_subject_list.asp" method="get" onSubmit="return search()">
                        <input name="action" type="hidden" value="search">
                          <tr>
                            <td width="20%" height="24" valign="middle"><div align="right"><font color="#666666"><span class="text12"></span></font>类　别:</div></td>
                            <td width="30%" valign="middle"><select name="jobtype" class="option" id="type"  style="width:100px">
                                <option value="" selected>所有类别</option>
<%
	set rs=server.createobject("adodb.recordset")
	sql="select * from train_subject_type where mid=0 order by stime desc"
	rs.open sql,conn,1,1
	do while not rs.eof
	response.write"<OPTION value="&rs("id")&">"&rs("type_name")&"</option>"
	rs.movenext
	loop
	rs.close
	set rs=nothing
%>
                            </select></td>
                            <td width="20%" align="right" valign="middle">日　期:</td>
                            <td width="30%" valign="middle"><select name="pubTime" size="1" style="width:84px">
                              <option value="0">不限时间</option>
                              <option value="1">一天内</option>
                              <option value="3">三天内</option>
                              <option value="7">一周内</option>
                              <option value="15">半月内</option>
                              <option value="30">一个月内</option>
                              <option value="90">三个月内</option>
                              <option value="180">半年内</option>
                            </select></td>
                          </tr>
                          <tr>
                            <td height="30"><div align="right">关键字:</div></td>
                            <td width="65%" height="30" colspan="3"><input name="otherKey" value="课程关键字" class="input01"  style=" WIDTH: 257px" onClick="this.value=''" ></td>
                          </tr>
                          <tr valign="bottom">
                            <td height="29" colspan=4 align=center><input type="image" src="images/train/bu_7.gif" alt="搜索课程" border="0"></td>
                          </tr>
                        </form>
                </table></td>
              </tr>
            </table></td>
          <td width="54%" valign="top">
   <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" background="images/train/ss_08.gif" class="qianlanbk">
              <tr>
                <td height="142"><iframe src="train_ad.asp" frameborder=no border=0 marginwidth=0 marginheight=0 align=center width=411 scrolling=no noresize height=142px></iframe></td>
              </tr>
            </table></td>
        </tr>
      </table></td>
    <td width="191" valign="top"><table width="100%" border="0" align="right" cellpadding="0" cellspacing="0"  background="images/train/ss_08.gif" class="qianlanbk">
     <tr> 
                <td width="30%" height="28" background="images/train/ss_03.gif">
                <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr> 
                      <td><div align="center"><font color="#000099">会员登陆</font></div></td>
                    </tr>
                  </table></td>
                <td width="0%"><img src="images/train/ss_05.gif" width="20" height="28" alt=""></td>
                <td width="66%" background="images/train/ss_06.gif">&nbsp;</td>
        </tr>
        <tr> 
          <td height="113" colspan="3">
          <TABLE border=0 align="center" cellPadding=0 cellSpacing=0 width="98%">
                    <form action="check.asp" method="post" name="login" onSubmit="return login_check();">
<%
	if Request.Cookies("admin_person_name")="" and Request.Cookies("admin_company_name")="" and Request.Cookies("admin_school_name")="" and Request.Cookies("admin_train_name")="" then
%>
                      <TR>
                        <TD vAlign=top align=center height=25 width="162">用户名：
                        <input name="uname" type="text" class="inputText" id="uname"></TD>
                      </TR>
                      <TR>
                        <TD vAlign=top align=center height=25 width="162">密&nbsp;&nbsp;码：
                        <input name="pwd" type="password" class="inputText" id="pwd"></TD>
                        <TD vAlign=top align=center height=50 rowspan="4" width="49"><input name="imageField" type="image" src="images/train/login_02.gif" width="44" height="44" border="0"></TD>
                      </TR>
                      <TR>
                        <TD vAlign=top align=center height=25 width="162">验证码：
                        <input name="CheckCode" type="text" class="inputText1">&nbsp;<img src="GetCode.asp" vspace="2" align="absmiddle"></TD>
                      </TR>
                      <TR>
                        <TD vAlign=top align=center height=25 width="162">类&nbsp;&nbsp;型：
                        <select name="usertype" class="inputText">
                        <option value="person">个人会员</option>
                        <option value="company">企业会员</option>
                        <option value="school">院校会员</option>
                        <option value="train">培训机构</option>
                        </select></TD>
                      </TR>
<%
	Else
	if Request.Cookies("admin_person_name")<>"" then utype="person"
	if Request.Cookies("admin_company_name")<>"" then utype="company"
	if Request.Cookies("admin_school_name")<>"" then utype="school"
	if Request.Cookies("admin_train_name")<>"" then utype="train"
%>
<tr>
            <td align="center">&nbsp;</td>
          </tr>
          <tr>
            <td align="center"><input name="Submit" type="button" id="Submit" value="进入用户中心" onClick="location.href='<%= utype %>/'" class="c_coach_title" style="width:170px;"></td>
          </tr>
          <tr>
            <td align="center">&nbsp;</td>
          </tr>
          <tr>
            <td align="center"><input name="Submit" type="button" id="Submit" value="退       出" onClick="location.href='login_out.asp'" class="c_coach_title" style="width:170px;"></td>
          </tr>
		  <tr>
            <td align="center">&nbsp;</td>
          </tr>
<% End If %>
                    </form>
            </TABLE></td>
        </tr>
    </table>
    </td>
  </tr>
</table>
<table width="974" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr> 
    <td height="13"></td>
  </tr>
</table>
<table width="974" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr> 
    <td width="787" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td valign="top"><table width="99%" border="0" align="left" cellpadding="0" cellspacing="0" bgcolor="#F5F8FF" class="qianlanbk">
              <tr> 
                <td height="166"> 
                  <table width="94%" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr> 
                      <td height="22"><img src="images/train/ss9_03.gif" width="222" height="16" alt=""></td>
                    </tr>
                    <tr> 
                      <td height="70">
                      
                      <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">     
<%
	Set Rs= Server.CreateObject("ADODB.RecordSet")
	sql="select * from train_subject_type order by id desc"
	Rs.open sql,conn,1,1
	
	Num=Rs.recordcount
	intI=0
	intII=5
	intIII=0
	
	Do While Not Rs.Eof
	
	If intI=0 Then
		Response.Write("<tr>")
	End If
	
%>
						<td width="20%" height="42"> 
                              <table width="90%" border="0" align="center" cellpadding="0" cellspacing="0" class="2biankuang">
                                <tr> 
                                  <td width="5%"><img src="images/train/ss9_07.gif" width="9" height="27" alt=""></td>
                                  <td width="88%" background="images/train/ss9_08.gif"><table width="80%" border="0" align="center" cellpadding="0" cellspacing="0">
                                      <tr> 
                                        <td colspan="2" height="3"></td>
                                      </tr>
                                      <tr> 
                                        <td width="23%"><img src="images/train/ss9_13.gif" width="13" height="13" alt=""></td>
                                        <td width="77%"><a href="train_subject_list.asp?type_id=<%=Rs("id")%>" target="_blank" title="查看<%=Rs("type_name")%>的所有课程信息"><%=Rs("type_name")%></a></td>
                                      </tr>
                                  </table></td>
                                  <td width="7%"><img src="images/train/ss9_10.gif" width="8" height="27" alt=""></td>
                                </tr>
                              </table></td>
<%
	intI=intI+1
	intIII=intIII+1
	
	if Num mod 5 <> 0 and Num=intIII then Response.Write("</tr>")
	
	If intI=intII And Not Rs.Eof Then
		intI=0
		Response.Write("</tr>")
	End If
	
	Rs.movenext
	Loop
	
	Rs.Close
	set rs=nothing
%> 
                        </table></td>
                    </tr>
                </table></td>
              </tr>
            </table></td>
        </tr>
        <tr> 
          <td>&nbsp;</td>
        </tr>
        <tr> 
          <td valign="top"><table width="99%" border="0" cellpadding="0" cellspacing="0" class="qianlanbk">
              <tr> 
                <td width="3%" height="32">&nbsp;</td>
                <td width="97%"><img src="images/train/ss_56.gif" width="228" height="15" alt=""></td>
              </tr>
              
<%
	Set Rss= Server.CreateObject("ADODB.RecordSet")
	sqll="select * from train_subject_type order by id desc"
	Rss.open sqll,conn,1,1
	Do While Not Rss.Eof
%>
              <tr> 
                <td colspan="2" valign="top"><table width="100%" border="0" cellspacing="2" cellpadding="0">
                    <tr> 
                      <td width="25%" height="25" bgcolor="#75B9E6">
					  <table width="80%" border="0" align="center" cellpadding="0" cellspacing="0">
                          <tr> 
                            <td height="3"></td>
                          </tr>
                          <tr> 
                            <td><a href="train_subject_list.asp?type_id=<%=Rss("id")%>" target="_blank" title="查看<%=Rss("type_name")%>的所有课程信息"><font color="#FFFFFF"><strong><%=Rss("type_name")%></strong></font></a></td>
                          </tr>
                        </table></td>
                      <td width="25%">&nbsp;</td>
                      <td width="25%">&nbsp;</td>
                      <td width="25%">&nbsp;</td>
                    </tr>
<%
	dim w
	Set Rs= Server.CreateObject("ADODB.RecordSet")
	sql="select top 12 train_subject.*,train.train_name from train,train_subject where train_subject.zhuangtai=1 and train_subject.hidesubject=0 and train_subject.tid=train.id and train_subject.type_max="&Rss("id")&" order by train_subject.refresh desc,train_subject.id desc"
	Rs.open sql,conn,1,1
	
	Num=Rs.recordcount
	intI=0
	intII=4
	intIII=0
	k=0
	
	if Rs.eof then
%>
	<tr bgcolor='#F3F2F2'>
		 <td height="25" align="center">
		  <table width="70%" border="0" align="center" cellpadding="0" cellspacing="0">
			<tr> 
			  <td height="3"></td>
			</tr>
			<tr> 
			  <td><font color="#75B9E6">·</font>暂无该类别的培训信息</td>
			</tr>
		  </table>
		</td>
	</tr>
<%
	else
		k=k+1
		Do While Not Rs.Eof
		If intI=0 then
			Response.Write("<tr bgcolor='#F3F2F2'>")
		End If
	
	
%>
						 <td height="25" align="center">
                          <table width="70%" border="0" align="center" cellpadding="0" cellspacing="0">
                            <tr> 
                              <td height="3"></td>
                            </tr>
                            <tr> 
                              <td><font color="#75B9E6">·</font><a href="html/train/<%= Rs("tid") %>/<%= Rs("id") %>.html" target="_blank" class="lianjie"><%= left(Rs("tsname"),10) %><% If len(Rs("tsname"))>10 Then Response.Write("...")%></a></td>
                            </tr>
                          </table>
                        </td>
<%
		intI=intI+1
		intIII=intIII+1
		if Num mod 4 <> 0 and Num=intIII then Response.Write("</tr>")
		
		If intI=intII And Not Rs.Eof Then
			intI=0
			Response.Write("</tr>")
		End If
		
		Rs.movenext
		Loop
	end if

	Rs.Close
	set rs=nothing
%>
              <tr> 
                <td colspan="2">&nbsp;</td>
              </tr>
      </table>
  </td>
<tr>
<%
	Rss.movenext
	Loop
	Rss.Close
	set Rss=nothing
%>
            </table></td>
        </tr>
      </table></td>
    <td width="193" valign="top"><table width="98%" border="0" align="right" cellpadding="0" cellspacing="0">
        <tr> 
          <td height="72"><!--#include file="ads/js/ads63.asp"--></td>
        </tr>
        <tr> 
          <td height="72"><!--#include file="ads/js/ads64.asp"--></td>
        </tr>
        <tr> 
          <td height="72"><!--#include file="ads/js/ads65.asp"--></td>
        </tr>
        <tr> 
          <td height="72"><!--#include file="ads/js/ads66.asp"--></td>
        </tr>
        <tr> 
          <td height="72"><!--#include file="ads/js/ads67.asp"--></td>
        </tr>
        <tr> 
          <td height="72"><!--#include file="ads/js/ads68.asp"--></td>
        </tr>
        <tr> 
          <td height="72"><!--#include file="ads/js/ads69.asp"--></td>
        </tr>
		<tr> 
          <td height="72"><!--#include file="ads/js/ads70.asp"--></td>
        </tr>
		<tr> 
          <td height="72"><!--#include file="ads/js/ads71.asp"--></td>
        </tr>
		<tr> 
          <td height="72"><!--#include file="ads/js/ads72.asp"--></td>
        </tr>
		<tr> 
          <td height="72"><!--#include file="ads/js/ads73.asp"--></td>
        </tr>
		<tr> 
          <td height="72"><!--#include file="ads/js/ads74.asp"--></td>
        </tr>
		<tr> 
          <td height="72"><!--#include file="ads/js/ads75.asp"--></td>
        </tr>
      </table></td>
  </tr>
</table>
<table width="974" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr> 
    <td height="10"></td>
  </tr>
</table>
<!--#include file="end.asp"-->