ActionLabel/Link.cs

(完整代码) 1KB

using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using Common;

namespace ActionLabel
{
    public class Link
    {
        public static string ViewLinkList(int top, int txtNum, string strWhere, string orderby)
        {
            BLL.Links bll = new BLL.Links();
            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("<a  target=\"_blank\" title=\"" + dr["Title"].ToString() + "\" href=\"" + dr["WebUrl"] + "\">" + Utils.CutString(dr["Title"].ToString(), txtNum) + "</a>");
                }
            }
            else
            {
                strTxt.Append("<li>暂无数据显示...</li>");
            }
            return strTxt.ToString();
        }
    }
}

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

AI 解读 AI

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

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