<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="conn.asp" -->
<!--#include file="config.asp" -->
<!--#include file="syscode.asp" -->
<%
cls=GetSafeStr(request("cls"))
if cls<>"" then
	sql=sql&" smallclassname = '"&cls&"' and"
	info=">> "&cls
else
	info=""
end if
sql2= "select * from news where bigclassid=1 and "&sql&" id is not null"
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>西安西科职业技术学院-新闻中心-<%=cls%></title>
<!--关键字修改 config.asp 就可以了-->
<meta name="keywords" content="<%=key%>">
<meta name="description" content="<%=descrip%>">
<link href="style.css" rel="stylesheet" type="text/css">
<script type="text/JavaScript">

function TableMouseOver(Obj){
	Obj.style.backgroundColor='#f4f4f4';
}
function TableMouseOut(Obj){
	Obj.style.backgroundColor='';
}

</script>
</head>
<body>
<!--#include file="top.asp" -->
<table width="950" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="235" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td height="34" background="images/left.jpg"><table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td width="10%" align="right"><img src="images/arrow.gif" width="9" height="9"></td>
              <td width="27%">&nbsp;<span class="baifont">学院概况</span></td>
              <td width="47%">&nbsp;</td>
              <td width="16%">&nbsp;</td>
            </tr>
        </table></td>
      </tr>
      <tr>
        <td height="100" valign="top"><table width="232" border="0" align="right" cellpadding="0" cellspacing="0" background="images/abbg.jpg">
            <tr>
              <td width="230" height="100" valign="top"><table width="223" border="0" align="center" cellpadding="0" cellspacing="0">
                  <tr>
                    <td width="111" height="28" align="center"><img src="images/t1.gif" width="8" height="13" align="absmiddle"> <a href="about.asp">学院简介</a></td>
                    <td width="112" align="center"><img src="images/t1.gif" width="8" height="13" align="absmiddle"> <a href="huanjing.asp">校园风貌</a></td>
                  </tr>
                  <tr>
                    <td height="28" align="center"><img src="images/t1.gif" width="8" height="13" align="absmiddle"> <a href="shizi.asp">师资力量</a></td>
                    <td align="center"><img src="images/t1.gif" width="8" height="13" align="absmiddle"> <a href="youshi.asp">办学优势</a></td>
                  </tr>
                  <tr>
                    <td height="28" align="center"><img src="images/t1.gif" width="8" height="13" align="absmiddle"> <a href="guanli.asp">学院管理</a></td>
                    <td align="center"><img src="images/t1.gif" width="8" height="13" align="absmiddle"> <a href="linian.asp">办学理念</a></td>
                  </tr>
                  <tr>
                    <td height="28" colspan="2" align="center">&nbsp;</td>
                  </tr>
              </table></td>
            </tr>
        </table></td>
      </tr>
    </table>
    <table width="100%" height="5" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td ></td>
  </tr>
</table>

	<table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td height="34" background="images/left1.jpg"><table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td width="10%" align="right"><img src="images/arrow.gif" width="9" height="9"></td>
              <td width="27%">&nbsp;<span class="baifont">考生问答</span></td>
              <td width="47%">&nbsp;</td>
              <td width="16%"><a href="wenda.asp"><img src="images/more.gif" width="27" height="18" border="0"></a></td>
            </tr>
        </table></td>
      </tr>
      <tr>
        <td height="148" valign="top" background="images/left3bg.jpg" bgcolor="#CEE9FE"><table width="97%" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
              <td><%
	sql="select top 6 * from news where smallclassname='问答'order by ord desc,id desc"
	set rs = conn.execute(sql)
	if rs.bof and rs.eof then
		response.write("<table ><tr><td>暂无记录</td></tr></table>")
	else
	%>
                  <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <%
	while not rs.eof
		if len(rs("title"))>11 then
		stitle=left(rs("title"),11)&"..."
	else
		stitle=rs("title")
	end if
	i=i+1
	%>
                    <tr >
                      <td width="19" align="center"><img src="images/wenhao.gif" width="10" height="12"></td>
                      <td width="150" height="22"><a href="showfaq.asp?id=<%=rs("id")%>" target="_blank" title="<%=rs("title")%>"><%=stitle%></a></td>
                      <td width="54"  ><%=rs("addtime")%></td>
                    </tr>
                    <%
	rs.movenext
	wend
	%>
                  </table>
                <%
	rs.close
	set rs=nothing
	end if
