Пример #1
0
        private void RenderSecureMessaging()
        {
            ClientSMimeControlStatus status = Utilities.CheckClientSMimeControlStatus(Utilities.GetQueryStringParameter(base.Request, "smime", false), base.OwaContext);

            if (!Utilities.IsClientSMimeControlUsable(status))
            {
                return;
            }
            base.Response.Write("<div class=\"row2sp\"><div class=\"secCol\"><span class=\"spS\">" + LocalizedStrings.GetHtmlEncoded(-2096722623) + "</span></div><div class=\"lbl noindent\" id=\"tdSM\">");
            bool flag = Utilities.GetADRecipientCertificate(base.ADRecipient, false) != null;

            base.Response.Write(LocalizedStrings.GetHtmlEncoded(flag ? -1588000202 : -629647425));
            base.Response.Write("</div></div>");
        }
Пример #2
0
        protected void RenderEmailProperties()
        {
            EmailDropDownList emailDropDownList = new EmailDropDownList("divEM", this.firstEmailProperty);

            base.Response.Write("<div class=\"cntLabelCombo\">");
            emailDropDownList.Render(base.Response.Output);
            base.Response.Write("</div><div class=\"cntField\">");
            string[] array = new string[ContactUtilities.EmailAddressProperties.Length];
            for (int i = 0; i < ContactUtilities.EmailAddressProperties.Length; i++)
            {
                string text = null;
                string s    = null;
                ContactPropertyInfo contactPropertyInfo = ContactUtilities.EmailAddressProperties[i];
                this.GetEmailAddressValue(contactPropertyInfo, out text, out s);
                array[i] = text;
                base.Response.Write("<input id=\"");
                base.Response.Write(contactPropertyInfo.Id);
                base.Response.Write("\"");
                if (contactPropertyInfo != this.firstEmailProperty)
                {
                    base.Response.Write(" style=\"display:none\"");
                }
                ContactPropertyInfo emailDisplayAsProperty = ContactUtilities.GetEmailDisplayAsProperty(contactPropertyInfo);
                base.Response.Write(" maxlength=\"256\" class=\"cntWell\" type=\"text\" value=\"");
                Utilities.HtmlEncode(s, base.Response.Output);
                base.Response.Write("\" _da=\"");
                base.Response.Write(emailDisplayAsProperty.Id);
                base.Response.Write("\">");
            }
            base.Response.Write("</div>");
            base.Response.Write("<div class=\"cntLabel\">");
            base.Response.Write(LocalizedStrings.GetHtmlEncoded(1019177604));
            base.Response.Write("</div><div class=\"cntField\">");
            for (int j = 0; j < ContactUtilities.EmailAddressProperties.Length; j++)
            {
                ContactPropertyInfo contactPropertyInfo2 = ContactUtilities.EmailAddressProperties[j];
                string s2 = array[j];
                base.Response.Write("<input id=\"");
                base.Response.Write(ContactUtilities.GetEmailDisplayAsProperty(contactPropertyInfo2).Id);
                base.Response.Write("\"");
                if (contactPropertyInfo2 != this.firstEmailProperty)
                {
                    base.Response.Write(" style=\"display:none\"");
                }
                base.Response.Write(" maxlength=\"256\" class=\"cntWell\" type=\"text\" value=\"");
                Utilities.HtmlEncode(s2, base.Response.Output);
                base.Response.Write("\">");
            }
            base.Response.Write("</div>");
        }
