webForm/Review.aspx.cs
(完整代码) 1KBusing System;
using System.Data;
using System.Web;
using XkCms.BaseFunction;
using System.Web.UI.WebControls;
namespace XkCms
{
public partial class Review : Front
{
protected void Page_Load(object sender, EventArgs e)
{
string ChannelId = q("ChannelId");
if (!Xkzi.Validator.IsNumberId(ChannelId) || ChannelId == "0")
{
Response.Write("请不要修改地址栏参数!");
Response.End();
}
doh.Reset();
doh.ConditionExpress = "id=" + ChannelId;
string ChannelType = doh.GetValue("xk_channel", "type").ToString();
this.Title = "查看评论 - " + SysInfo[0];
doh.Reset();
doh.SqlCmd = "select username,adddate,Content from [xk_Review] where CId=" + q("id") + " and ispass=1 order by id desc";
DataTable dt = doh.GetDataTable();
if (dt.Rows.Count < 1)
{
ltContent.Text = "暂无评论!";
}
else
{
for (int i = 0; i < dt.Rows.Count; i++)
{
ltContent.Text += "<li style=\"padding-left: 10px;background-color:#eee;line-height:22px;\"> 发言人:" + dt.Rows[i][0].ToString() + " 发言时间: " + dt.Rows[i][1].ToString() + "</li>";
ltContent.Text += "<li style=\"margin-left: 30px; margin-right: 20px;line-height:22px;\">" + dt.Rows[i][2].ToString() + "</li>";
}
}
}
}
}
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
