Ejemplo n.º 1
0
        // Token: 0x06002AA2 RID: 10914 RVA: 0x000EF20C File Offset: 0x000ED40C
        protected void RenderContactPicture()
        {
            if (base.Item.AttachmentCollection == null)
            {
                return;
            }
            string text = string.Empty;
            string contactPictureAttachmentId = RenderingUtilities.GetContactPictureAttachmentId(base.Item);

            if (!string.IsNullOrEmpty(contactPictureAttachmentId))
            {
                if (base.IsEmbeddedItemInNonSMimeItem)
                {
                    text = base.RenderEmbeddedUrl() + Utilities.UrlEncode(contactPictureAttachmentId);
                }
                else
                {
                    text = RenderingUtilities.GetContactPictureUrl(Utilities.GetIdAsString(base.Item), contactPictureAttachmentId, string.Empty);
                }
            }
            if (text.Length > 0)
            {
                this.hasPicture = true;
                base.Response.Write("<div id=divPic class=\"spP fltBefore\"><div class=\"fltBefore\" id=frm><a id=lnkPic target=_blank href=\"");
                Utilities.HtmlEncode(text, base.Response.Output);
                base.Response.Write("\"><IMG id=imgPic src=\"");
                Utilities.HtmlEncode(text, base.Response.Output);
                base.Response.Write("\"></a></div></div>");
            }
        }