Пример #3
0
 private void RenderOofInternalMessage()
 {
     if (!string.IsNullOrEmpty(this.oofToInternal))
     {
         this.writer.Write("<table class=\"oof\" cellpadding=0 cellspacing=0>");
         this.writer.Write("<tr><td class=\"dsl\" rowspan=3><img src=\"");
         this.userContext.RenderThemeFileUrl(this.writer, ThemeFileId.Clear);
         this.writer.Write("\" alt=\"\" class=\"wh1\"></td><td class=\"w100\"></td><td class=\"dsr\" rowspan=3><img src=\"");
         this.userContext.RenderThemeFileUrl(this.writer, ThemeFileId.Clear);
         this.writer.Write("\" alt=\"\" class=\"wh1\"></td></tr>");
         this.writer.Write("<tr><td class=\"ds\">");
         this.writer.Write(Utilities.SanitizeHtml(this.oofToInternal));
         this.writer.Write("</td></tr>");
         this.writer.Write("<tr><td></td></tr></table>");
         this.writer.Write("<table class=\"oofnb\"><tr><td class=\"df\"><input type=\"checkbox\" name=\"");
         this.writer.Write("chkInt");
         this.writer.Write("\" id=\"");
         this.writer.Write("chkInt");
         this.writer.Write("\" onclick=\"return onClkChkBx(this);\" value=\"1\"");
         this.writer.Write(this.oofEnabled ? ">" : " disabled>");
         this.writer.Write("<label for=\"");
         this.writer.Write("chkInt");
         this.writer.Write("\">");
         this.writer.Write(LocalizedStrings.GetHtmlEncoded(626160585));
         this.writer.Write("<label></td></tr>");
         this.writer.Write("<tr><td class=\"w100\">");
         this.writer.Write("<textarea name=\"");
         this.writer.Write("txtInt");
         this.writer.Write("\" class=\"w100\" title=\"");
         this.writer.Write(LocalizedStrings.GetHtmlEncoded(-1268432338));
         this.writer.Write("\" rows=12 cols=61 onfocus=\"onFcsTxt('");
         this.writer.Write("chkInt");
         this.writer.Write("');\"");
         this.writer.Write(this.oofEnabled ? ">" : " disabled>");
         this.writer.Write("</textarea>");
         this.writer.Write("</td></tr>");
         this.writer.Write("</table>");
         return;
     }
     this.writer.Write("<table class=\"oofnb\"><tr><td class=\"w100\"><textarea name=\"");
     this.writer.Write("txtInt");
     this.writer.Write("\" class=\"w100\" title=\"");
     this.writer.Write(LocalizedStrings.GetHtmlEncoded(-1268432338));
     this.writer.Write("\" rows=12 cols=61");
     this.writer.Write(this.oofEnabled ? ">" : " disabled>");
     this.writer.Write("</textarea>");
     this.writer.Write("</td></tr>");
     this.writer.Write("</table>");
 }
        // Token: 0x060005CF RID: 1487 RVA: 0x0002D8DC File Offset: 0x0002BADC
        private void RenderMembers(TextWriter writer)
        {
            List <OWARecipient> list = Utilities.LoadAndSortDistributionListMembers(this.adGroup);

            if (list.Count == 0)
            {
                writer.Write("<tr><td colspan=2 class=\"nodtls msgpd\">");
                writer.Write(LocalizedStrings.GetHtmlEncoded(908949145));
                writer.Write("</td></tr>");
                return;
            }
            writer.Write("<tr><td class=\"lbl lp\">");
            writer.Write(LocalizedStrings.GetHtmlEncoded(1099536643));
            writer.Write("</td><td>");
            writer.Write("<table cellpadding=0 cellspacing=0 class=\"drpts\">");
            foreach (OWARecipient owarecipient in list)
            {
                string s = Convert.ToBase64String(owarecipient.Id.ObjectGuid.ToByteArray());
                writer.Write("<tr><td class=\"dltdpd\"><a href=\"#\" id=\"");
                Utilities.HtmlEncode(s, writer);
                writer.Write("\" onClick=\"return loadOrgP(this,");
                if (Utilities.IsADDistributionList(owarecipient.UserRecipientType))
                {
                    writer.Write(2);
                    writer.Write(")\" class=\"peer dl\"><img src=\"");
                    base.UserContext.RenderThemeFileUrl(writer, ThemeFileId.ContactDL);
                    writer.Write("\" ");
                    Utilities.RenderImageAltAttribute(writer, base.UserContext, ThemeFileId.ContactDL);
                    writer.Write(">");
                    if (string.IsNullOrEmpty(owarecipient.DisplayName))
                    {
                        writer.Write(LocalizedStrings.GetHtmlEncoded(-808148510));
                    }
                    else
                    {
                        Utilities.HtmlEncode(owarecipient.DisplayName, writer);
                    }
                    writer.Write("</a></td></tr>");
                }
                else
                {
                    writer.Write(1);
                    writer.Write(")\" class=\"peer\">");
                    Utilities.HtmlEncode(owarecipient.DisplayName, writer);
                    writer.Write("</a></td></tr>");
                }
            }
            writer.Write("</table></td></tr>");
        }
		// Token: 0x06002EC5 RID: 11973 RVA: 0x0010CAB8 File Offset: 0x0010ACB8
		private void ProcessReminders(bool isReminderModified)
		{
			bool flag = false;
			bool flag2 = false;
			bool flag3 = false;
			bool flag4 = base.IsParameterSet("LRT");
			ExDateTime localTime = DateTimeUtilities.GetLocalTime();
			if (!base.UserContext.IsRemindersSessionStarted || !flag4)
			{
				base.UserContext.IsRemindersSessionStarted = true;
				flag2 = true;
			}
			if (flag4)
			{
				ExDateTime dt = (ExDateTime)base.GetParameter("LRT");
				if ((int)(ExDateTime.UtcNow - dt).TotalHours > 12)
				{
					flag = true;
				}
			}
			int num = (int)localTime.Bias.TotalMinutes;
			if (num != base.UserContext.RemindersTimeZoneOffset)
			{
				base.UserContext.RemindersTimeZoneOffset = num;
				flag3 = true;
			}
			if (flag || flag2 || isReminderModified)
			{
				this.Writer.Write("rmNotfy(");
				this.Writer.Write(num);
				this.Writer.Write(", 1, \"");
				Utilities.JavascriptEncode(DateTimeUtilities.GetJavascriptDate(localTime), this.Writer);
				this.Writer.Write("\", \"");
				bool reminderItems = RemindersRenderingUtilities.GetReminderItems(localTime, this.Writer);
				if (reminderItems)
				{
					this.Writer.Write("\", \"");
					Utilities.JavascriptEncode(LocalizedStrings.GetHtmlEncoded(-1707229168), this.Writer);
				}
				this.Writer.Write("\");");
				return;
			}
			if (flag3)
			{
				this.Writer.Write("rmNotfy(");
				this.Writer.Write(num);
				this.Writer.Write(", 0, \"\");");
			}
		}
