<!--#include file="function.asp"-->
<html>
<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="keywords" content="E创网络http://www.e-cweb.net">
<title><%=jjgn%></title>
<LINK href=news.css rel=stylesheet>
<link rel="Shortcut Icon" href="e-cweb.ico"><!--IE地址栏前换成自己的图标--> 
<link rel="Bookmark" href="e-cweb.ico"><!--可以在收藏夹中显示出你的图标-->
<% dim mm_id,mm_pic,mm_topic,mm_i,mm_id0,mm_topic0,mm_temp1,mm_temp2,mm_temp3  
mm_i=0   
mm_id0=0 
set rs3=server.CreateObject("ADODB.RecordSet") 
rs3.Source="select top 10 *  from "& db_News_Table &" where picnews=1 and goodnews=1 and checkked=1 and picname is not null order by NewsID DESC"
rs3.Open rs3.Source,conn,1,1   
do while not rs3.eof    
mm_id=rs3("Newsid")     
mm_pic=rs3("picname")     
mm_pic=mm_pic    
mm_topic=rs3("title")   
mm_topic=mm_topic         
if instr(mm_pic,"://")<1 then   
mm_pic=mm_pic    
end if     
if mm_i=0 then  
mm_id0=rs3("Newsid")   
mm_topic0=rs3("title")     
end if     
mm_temp1= mm_temp1&"uploadfile/"&mm_pic&"," 
mm_temp2= mm_temp2&"E_ReadNews.asp?newsid="&mm_id&"," 
mm_temp3= mm_temp3&""&mm_topic&","
mm_i=mm_i+1   
rs3.movenext 
loop  
rs3.close 
if instr(right(mm_temp1,1),",")>0 then  
mm_temp1=left(mm_temp1,len(mm_temp1)-1)  
mm_temp2=left(mm_temp2,len(mm_temp1)-1) 
mm_temp3=left(mm_temp3,len(mm_temp1)-1)  
end if%> 

<table width="389" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="389" height="31" background="Images/ec_08.gif">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top">
	<table width="389" border="0" align="left" cellpadding="3" cellspacing="0" bgcolor="#FFFFFF" id="AutoNumber3">
      <tr>
        <td width="165" valign="top" bgcolor="#FFFFFF"><SCRIPT language="VBScript"> 
 Dim FileList,FileListArr,TxtList,TxtListArr,LinkList,LinkArr 
 FileList = "<%=mm_temp1%>" 
 LinkList = "<%=mm_temp2%>" 
 TxtList = "<%=mm_temp3%>" 
 FileListArr = Split(FileList,",") 
 LinkArr = Split(LinkList,",") 
 TxtListArr = Split(TxtList,",") 
 Dim CanPlay 
 CanPlay = CInt(Split(Split(navigator.appVersion,";")(1)," ")(2))>5 
 Dim FilterStr 
  FilterStr = "RevealTrans(duration=2,transition=23)" 
  FilterStr = FilterStr + ";BlendTrans(duration=2)" 
  If CanPlay Then 
