MxWeiXinPF.Web/admin/article/category_bottomMenu_list.aspx.cs
(开头部分) 5KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Text;
using System.Data;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using MxWeiXinPF.Common;
namespace MxWeiXinPF.Web.admin.article
{
public partial class category_bottomMenu_list : Web.UI.ManagePage
{
protected int channel_id;
protected string channel_name = string.Empty; //频道名称
protected void Page_Load(object sender, EventArgs e)
{
this.channel_id = MXRequest.GetQueryInt("channel_id");
this.channel_name = new BLL.channel().GetChannelName(this.channel_id); //取得频道名称
if (this.channel_id == 0)
{
JscriptMsg("频道参数不正确!", "back", "Error");
return;
}
if (!Page.IsPostBack)
{
ChkAdminLevel("bottomnavigation", MXEnums.ActionEnum.View.ToString()); //检查权限
RptBind();
}
}
//数据绑定
private void RptBind()
{
Model.wx_userweixin weixin = GetWeiXinCode();
BLL.article_category bll = new BLL.article_category();
DataTable dt = bll.GetWCodeList(weixin.id, 0, this.channel_id);
if (dt != null)
{
DataRow dr;
for (int i = 0; i < dt.Rows.Count; i++)
{
dr = dt.Rows[i];
if (dr["ico_url"] != null && dr["ico_url"].ToString().Trim() != "")
{
if (dr["ico_url"].ToString().Contains("."))
{
dr["ico_url"] = "<img src=\"" + dr["ico_url"].ToString() + "\" class=\"imgico\" />";
}
else
{
dr["ico_url"] = "<span class=\"" + dr["ico_url"].ToString() + "\" />";
}
}
//链接处理,待做
if (dr["link_url"] != null && dr["link_url"].ToString().Trim() != "")
{
后面还有 75 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