Пример #6
0
 // Token: 0x06000292 RID: 658 RVA: 0x00016DD8 File Offset: 0x00014FD8
 private void RenderButton(string groupId, Strings.IDs label, string type)
 {
     this.writer.Write("<td class=\"btn\" nowrap><table cellpadding=0 cellspacing=0><tr><td><a href=\"#\" id=\"btn");
     this.writer.Write(groupId);
     this.writer.Write(type);
     this.writer.Write("\" class=\"disabled\" onClick=\"return onClk");
     this.writer.Write(type);
     this.writer.Write("Btn('");
     this.writer.Write(groupId);
     this.writer.Write("');\" title=\"");
     this.writer.Write(LocalizedStrings.GetHtmlEncoded(label));
     this.writer.Write("\">");
     this.writer.Write(LocalizedStrings.GetHtmlEncoded(label));
     this.writer.Write("</a></td></tr></table></td>");
 }
Пример #7
0
 // Token: 0x0600037E RID: 894 RVA: 0x0001FC34 File Offset: 0x0001DE34
 protected void RenderNotes(TextWriter writer)
 {
     if (writer == null)
     {
         throw new ArgumentNullException("writer");
     }
     writer.Write("<tr><td colspan=2 class=\"hd\">");
     writer.Write(LocalizedStrings.GetHtmlEncoded(1601836855));
     writer.Write("</td></tr>");
     writer.Write("<tr><td colspan=2 class=\"rp\">");
     writer.Write("<textarea name=\"notes\" rows=10 cols=32 readonly>");
     BodyConversionUtilities.ConvertAndOutputBody(base.Response.Output, base.Item.Body, Markup.PlainText, null, true);
     writer.Write("</textarea>");
     writer.Write("</td></tr>");
 }
Пример #8
0
        public virtual void RenderSentTime(TextWriter writer)
        {
            if (writer == null)
            {
                throw new ArgumentNullException("writer");
            }
            writer.Write(LocalizedStrings.GetHtmlEncoded(295620541));
            writer.Write("&nbsp;");
            ExDateTime property = ItemUtility.GetProperty <ExDateTime>(this.meetingPageItem, ItemSchema.SentTime, ExDateTime.MinValue);

            if (property != ExDateTime.MinValue)
            {
                RenderingUtilities.RenderSentTime(writer, property, this.userContext);
            }
        }
Пример #9
0
        // Token: 0x06002AC1 RID: 10945 RVA: 0x000F0600 File Offset: 0x000EE800
        private void RenderSecureMessaging()
        {
            if (!Utilities.IsClientSMimeControlUsable(base.ClientSMimeControlStatus))
            {
                return;
            }
            base.Response.Write("<div class=\"row2sp\"><div class=\"secCol\"><span class=spS>");
            base.Response.Write(LocalizedStrings.GetHtmlEncoded(-2096722623));
            base.Response.Write("</span></div>");
            base.Response.Write("<div class=\"lbl noindent\" id=\"tdSM\">");
            bool flag = Utilities.FindBestCertificate(ItemUtility.GetProperty <byte[][]>(base.Item, ContactSchema.UserX509Certificates, null), null, true, false) != null;

            base.Response.Write(LocalizedStrings.GetHtmlEncoded(flag ? -1588000202 : -629647425));
            base.Response.Write("</div></div>");
        }
