protected string showrely(bool isrely, string rebody)
{
if (isrely)
{
return "
管理员回复: " + Server.HtmlEncode(rebody) + "";
}
else
{
return null;
}
}
protected string showbody(bool ishidden, string str_body)
{
if (!ishidden || Session["admin"] != null)
{
return str_body.Replace("\r\n", "<br>");
}
else
{
return "<br> <font color=red>此留言为悄悄话!只有管理员可见!</font>";
}
}
protected string show_admin(int id)
{
if (Session["admin"] != null)
{
return "<a href=re.aspx?id=" + id + ">回复</a>" + " <a href=del.aspx?id=" + id + ">删除</a>";
}
else
{
return null;
}
}
}