FilterStr = FilterStr + ";progid:DXImageTransform.Microsoft.Pixelate(,enabled=false,duration=2,maxSquare=25)"
FilterStr = FilterStr + ";progid:DXImageTransform.Microsoft.Fade(duration=2,overlap=0)"
FilterStr = FilterStr + ";progid:DXImageTransform.Microsoft.GradientWipe(duration=2,gradientSize=0.25,motion=forward )"
FilterStr = FilterStr + ";progid:DXImageTransform.Microsoft.Stretch(duration=2,stretchStyle=PUSH)"
FilterStr = FilterStr + ";progid:DXImageTransform.Microsoft.Wheel(duration=2,spokes=16)"
FilterStr = FilterStr + ";progid:DXImageTransform.Microsoft.RandomDissolve(duration=2)"
FilterStr = FilterStr + ";progid:DXImageTransform.Microsoft.Spiral(duration=2,gridSizeX=50,gridSizeY=50)"
FilterStr = FilterStr + ";progid:DXImageTransform.Microsoft.Slide(duration=2,bands=1,slideStyle=SWAP)"
FilterStr = FilterStr + ";progid:DXImageTransform.Microsoft.RadialWipe(duration=2,wipeStyle=CLOCK)"
FilterStr = FilterStr + ";progid:DXImageTransform.Microsoft.Pixelate(MaxSquare=15,Duration=1)"
FilterStr = FilterStr + ";progid:DXImageTransform.Microsoft.Wipe(duration=3,gradientsize=0.25,motion=reverse)"
  Else 
   Msgbox "幻灯片播放具有多种动态图片切换效果，但此功能需要您的浏览器为IE5.5或以上版本，否则您将只能看到部分的切换效果。",64 
  End If 
 Dim FilterArr 
 FilterArr = Split(FilterStr,";") 
 Dim PlayImg_M 
 PlayImg_M = 5 * 1000  '切换时间（毫秒） 
 Dim I 
 I = 1 
 Sub ChangeImg 
  Do While FileListArr(I)="" 
  I = I + 1 
  If I>UBound(FileListArr) Then I = 0 
  Loop 
  Dim J 
  If I>UBound(FileListArr) Then I = 0 
  Randomize 
  J = Int(Rnd * (UBound(FilterArr)+1)) 
  Img.style.filter = FilterArr(J) 
  Img.filters(0).Apply 
  Img.Src = FileListArr(I) 
  Img.filters(0).play 
  Link.Href = LinkArr(I) 
  Txt.filters(0).Apply 
  Txt.innerHTML = TxtListArr(I) 
  Txt.filters(0).play 
  I = I + 1 
  If I>UBound(FileListArr) Then I = 0 
  TempImg.Src = FileListArr(I) 
  TempLink.Href = LinkArr(I) 
  SetTimeout "ChangeImg", PlayImg_M,"VBScript" 
 End Sub 
      </SCRIPT>
            <TABLE width="160" border=0 cellPadding=0 cellSpacing=0>
              <TR>
                <TD vAlign=top width=8><IMG height=7 src="images/index_t_center_1.gif" width=8></TD>
                <TD width=150 bgColor=#E7E4DC></TD>
                <TD vAlign=top width=7><IMG height=7 src="images/index_t_center_2.gif" width=7></TD>
              </TR>
              <TR>
                <TD bgColor=#E7E4DC>&nbsp;</TD>
                <TD><TABLE width="100%" border="0" cellpadding="0" cellspacing="0" class=56>
                    <TR ID="NoScript">
                      <TD colspan="2" Align="Center" Style="Color:red">对不起，图片浏览功能需脚本支持，但您的浏览器已经设置了禁止脚本运行。请您在浏览器设</span>置中调整有关安全选项。 </TD>
                    </TR>
                  <TD Align="Center" Style="Display:none" ID="CanRunScript"><a id="Link" " target=_blank"><Img ID="Img"  Width="150" Height="120" Border="0" ></a> </TD>
                    <TD Style="Display:none"><a id=TempLink " target=_blank"><Img ID="TempImg" Border="0"></a> </TD>				                    <TR>
                    <TD HEIGHT="100%" colspan="2" Align="Center" vAlign="Center"><div ID="Txt"style="PADDING-LEFT: 5px; Z-INDEX: 1; FILTER: progid:DXImageTransform.Microsoft.Fade(duration=1,overlap=0); POSITION:"><%=mm_topic0%></div></TD>
                  </tr>
                  </TABLE>
                    <Script Language="VBScript"> 
 NoScript.Style.Display = "none" 
 CanRunScript.Style.Display = "" 
 Img.Src = FileListArr(0) 
 Link.Href = LinkArr(0) 
 SetTimeout "ChangeImg", PlayImg_M,"VBScript" 
        </Script>
                </TD>
                <TD bgColor=#E7E4DC>&nbsp;</TD>
              </TR>
              <TR>
                <TD><IMG height=8 src="images/index_t_center_4.gif" width=8></TD>
                <TD width=150 bgColor=#E7E4DC></TD>
                <TD><IMG height=8 src="images/index_t_center_3.gif" width=7></TD>
              </TR>
            </TABLE>
        <td width="4" valign="top" background="images/t.gif" bgcolor="#FFFFFF">    
        <td width="202"><% set rs9=server.CreateObject("ADODB.RecordSet") 
	rs9.Source="select top 10 * from "& db_News_Table &" where goodnews=1 order by newsid desc"
	rs9.Open rs9.Source,conn,1,1
	do while not rs9.EOF
	title=trim(rs9("title"))%>
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td height="18"><img src="images/point.gif" width="10" height="7"><a class=middle target="_blank" href="E_ReadNews.asp?NewsId=<%=rs9("newsid")%>" title="<%=CutStr(nohtml(rs9("Content")),100)%>"> <%=CutStr(htmlencode4(title),28)%></a></td>
              </tr>
            </table>
          <%rs9.movenext
	loop
	rs9.close
	set rs9=nothing%>
        </td>
      </tr>
    </table></td>
  </tr>