Пример #10
0
 private void RenderDomainUsername(string domainUsername)
 {
     this.writer.Write("<tr><td>");
     if (VariantConfiguration.GetSnapshot(MachineSettingsContext.Local, null, null).OwaDeployment.IsLogonFormatEmail.Enabled)
     {
         this.writer.Write(LocalizedStrings.GetHtmlEncoded(-1568335488));
     }
     else
     {
         this.writer.Write(LocalizedStrings.GetHtmlEncoded(50262124));
     }
     this.writer.Write("</td><td><span class=\"indnt1\">");
     this.writer.Write(domainUsername);
     this.writer.Write("</span></td></tr>");
 }
        // Token: 0x0600281D RID: 10269 RVA: 0x000E3268 File Offset: 0x000E1468
        protected void RenderSender(TextWriter writer)
        {
            if (writer == null)
            {
                throw new ArgumentNullException("writer");
            }
            MeetingMessage meetingMessage = base.Item as MeetingMessage;

            if (Utilities.IsOnBehalfOf(meetingMessage.Sender, meetingMessage.From))
            {
                writer.Write(LocalizedStrings.GetHtmlEncoded(-165544498), RenderingUtilities.GetSender(base.UserContext, meetingMessage.Sender, "spnFrom", false, SenderDisplayMode.NameOnly), RenderingUtilities.GetSender(base.UserContext, meetingMessage.From, "spnOrg", false, SenderDisplayMode.NameOnly));
                return;
            }
            RenderingUtilities.RenderSender(base.UserContext, writer, meetingMessage.From, SenderDisplayMode.NameOnly, null);
        }
Пример #12
0
 private static void RenderMoreOrLess(TextWriter output, UserContext userContext, bool moreOrLess, ThemeFileId image)
 {
     output.Write("<div id=\"");
     output.Write(moreOrLess ? "divABMore" : "divABLess");
     output.Write("\" class=\"abMoreLessWrap\" _fMrLs=\"1\"");
     if (!moreOrLess)
     {
         output.Write(" style=\"display:none\"");
     }
     output.Write("><span class=\"abMoreLess\">");
     output.Write(LocalizedStrings.GetHtmlEncoded(moreOrLess ? 1132752106 : -584522130));
     output.Write("</span>&nbsp;");
     userContext.RenderThemeImage(output, image, "abMoreLessImg", new object[0]);
     output.Write("</div>");
 }
Пример #13
0
        protected void RenderOOF(TextWriter writer)
        {
            if (writer == null)
            {
                throw new ArgumentNullException("writer");
            }
            AvailabilityQuery availabilityQuery = new AvailabilityQuery();

            if (HttpContext.Current != null)
            {
                availabilityQuery.HttpResponse = HttpContext.Current.Response;
            }
            availabilityQuery.MailboxArray                  = new MailboxData[1];
            availabilityQuery.MailboxArray[0]               = new MailboxData();
            availabilityQuery.MailboxArray[0].Email         = new EmailAddress();
            availabilityQuery.MailboxArray[0].Email.Address = base.ADRecipient.PrimarySmtpAddress.ToString();
            availabilityQuery.ClientContext                 = ClientContext.Create(base.UserContext.LogonIdentity.ClientSecurityContext, base.UserContext.ExchangePrincipal.MailboxInfo.OrganizationId, OwaContext.TryGetCurrentBudget(), base.UserContext.TimeZone, base.UserContext.UserCulture, AvailabilityQuery.CreateNewMessageId());
            ExDateTime date       = DateTimeUtilities.GetLocalTime().Date;
            ExDateTime exDateTime = date.IncrementDays(1);

            availabilityQuery.DesiredFreeBusyView = new FreeBusyViewOptions
            {
                RequestedView = FreeBusyViewType.Detailed,
                MergedFreeBusyIntervalInMinutes = 1440,
                TimeWindow = new Duration((DateTime)date, (DateTime)exDateTime.IncrementDays(1))
            };
            AvailabilityQueryResult availabilityQueryResult;

            if (Utilities.ExecuteAvailabilityQuery(base.OwaContext, availabilityQuery, true, out availabilityQueryResult))
            {
                FreeBusyQueryResult freeBusyQueryResult = availabilityQueryResult.FreeBusyResults[0];
                if (freeBusyQueryResult != null)
                {
                    string currentOofMessage = freeBusyQueryResult.CurrentOofMessage;
                    if (!string.IsNullOrEmpty(currentOofMessage))
                    {
                        writer.Write("<tr><td class=\"spcOP\"></td></tr>");
                        writer.Write("<tr><td class=\"oof oofF\">");
                        writer.Write(LocalizedStrings.GetHtmlEncoded(77678270));
                        writer.Write("</td></tr>");
                        writer.Write("<tr><td class=\"oof\">");
                        writer.Write("<textarea name=\"off\" rows=3 cols=100 readonly>");
                        writer.Write(currentOofMessage);
                        writer.Write("</textarea>");
                    }
                }
            }
        }
