public override void Page_Load(ref NVelocity.VelocityContext context) { base.Page_Load(ref context); #region 加载头部及Title //NewXzc.Web.templatecs.Head head = new Head(); //head.Init_Head(context, 0); NewXzc.Web.templatecs.Head_Article head = new Head_Article(); head.Init_Head(context, 0); context.Put("title", "关于我们-衣品搭配"); context.Put("keywords", "红人,红人汇,红人网,网络红人,微博红人,爱拍红人,红人服装,网络红人排行榜"); context.Put("description", "红人汇,专注发掘不一样的红人神咖.红人汇是红人,红人汇,红人网,网络红人,微博红人,爱拍红人,红人服装,网络红人排行榜等综合红人报道平台.红人汇网络红人聚集平台,跟踪报道红人资讯,最新红人作品等等,第一时间满足粉丝需求."); #endregion #region 加载左侧 NewXzc.Web.templatecs.Help.common left = new NewXzc.Web.templatecs.Help.common(); left.Init_Help(context, 1); #endregion }
public override void Page_Load(ref NVelocity.VelocityContext context) { base.Page_Load(ref context); #region 加载头部及Title NewXzc.Web.templatecs.Head_Article head = new Head_Article(); head.Init_Head(context, 0); context.Put("title", "文章详情_衣品搭配"); #endregion articleid = String_Manage.Return_Request_Int("id", 0); Model.HRENH_ARTICLE article_model = new BLL.HRENH_ARTICLE().GetModel(articleid); if (article_model != null) { stype = Convert.ToInt32(article_model.TYPES); types_pid = article_model.TYPES_PID; #region 加载子级栏目 //Get_Son_Type(context); #endregion #region 获取面包屑导航 int ctypes = type; if (types_pid > 0) { ctypes = types_pid; } else { ctypes = stype; stype = -1; } string mbxnav = ArticleHelper.Get_Article_Nav(ctypes, stype, 1); context.Put("mbxnav", mbxnav); #endregion int pageid = 2100; #region 详情页相关阅读上方广告图 //context.Put("topad", ArticleHelper.Get_Tj_Img(1, pageid, 1008)); #endregion #region 详情页相关阅读轮播图 //context.Put("topadlb", ArticleHelper.Get_Tj_Img(0, pageid, 1009)); #endregion #region 详情页热门推荐轮播图 //context.Put("lunbo1", ArticleHelper.Get_Tj_Img(0, pageid, 1005)); #endregion #region 获取最新排行的列表 //context.Put("zxph", ArticleHelper.Get_Zxph(10)); #endregion #region 详情页论坛精华 //context.Put("ltjh_ad", ArticleHelper.Get_Tj_Img(3, pageid, 1006)); #endregion #region 今日热点 context.Put("jrrd", Get_Jrrd(context)); #endregion #region 每日精选 //context.Put("mrjx_ad", ArticleHelper.Get_Tj_Img(0, pageid, 1007)); context.Put("mrjx_ad", ArticleHelper.Get_Tj_Img(0, pageid, 1010)); #endregion #region 大家都在搜 context.Put("djdzs", ArticleHelper.Get_Tj_Img(0, pageid, 1004)); #endregion #region 推荐位 ////最新娱乐热点 //context.Put("newzx", ArticleHelper.Get_New_ZX(8, "", 10)); #region 推荐公共项 //NewXzc.Web.templatecs.Article.Article_Search_Common article_common = new Article_Search_Common(); ////头部广告 //article_common.Init_Common_Ad(context); ////最火娱乐资讯 //article_common.Init_Zhylzx(context); ////相关搜索上方广告 //Init_Search_Ad(context); ////相关搜索 //Init_Xgss(context); ////为您推荐 //article_common.Init_Wntj(context); ////右侧推荐 //article_common.Init_Rgiht_Common_Ad(context); ////相关阅读 //Init_Xgyd(context); #endregion #endregion //获取文章详情 GetDetail(context); } else { context.Put("redirecturl", "/404"); } }