<!--#include file="../Include/Class_Conn.asp" -->
<!--#include file="../Include/Class_Main.asp" -->
<% 
Dim SQL,Rs,i,CompanyName,Comid
Set Rs = Server.CreateObject("Adodb.Recordset")
 %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<LINK href="../Css/Style.css" type=text/css rel=stylesheet>
<title><%= Cls_WebName %> -- 培训服务</title>
</head>
<style>
.c101 
{
	background-color:#0F6F6D;
	color: #ffffff;
} 
.c102 
{
	background-color:#efefef;
}
</style>

<script language="JavaScript">
 function login_check()
 {

 if (document.login.username.value==""){
  alert("-请输入用户名-");
  document.login.username.focus();
  return false;
 }
  if (document.login.password.value==""){
  alert("-请输入登陆密码-");
  document.login.password.focus();
  return false;
 }
 }
</script>
<script language="JavaScript">
function csecBoard(n) 
{ 
    for(i=1;i<5;i++) 
    { 
        eval("document.getElementById('cl0"+i+"').className='c102'"); 
        eval("cbx0"+i+".style.display='none'"); 
    } 
    eval("document.getElementById('cl0"+n+"').className='c101'"); 
    eval("cbx0"+n+".style.display='block'"); 
} 
</script>

<body>
<table width="950" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  <tr>
    <td><!--#include file="../Header/Educate_Index.asp" --></td>
  </tr>
</table>
<table width="950" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  <tr>
    <td>
	<table width="950" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td height="4"></td>
        </tr>
      </table>
	  <table width="950" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td width="180" valign="top" bgcolor="#FFFFFF"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td height="25" align="left" valign="bottom" background="../Images/Educate/left10_bg.jpg" style="padding-left:10px;"> 
                  <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr> 
                      <td width="65" height="20" align="center" valign="bottom" bgcolor="#FFFFFF"><strong>会员登录</strong></td>
                      <td>&nbsp;</td>
                    </tr>
                  </table></td>
              </tr>
              <tr> 
                <td style="BORDER-RIGHT: #418D8B 1px solid; BORDER-LEFT: #418D8B 1px solid;BORDER-bottom: #418D8B 1px solid;padding-top:2px;padding-bottom:2px;"><!--#include file="../Public/Educate_MemberSession.asp" --></td>
              </tr>
            </table>
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td height="5"></td>
              </tr>
            </table>
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td height="25" align="left" valign="bottom" background="../Images/Educate/left10_bg.jpg" style="padding-left:10px;"> 
                  <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr> 
                      <td width="65" height="20" align="center" valign="bottom" bgcolor="#FFFFFF"><strong>培训搜索</strong></td>
                      <td>&nbsp;</td>
                    </tr>
                  </table></td>
              </tr>
              <tr> 
                <td style="BORDER-RIGHT: #418D8B 1px solid; BORDER-LEFT: #418D8B 1px solid;BORDER-bottom: #418D8B 1px solid;padding-top:2px;padding-bottom:2px;"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <form action="../Educate/Sch_Search_Quick.asp" method="post" target="_blank" name="theForm">
                      <tr> 
                        <td height="5" align="center"></td>
                      </tr>
                      <tr> 
                        <td height="25" align="center"><SELECT name=searchclass class=txtfield id="searchclass" style="width:140px;">
                            <OPTION value=""  selected>--选择搜索类别--</OPTION>
                            <OPTION value="1">培训课程</OPTION>
                            <OPTION value="2">培训机构</OPTION>
                            <OPTION value="3">培训需求</OPTION>
                          </SELECT></td>
                      </tr>
                      <tr> 
                        <td height="25" align="center"> <SELECT name=properity class=txtfield id="properity" style="width:140px;">
                            <OPTION value=""  selected>--选择培训领域--</OPTION>
                            <OPTION value="企业内训">企业内训</OPTION>
                            <OPTION value="资格认证">资格认证</OPTION>
                            <OPTION value="IT培训">IT培训</OPTION>
                            <OPTION value="语言培训">语言培训</OPTION>
                            <OPTION value="学历招生">学历招生</OPTION>
                            <OPTION value="公开课">公开课</OPTION>
                          </SELECT> </td>
                      </tr>
                      <tr> 
                        <td height="25" align="center"> <input 
                  name=key style="width:140px;"  id=txt_keyword2 size="16" maxlength=50 value="输入关键字" onClick="this.value='';"></td>
                      </tr>
                      <tr> 
                        <td height="25" align="center"><input type="submit" name="Submit3" value=" 开 始 搜 索 "> 
                        </td>
                      </tr>
                    </form>
                  </table></td>
              </tr>
            </table>
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td height="5"></td>
              </tr>
            </table>
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td height="25" align="left" valign="bottom" background="../Images/Educate/left10_bg.jpg" style="padding-left:10px;"> 
                  <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr> 
                      <td width="65" height="20" align="center" valign="bottom" bgcolor="#FFFFFF"><strong>培训课程</strong></td>
                      <td>&nbsp;</td>
                    </tr>
                  </table></td>
              </tr>
              <tr> 
                <td style="BORDER-RIGHT: #418D8B 1px solid; BORDER-LEFT: #418D8B 1px solid;BORDER-bottom: #418D8B 1px solid;padding-top:2px;padding-bottom:2px;">
				
                  <div id=demo style=overflow:hidden;height:110> 
                    <div id=demo1> 
					<%= Cls_Lesson_New(30,13) %>
                    </div>
                    <div id=demo2></div>
                  </div>
                  <script>