</table>
<table width="389" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  <tr>
    <td width="389" height="27" background="Images/ec_17.gif">&nbsp;</td>
  </tr>
  <tr>
    <td height="97" valign="top">
      <div align="left">
        <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td>
              <% set rs9=server.CreateObject("ADODB.RecordSet") 
						rs9.Source="select top 6 * from "& db_News_Table &" where istop=1 order by newsid desc"
						rs9.Open rs9.Source,conn,1,1
						do while not rs9.EOF
						title=trim(rs9("title"))
			%>
              <img src="images/point.gif" width="10" height="7"> <a class=middle target="_blank" href="E_ReadNews.asp?NewsId=<%=rs9("newsid")%>" title="<%=htmlencode4(title)%>"> <font color=<%=rs9("titlecolor")%>>[<%=CutStr(htmlencode4(rs9("title")),10)%>]</font> </a> <a class=middle target="_blank" href="E_ReadNews.asp?NewsId=<%=rs9("newsid")%>" title="<%=htmlencode4(title)%>"><%=CutStr(nohtml(rs9("Content")),40)%></a>
              <!--评-->
              <% if rs9("titlesize")>=1 then %>
              <A class=middle HREF="<%=path%>Review.asp?NewsID=<%=rs9("NewsID")%>" target="_blank" > <font color=red><b>评</b></font></A>
              <%end if %>
              <!--评-->
              <br>
              <%
			rs9.movenext
			loop
			rs9.close
			set rs9=nothing
			%>
            </td>
          </tr>
        </table>
    </div></td>
  </tr>
</table>
<%
set rs=server.CreateObject("ADODB.RecordSet") 
if uselevel=1 then
	if Request.cookies(eChuang)("key")="super" or Request.cookies(eChuang)("key")="typemaster" or Request.cookies(eChuang)("key")="bigmaster" or Request.cookies(eChuang)("key")="smallmaster" or Request.cookies(eChuang)("key")="check" then
		rs.Source="select top 1 * from "& db_News_Table &" where checkked=1 and goodnews=1 and picname is not null order by NewsId DESC"
	end if
	if Request.cookies(eChuang)("key")="" then
		rs.Source="select top 1 * from "& db_News_Table &" where checkked=1 and goodnews=1 and picname is not null order by NewsId DESC"
	end if
	if Request.cookies(eChuang)("key")="selfreg" then
		if Request.cookies(eChuang)("reglevel")=3 then
			rs.Source="select top 1 * from "& db_News_Table &" a1,type a2 where a1.typeid=a2.typeid and checkked=1 and goodnews=1 and typeview=1  and picname is not null order by NewsId DESC"
		end if
		if Request.cookies(eChuang)("reglevel")=2 then
			rs.Source="select top 1 * from "& db_News_Table &" a1,type a2 where a1.typeid=a2.typeid and checkked=1 and goodnews=1 and typeview=1  and picname is not null order by NewsId DESC"
		end if
		if Request.cookies(eChuang)("reglevel")=1 then
			rs.Source="select top 1 * from "& db_News_Table &" a1,type a2 where a1.typeid=a2.typeid and checkked=1 and goodnews=1 and typeview=1  and picname is not null order by NewsId DESC"
		end if
	end if
else
	rs.Source="select top 1 * from "& db_News_Table &" a1,type a2 where a1.typeid=a2.typeid and checkked=1 and goodnews=1 and typeview=1 and picname is not null order by NewsId DESC"
end if
rs.Open rs.Source,conn,3,3
if rs.EOF then
	Response.Write "<center>目前暂无推荐内容</center>"
else
	title=rs("title")
	fileExt=lcase(getFileExtName(rs("picname")))
	%>
<% set rs78=server.CreateObject("ADODB.RecordSet") 
						rs78.Source="select top " & top_img & " * from "& db_News_Table &" where checkked=1 and goodnews=1 order by newsid desc"
						rs78.Open rs78.Source,conn,1,1
			
						do while not rs78.EOF
						newsurl="E_ReadNews.asp?NewsID=" & rs78("NewsID")
						newswwwurl=rs78("titleface")
		if rs78("bigclassID")<>"" then 
		B=rs78("bigclassID")
		set rs79=server.createobject("adodb.recordset")
		sql="SELECT bigclassID,E_BigClassName FROM "& db_BigClass_Table &" WHERE bigclassID="&B
		Set rs79=Conn.Execute(sql)
		A=rs79("E_BigClassName")
		rs79.close
		set rs79=Nothing
	else
		A="本栏"
	end if
		title=trim(rs78("title"))
%>
<%rs78.movenext
loop
rs78.close
set rs78=nothing%>
<%end if
rs.close
set rs=nothing
%>
