<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="setup.asp"-->
<!--#include file="conn.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>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title><%=site_name%></title>
<link href="style.css" rel="stylesheet" type="text/css" />
</head>
<SCRIPT language=javascript type=text/javascript>
function g(o){return document.getElementById(o);} 
function HoverLic(n){ 
//如果有N个标签,就将i<=N; 
for(var i=1;i<=2;i++){g('tc_'+i).className='normaltab';g('tcc_0'+i).className='undis';}g('tcc_0'+n).className='dis';g('tc_'+n).className='hovertab'; 
} 
</SCRIPT>

<SCRIPT language=JavaScript>
<!--
function log_submit(){
 var User = document.mailForm.mail_name.value;
 var ProNo = document.mailForm.mailSelect.value;
 var mail_action = ProNo.split(";");
 if(mail_action.length > 1)
    {
 if(mail_action[1]=="suffix")
 User += " "+mail_action[2];
 else 
 eval("document.mailForm."+mail_action[1]+".value = '"+mail_action[2]+"';");
 }
 var Passwd = document.mailForm.mail_password.value;
 var Formobj = document.mailForm;
 function checkUserPass(){
  if (User == ""){
  alert("请填写您的邮箱用户名");
  document.mailForm.mail_name.focus();
  return false;
  }
  else if (Passwd == ""){
  alert("请填写您的邮箱请填写密码");
  document.mailForm.mail_password.focus();
  return false;
  }
  else {
  return true;
  }
 }
 if (checkUserPass()){
  document.mailForm.action = mail_action[0];
  document.mailForm.u.value = User;
  document.mailForm.user.value = User;
  document.mailForm.LoginName.value = User;
  document.mailForm.username.value = User;
  document.mailForm.UserName.value = User;
  document.mailForm.login_name.value = User;
  document.mailForm.login.value = User;
  document.mailForm.psw.value = Passwd;
  document.mailForm.pass.value = Passwd;
  document.mailForm.passwd.value = Passwd;
  document.mailForm.password.value = Passwd;
  document.mailForm.Password.value = Passwd;
  document.mailForm.login_password.value = Passwd;
  document.mailForm.submit();
  document.mailForm.mail_password.value = "";
 }
 return false;
}
//-->
</SCRIPT>
<!--#include file="top.asp"-->
<body>
<div id="box">
<div id="left">
  
<div id="nav4">校园之星</div>
<div id="nav_content" style="margin-bottom:5px; border-bottom-style:double; border-bottom-color:#2182BC; background-color:#ffffff;">
<%set rss=conn.execute("select top 1 * from star order by id desc")%>
  <table width="178" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
      <td width="105" rowspan="4">
	  <a href="star_view.asp?id=<%=rss("id")%>"><img src="<%=rss("photo")%>" width="98" height="100" border="0"/></a>
	  </td>
      <td width="73">姓名：<%=rss("name")%></td>
    </tr>
    <tr>
      <td>性别：<%=rss("sex")%></td>
    </tr>
    <tr>
      <td>年龄：<%=rss("age")%></td>
    </tr>
    <tr>
      <td>职业：<%=rss("Professional")%></td>
    </tr>
  </table>
  <%
  rss.close
  %>
</div>
<br>
<table border="0" align="center" cellpadding="0" cellspacing="3">
    <tr>
      <td><a href="baoming.asp"><img src="images/a_03.gif" width="182" height="60" border="0" /></a></td>
    </tr>
    <tr>
      <td><a href="Search_Results.asp"><img src="images/a_06.gif" width="182" height="60" border="0" /></a></td>
    </tr>
    <tr>
      <td><a href="guestbook.asp"><img src="images/a_08.gif" width="182" height="60" border="0" /></a></td>
    </tr>
  </table>
<div id="nav4">投票调查</div>
<div id="nav4_content">
<script language="javascript" src="vote/votescript.asp?vid=7"></script>
</div>

<div id="tab">
<DIV id=tc_ class=tb_>
<UL>
  <LI id=tc_1 class=hovertab onmouseover=x:HoverLic(1); onClick="gourl('#')"><A 
  href="#" target=_blank>用户登陆</A></LI>
  <LI id=tc_2 class=normaltab onmouseover=i:HoverLic(2); onClick="gourl('#')"><A 
  href="#" target=_blank>校园时间</A></LI>