<!--
  var speed		= 15;//滚动速度
  var rows		= 22;//每行高度
  var stim		= 80; //停留时间倍数 * speed
  var stop		= 0; //初始化值，不管
  demo2.innerHTML	= demo1.innerHTML
  function Marquee(){
    if(demo.scrollTop%rows==0 && stop<=stim){
      stop++;
      return;
    }
    stop = 0;
    if(demo2.offsetTop-demo.scrollTop<=0)
      demo.scrollTop-=demo1.offsetHeight
    else{
      demo.scrollTop++
    }
  }
  var MyMar	   = setInterval(Marquee,speed)
  demo.onmouseover = function() {clearInterval(MyMar)}
  demo.onmouseout  = function() {MyMar=setInterval(Marquee,speed)}
-->
</script> 

				</td>
              </tr>
            </table>
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td height="5"></td>
              </tr>
            </table>
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td height="25" align="left" valign="bottom" background="../Images/Educate/left10_bg.jpg" style="padding-left:10px;"> 
                  <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr> 
                      <td width="65" height="20" align="center" valign="bottom" bgcolor="#FFFFFF"><strong>培训资讯</strong></td>
                      <td>&nbsp;</td>
                    </tr>
                  </table></td>
              </tr>
              <tr> 
                <td style="BORDER-RIGHT: #418D8B 1px solid; BORDER-LEFT: #418D8B 1px solid;BORDER-bottom: #418D8B 1px solid;padding-top:2px;padding-bottom:2px;"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr> 
                      <td><table width="98%" border="0" align="center" cellpadding="0" cellspacing="1">
                          <tr align="center"> 
                            <td width="25%" height="23" class="c101" id="cl01" onMouseOver="csecBoard(1);"><strong>企业</strong></td>
                            <td width="25%" height="23" class="c102" id="cl02" onMouseOver="csecBoard(2);"><strong>认证</strong></td>
                            <td width="25%" height="23" class="c102" id="cl03" onMouseOver="csecBoard(3);"><strong>学历</strong></td>
                            <td width="25%" height="23" class="c102" id="cl04" onMouseOver="csecBoard(4);"><strong>IT</strong></td>
                          </tr>
                        </table></td>
                    </tr>
                    <tr> 
                      <td> <div style="display:" id="cbx01"> 
                          <table width="100%" border="0" cellspacing="0" cellpadding="0">
                            <% 
SQL = "Select Top 6 Title,FileName,Path,t_Color From [pH_New_Info] Where Title <>'' And (Typeid=30) And Flag=1 Order By DateAndTime Desc"
Set Rs = Conn.Execute(SQL)
While Not Rs.Eof					
%>
                            <tr> 
                              <td height="24">&middot;<a href="../<%= Rs("Path") %>/<%= Rs("FileName") %>" target="_blank"><font color="<%= Rs("t_Color") %>"><%= Left(Rs("Title"),13) %></font></a></td>
                            </tr>
                            <% 
 Rs.Movenext
