?? yenews.asp
字號:
<!--#include file="Inc/syscode.asp"-->
<!--#include file="Inc/eshopcode.asp"-->
<!-- #include file="Inc/Head.asp" -->
<TABLE width="760" border=0 align="center" cellPadding=0 cellSpacing=0 bgcolor="#FFFFFF">
<TBODY>
<TR>
<TD width=196 height="480" vAlign=top bgcolor="#FFFFFF">
<table width="92%" height="100%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<tr>
<td valign="top"><TABLE width="100%" border=0 cellPadding=0 cellSpacing=0 background="Img/index_01b.gif">
<TBODY>
<TR>
<TD height=15 bgcolor="#FFFFFF"></TD>
</TR>
<TR>
<TD height="26" background="Img/index_01.gif">
<div align="center"><font color="#FFFFFF">會員登陸</font> </div></TD>
</TR>
<TR>
<TD height="5"> </TD>
</TR>
<TR>
<TD vAlign=top><table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td>
<% call ShowUserLogin() %>
</td>
</tr>
</table></TD>
</TR>
<TR>
<TD height="5"> </TD>
</TR>
<TR>
<TD
height=1 colspan="2"
background=img/naSzarym.gif><IMG height=1 src="img/1x1_pix.gif"
width=10></TD>
</TR>
</TBODY>
</TABLE>
<TABLE width="100%" border=0 cellPadding=0 cellSpacing=0 background="Img/index_01b.gif">
<TBODY>
<TR>
<TD height=15 bgcolor="#FFFFFF"></TD>
</TR>
<TR>
<TD height="26" background="Img/index_01.gif">
<div align="center"><font color="#FFFFFF">新聞中心</font> </div></TD>
</TR>
<TR>
<TD height="22"> <div align="center"><a href="News.asp">企
業 新 聞</a></div></TD>
</TR>
<TR>
<TD
height=1 colspan="2"
background=img/naSzarym.gif><IMG height=1 src="img/1x1_pix.gif"
width=10></TD>
</TR>
<TR>
<TD height="22"><div align="center"><a href="yeNews.asp">業
內 資 訊</a></div></TD>
</TR>
<TR>
<TD
height=1 colspan="2"
background=img/naSzarym.gif><IMG height=1 src="img/1x1_pix.gif"
width=10></TD>
</TR>
</TBODY>
</TABLE>
<TABLE width="100%" border=0 cellPadding=0 cellSpacing=0 background="Img/index_01b.gif">
<TBODY>
<TR>
<TD height=15 bgcolor="#FFFFFF"></TD>
</TR>
<TR>
<TD height="26" background="Img/index_01.gif">
<div align="center"><font color="#FFFFFF">郵件列表</font> </div></TD>
</TR>
<TR>
<TD height="5"> </TD>
</TR>
<TR>
<form method="POST" action="chkemail.asp">
<TD vAlign=top><table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="25"> <div align="center">
<input name='email' type='text' value="@" size='15'>
</div></td>
</tr>
<tr>
<td height="25"><div align="center">
<input type="submit" value="訂閱" name="action">
<input type="submit" value="退訂" name="action">
</div></td>
</tr>
</table></TD>
</form>
</TR>
<TR>
<TD height="5"> </TD>
</TR>
<TR>
<TD
height=1 colspan="2"
background=img/naSzarym.gif><IMG height=1 src="img/1x1_pix.gif"
width=10></TD>
</TR>
</TBODY>
</TABLE></td>
</tr>
</table>
</TD>
<TD width=1 background=img/kropki_pion_naBialym.gif><IMG
height=2 src="img/1x1_pix.gif" width=1></TD>
<TD vAlign=top> <TABLE width="90%" border=0 align="right" cellPadding=0 cellSpacing=0>
<TBODY>
<TR>
<TD height=120><table width="555" height="125" border="0" cellpadding="0" cellspacing="0">
<tr>
<td><div align="center">
<table width="75%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="5"></td>
</tr>
</table>
<table width="559" height="136" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="165" background="image/c1.gif"> <div align="center">
<object classid="clsid:D27CDB6E-AE6D-11CF-96B8-444553540000" id="obj1" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" border="0" width="555" height="157">
<param name="movie" value="Img/32.swf">
<param name="quality" value="High">
<param name="wmode" value="transparent">
<embed src="Img/32.swf" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" name="obj1" width="555" height="157"></object>
</div></td>
</tr>
</table>
</div></td>
</tr>
</table></TD>
</TR>
<TR>
<TD height=10><IMG height=1
src="img/1x1_pix.gif" width=1></TD>
</TR>
<TR>
<TD> </TD>
</TR>
<TR>
<TD
height=1 background=img/naBialym.gif><IMG height=1 src="img/1x1_pix.gif"
width=10></TD>
</TR>
<TR>
<TD
height=1> <%
flag="尚未處理"
set rs=server.createobject("adodb.recordset")
sqltext="select * from Yenews Order BY id desc"
rs.open sqltext,conn,1,1
dim PerPage
PerPage=20
'假如沒有數據時
If rs.eof and rs.bof then
call showpages
response.write "<p align='center'><font color='#ff0000'>還沒任何新聞</font></p>"
response.end
End if
'取得頁數,并判斷用戶輸入的是否數字類型的數據,如不是將以第一頁顯示
text="0123456789"
Rs.PageSize=PerPage
for i=1 to len(request("page"))
checkpage=instr(1,text,mid(request("page"),i,1))
if checkpage=0 then
exit for
end if
next
If checkpage<>0 then
If NOT IsEmpty(request("page")) Then
CurrentPage=Cint(request("page"))
If CurrentPage < 1 Then CurrentPage = 1
If CurrentPage > Rs.PageCount Then CurrentPage = Rs.PageCount
Else
CurrentPage= 1
End If
If not Rs.eof Then Rs.AbsolutePage = CurrentPage end if
Else
CurrentPage=1
End if
call showpages
call list
If Rs.recordcount > PerPage then
call showpages
end if
'顯示帖子的子程序
Sub list()%>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="3" bgcolor="#FBFEFF">
<tr>
<td height="8"></td>
</tr>
<%
if not rs.eof then
do while not rs.eof
%>
<tr>
<td> ※ <a href="yeNewsInfo.asp?id=<%=rs("id")%>"><%=rs("title")%></a> <font color="#0066CC" face="Arial"><%=rs("time")%></font> <%if rs("time")=date() then%> <strong><font color="#FF0000" face="Arial">New</font></strong>
<%end if%> </td>
</tr>
<%
i=i+1
if i >= Perpage then exit do
rs.movenext
loop
end if
%>
<tr>
<td height="8"></td>
</tr>
</table>
<table width="100%" height="19" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="14%" height="18" bgcolor="#eeeeee"> <img src="img/arrow.gif" width="16" height="13"><strong>業內資訊</strong></td>
<td width="86%" bgcolor="#eeeeee"> <%
Response.write "<strong><font color='#000000'>-> 全部-</font>"
Response.write "共</font>" & "<font color=#FF0000>" & Cstr(Rs.RecordCount) & "</font>" & "<font color='#000000'>條新聞</font></strong> "
Response.write "<strong><font color='#000000'>第</font>" & "<font color=#FF0000>" & Cstr(CurrentPage) & "</font>" & "<font color='#000000'>/" & Cstr(rs.pagecount) & "</font></strong> "
If currentpage > 1 Then
response.write "<strong><a href='yeNews.asp?&page="+cstr(1)+"'><font color='#000000'>首頁</font></a><font color='#ffffff'> </font></strong>"
Response.write "<strong><a href='yeNews.asp?page="+Cstr(currentpage-1)+"'><font color='#000000'>上一頁</font></a><font color='#ffffff'> </font></strong>"
Else
Response.write "<strong><font color='#000000'>上一頁 </font></strong>"
End if
If currentpage < Rs.PageCount Then
Response.write "<strong><a href='yeNews.asp?page="+Cstr(currentPage+1)+"'><font color='#000000'>下一頁</font></a><font color='#ffffff'> </font>"
Response.write "<a href='yeNews.asp?page="+Cstr(Rs.PageCount)+"'><font color='#000000'>尾頁</font></a></strong> "
Else
Response.write ""
Response.write "<strong><font color='#000000'>下一頁</font></strong> "
End if
'response.write "</td><td align='right'>"
'response.write "<font color='#000000' >轉到:</font><input type='text' name='page' size=4 maxlength=4 class=smallInput value="&Currentpage&"> "
'response.write "<input class=buttonface type='submit' value='Go' name='cndok'> "
%> </td>
</tr>
<tr>
<td height="1" colspan="2" bgcolor="#999999"></td>
</tr>
</table>
<%
End sub
rs.close
%> </TD>
</TR>
<TR>
<TD
height=1 background=img/naBialym.gif><IMG height=1 src="img/1x1_pix.gif"
width=10></TD>
</TR>
<TR>
<TD
height=45> </TD>
</TR>
</TBODY>
</TABLE></TD>
</TR>
</TBODY>
</TABLE>
<!-- #include file="Inc/Foot.asp" -->
</BODY></HTML>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -