Web.UI/Label_Channel.cs
(开头部分) 19KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
namespace Web.UI
{
/// <summary>
/// 栏目标签类
/// </summary>
public partial class BasePage
{
/// <summary>
/// 取得栏目导航面包屑
/// </summary>
protected string GetChannel_Menu(string _urlKey, int _classId)
{
StringBuilder strTxt = new StringBuilder();
if (_classId > 0)
{
LoopChannelMenu(strTxt, _urlKey, _classId);
}
return strTxt.ToString();
}
/// <summary>
/// 递归找到父节点
/// </summary>
private void LoopChannelMenu(StringBuilder _strTxt, string _urlKey, int _classId)
{
BLL.Channel bll = new BLL.Channel(); ;
int _parentId = bll.GetChannelParentId(_classId);
if (_parentId > 0)
{
this.LoopChannelMenu(_strTxt, _urlKey, _parentId);
}
_strTxt.Append(" > <a href=\"" + URLRewrite(_urlKey,_classId) + "\" class=\"gray\">" + bll.GetChannelTitle(_classId) + "</a>");
}
/// <summary>
/// 取得栏目导航面包屑
/// </summary>
protected string GetChannel_PhoneMenu(string _urlKey, int _classId)
{
StringBuilder strTxt = new StringBuilder();
if (_classId > 0)
{
LoopChannelPhoneMenu(strTxt, _urlKey, _classId);
}
return strTxt.ToString();
}
/// <summary>
/// 递归找到父节点
/// </summary>
private void LoopChannelPhoneMenu(StringBuilder _strTxt, string _urlKey, int _classId)
{
BLL.Channel bll = new BLL.Channel(); ;
int _parentId = bll.GetChannelParentId(_classId);
if (_parentId > 0)
后面还有 382 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。