Wend
Rs.Close
 %>
                          </table>
                        </div>
                        <div style="display:none;" id="cbx02"> 
                          <table width="100%" border="0" cellspacing="0" cellpadding="0">
                            <% 
SQL = "Select Top 6 Title,FileName,Path,t_Color From [pH_New_Info] Where Title <>'' And (Typeid=31) And Flag=1 Order By DateAndTime Desc"
Set Rs = Conn.Execute(SQL)
While Not Rs.Eof					
%>
                            <tr> 
                              <td height="24">&middot;<a href="../<%= Rs("Path") %>/<%= Rs("FileName") %>" target="_blank"><font color="<%= Rs("t_Color") %>"><%= Left(Rs("Title"),13) %></font></a></td>
                            </tr>
                            <% 
 Rs.Movenext
Wend
Rs.Close
 %>
                          </table>
                        </div>
                        <div style="display:none;" id="cbx03"> 
                          <table width="100%" border="0" cellspacing="0" cellpadding="0">
                            <% 
SQL = "Select Top 6 Title,FileName,Path,t_Color From [pH_New_Info] Where Title <>'' And (Typeid=32) And Flag=1 Order By DateAndTime Desc"
Set Rs = Conn.Execute(SQL)
While Not Rs.Eof					
%>
                            <tr> 
                              <td height="24">&middot;<a href="../<%= Rs("Path") %>/<%= Rs("FileName") %>" target="_blank"><font color="<%= Rs("t_Color") %>"><%= Left(Rs("Title"),13) %></font></a></td>
                            </tr>
                            <% 
 Rs.Movenext
Wend
Rs.Close
 %>
                          </table>
                        </div>
                        <div style="display:none;" id="cbx04"> 
                          <table width="100%" border="0" cellspacing="0" cellpadding="0">
                            <% 
SQL = "Select Top 6 Title,FileName,Path,t_Color From [pH_New_Info] Where Title <>'' And (Typeid=33) And Flag=1 Order By DateAndTime Desc"
Set Rs = Conn.Execute(SQL)
While Not Rs.Eof					
%>
                            <tr> 
                              <td height="24">&middot;<a href="../<%= Rs("Path") %>/<%= Rs("FileName") %>" target="_blank"><font color="<%= Rs("t_Color") %>"><%= Left(Rs("Title"),13) %></font></a></td>
                            </tr>
                            <% 
 Rs.Movenext
Wend
Rs.Close
 %>
                          </table>
                        </div></td>
                    </tr>
                  </table></td>
              </tr>
            </table>
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td height="5"></td>
              </tr>
            </table>
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td height="25" align="left" valign="bottom" background="../Images/Educate/left10_bg.jpg" style="padding-left:10px;"> 
                  <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr> 
                      <td width="65" height="20" align="center" valign="bottom" bgcolor="#FFFFFF"><strong>合作伙伴</strong></td>
                      <td>&nbsp;</td>
                    </tr>
                  </table></td>
              </tr>
              <tr> 
                <td style="BORDER-RIGHT: #418D8B 1px solid; BORDER-LEFT: #418D8B 1px solid;BORDER-bottom: #418D8B 1px solid;padding-top:2px;padding-bottom:2px;"><table width="90%"  border="0" align="center" cellpadding="2" cellspacing="0">
                    <%
	  
Set Rs1 = Conn.Execute("Select Top 5 LinkName,LinkUrl From [pH_FriendLink] Where State=1 And Class=0 And Cityid=0 Order By ordernum Asc")
  if not rs1.eof then
  do while not rs1.eof %>
                    <tr> 
                      <td height="15" align="left"> <a href="<%=rs1("LinkUrl")%>" target="_blank"><%=rs1("LinkName")%></a></td>
                    </tr>
                    <%rs1.movenext

