Is that it?

Source: Internet
Author: User
Tags date bool datetime tostring
<summary>
List of posts
</summary>
<author>jackson</author>
<date>2001-07-01 15:14</date>
<param name= "Cool" > whether it is cool paste. </param>
<param name= ID Number of the "id" > posting. </param>
<param name= "Layer" The hierarchy order number of the posts. </param>
<param name= "emote" > Expression icon index number. </param>
<param name= title of "title" > Posts. </param>
<param name= "Author" > author. </param>
<param name= "Y" > year. </param>
<param name= "M" > month. </param>
<param name= "D" > Day. </param>
<param name= "T" > Time. </param>
<param name= The number of clicks on the "H" > posts. </param>
<param name= the length of "L" > posts. </param>
<param name= "C" > Reply Number (sub-number). </param>
<param name= "n" > is a new paste, and if true, add Image new.gif:). </param>
public void Bbslist (bool cool, int ID, int layer, int emote, string title, string author, int y, int m, int d, string t, I NT h, int l, int c, bool N)
{
if (layer!= 1)//Custom theme stickers and general stickers background, equal to "1" for the theme stickers!
{
Response.Write ("<tr bgcolor= #f0f0f0 >");
}
Else
{
Response.Write ("<tr bgcolor= #d8d3cd >");
}
Response.Write ("<td align=center>" + (c>0?) <font color=red>+ "+ c.tostring () +" </font> ": ID.     ToString ()) + "</td>"); If there is a child paste, show the number of all the child stickers, otherwise show this sticker ID
Response.Write ("&LT;TD >");

/************* Indent sub-paste **************/
Response.Write ("<li" + (layer>1)? Type=square ":" ") +" style= ' "+ ((layer = 1)? Color:navy; ":" ") +" text-indent:0; Margin-left: "+ (LAYER*20) +"; margin-top:0 ' > ');
Response.Write ("Response.Write ("<a class=title href=showannounce.aspx?id=" +id+ ">" + title + "</a>");
if (L = = 0)
{
Response.Write ("<font color=black> (empty)";
}
Else
{
Response.Write ("<font color=black> (" + L + "byte");
}

Response.Write (", read" + (h>=50?) <font color=red> ":" <font color=black> ") + H +" </font> "+" Times) </font> ");

if (cool)
{
Response.Write ("}
Else
{
Response.Write ("");
}
if (n) Response.Write ("
Response.Write ("</li></td><td nowrap >");
Response.Write ("<a class=author target=_blank href=" +author+ ">" + username (author) + "</a>");
Response.Write ("</td>");
Response.Write ("<td nowrap>");

DateTime nowdate = DateTime.Now;
if (y== nowdate.year && m = = Nowdate.month && D = = nowdate.day)
{
Response.Write ("Today");
}
Else
{
if (y==nowdate.year && m==nowdate.month && d==nowdate.day-1)
{
Response.Write ("Yesterday");
}
Else
{
Response.Write (y + "-" + M + "-" + D);
}
}
Response.Write ("" + t);
Response.Write ("</td>");
Response.Write ("</tr>");
Response.Write ("");
}




Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.