public void LoadData() { var id = Request.QueryInt("id"); if (id > 0) { if (art.Fill(id)) { art.Click = art.Click.GetInt() + 1; art.Update("id=" + id); if (cate.Fill(art.Fenleiid)) { } else { cate = new Model.TcFenlei() { Name = "" }; } } else { art = new Model.TcArticle(); } } }
/// <summary> /// 获取广告内容 /// </summary> /// <param name="url"></param> /// <returns></returns> public static string get_ad(string url) { var md = new Model.TcArticle(); if (md.Fill("url='" + url + "'")) { return(md.Content); } else { return(""); } }
/// <summary> /// 根据标题获取广告名称 /// </summary> /// <param name="url"></param> /// <returns></returns> public static Model.TcArticle get_ad_md(string url) { var md = new Model.TcArticle(); if (md.Fill("url='" + url + "'")) { return(md); } else { return(new Model.TcArticle()); } }
/// <summary> /// 获取单页内容 /// </summary> /// <param name="ename"></param> /// <returns></returns> public static Model.TcArticle get_danye_model(string ename) { var md = new Model.TcArticle(); if (md.Fill("url='" + ename + "'")) { return(md); } else { return(new Model.TcArticle()); } }