Пример #14
0
        // Token: 0x06002803 RID: 10243 RVA: 0x000E2910 File Offset: 0x000E0B10
        protected void RenderTitle()
        {
            if (base.Item == null)
            {
                base.Response.Write(LocalizedStrings.GetHtmlEncoded(-1873027801));
                return;
            }
            string propertyValue = this.GetPropertyValue(ContactBaseSchema.FileAs);

            if (string.IsNullOrEmpty(propertyValue))
            {
                base.Response.Write(LocalizedStrings.GetHtmlEncoded(-1873027801));
                return;
            }
            Utilities.HtmlEncode(propertyValue, base.Response.Output);
        }
Пример #15
0
        protected void RenderTitle()
        {
            if (this.post == null)
            {
                base.Response.Write(LocalizedStrings.GetHtmlEncoded(-439597685));
                return;
            }
            string subject = this.post.Subject;

            if (string.IsNullOrEmpty(subject))
            {
                base.Response.Write(LocalizedStrings.GetHtmlEncoded(-439597685));
                return;
            }
            Utilities.HtmlEncode(subject, base.Response.Output);
        }
Пример #16
0
        protected void RenderFileAs()
        {
            base.Response.Write("<tr><td class=\"cntPT\">");
            base.Response.Write(LocalizedStrings.GetHtmlEncoded(ContactUtilities.FileAsId.Label));
            base.Response.Write("</td><td class=\"cntPV\"><select name=\"");
            base.Response.Write(ContactUtilities.FileAsId.Id);
            base.Response.Write("\" class=\"cntDD cntCB\">");
            FileAsMapping fileAs = ContactUtilities.GetFileAs(base.Item);

            foreach (FileAsMapping fileAsMapping in ContactUtilities.GetSupportedFileAsMappings())
            {
                int num = (int)fileAsMapping;
                this.RenderListItem(num.ToString(), ContactUtilities.GetFileAsString(fileAsMapping), fileAsMapping == fileAs);
            }
            base.Response.Write("</select></td></tr>");
        }
Пример #17
0
 // Token: 0x060003AC RID: 940 RVA: 0x00021130 File Offset: 0x0001F330
 private void RenderLanguageOptions()
 {
     base.RenderHeaderRow(ThemeFileId.Globe, 468777496);
     this.writer.Write("<tr><td class=\"bd lrgLn\">");
     this.writer.Write("<div>");
     this.writer.Write(LocalizedStrings.GetHtmlEncoded(1882021095));
     this.writer.Write("</div>");
     this.writer.Write("<div>");
     this.writer.Write(LocalizedStrings.GetHtmlEncoded(-833638460));
     this.RenderLanguageSelection();
     this.writer.Write("</div>");
     this.writer.Write("<div>");
     this.writer.Write(LocalizedStrings.GetHtmlEncoded(647522285));
     this.writer.Write("</div>");
     this.writer.Write("</td></tr>");
 }
Пример #18
0
 // Token: 0x06002AA9 RID: 10921 RVA: 0x000EFB3C File Offset: 0x000EDD3C
 private void RenderProfileSectionData()
 {
     this.isSectionStarted = false;
     this.sectionHeader    = LocalizedStrings.GetHtmlEncoded(1346342343);
     this.sectionId        = "spnSPf";
     this.RenderLabelValue(LocalizedStrings.GetHtmlEncoded(587115635), "PT", ContactSchema.Title);
     this.RenderLabelValue(LocalizedStrings.GetHtmlEncoded(1855823700), "PD", ContactSchema.Department);
     if (this.isPhoneticNamesEnabled)
     {
         this.RenderLabelValue(LocalizedStrings.GetHtmlEncoded(1805298069), "PYc", ContactSchema.YomiCompany);
     }
     this.RenderLabelValue(LocalizedStrings.GetHtmlEncoded(642177943), "PC", ContactSchema.CompanyName);
     this.RenderADPerson(LocalizedStrings.GetHtmlEncoded(-128712621), "PM", ContactSchema.Manager);
     this.RenderADPerson(LocalizedStrings.GetHtmlEncoded(425094986), "PA", ContactSchema.AssistantName);
     this.RenderLabelValue(LocalizedStrings.GetHtmlEncoded(275231482), "PO", ContactSchema.OfficeLocation);
 }
