Web/Managers/basemanage/x_admin.aspx.cs
(开头部分) 6KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Bll;
using Model;
using Common;
namespace Web.Managers.basemanage
{
public partial class x_admin : Web.Managers.MasterPage
{
BNews ibc = new BNews();
public int iCanLayer;
public bool isSpecial = false;
public bool isShow = false;
protected void Page_Load(object sender, EventArgs e)
{
ScriptManager1.RegisterAsyncPostBackControl(lbdel);
MTableSet mts = (new BTableSet()).GetModel("NewsSort");
MSiteSettings mss = base.GetTopSiteSettingsModel();
MTableSet mco = (new BTableSet()).GetModel("News");
iCanLayer = mts.SortLayer;
AdvanceField(mco.FieldList, mss);
ltname.Text = base.MenuName;
if (!base.IsPostBack)
{
bindsort();
binddata();
}
}
private void bindsort()
{
ddlsort.DataSource = (new BNewsSort()).GetSortTree(0, false, ref iCanLayer);
ddlsort.DataTextField = "NS_Name";
ddlsort.DataValueField = "NS_Id";
ddlsort.DataBind();
ddlsort.Items.Insert(0, new ListItem("所有分类", "0"));
}
private void binddata()
{
int nCount = 0;
Repeater1.DataSource = ibc.GetList(AspNetPager1.PageSize, AspNetPager1.CurrentPageIndex, ddlsort.SelectedValue, tbkeyword.Text, out nCount);
Repeater1.DataBind();
AspNetPager1.RecordCount = nCount;
}
private void AdvanceField(IList<MFieldList> mfl, MSiteSettings mss)
{
//for (int i = 0; i < mfl.Count; i++)
//{
// if (mfl[8].IsShow == 1)
// {
// phhspecial.Visible = true;
// ltspecial.Text = mfl[8].ShowName;
// isSpecial = true;
// }
// if (mfl[9].IsShow == 1)
后面还有 135 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
