ActionLabel/Article.cs

(开头部分) 29KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using Common;
using Web.UI;
namespace ActionLabel
{
    public class Article
    {
        /// <summary>
        /// 文章调用类(文字)
        /// </summary>
        /// <param name="top">显示条数</param>
        /// <param name="txtNum">显示字数</param>
        /// <param name="where">查询条件</param>
        /// <param name="orderby">排序条件</param>
        /// <param name="UrlPath">伪静态标示</param>
        /// <returns></returns>
        public static string ViewTxtList(int top, int txtNum, string strWhere, string orderby,string UrlPath)
        {
            BLL.Article bll = new BLL.Article();
            StringBuilder strTxt = new StringBuilder();
            DataSet ds = bll.GetList(top, strWhere, orderby);
            if (ds.Tables[0].Rows.Count > 0)
            {
                for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
                {
                    DataRow dr = ds.Tables[0].Rows[i];
                    strTxt.Append("<tr><td>");
                    strTxt.Append("<a class=\"hot_news\" style=\"color:#25abdd\" target=\"_blank\" title=\"" + dr["Title"].ToString() + "\" href=\"" + BasePage.URLRewrite(UrlPath, dr["Id"]) + "\">" + Utils.CutString(dr["Title"].ToString(), txtNum) + "</a>");
                    strTxt.Append("</td></tr>");
                }
            }
            else
            {
                strTxt.Append("<li>暂无数据显示...</li>");
            }
            return strTxt.ToString();
        }

        /// <summary>
        /// 首页公告(文字)
        /// </summary>
        /// <param name="top">显示条数</param>
        /// <param name="txtNum">显示字数</param>
        /// <param name="where">查询条件</param>
        /// <param name="orderby">排序条件</param>
        /// <param name="UrlPath">伪静态标示</param>
        /// <returns></returns>
        public static string ViewNotice(int top, int txtNum, string strWhere, string orderby, string UrlPath)
        {
            BLL.Article bll = new BLL.Article();
            StringBuilder strTxt = new StringBuilder();
            DataSet ds = bll.GetList(top, strWhere, orderby);
            if (ds.Tables[0].Rows.Count > 0)
            {
                for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
                {
                    DataRow dr = ds.Tables[0].Rows[i];
后面还有 539 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。