///
/// 贴子列表
///
///
///
/// 是否为Cool贴。
/// 贴子的id号。
/// 贴子的层次顺序号。
/// 表情图标索引号。
/// 贴子的标题。
/// 作者。
/// 年。
/// 月。
/// 日。
/// 时间。
/// 贴子的点击数。
/// 贴子的长度。
/// 回复数(子贴数)。
/// 是否为新贴,如果为true则加入图像new.gif:)。
public void BBSList(bool cool, int id, int layer, int emote, string title, string author, int y, int m, int d, string t, int h, int l, int c, bool n)
{
if ( layer != 1 ) //定制主题贴及一般贴背景,等于“1”为主题贴!
{
Response.Write("
}
else
{
Response.Write("
}
Response.Write("
Response.Write("
/*************缩进子贴**************/
Response.Write("
Response.Write("");
Response.Write(" " + title + "");
if(l == 0)
{
Response.Write("(空");
}
else
{
Response.Write("(" + l + "字节");
}
Response.Write(",读" + (h>=50?"":"") + h + "" + "次)");
if(cool)
{
Response.Write("
");
}
else
{
Response.Write(" ");
}
if(n) Response.Write("
");
Response.Write("
Response.Write(" " + username(author) + "");
Response.Write("
Response.Write("
DateTime nowDate = DateTime.Now;
if( y== nowDate.Year && m == nowDate.Month && d == nowDate.Day)
{
Response.Write("今天 ");
}
else
{
if(y==nowDate.Year && m==nowDate.Month && d==nowDate.Day - 1)
{
Response.Write("昨天 ");
}
else
{
Response.Write(y + "-" + m + "-" + d);
}
}
Response.Write(" " + t);
Response.Write("
Response.Write("
Response.Write("");
}