Пример #19
0
        // Token: 0x06002977 RID: 10615 RVA: 0x000E9C6C File Offset: 0x000E7E6C
        protected void RenderOofNotificationInfobar(Infobar infobar)
        {
            ExDateTime exDateTime = new ExDateTime(base.UserContext.TimeZone, this.UserOofSettings.Duration.EndTime);
            SanitizingStringBuilder <OwaHtml> sanitizingStringBuilder = new SanitizingStringBuilder <OwaHtml>();

            sanitizingStringBuilder.Append("<div class=\"divIBTxt\">");
            sanitizingStringBuilder.AppendFormat(LocalizedStrings.GetHtmlEncoded(-1261886615), new object[]
            {
                exDateTime.ToLongDateString() + " " + exDateTime.ToString(base.UserContext.UserOptions.TimeFormat)
            });
            sanitizingStringBuilder.Append("</div>");
            sanitizingStringBuilder.Append("<div class=\"divIBTxt\"><a href=# id=\"lnkRmvOofIB\" _sRmvId=\"divOofIB\">");
            sanitizingStringBuilder.Append(LocalizedStrings.GetNonEncoded(1303059585));
            sanitizingStringBuilder.Append("</a></div>");
            infobar.AddMessage(sanitizingStringBuilder.ToSanitizedString <SanitizedHtmlString>(), InfobarMessageType.Informational, "divOofIB");
        }
Пример #20
0
        protected void RenderTitle()
        {
            if (base.Item == null)
            {
                base.Response.Write(LocalizedStrings.GetHtmlEncoded(151903378));
                return;
            }
            string propertyValue = this.GetPropertyValue(ItemSchema.Subject);

            if (string.IsNullOrEmpty(propertyValue))
            {
                base.Response.Write(LocalizedStrings.GetHtmlEncoded(151903378));
                return;
            }
            Utilities.HtmlEncode(propertyValue, base.Response.Output);
        }
Пример #21
0
 protected void RenderTextProperty(ThemeFileId themeFileId, params ContactPropertyInfo[] propertyInfoList)
 {
     if (propertyInfoList == null)
     {
         throw new ArgumentNullException("propertyInfoList");
     }
     base.Response.Write("<tr><td class=\"cntImPT\"><img src=\"");
     base.UserContext.RenderThemeFileUrl(base.Response.Output, themeFileId);
     base.Response.Write("\" ");
     Utilities.RenderImageAltAttribute(base.Response.Output, base.UserContext, themeFileId);
     base.Response.Write(" class=cntIm>");
     base.Response.Write(LocalizedStrings.GetHtmlEncoded(propertyInfoList[0].Label));
     base.Response.Write("</td><td class=\"cntPV\">");
     this.RenderTextControl(propertyInfoList);
     base.Response.Write("</td></tr>");
 }
        // Token: 0x06002815 RID: 10261 RVA: 0x000E2D3C File Offset: 0x000E0F3C
        protected void RenderTitle()
        {
            if (this.distributionList == null)
            {
                base.Response.Write(LocalizedStrings.GetHtmlEncoded(-1576800949));
                return;
            }
            string displayName = this.distributionList.DisplayName;

            if (string.IsNullOrEmpty(displayName))
            {
                base.Response.Write(LocalizedStrings.GetHtmlEncoded(-1576800949));
                return;
            }
            Utilities.HtmlEncode(displayName, base.Response.Output);
        }
 // Token: 0x0600053F RID: 1343 RVA: 0x00029FD4 File Offset: 0x000281D4
 private void RenderDeleteFolder(TextWriter writer)
 {
     this.RenderTitle(677440499, writer);
     writer.Write("<tr><td colspan=3 class=info>");
     writer.Write(LocalizedStrings.GetHtmlEncoded(-404811311));
     writer.Write("</td></tr>");
     writer.Write("<tr>");
     FolderManagement.RenderLeadingText(-868987232, writer);
     writer.Write("<td class=\"dd\">");
     this.folderDropdown.RenderFolderToDelete(this.allFolderList, LocalizedStrings.GetHtmlEncoded(283502113), writer, new FolderDropDownFilterDelegate[]
     {
         new FolderDropDownFilterDelegate(this.ExternalFolderFilter)
     });
     FolderManagement.RenderButton(1381996313, "btnDel", "return onClkDel()", writer);
     writer.Write("</tr>");
 }
        // Token: 0x0600281A RID: 10266 RVA: 0x000E3098 File Offset: 0x000E1298
        private void InitializeMeetingResponse()
        {
            MeetingResponse meetingResponse = (MeetingResponse)base.Item;

            this.responseType = meetingResponse.ResponseType;
            string queryStringParameter = Utilities.GetQueryStringParameter(base.Request, "mid", false);

            if (queryStringParameter != null)
            {
                this.meetingRequestId = OwaStoreObjectId.CreateFromString(queryStringParameter);
            }
            this.isMeetingInviteInDeleteItems = (Utilities.GetQueryStringParameter(base.Request, "d", false) != null);
            this.infobar.AddMessage(SanitizedHtmlString.FromStringId(-1981719796), InfobarMessageType.Informational);
            string format = string.Empty;

            switch (this.responseType)
            {
            case ResponseType.Tentative:
                format = LocalizedStrings.GetHtmlEncoded(-588720585);
                break;

            case ResponseType.Accept:
                format = LocalizedStrings.GetHtmlEncoded(-14610226);
                break;

            case ResponseType.Decline:
                format = LocalizedStrings.GetHtmlEncoded(-1615218790);
                break;
            }
            SanitizedHtmlString messageHtml;

            if (this.isSendOnBehalfOf)
            {
                messageHtml = SanitizedHtmlString.Format(format, new object[]
                {
                    meetingResponse.From.DisplayName
                });
            }
            else
            {
                messageHtml = SanitizedHtmlString.Format(format, new object[]
                {
                    LocalizedStrings.GetNonEncoded(372029413)
                });
            }
            this.infobar.AddMessage(messageHtml, InfobarMessageType.Informational);
        }