</UL></DIV>
  <DIV class=ctt>
<DIV id=tcc_01 class=dis>
 <!--#include file="logins.asp"-->
</DIV>

<DIV id=tcc_02 class=undis>
 <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="163" height="148">
    <param name="movie" value="images/clock.swf" />
    <param name="quality" value="high" />
    <param name="wmode" value="transparent" />
    <embed src="images/clock.swf" width="163" height="148" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent"></embed>
  </object>
</DIV>

</div>
</div>


</div>
<div id="center">
<div id="news">
<div id="news_title"><span id="more">更多>></span>新闻中心</div>
<div id="news_pic">
<%
dim pictxt,titletxt,linktxt
set rsnn=server.createobject("ADODB.recordset")
sqlok="select top 5 id,title,shoupic from news where shoupic<>'' order by id desc"
rsnn.open sqlok,conn,1,1
do while not rsnn.eof
	pictxt=pictxt & trim(rsnn("shoupic")) & "|"
	titletxt=titletxt & trim(rsnn("title")) & "|"
	linktxt=linktxt & "show.asp?id=" & rsnn("id") & "|"
rsnn.movenext
loop
rsnn.close
set rsnn=nothing
	pictxt=left(pictxt,len(pictxt)-1)
	titletxt=left(titletxt,len(titletxt)-1)
	linktxt=left(linktxt,len(linktxt)-1)
%>
                          <SCRIPT type=text/javascript>
 <!--
 var focus_width=220
 var focus_height=172
 var text_height=18
 var swf_height = focus_height+text_height
 
