コード例 #1
0
        public string FormatItem(int VendorId, int BannerId, int BannerTypeId, string BannerName, string ImageFile, string Description, string URL, int Width, int Height)
        {
            BannerController objBanners = new BannerController();

            //return objBanners.FormatBanner(TabId, VendorId, BannerId, BannerTypeId, BannerName, ImageFile, Description, URL, Width, Height, Convert.ToString( Settings["bannersource"] ), PortalSettings.HomeDirectory );
            //return objBanners.FormatBanner(PortalId, VendorId, BannerId, BannerTypeId, BannerName, ImageFile, Description, URL, Width, Height, Convert.ToString(Settings["bannersource"]), PortalSettings.HomeDirectory);
            return(objBanners.FormatBanner(VendorId, BannerId, BannerTypeId, BannerName, ImageFile, Description, URL, Width, Height, Convert.ToString(Settings["bannersource"]), PortalSettings.HomeDirectory));
        }
コード例 #2
0
        public string FormatItem(int VendorId, int BannerId, int BannerTypeId, string BannerName, string ImageFile, string Description, string URL, int Width, int Height)
        {
            var objBanners = new BannerController();

            return(objBanners.FormatBanner(VendorId,
                                           BannerId,
                                           BannerTypeId,
                                           BannerName,
                                           ImageFile,
                                           Description,
                                           URL,
                                           Width,
                                           Height,
                                           PortalSettings.BannerAdvertising == 1 ? "L" : "G",
                                           PortalSettings.HomeDirectory));
        }
コード例 #3
0
        public string FormatItem(int vendorId, int bannerId, int bannerTypeId, string bannerName, string imageFile, string description, string url, int width, int height)
        {
            BannerController objBanners = new BannerController();

            return(objBanners.FormatBanner(vendorId, bannerId, bannerTypeId, bannerName, imageFile, description, url, width, height, Convert.ToString(PortalSettings.BannerAdvertising == 1 ? "L" : "G"), PortalSettings.HomeDirectory));
        }
コード例 #4
0
        public string FormatItem(int vendorId, int bannerId, int BannerTypeId, string BannerName, string ImageFile, string Description, string URL, int Width, int Height)
        {
            BannerController objBanners = new BannerController();

            return(objBanners.FormatBanner(VendorId, BannerId, BannerTypeId, BannerName, ImageFile, Description, URL, Width, Height, Convert.ToString(((PortalId == -1) ? "G" : "L")), PortalSettings.HomeDirectory));
        }