%>
              </td>
            </tr>
        </table></td>
      </tr>
    </table>
	<table width="100%" height="5" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td ></td>
      </tr>
    </table>
	<table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td height="34" background="images/left1.jpg"><table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td width="10%" align="right"><img src="images/arrow.gif" width="9" height="9"></td>
              <td width="27%">&nbsp;<span class="baifont">学员作品</span></td>
              <td width="47%">&nbsp;</td>
              <td width="16%"><a href="zuopin.asp"><img src="images/more.gif" width="27" height="18" border="0"></a></td>
            </tr>
        </table></td>
      </tr>
      <tr>
        <td valign="top" class="lbk"><table width="97%" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
              <td height="158" valign="top"><%
	sql="select top 6 * from news where bigclassid=2 order by ord desc,id desc"
	set rs = conn.execute(sql)
	if rs.bof and rs.eof then
		response.write("<table ><tr><td>暂无记录</td></tr></table>")
	else
	%>
                  <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <%
	while not rs.eof
		if len(rs("title"))>18 then
		stitle=left(rs("title"),18)&"..."
	else
		stitle=rs("title")
	end if
	i=i+1
	%>
                    <tr >
                      <td width="19" align="center"><img src="images/PLUS.GIF" width="15" height="15"></td>
                      <td height="22"><a href="showzp.asp?id=<%=rs("id")%>" target="_blank" title="<%=rs("title")%>"><%=stitle%></a></td>
                    </tr>
                    <%
	rs.movenext
	wend
	%>
                  </table>
                <%
	rs.close
	set rs=nothing
	end if
%>              </td>
            </tr>
        </table></td>
      </tr>
    </table></td>
    <td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td height="39" background="images/ctoptbg.jpg"><table width="97%" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td width="4%" align="center"><img src="images/Sm_MainDayIcon.gif" width="15" height="15"></td>
            <td width="96%">新闻中心&gt;&gt; <%=cls%></td>
          </tr>
        </table></td>
      </tr>
    </table>
      <table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
        <tr>
          <td valign="top" class="crt"><table width="708" border="0" align="right" cellpadding="4" cellspacing="2">
            <tr>
              <td width="696" height="484" valign="top"><%
set rs=server.CreateObject("adodb.recordset")
rs.open sql2,conn,1,1
	if rs.eof then
	response.Write"<br><br>暂无记录<br><br>"
	else
	rs.PageSize =20
    Page = CLng(Request("Page"))
    If Page < 1 Then Page = 1
    If Page > rs.PageCount Then Page = rs.PageCount
	rs.absolutepage=page
	%>
                    <table width="98%" border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <td height="460" align="center" valign="top"><%
	for i=1 to rs.PageSize
	%>
                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                              <tr onMouseOver='TableMouseOver(this)' onMouseOut='TableMouseOut(this)'>
                                <td width="3%" height="22" align="right"><img src="images/newlst.jpg" width="10" height="12"></td>
                                <td width="65%" height="22">&nbsp;<a href="shownews.asp?id=<%=rs("id")%>" target="_blank" ><%=rs("title")%></a>
                                    <%if left(rs("D_SavePathFileName"),1)="/" then response.Write"&nbsp;<img src='/images/pic.gif'align='absbottom'>"%>
                                </td>
                                <td width="21%"><font color="#CCCCCC"><%=rs("addtime")%></font></td>
                                <td width="11%"><font color="#ff0000"> <%=rs("hits")%></font> 次</td>
                              </tr>
                          </table>
                            <%
	  rs.movenext
	  if rs.eof then exit for
	  next%></td>
                      </tr>
                      <tr>
                        <td height="22" align="center" bgcolor="#F3F3F3"><span class="bai_font">
                            <% 
  If page=1 Then
  response.Write "<font color=#999966>第一页</font>&nbsp;"
  response.Write "<font color=#999966>上一页</font>&nbsp;"
  else
  response.Write"<a href='?page=1'>第一页</a>&nbsp;&nbsp;<a href='?page="&(page-1)&"'>上一页</a>&nbsp;"
  end if
  If cint(page)=rs.pagecount then
  response.Write "<font color=#999966>下一页&nbsp;</font>"
  response.Write "<font color=#999966>最后页&nbsp;</font>"
  else
  response.Write"<a href='?page="&(page+1)&"'>下一页</a>&nbsp;<a href='?page="&rs.pagecount&"'>最后页</a>&nbsp;"
  end if
%>
                          &nbsp;页次&nbsp;<font color="Red"><%=Page%></font>/<%=rs.PageCount%> 共<font color="Red"><%=rs.recordcount%></font>条记录
                          <select name="sel_page" onChange="javascript:location=this.options[this.selectedIndex].value;">
                            <%for i = 1 to rs.PageCount
                  if i = page then%>
                            <option value="?page=<%=i%>"selected="selected"><%=i%></option>
                            <%else%>
                            <option value="?page=<%=i%>"><%=i%></option>
                            <%
			 end if
             next
             %>
                          </select>
                        </td>
                      </tr>
            </table>
                <%
	  end if
	  %>
		  </td>
            </tr>
          </table></td>
        </tr>
      </table></td>
  </tr>
</table>
<!--#include file="end.asp" -->
</body>
</html>