loop
end if
rs1.close
%>
                  </table></td>
              </tr>
            </table>
            
          </td>
          <td width="5">&nbsp;</td>
          <td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td width="17"><img src="../Images/Educate/right1_left.jpg" width="17" height="24"></td>
                <td background="../Images/Educate/right1_bg.jpg"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td width="50%"><strong><font color="#333333">培训机构推荐</font></strong></td>
                      <td align="right"><a href="Train.asp">| 更多机构</a></td>
                    </tr>
                  </table>
                  <strong></strong></td>
                <td width="11"><img src="../Images/Educate/right1_right.jpg" width="11" height="24"></td>
              </tr>
            </table> 
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                    <% 
SQL = "Select Top 12 Schid,SchoolName,School_Memo,WebHome From [pH_Educate_Base] Where Flag=1 And VipFlag=1 And  DateDiff(d,VipDate,Getdate())>=0 And DateDiff(d,VipEndDate,Getdate())<=0 Order By LastUpdate_Time Desc"
Set Rs = Conn.Execute(SQL)
For i = 1 to 6
 If Rs.Eof Then Exit For
 %>
                    <tr> 
                      <% For j = 1 to 2 
 If Rs.Eof Then Exit For
 Schid = Rs("Schid")
 SchoolName = Rs("SchoolName")
					  %>
                      <td height="24" width="50%">&middot;<a href="Info/Index.asp?Param=<%= Schid %>" target="_blank"><u><%= SchoolName %></u></a></td>
                      <% 
 Rs.Movenext
Next
 %>
                    </tr>
                    <% 
Next
Rs.Close
 %>
                  </table></td>
              </tr>
            </table>
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td height="5"></td>
              </tr>
            </table>
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr valign="top"> 
                <td width="378"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr> 
                      <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
                          <tr> 
                            <td height="22" style="padding-left:2px;"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                <tr> 
                                  <td width="50%"><strong><font color="#333333"><img src="../Images/Educate/icon10.gif" width="5" height="16" align="absmiddle"> 
                                    课程推荐 </font></strong></td>
                                  <td align="right">| <a href="Lesson.asp">更多</a></td>
                                </tr>
                              </table> </td>
                          </tr>
                          <tr> 
                            <td height="2" bgcolor="#418D8B"></td>
                          </tr>
                        </table></td>
                    </tr>
                    <tr> 
                      <td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                          <% 
SQL = "Select Top 8 Ncid,Schid,LessonName,AddDate From [pH_Educate_Lesson] Where Flag=1 And Schid In (Select Schid From [pH_Educate_Base] Where VipFlag=1 And DateDiff(d,VipDate,Getdate())>=0 And DateDiff(d,VipEndDate,Getdate())<=0) Order By Ncid Desc"
Set Rs = Conn.Execute(SQL)
For i = 1 to 8
 If Rs.Eof Then Exit For
 Lessonid = Rs("Ncid")
 Schid = Rs("Schid")
 LessonName = Rs("LessonName")
 AddDate = Month(Rs("AddDate"))&"-"&Day(Rs("AddDate"))
 %>
                          <tr> 
                            <td height="22">&middot;<a href="Info/Lesson.asp?Schid=<%= Schid %>&Param=<%= Lessonid %>" target="_blank"><%= LessonName %></a> <font color="#666666"><%= AddDate %></font></td>
                          </tr>
                          <% 
 Rs.Movenext
Next
Rs.Close
 %>
                        </table></td>
                    </tr>
                  </table></td>
                <td width="5">&nbsp;</td>
                <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr> 
                      <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
                          <tr> 
                            <td height="22" style="padding-left:2px;"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                <tr> 
                                  <td width="50%"><strong><font color="#333333"><img src="../Images/Educate/icon10.gif" width="5" height="16" align="absmiddle"> 
                                    讲师推荐 </font></strong></td>
                                  <td align="right">| <a href="Teacher.asp">更多</a></td>
                                </tr>
                              </table></td>
                          </tr>
                          <tr> 
                            <td height="2" bgcolor="#418D8B"></td>
                          </tr>
                        </table></td>
                    </tr>
                    <tr> 
                      <td valign="top"><table width="100%" border="0" cellpadding="4" cellspacing="1" bgcolor="f5f5f5">
                          <% 
SQL = "Select Top 1 Ncid,Schid,PhotoUrl,Name,Properity,Content,ClientMemo From [pH_Educate_Teacher] Where Flag=1 And Best=1 Order By Ncid Desc"
Set Rs = Conn.Execute(SQL)

 %>
                          <tr bgcolor="#FFFFFF"> 
                            <% 