//var pics='image/uploadfile/IMG_1901.JPG|image/uploadfile/IMG_1913.JPG|image/uploadfile/IMG_1919.JPG|image/uploadfile/IMG_1922.JPG'
var pics='<%=pictxt%>'
//var links='http://|http://|http://|http://'
var links='<%=linktxt%>'
//var texts='百年教育奖学金照片|百年教育奖学金照片|百年教育奖学金照片|百年教育奖学金照片'
var texts='<%=titletxt%>'
 document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="'+ focus_width +'" height="'+ swf_height +'">');
 document.write('<param name="allowScriptAccess" value="sameDomain"><param name="movie" value="img/playswf.swf"><param name=wmode value=transparent><param name="quality" value="high">');
 document.write('<param name="menu" value="false"><param name=wmode value="opaque">');
 document.write('<param name="FlashVars" value="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'">');
 document.write('<embed src="img/playswf.swf" wmode="opaque" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'" menu="false" bgcolor="#0066CC" quality="high" width="'+ focus_width +'" height="'+ swf_height +'" allowScriptAccess="sameDomain" type="application/x-shockwave-fla?????????sh" pluginspage="http://www.macromedia.com/go/getflashplayer" />');  document.write('</object>');
 
 //-->
              </SCRIPT>
</div>
<div id="news_list">
<ul>
<%
 Set rs = Server.CreateObject("ADODB.RecordSet")
rs.open "select top 6 * from news where yiid=18  order by id desc",conn,1,1
if rs.eof and rs.bof then
response.Write("")
else
do while not rs.eof
%>
<li><span class="date">[<%=rs("newstime")%>]</span>·<a href="show.asp?id=<%=rs("id")%>"><%=rs("title")%></a></li>
<%
rs.movenext
loop
end if
rs.close
set rs=nothing
 %>
</ul>
</div>

</div>

<div id="gg">
<div id="gg_title"></div>
<%set rsu=conn.execute("select * from gg")%>
<div id="gg_content"> <%=left(rsu("content"),126)%>...<a href="gg.asp?id=<%=rsu("id")%>">[查看全部]</a></div>
</div>

<div id="cannel">
<div id="cannel_title"><span id="more">更多>></span>学生工作</div>
<div id="cannel_content">
<div id="cannel_content_text">
<ul>
 <%
 Set rs = Server.CreateObject("ADODB.RecordSet")
rs.open "select top "& index_lanmu_no &" * from news where yiid=12  order by id desc",conn,1,1
if rs.eof and rs.bof then
response.Write("")
else
do while not rs.eof
%>
<li>·<a  href="show.asp?id=<%=rs("id")%>" ><%=rs("title")%></a></li>
<%
rs.movenext
loop
end if
rs.close
set rs=nothing
 %>
</ul>
</div>
</div>
</div>

<div id="cannel2">
<div id="cannel_title"><span id="more">更多>></span>招生就业</div>
<div id="cannel_content">
<div id="cannel_content_text">
<ul>
 <%
 Set rs = Server.CreateObject("ADODB.RecordSet")
rs.open "select top "& index_lanmu_no &" * from news where yiid=13 order by id desc",conn,1,1
if rs.eof and rs.bof then
response.Write("")
else
do while not rs.eof
%>
<li>·<a href="show.asp?id=<%=rs("id")%>"><%=rs("title")%></a></li>
<%
rs.movenext
loop
end if
rs.close
set rs=nothing
 %>
</ul>
</div>
</div>
</div>

<div id="ad"></div>

<div id="cannel">
<div id="cannel_title"><span id="more">更多>></span>党团建设</div>
<div id="cannel_content">
<div id="cannel_content_text">
<ul>
 <%
 Set rs = Server.CreateObject("ADODB.RecordSet")
rs.open "select top 6 * from news where yiid=20  order by id desc",conn,1,1
if rs.eof and rs.bof then
response.Write("")
else
do while not rs.eof
%>
<li>·<a href="show.asp?id=<%=rs("id")%>"><%=rs("title")%></a></li>
<%
rs.movenext
loop
end if
rs.close
set rs=nothing
 %>
</ul>
</div>
</div>
</div>

<div id="cannel2">
<div id="cannel_title"><span id="more">更多>></span>就业信息</div>
<div id="cannel_content">
<div id="cannel_content_text">
<ul>
 <%
 Set rs = Server.CreateObject("ADODB.RecordSet")
rs.open "select top 6 * from news where yiid=20  order by id desc",conn,1,1
if rs.eof and rs.bof then
response.Write("")
else
do while not rs.eof
%>
<li>·<a href="show.asp?id=<%=rs("id")%>"><%=rs("title")%></a></li>
<%
rs.movenext
loop
end if
rs.close
set rs=nothing
 %>
</ul>
</div>
</div>
</div>



</div>

<div id="pic">
<div id="pic_title"></div>
<div id="pic_content">
<div id="demo22" style="width:1000px; height:145px;overflow:hidden;">
<div id="demo122">
 <ul class="products">
         <%
Set rs = server.CreateObject("adodb.recordset")
exec="select top 10 * from news where shoupic<>'' order by id desc"
rs.Open exec, conn, 1, 1
%>
        <%
Dim ii
ii = 1
Do While Not rs.EOF
%>
        <li><a href="show.asp?id=<%=rs("id")%>" title="<%=rs("title")%>"><img src="<%=rs("shoupic")%>" width="130" height="100" /></a><br />
        <a href="show.asp?id=<%=rs("id")%>" title="<%=rs("title")%>"><%=left(rs("title"),14)%></a></li>
        <%
ii = ii + 1
rs.movenext
Loop
rs.close
set rs=nothing
%>
  </ul>
</div>
<div id="demo222"></div>
</div>
</div>
</div>
<div id="link">
  <ul>
    <%
Set rsi = server.CreateObject("adodb.recordset")
exec = "select top 10 * from  friendly_link_img  order by id asc  "
rsi.Open exec, conn, 1, 1
%>
    <%
Dim flt
flt = 1
Do While Not rsi.EOF

%>
    <li><a href="<%=rsi("url")%>" title="<%=rsi("title")%>"><img src="<%=rsi("logo")%>" width="88" height="31" border="0" /></a></li>
    <%
If flt Mod 10 = 0 Then
    response.Write "<tr>"
End If
flt = flt + 1
rsi.movenext
Loop
rsi.close
set rsi=nothing
%>
  </ul>
</div>

</div>
</div>
<!--#include file="bottom.asp"-->
</body>
</html>