Exemple #1
0
        /// <summary>
        /// 加载外链接
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public static string GetLinkUrl(string category_id)
        {
            string rStr = string.Empty;

            OS.BLL.contents.article   bll   = new OS.BLL.contents.article();
            OS.Model.contents.article model = new OS.Model.contents.article();
            model = bll.GetModel(category_id);
            if (model != null)
            {
                rStr = " <a target=\"_blank\"  href=\"" + model.link_url + "\"><img src=\"" + model.img_url + "\" /></a>";
            }
            return(rStr);
        }
Exemple #2
0
 /// <summary>
 /// 加载外链接
 /// </summary>
 /// <param name="id"></param>
 /// <returns></returns>
 public static string GetLinkUrl(string category_id)
 {
     string rStr = string.Empty;
     OS.BLL.contents.article bll = new OS.BLL.contents.article();
     OS.Model.contents.article model = new OS.Model.contents.article();
     model = bll.GetModel(category_id);
     if (model != null) {
         rStr = " <a target=\"_blank\"  href=\"" + model.link_url + "\"><img src=\"" + model.img_url + "\" /></a>";
     }
     return rStr;
 }