For i = 1 to 2
 If Rs.Eof Then Exit For
 Ncid = Rs("Ncid")
 PhotoUrl = Rs("PhotoUrl")
 Name = Rs("Name")
 Properity = Rs("Properity")
 Content = Left(Rs("Content"),50)&"..."
 ClientMemo = Rs("ClientMemo")
 BookImage = "DefaultFile/book.gif"
 If PhotoUrl <> "" Then BookImage = "TeacherFile/"&PhotoUrl
 %>
                            <td width="50%" valign="top"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                <tr> 
                                  <td width="80"><a href="Info/Teacher.asp?Param=<%= Ncid %>" target="_blank"><img src="../UpLoadFiles/<%= BookImage %>" width="75" height="100" border="0"></a></td>
                                  <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                      <tr> 
                                        <td height="25"><a href="Info/Teacher.asp?Param=<%= Ncid %>" target="_blank"><%= Name %></a></td>
                                      </tr>
                                      <tr> 
                                        <td height="25">培训领域：<%= Properity %></td>
                                      </tr>
                                      <tr> 
                                        <td height="25">典型客户：<%= ClientMemo %></td>
                                      </tr>
                                    </table></td>
                                </tr>
                              </table>
                              <table width="100%" border="0" cellspacing="0" cellpadding="4">
                                <tr> 
                                  <td>讲师介绍：<%= Content %></td>
                                </tr>
                              </table></td>
                            <% 
 Rs.Movenext
Next
Rs.Close
 %>
                          </tr>
                        </table></td>
                    </tr>
                  </table></td>
              </tr>
            </table>
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td height="5"></td>
              </tr>
            </table>
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td width="17"><img src="../Images/Educate/right1_left.jpg" width="17" height="24"></td>
                <td background="../Images/Educate/right1_bg.jpg"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr> 
                      <td width="50%"><strong><font color="#333333">培训书籍</font></strong></td>
                      <td align="right"><a href="Book.asp">| 更多书籍</a></td>
                    </tr>
                  </table>
                  <strong></strong></td>
                <td width="11"><img src="../Images/Educate/right1_right.jpg" width="11" height="24"></td>
              </tr>
            </table>
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td height="2"></td>
              </tr>
            </table>
            <table width="100%" border="0" cellpadding="4" cellspacing="1" bgcolor="f5f5f5">
              <% 
SQL = "Select Top 8 Ncid,BookName,PhotoUrl,PubName,Price From [pH_Educate_Book] Where Flag=1 And Best=1 Order By AddDate Desc"
Set Rs = Conn.Execute(SQL)
For i = 1 to 2
 If Rs.Eof Then Exit For
 %>
              <tr bgcolor="#FFFFFF"> 
                <% 
			  For j = 1 to 4
			   If Rs.Eof Then Exit For
			   Bookid = Rs("Ncid")
			   BookName = Rs("BookName")
			   PhotoUrl = Rs("PhotoUrl")
			   PubName = Rs("PubName")
			   Price = Rs("Price")
			   BookImage = "DefaultFile/book.gif"
			   If PhotoUrl <> "" Then BookImage = "BookFile/"&PhotoUrl
			   %>
                <td width="25%" valign="top"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr> 
                      <td align="center"> <a href="Book_Info.asp?Param=<%= Bookid %>" target="_blank"><img src="../UpLoadFiles/<%= BookImage %>" width="75" height="100" border="0"></a></td>
                    </tr>
                    <tr> 
                      <td height="25" align="center"><a href="Book_Info.asp?Param=<%= Bookid %>" target="_blank"><%= BookName %></a></td>
                    </tr>
                    <tr> 
                      <td height="25" align="center">价格：￥<%= Price %>元</td>
                    </tr>
                    <tr> 
                      <td height="25" align="center"><%= PubName %></td>
                    </tr>
                  </table></td>
                <% 
				 Rs.Movenext
				Next
				 %>
              </tr>
              <% 
Next
Rs.Close
 %>
            </table></td>
        </tr>
      </table>
      
      
	  </td>
  </tr>
</table>
<table width="950" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  <tr>
    <td><!--#include file="../Include/Footer.asp" --></td>
  </tr>
</table>
</body>
</html>
