Esempio n. 1
0
        public static TagBuilder Best(string bestName, Guid id)
        {
            var image = Urls.ContentRoot(
                GetBestNameFull(bestName) + id + Urls.PhotoExt);

            return(HtmlControls.Image(image));
        }
Esempio n. 2
0
        public static TagBuilder UserStoryImage(int storyID, int index)
        {
            var image = Urls.Image(Urls.User + Urls.SuccessStory +
                                   storyID + "/" + index + Urls.PhotoExt);

            return(HtmlControls.Image(
                       image + "?" + DateTime.Now.Millisecond, index.ToString()));
        }
Esempio n. 3
0
 public static TagBuilder OrgResponse(OrgResponse response)
 {
     if (response.OriginalImg.IsEmpty())
     {
         return(new NullTagBuilder());
     }
     return(HtmlControls.Image(
                Urls.Image("Organization/ResponseOriginal/" + response.OriginalImg),
                "Отзыв компании: " + response.Organization.Name));
 }
Esempio n. 4
0
        public static TagBuilder Common(string name)
        {
            var image = HtmlControls.Image(Urls.Common(name), name);
            var size  = Urls.GetSize(Urls.CommonSys(name));

            if (size.HasValue)
            {
                image.Size(size.Value.Width, size.Value.Height);
            }
            return(image);
        }
Esempio n. 5
0
        public static TagBuilder UserPhoto(int userID)
        {
            var image = Urls.Image("User/Photo/" + userID + Urls.PhotoExt);

            if (image.IsEmpty())
            {
                image = Urls.Image("User/Photo/default.jpg");
            }
            return(HtmlControls.Image(
                       image + "?" + DateTime.Now.Millisecond, userID.ToString()).Size(80, null));
        }
Esempio n. 6
0
 public static TagBuilder Root(string name)
 {
     return(HtmlControls.Image(Urls.Image(name),
                               Path.GetFileNameWithoutExtension(name)));
 }
Esempio n. 7
0
 public static TagBuilder AuthorizationType(string name)
 {
     return(HtmlControls.Image(
                Urls.Image("AuthorizationType/" + name + ".gif"), name));
 }
Esempio n. 8
0
 public static TagBuilder UsefulInfomation(UsefulInformation usefulInformation)
 {
     return(HtmlControls.Image(
                Urls.Image("UsefulInformation/" + usefulInformation.UrlName + ".jpg"),
                usefulInformation.Name));
 }
Esempio n. 9
0
 public static TagBuilder Competitions(Competition competition)
 {
     return(HtmlControls.Image(
                Urls.Image("Competitions/" + competition.UrlName + ".jpg"),
                competition.Name));
 }
Esempio n. 10
0
 public static TagBuilder MarketingActionSmall(MarketingAction marketingAction)
 {
     return(HtmlControls.Image(
                Urls.Image("MarketingAction/Small/" + marketingAction.UrlName + ".jpg"),
                marketingAction.Name));
 }
Esempio n. 11
0
 public static TagBuilder Organization(Organization organization)
 {
     return(HtmlControls.Image(
                Urls.Image("Organization/Logo/" + organization.LogoImg), organization.Name));
 }
Esempio n. 12
0
 public static TagBuilder Banner(string name, string alt)
 {
     return(HtmlControls.Image(Urls.Image("UsefulImages/" + name), alt));
 }
Esempio n. 13
0
 public static TagBuilder Button(string name)
 {
     return(HtmlControls.Image(Urls.Button(name), name));
 }
Esempio n. 14
0
 public static TagBuilder Submit(string name)
 {
     return(HtmlControls.ImgSubmit(Urls.Button(name), name)
            .Class("button"));
 }