Пример #25
0
        public void Render(TextWriter writer)
        {
            if (writer == null)
            {
                throw new ArgumentNullException("writer");
            }
            bool flag = true;

            writer.Write("<table cellspacing=0 cellpadding=0 class=\"sncts\">");
            for (int i = 0; i < base.Count; i++)
            {
                VersionedId versionedId = (VersionedId)base.GetPropertyValue(i, FolderSchema.Id);
                string      text        = (string)base.GetPropertyValue(i, FolderSchema.DisplayName);
                writer.Write("<tr><td nowrap class=\"fld");
                if (versionedId.ObjectId.Equals(this.selectedFolderId))
                {
                    writer.Write(" sl");
                    flag = false;
                }
                writer.Write("\"><a href=\"#\" onClick=\"onClkCtsFdr(this, '");
                writer.Write(Utilities.JavascriptEncode(HttpUtility.UrlEncode(versionedId.ObjectId.ToBase64String())));
                writer.Write("')\" title=\"");
                Utilities.HtmlEncode(text, writer);
                writer.Write("\"><img src=\"");
                base.UserContext.RenderThemeFileUrl(writer, ThemeFileId.Contact2Small);
                writer.Write("\" alt=\"\">");
                Utilities.CropAndRenderText(writer, text, 24);
                writer.Write("</a></td></tr>");
            }
            if (flag)
            {
                using (Folder folder = Folder.Bind(base.UserContext.MailboxSession, this.selectedFolderId))
                {
                    writer.Write("<tr><td class=\"fter\"><img src=\"");
                    base.UserContext.RenderThemeFileUrl(writer, ThemeFileId.Clear);
                    writer.Write("\" alt=\"\"></td></tr>");
                    writer.Write("<tr><td class=\"mycts dsh\">");
                    writer.Write(LocalizedStrings.GetHtmlEncoded(1171255778));
                    writer.Write("</td></tr><tr><td class=\"fld sl\"><a href=\"#\" onClick=\"return false;\"><img src=\"");
                    base.UserContext.RenderThemeFileUrl(writer, ThemeFileId.Contact2Small);
                    writer.Write("\" alt=\"\">");
                    Utilities.CropAndRenderText(writer, folder.DisplayName, 24);
                    writer.Write("</a></td></tr>");
                }
            }
            writer.Write("</table>");
        }
Пример #26
0
        protected void RenderItemTooltip(TextWriter writer)
        {
            if (this.folderScope == SearchScope.SelectedFolder)
            {
                return;
            }
            if (!(this.DataSource is FolderListViewDataSource))
            {
                throw new InvalidOperationException(string.Format("DataSource must be FolderListViewDataSource to show item tooltip. Actual Type {0}", this.DataSource.GetType()));
            }
            writer.Write(" title=\"");
            string itemProperty = this.DataSource.GetItemProperty <string>(ItemSchema.ParentDisplayName, string.Empty);
            string htmlEncoded  = LocalizedStrings.GetHtmlEncoded(699235260);

            writer.Write(string.Format(htmlEncoded, Utilities.HtmlEncode(itemProperty)));
            writer.Write("\"");
        }
 // Token: 0x06003132 RID: 12594 RVA: 0x00122250 File Offset: 0x00120450
 public static void RenderSender(UserContext userContext, TextWriter writer, MessageItem message)
 {
     if (writer == null)
     {
         throw new ArgumentNullException("writer");
     }
     if (message == null)
     {
         throw new ArgumentNullException("message");
     }
     if (Utilities.IsOnBehalfOf(message.Sender, message.From))
     {
         writer.Write(LocalizedStrings.GetHtmlEncoded(-165544498), RenderingUtilities.GetSender(userContext, message.Sender, "spnSender", null), UnifiedMessagingUtilities.GetUMSender(userContext, message, "spnFrom", SenderDisplayMode.NoPhoto));
         return;
     }
     writer.Write(UnifiedMessagingUtilities.GetUMSender(userContext, message, "spnFrom"));
 }
