Exemple #1
0
        public static string getmorepro(string id, string skip)
        {
            int    _id   = Utils.CIntDef(id);
            int    _skip = Utils.CIntDef(skip);
            string _res  = string.Empty;
            var    list  = lpro.loadproAjax(_id, _skip, 15);

            foreach (var i in list)
            {
                _res += "<div class='item_P'>";
                _res += "<div class='product'>";
                _res += "<div class='img_product'>";
                _res += "<a href='" + GetLink(i.NEWS_URL, i.NEWS_SEO_URL) + "'>";
                _res += "<img src='" + GetImageT(i.NEWS_ID, i.NEWS_IMAGE3) + "' alt='' />";
                _res += "</a>";
                _res += "</div>";
                _res += "<div class='info_P'>";
                _res += "<h3 class='product_name'>";
                _res += "<a href='" + GetLink(i.NEWS_URL, i.NEWS_SEO_URL) + "'>";
                _res += i.NEWS_TITLE + "</a></h3>";
                _res += "<div class='txt_desc'>";
                _res += "Giá:";
                _res += "<price>" + GetPrice1(i.NEWS_PRICE1, i.NEWS_PRICE2) + "</price>";
                _res += "</div>";

                _res += "</div>";

                _res += "</div>";

                _res += "</div>";
            }
            return(_res);
        }
Exemple #2
0
        public string viewmore(string catid, string skip)
        {
            int           _catid = Utils.CIntDef(catid);
            int           _skip  = Utils.CIntDef(skip);
            var           list   = listpro.loadproAjax(_catid, _skip, 20);
            StringBuilder _res   = new StringBuilder();

            foreach (var i in list)
            {
                _res.Append("<div class='item_P'>");
                _res.Append("<div class='product'>");
                _res.Append(Getgiam(i.NEWS_PRICE1, i.NEWS_PRICE2));
                _res.Append("<div class='img_product'>");
                _res.Append(" <a href='" + GetLink(i.NEWS_URL, i.NEWS_SEO_URL) + "'>");
                _res.Append("<img src='" + GetImageT(i.NEWS_ID, i.NEWS_IMAGE3) + "' alt='' />");
                _res.Append(" </a>");
                _res.Append("</div>");
                _res.Append("<div class='info_P'>");
                _res.Append(" <h3 class='product_name'>");
                _res.Append(" <a href='" + GetLink(i.NEWS_URL, i.NEWS_SEO_URL) + "'>");
                _res.Append(i.NEWS_TITLE + "</a></h3>");
                _res.Append(" <div class='txt_desc'>");
                _res.Append("  <div class='price_n'>");
                _res.Append("   <price>" + GetPrice1(i.NEWS_PRICE1, i.NEWS_PRICE2) + "</price>");
                _res.Append(" </div>");
                _res.Append("<div class='price_s'>");
                _res.Append(" <del>");
                _res.Append(GetPrice2(i.NEWS_PRICE1, i.NEWS_PRICE2) + "</del></div>");
                _res.Append("</div>");
                _res.Append("</div>");
                _res.Append(" </div>");
                _res.Append("</div>");
            }
            return(_res.ToString());
        }