<script Language="c#" Runat="server">
string newpic(DateTime D1)
{
string rv="";
TimeSpan ts=DateTime.Now-D1;
if(ts.Days<0) //如果是3天内发布就返回图片,这里可以自己修改
{
rv="<img src='/e/images/diy/message.gif' hspace=5>";
}
return rv;
}
</script>
<ul class="sublanmu_dl download">
<%
string Line;
DataTable dt=Get_Data();
DataRow dr;
for(int i=0;i<dt.Rows.Count;i++)
{
dr=dt.Rows;
if(((i+1)%5)==0)
{
Line="<li class='line'></line>";
}
else
{
Line="";
}
%>
<li><span class="title"><a href="<%=Detail_Url(dr)%>" target="<%=Target%>" title="<%=Server.HtmlEncode(dr["title"].ToString())%>"><img src="/e/images/icon/<%=dr["pa_geshi"]%>.gif" border=0 width=16 height=16 hspace=2 align=bottom><%=SubStr(dr["title"].ToString(),Title_Num,true)%></a></span>
<%=newpic((DateTime)dr["thedate"])%>
<span class="date"><%=((DateTime)dr["thedate"]).ToString("yyyy-MM-dd")%></span>
<span class="clear"></span>
</li>
<%
}
%>
</ul>
这是子栏目模型,要改哪个能实现?