Пример #28
0
        private void RenderManagementChain(IADOrgPerson person, TextWriter writer)
        {
            this.managersResults = person.GetManagementChainView(false, new PropertyDefinition[]
            {
                ADRecipientSchema.DisplayName,
                ADObjectSchema.Id,
                ADRecipientSchema.RecipientType
            });
            if (this.managersResults.Length <= 1)
            {
                return;
            }
            int num          = this.managersResults.Length - 1;
            int num2         = 0;
            int readItemType = 1;

            if (num > 25)
            {
                num2 = num - 25;
            }
            writer.Write("<tr><td class=\"lbl lp\">");
            writer.Write(LocalizedStrings.GetHtmlEncoded(1660340599));
            writer.Write("</td><td>");
            writer.Write("<table cellpadding=0 cellspacing=0 class=\"drpts\">");
            for (int i = num2; i < num; i++)
            {
                writer.Write("<tr>");
                if (i != 0)
                {
                    writer.Write("<td><img alt=\"\" class=\"mitimg\" src=\"");
                    base.UserContext.RenderThemeFileUrl(writer, ThemeFileId.OrganizationUpArrow);
                    writer.Write("\"></td>");
                    writer.Write("<td class=\"mitdpd\">");
                }
                else
                {
                    writer.Write("<td colspan=\"2\" class=\"rptdpd\">");
                }
                ReadADRecipient.RenderADRecipient(writer, readItemType, this.managersResults[i][1] as ADObjectId, this.managersResults[i][0].ToString());
                writer.Write("</td></tr>");
            }
            writer.Write("</table>");
            writer.Write("</td></tr>");
            writer.Write("<tr><td class=\"spcHd\" colspan=2></td></tr>");
            this.renderOrganizationDetails = true;
        }
Пример #29
0
        // Token: 0x0600056D RID: 1389 RVA: 0x0002AF34 File Offset: 0x00029134
        protected void RenderMonthlyRecurrence()
        {
            MonthlyRecurrencePattern monthlyRecurrencePattern;

            if (this.calendarItemData.Recurrence.Pattern is MonthlyRecurrencePattern)
            {
                monthlyRecurrencePattern = (MonthlyRecurrencePattern)this.calendarItemData.Recurrence.Pattern;
            }
            else
            {
                monthlyRecurrencePattern = (MonthlyRecurrencePattern)CalendarUtilities.CreateDefaultRecurrencePattern(OwaRecurrenceType.Monthly, this.calendarItemData.StartTime);
            }
            string arg  = "<input type=text onchange=\"onChg(this);\" maxlength=2 size=2 name=\"txtRcrMM\" value=\"" + monthlyRecurrencePattern.RecurrenceInterval + "\">";
            string arg2 = CalendarUtilities.BuildDayIndexDropdownList(monthlyRecurrencePattern.DayOfMonth, "txtRcrMD", null, "onChg(this);");

            base.Response.Write(string.Format(LocalizedStrings.GetHtmlEncoded(2088839449), arg2, arg));
        }
Пример #30
0
        // Token: 0x0600056F RID: 1391 RVA: 0x0002B098 File Offset: 0x00029298
        protected void RenderYearlyRecurrence()
        {
            YearlyRecurrencePattern yearlyRecurrencePattern;

            if (this.calendarItemData.Recurrence.Pattern is YearlyRecurrencePattern)
            {
                yearlyRecurrencePattern = (YearlyRecurrencePattern)this.calendarItemData.Recurrence.Pattern;
            }
            else
            {
                yearlyRecurrencePattern = (YearlyRecurrencePattern)CalendarUtilities.CreateDefaultRecurrencePattern(OwaRecurrenceType.Yearly, this.calendarItemData.StartTime);
            }
            string arg  = CalendarUtilities.BuildMonthDropdownList(yearlyRecurrencePattern.Month, "selRcrYM", null, "onChg(this);");
            string arg2 = CalendarUtilities.BuildDayIndexDropdownList(yearlyRecurrencePattern.DayOfMonth, "selRcrYD", null, "onChg(this);");

            base.Response.Write(string.Format(LocalizedStrings.GetHtmlEncoded(-642038370), arg, arg2));
        }