示例#1
0
文件: Search.cs 项目: joleye/1.6
        public List<ProductInfo> search()
        {
            ProductDal pro = new ProductDal();
            int id = 0;
            gnum(ref id, "tid");
            int page = 1;
            int pagesize = 12;
            PageCurrent pc = new PageCurrent();
            page = pc.get("page");
            List<JoleYe.Model.ProductInfo> list = pro.view_list(id,page,pagesize);

            int recordcount = pro.recordcount;
            pageBox = pc.page_list("?page=", pagesize, recordcount);

            return list;
        }
示例#2
0
    protected void create_279_thumbs_Click(object sender, EventArgs e)
    {
        List<ProductInfo> list = new List<ProductInfo>();
        ProductDal dal = new ProductDal();

        list = dal.view_list();

        foreach (ProductInfo info in list)
        {
            if (dal.set_thumbs_img(info.Id, 279, "small"))
            {
                Response.Write("成功 <a target=\"_blank\" href=\"" + cimg(info.productImgUrl, "small") + "\">" + cimg(info.productImgUrl, "small") + "</a><br/>");
            }
            else
                Response.Write("<font color=red>失败</font> " + info.productImgUrl + "<br/>");
        }
    }
示例#3
0
文件: manage.aspx.cs 项目: joleye/1.6
        private void setBind()
        {
            int pagesize = 10;
            int page = 1;
            int recordcount=2;
            PageCurrent pc = new PageCurrent();
            page = pc.get("page");
            wd.Value = keyword;


            //DataTable dt = find("view_product", page, pagesize, " showId ,id desc");
            ProductDal p = new ProductDal();
                


                
            Pageer.value = pc.page_list("?page=", pagesize, recordcount);
            detail.DataSource = p.view_list(page, pagesize, 0, keyword);
            detail.DataBind();
        }