DTcms.Web.UI/Label/article_download.cs
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
namespace DTcms.Web.UI
{
public partial class BasePage : System.Web.UI.Page
{
/// <summary>
/// 下载列表
/// </summary>
/// <param name="channel_id">频道ID</param>
/// <param name="top">显示条数</param>
/// <param name="strwhere">查询条件</param>
/// <returns>DataTable</returns>
protected DataTable get_download_list(int channel_id, int category_id, int top, string strwhere)
{
DataTable dt = new DataTable();
if (channel_id > 0)
{
string _where = "channel_id=" + channel_id;
if (category_id > 0)
{
_where += " and category_id in(select id from dt_category where channel_id=" + channel_id + " and class_list like '%," + category_id + ",%')";
}
if (!string.IsNullOrEmpty(strwhere))
{
_where += " and " + strwhere;
}
dt = new BLL.article().GetDownloadList(top, _where, "sort_id asc,add_time desc").Tables[0];
}
return dt;
}
/// <summary>
/// 下载列表
/// </summary>
/// <param name="channel_id">频道ID</param>
/// <param name="top">显示条数</param>
/// <param name="strwhere">查询条件</param>
/// <returns>DataTable</returns>
protected DataTable get_download_list(int channel_id, int category_id, int top, string strwhere, string orderby)
{
DataTable dt = new DataTable();
if (channel_id > 0)
{
string _where = "channel_id=" + channel_id;
if (category_id > 0)
{
_where += " and category_id in(select id from dt_category where channel_id=" + channel_id + " and class_list like '%," + category_id + ",%')";
}
if (!string.IsNullOrEmpty(strwhere))
{
_where += " and " + strwhere;
}
dt = new BLL.article().GetDownloadList(top, _where, orderby).Tables[0];
}
return dt;
}
后面还有 34 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
