www.gusucode.com > 艺帆全站DIV+CSS体育用品公司网站源码 1.7.5源码程序 > index_right.asp
<div class="index_news"> <h2>艺帆新闻</h2> <% set right_news=server.createobject("adodb.recordset") exec="select top 5 * from [news] order by id desc " right_news.open exec,conn,1,1 if right_news.eof and right_news.bof then response.Write(" 暂无新闻 !") end if %> <% i=1 do while not right_news.eof dim right_url,right_color if IsNull(right_news("url")) or trim(right_news("url")&"")="" then right_url="/ShowNews/?"&right_news("id")&"-1.html" else right_url=""&right_news("url")&"" end if if IsNull(right_news("color")) or trim(right_news("color")&"")="" then right_color="#888888" else right_color=""&right_news("color")&"" end if %> <p><strong><a href="<%=right_url%>" style="color:<%=right_color%>;"><%=i5808(right_news("title"),34)%></a></strong><br /> <%=i5808(right_news("body"),50)%> <a href="<%=right_url%>" style="color:#0075a9; font-size:12px">详细</a></p> <div class="bg"></div><% if i mod 1 =0 then end if i=i+1 right_news.movenext loop right_news.close set right_news=nothing %> <p><a href="/news/?1-1.html">More News </a></p></div> <div class="index_news"><h2>联系我们</h2> <p>联系电话:<%=TD_tel%></p> <p>联系传真:<%=TD_fax%></p> <p>联系邮箱:<%=TD_mail%></p> <p>联系地址:<%=TD_dz%></p> <p>联系QQ:<%=TD_qq1%></p> </div>