예제 #1
0
        protected override void Render(HtmlTextWriter writer)
        {
            AddAttributesToRender(writer);
            if (CaptionAlign == AlignType.Top)
            {
                writer.Write("<span id=" + inputTextBox.ClientID + ">");
                captionLiteral.RenderControl(writer);
                writer.WriteBreak();
                if (DataType != InputType.None)
                {
                    inputTextBox.CausesValidation = true;
                }

                if (DataType == InputType.Date)
                {
                    inputTextBox.CssClass = "datepicker";
                }
                inputTextBox.RenderControl(writer);
                EnsureChildControls();
                if (DataType != InputType.None)
                {
                    reqValidator.ValidationGroup = inputTextBox.ValidationGroup;
                    reqValidator.RenderControl(writer);
                }
                if (DataType == InputType.Date)
                {
                    regValidator.ValidationGroup = inputTextBox.ValidationGroup;
                    regValidator.RenderControl(writer);
                }
                writer.Write("</span>");
            }
            else
            {
                writer.Write("<span id=" + inputTextBox.ClientID + ">");
                captionLiteral.RenderControl(writer);
                writer.Write("&nbsp;");
                inputTextBox.RenderControl(writer);
                if (DataType != InputType.None)
                {
                    reqValidator.ValidationGroup = inputTextBox.ValidationGroup;
                    reqValidator.RenderControl(writer);
                }
                if (DataType == InputType.Date)
                {
                    inputTextBox.CssClass        = "datepicker";
                    regValidator.ValidationGroup = inputTextBox.ValidationGroup;
                    regValidator.RenderControl(writer);
                }
                writer.Write("</span>");
            }
        }
예제 #2
0
        private void renderGeneralFolder(HtmlTextWriter output)
        {
            //
            // Render Name
            //
            output.WriteFullBeginTag("tr");
            output.WriteBeginTag("td");
            output.WriteAttribute("valign", "top");
            output.Write(HtmlTextWriter.TagRightChar);
            output.Write("Name");
            output.WriteEndTag("td");
            output.WriteBeginTag("td");
            output.Write(HtmlTextWriter.TagRightChar);
            tbName.RenderControl(output);
            output.WriteEndTag("td");
            output.WriteEndTag("tr");

            //
            // Render OrderNum
            //
            output.WriteFullBeginTag("tr");
            output.WriteBeginTag("td");
            output.WriteAttribute("valign", "top");
            output.Write(HtmlTextWriter.TagRightChar);
            output.Write("OrderNum");
            output.WriteEndTag("td");
            output.WriteBeginTag("td");
            output.Write(HtmlTextWriter.TagRightChar);
            tbOrderNum.RenderControl(output);
            revOrderNum.RenderControl(output);
            output.WriteEndTag("td");
            output.WriteEndTag("tr");
        }
예제 #3
0
        /// <summary>
        /// Displays the control on the client.
        /// </summary>
        /// <param name="writer">A <see cref="T:System.Web.UI.HtmlTextWriter"></see> that contains the output stream for rendering on the client.</param>
        protected override void Render(HtmlTextWriter writer)
        {
            if (this.rangeValidator != null)
            {
                rangeValidator.RenderControl(writer);
            }

            if (this.requiredFieldValidator != null)
            {
                requiredFieldValidator.RenderControl(writer);
            }

            if (this.compareValidator != null)
            {
                compareValidator.RenderControl(writer);
            }

            if (this.regularExpressionValidator != null)
            {
                regularExpressionValidator.RenderControl(writer);
            }

            if (this.customStringLengthValidator != null)
            {
                customStringLengthValidator.RenderControl(writer);
            }
        }
예제 #4
0
        private void RenderValidators(HtmlTextWriter writer)
        {
            if (Required && Enabled && (!ReadOnly))
            {
                if (!DesignMode && string.IsNullOrEmpty(ErrorMessage))
                {
                    base.RequiredFieldValidator.ErrorMessage = Resources.TextBox_RequiredValidator_ErrorMessage;
                }
                base.RequiredFieldValidator.RenderControl(writer);
            }

            if (RangeValidationEnabled)
            {
                if (!DesignMode && string.IsNullOrEmpty(m_RangeValidator.ErrorMessage))
                {
                    m_RangeValidator.ErrorMessage = Resources.TextBox_RangeValidator_ErrorMessage;
                }
                m_RangeValidator.RenderControl(writer);
            }

            if (RegularExpressionValidationEnabled)
            {
                if (!DesignMode && string.IsNullOrEmpty(m_RegularExpressionValidator.ErrorMessage))
                {
                    m_RegularExpressionValidator.ErrorMessage = Resources.TextBox_RegularExpressionValidator_ErrorMessage;
                }
                m_RegularExpressionValidator.RenderControl(writer);
            }
        }
예제 #5
0
        protected override void Render(HtmlTextWriter writer)
        {
            // base.Render(writer);
            AddAttributesToRender(writer);

            writer.AddAttribute(HtmlTextWriterAttribute.Cellpadding, "1", false);
            writer.RenderBeginTag(HtmlTextWriterTag.Table);

            writer.RenderBeginTag(HtmlTextWriterTag.Tr);
            writer.RenderBeginTag(HtmlTextWriterTag.Td);
            namelbl.RenderControl(writer);

            writer.RenderEndTag();
            writer.RenderBeginTag(HtmlTextWriterTag.Td);
            nameTextbox.RenderControl(writer);
            writer.RenderEndTag();
            writer.RenderBeginTag(HtmlTextWriterTag.Td);
            nameValidator.RenderControl(writer);

            writer.RenderEndTag();
            writer.RenderEndTag();

            writer.RenderBeginTag(HtmlTextWriterTag.Tr);
            writer.RenderBeginTag(HtmlTextWriterTag.Td);
            emaillbl.RenderControl(writer);
            writer.RenderEndTag();
            writer.RenderBeginTag(HtmlTextWriterTag.Td);
            emailTextbox.RenderControl(writer);
            writer.RenderEndTag();
            writer.RenderBeginTag(HtmlTextWriterTag.Td);
            emailValidator.RenderControl(writer);
            emailEV.RenderControl(writer);
            writer.RenderEndTag();
            writer.RenderEndTag();

            writer.RenderBeginTag(HtmlTextWriterTag.Tr);
            writer.RenderBeginTag(HtmlTextWriterTag.Td);
            phonelbl.RenderControl(writer);
            writer.RenderEndTag();
            writer.RenderBeginTag(HtmlTextWriterTag.Td);
            phoneTextbox.RenderControl(writer);
            writer.RenderEndTag();
            writer.RenderBeginTag(HtmlTextWriterTag.Td);
            phoneEV.RenderControl(writer);
            writer.RenderEndTag();
            writer.RenderEndTag();

            writer.RenderBeginTag(HtmlTextWriterTag.Tr);
            writer.AddAttribute(HtmlTextWriterAttribute.Colspan, "2", false);
            writer.AddAttribute(HtmlTextWriterAttribute.Align, "right", false);
            writer.RenderBeginTag(HtmlTextWriterTag.Td);
            submitButton.RenderControl(writer);
            writer.RenderEndTag();
            writer.RenderBeginTag(HtmlTextWriterTag.Td);
            writer.Write("&nbsp;");
            writer.RenderEndTag();
            writer.RenderEndTag();

            writer.RenderEndTag();
        }
        protected override void Render(HtmlTextWriter writer)
        {
            writer.WriteLine("<table>");
            writer.WriteLine("<tr><th>Database datatype</th><td>");
            _dropdownlist.RenderControl(writer);
            writer.Write("</td></tr>");
            writer.Write("<tr><th>Buttons:</th><td>");
            _editorButtons.RenderControl(writer);
            writer.Write("</td></tr>");
            writer.Write("<tr><th>Related stylesheets:</th><td>");
            _stylesheetList.RenderControl(writer);
            writer.Write("</td></tr>");
            writer.Write("<tr><th>Enable Contextmenu:</th><td>");
            _enableRightClick.RenderControl(writer);
            writer.Write("</td></tr>");
            writer.Write("<tr><th>Enable advanced settings for:</th><td>");
            _advancedUsersList.RenderControl(writer);
            writer.Write("</td></tr>");
            writer.Write("<tr><th>"); //"Size:</th><td>Maximum width and height: ");
//            _fullWidth.RenderControl(writer);
            writer.Write("Width and height:</th><td>");
            _width.RenderControl(writer);
            _widthValidator.RenderControl(writer);
            writer.Write(" x ");
            _height.RenderControl(writer);
            _heightValidator.RenderControl(writer);
            writer.Write("</td></tr>");
            writer.Write("</table>");
        }
예제 #7
0
        /// <summary>
        /// Renders any data validator.
        /// </summary>
        /// <param name="writer">The writer.</param>
        protected override void RenderDataValidator(HtmlTextWriter writer)
        {
            base.RenderDataValidator(writer);

            _regexValidator.ValidationGroup = this.ValidationGroup;
            _regexValidator.RenderControl(writer);
        }
예제 #8
0
        /// <summary>
        /// Renders any data validator.
        /// </summary>
        /// <param name="writer">The writer.</param>
        protected override void RenderDataValidator(HtmlTextWriter writer)
        {
            var ptr = typeof(RockTextBox).GetMethod("RenderDataValidator", System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance).MethodHandle.GetFunctionPointer();
            var renderDataValidator = (Action <HtmlTextWriter>)Activator.CreateInstance(typeof(Action <HtmlTextWriter>), this, ptr);

            renderDataValidator(writer);

            _maskedRegexValidator.RenderControl(writer);
        }
예제 #9
0
        /// <summary>
        /// Renders any data validator.
        /// </summary>
        /// <param name="writer">The writer.</param>
        protected override void RenderDataValidator(HtmlTextWriter writer)
        {
            base.RenderDataValidator(writer);

            _regexValidator.ValidationExpression = GetUrlRegEx();
            _regexValidator.ErrorMessage         = GetValidationErrorMessage();

            _regexValidator.ValidationGroup = this.ValidationGroup;
            _regexValidator.RenderControl(writer);
        }
예제 #10
0
        /// <summary>
        /// Renders any data validator.
        /// </summary>
        /// <param name="writer">The writer.</param>
        protected override void RenderDataValidator(HtmlTextWriter writer)
        {
            base.RenderDataValidator(writer);

            _regexValidator.ValidationExpression = _regex;
            _regexValidator.ErrorMessage         = "The link provided is not valid";

            _regexValidator.ValidationGroup = this.ValidationGroup;
            _regexValidator.RenderControl(writer);
        }
예제 #11
0
        /// <summary>
        /// Renders any data validator.
        /// </summary>
        /// <param name="writer">The writer.</param>
        protected override void RenderDataValidator(HtmlTextWriter writer)
        {
            base.RenderDataValidator(writer);

            _regexValidator.ValidationExpression = @"\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*";
            _regexValidator.ErrorMessage         = "Email address is not valid";

            _regexValidator.ValidationGroup = this.ValidationGroup;
            _regexValidator.RenderControl(writer);
        }
 static public void WriteRegularExpressionValidator(HtmlTextWriter writer, RegularExpressionValidator rev, string className, string controlToValidate, string msg, string expression)
 {
     if (rev != null)
     {
         rev.CssClass             = className;
         rev.ControlToValidate    = controlToValidate;
         rev.ErrorMessage         = msg;
         rev.ValidationExpression = expression;
         rev.RenderControl(writer);
     }
 }
예제 #13
0
 /// <summary>
 /// Renders any data validator.
 /// </summary>
 /// <param name="writer">The writer.</param>
 protected virtual void RenderDataValidator(HtmlTextWriter writer)
 {
     if (this.MaxLength != 0 && this.TextMode == TextBoxMode.MultiLine)
     {
         _regexValidator.Enabled = true;
         _regexValidator.ValidationExpression = @"^((.|\n){0," + this.MaxLength.ToString() + "})$";
         _regexValidator.ErrorMessage         = Rock.Constants.WarningMessage.TextLengthInvalid(this.Label, this.MaxLength);
         _regexValidator.ValidationGroup      = this.ValidationGroup;
         _regexValidator.RenderControl(writer);
     }
 }
예제 #14
0
        /// <summary>
        /// Renders any data validator.
        /// </summary>
        /// <param name="writer">The writer.</param>
        protected virtual void RenderDataValidator(HtmlTextWriter writer)
        {
            if (this.MaxLength != 0 && this.TextMode == TextBoxMode.MultiLine)
            {
                _regexValidator.Enabled = true;
                _regexValidator.ValidationExpression = @"^((.|\n){0," + this.MaxLength.ToString() + "})$";

                /*
                 *  8/14/2021 - CWR
                 *
                 *  The TextLengthInvalid method expects a plain, text-only Label, not one with markup or extra spaces.
                 *  The BulkUpdate page (and possibly others) add HTML to the Label, which TextLengthInvalid does not expect.
                 *  It will affect the resulting page's style and structure, as noted below from GitHub.
                 *  Therefore, we will strip HTML out and trim whitespace before passing the label on to the 'length invalid' message.
                 *
                 *  Reason: GitHub Issue #4231 (https://github.com/SparkDevNetwork/Rock/issues/4231)
                 */
                _regexValidator.ErrorMessage    = Rock.Constants.WarningMessage.TextLengthInvalid(this.Label.StripHtml().Trim(), this.MaxLength);
                _regexValidator.ValidationGroup = this.ValidationGroup;
                _regexValidator.RenderControl(writer);
            }
        }
        protected override void Render(HtmlTextWriter writer)
        {
            writer.WriteLine("<table>");
            writer.WriteLine("<tr><th>" + ui.Text("editdatatype", "dataBaseDatatype") + ":</th><td>");
            _dropdownlist.RenderControl(writer);
            writer.Write("</td></tr>");
            writer.Write("<tr><th>" + ui.Text("editdatatype", "rteButtons") + ":</th><td>");
            _editorButtons.RenderControl(writer);
            writer.Write("</td></tr>");
            writer.Write("<tr><th>" + ui.Text("editdatatype", "rteRelatedStylesheets") + ":</th><td>");
            _stylesheetList.RenderControl(writer);
            writer.Write("</td></tr>");
            writer.Write("<tr><th>" + ui.Text("editdatatype", "rteEnableContextMenu") + ":</th><td>");
            _enableRightClick.RenderControl(writer);
            writer.Write("</td></tr>");
            writer.Write("<tr><th>" + ui.Text("editdatatype", "rteEnableAdvancedSettings") + ":</th><td>");
            _advancedUsersList.RenderControl(writer);
            writer.Write("</td></tr>");
            writer.Write("<tr><th>");
            //"Size:</th><td>Maximum width and height: ");
            //            _fullWidth.RenderControl(writer);

            writer.Write(ui.Text("editdatatype", "rteWidthAndHeight") + ":</th><td>");
            _width.RenderControl(writer);
            _widthValidator.RenderControl(writer);
            writer.Write(" x ");
            _height.RenderControl(writer);
            _heightValidator.RenderControl(writer);
            writer.Write("</td></tr>");
            writer.Write("<tr><th>");
            writer.Write(ui.Text("editdatatype", "rteMaximumDefaultImgSize") + ":</th><td>");
            _maxImageWidth.RenderControl(writer);
            _maxImageWidthValidator.RenderControl(writer);
            writer.Write("</td></tr>");
            writer.Write("<tr><th>" + ui.Text("editdatatype", "rteShowLabel") + ":</th><td>");
            _showLabel.RenderControl(writer);
            writer.Write("</td></tr>");
            writer.Write("</table>");
        }
예제 #16
0
        private void RenderNormal(HtmlTextWriter w)
        {
            w.AddAttribute(HtmlTextWriterAttribute.Cellpadding, "1", false);
            w.RenderBeginTag(HtmlTextWriterTag.Table);

            // ROW # 1
            w.AddAttribute(HtmlTextWriterAttribute.Valign, "top");
            w.RenderBeginTag(HtmlTextWriterTag.Tr);
            w.AddAttribute(HtmlTextWriterAttribute.Align, "right");
            w.RenderBeginTag(HtmlTextWriterTag.Td);
            Label1.RenderControl(w);
            w.RenderEndTag();
            //</td>
            w.RenderBeginTag(HtmlTextWriterTag.Td);
            TextBox1.RenderControl(w);
            Add(w, "<br/>");
            LinkButton1.RenderControl(w);
            Add(w, "&nbsp;&nbsp;");
            LinkButton2.RenderControl(w);
            w.RenderEndTag();
            //</td>
            w.RenderBeginTag(HtmlTextWriterTag.Td);
            Add(w, "&nbsp;&nbsp;");
            w.RenderEndTag();
            //</td>
            w.RenderBeginTag(HtmlTextWriterTag.Td);
            RegularExpressionValidator1.RenderControl(w);
            RequiredFieldValidator1.RenderControl(w);
            Label2.RenderControl(w);
            w.RenderEndTag();
            //</td>
            w.RenderEndTag();
            //</tr>
            //</table>
            w.RenderEndTag();
        }
예제 #17
0
        private void renderGeneralFolder(HtmlTextWriter output)
        {
            //
            // Render Status
            //
            output.WriteFullBeginTag("tr");
            output.WriteBeginTag("td");
            output.WriteAttribute("valign", "top");
            output.Write(HtmlTextWriter.TagRightChar);
            output.Write("Registration status");
            output.WriteEndTag("td");
            output.WriteBeginTag("td");
            output.Write(HtmlTextWriter.TagRightChar);
            tbStatus.RenderControl(output);
            output.WriteEndTag("td");
            output.WriteEndTag("tr");

            //
            // Render ParentSeminar
            //
            output.WriteFullBeginTag("tr");
            output.WriteBeginTag("td");
            output.WriteAttribute("valign", "top");
            output.Write(HtmlTextWriter.TagRightChar);
            output.Write("ParentSeminar");
            output.WriteEndTag("td");
            output.WriteBeginTag("td");
            output.Write(HtmlTextWriter.TagRightChar);
            ltParentSeminar.RenderControl(output);
            output.WriteEndTag("td");
            output.WriteEndTag("tr");

            //
            // Render RegistrationDate
            //
            output.WriteFullBeginTag("tr");
            output.WriteBeginTag("td");
            output.WriteAttribute("valign", "top");
            output.Write(HtmlTextWriter.TagRightChar);
            output.Write("RegistrationDate");
            output.WriteEndTag("td");
            output.WriteBeginTag("td");
            output.Write(HtmlTextWriter.TagRightChar);
            deRegistrationDate.RenderControl(output);
            output.WriteEndTag("td");
            output.WriteEndTag("tr");

            //
            // Render ClassUnits
            //
            output.WriteFullBeginTag("tr");
            output.WriteBeginTag("td");
            output.WriteAttribute("valign", "top");
            output.Write(HtmlTextWriter.TagRightChar);
            output.Write("Class units");
            output.WriteEndTag("td");
            output.WriteBeginTag("td");
            output.Write(HtmlTextWriter.TagRightChar);
            tbClassUnits.RenderControl(output);
            revClassUnits.RenderControl(output);
            output.WriteEndTag("td");
            output.WriteEndTag("tr");
        }
예제 #18
0
        private void renderDefaultFolder(HtmlTextWriter output)
        {
            //
            // Render Name
            //
            output.WriteFullBeginTag("tr");
            output.WriteBeginTag("td");
            output.WriteAttribute("valign", "top");
            output.Write(HtmlTextWriter.TagRightChar);
            output.Write("Class Name");
            output.WriteEndTag("td");
            output.WriteBeginTag("td");
            output.Write(HtmlTextWriter.TagRightChar);
            tbName.RenderControl(output);
            output.WriteEndTag("td");
            output.WriteEndTag("tr");

            //
            // Render Description
            //
            output.WriteFullBeginTag("tr");
            output.WriteBeginTag("td");
            output.WriteAttribute("valign", "top");
            output.Write(HtmlTextWriter.TagRightChar);
            output.Write("Definition Description");
            output.WriteEndTag("td");
            output.WriteBeginTag("td");
            output.Write(HtmlTextWriter.TagRightChar);
            tbDescription.RenderControl(output);
            output.WriteEndTag("td");
            output.WriteEndTag("tr");

            //
            // Render IsDisabled
            //
            output.WriteFullBeginTag("tr");
            output.WriteBeginTag("td");
            output.WriteAttribute("valign", "top");
            output.Write(HtmlTextWriter.TagRightChar);
            output.Write("IsDisabled");
            output.WriteEndTag("td");
            output.WriteBeginTag("td");
            output.Write(HtmlTextWriter.TagRightChar);
            cbIsDisabled.RenderControl(output);
            output.WriteEndTag("td");
            output.WriteEndTag("tr");

            //
            // Render OccupancyAvg
            //
            output.WriteFullBeginTag("tr");
            output.WriteBeginTag("td");
            output.WriteAttribute("valign", "top");
            output.Write(HtmlTextWriter.TagRightChar);
            output.Write("OccupancyAvg");
            output.WriteEndTag("td");
            output.WriteBeginTag("td");
            output.Write(HtmlTextWriter.TagRightChar);
            tbOccupancyAvg.RenderControl(output);
            revOccupancyAvg.RenderControl(output);
            output.WriteEndTag("td");
            output.WriteEndTag("tr");

            //
            // Render OccupancyAvgDate
            //
            output.WriteFullBeginTag("tr");
            output.WriteBeginTag("td");
            output.WriteAttribute("valign", "top");
            output.Write(HtmlTextWriter.TagRightChar);
            output.Write("OccupancyAvgDate");
            output.WriteEndTag("td");
            output.WriteBeginTag("td");
            output.Write(HtmlTextWriter.TagRightChar);
            tbOccupancyAvgDate.RenderControl(output);
            output.WriteEndTag("td");
            output.WriteEndTag("tr");
        }
예제 #19
0
        private void renderOccupancyFolder(HtmlTextWriter output)
        {
            //
            // Render OccupancyMax
            //
            output.WriteFullBeginTag("tr");
            output.WriteBeginTag("td");
            output.WriteAttribute("valign", "top");
            output.Write(HtmlTextWriter.TagRightChar);
            output.Write("OccupancyMax");
            output.WriteEndTag("td");
            output.WriteBeginTag("td");
            output.Write(HtmlTextWriter.TagRightChar);
            tbOccupancyMax.RenderControl(output);
            revOccupancyMax.RenderControl(output);
            output.WriteEndTag("td");
            output.WriteEndTag("tr");

            //
            // Render OccupancyTarget
            //
            output.WriteFullBeginTag("tr");
            output.WriteBeginTag("td");
            output.WriteAttribute("valign", "top");
            output.Write(HtmlTextWriter.TagRightChar);
            output.Write("OccupancyTarget");
            output.WriteEndTag("td");
            output.WriteBeginTag("td");
            output.Write(HtmlTextWriter.TagRightChar);
            tbOccupancyTarget.RenderControl(output);
            revOccupancyTarget.RenderControl(output);
            output.WriteEndTag("td");
            output.WriteEndTag("tr");

            //
            // Render OccupancyCurrent
            //
            output.WriteFullBeginTag("tr");
            output.WriteBeginTag("td");
            output.WriteAttribute("valign", "top");
            output.Write(HtmlTextWriter.TagRightChar);
            output.Write("OccupancyCurrent");
            output.WriteEndTag("td");
            output.WriteBeginTag("td");
            output.Write(HtmlTextWriter.TagRightChar);
            tbOccupancyCurrent.RenderControl(output);
            revOccupancyCurrent.RenderControl(output);
            output.WriteEndTag("td");
            output.WriteEndTag("tr");

            //
            // Render OccupancyCheckDate
            //
            output.WriteFullBeginTag("tr");
            output.WriteBeginTag("td");
            output.WriteAttribute("valign", "top");
            output.Write(HtmlTextWriter.TagRightChar);
            output.Write("OccupancyCheckDate");
            output.WriteEndTag("td");
            output.WriteBeginTag("td");
            output.Write(HtmlTextWriter.TagRightChar);
            tbOccupancyCheckDate.RenderControl(output);
            output.WriteEndTag("td");
            output.WriteEndTag("tr");
        }
예제 #20
0
        private void renderDefaultFolder(HtmlTextWriter output)
        {
            //
            // Render Name
            //
            output.WriteFullBeginTag("tr");
            output.WriteBeginTag("td");
            output.WriteAttribute("valign", "top");
            output.Write(HtmlTextWriter.TagRightChar);
            output.Write("Name");
            output.WriteEndTag("td");
            output.WriteBeginTag("td");
            output.Write(HtmlTextWriter.TagRightChar);
            tbName.RenderControl(output);
            output.WriteEndTag("td");
            output.WriteEndTag("tr");

            //
            // Render Description
            //
            output.WriteFullBeginTag("tr");
            output.WriteBeginTag("td");
            output.WriteAttribute("valign", "top");
            output.Write(HtmlTextWriter.TagRightChar);
            output.Write("Description");
            output.WriteEndTag("td");
            output.WriteBeginTag("td");
            output.Write(HtmlTextWriter.TagRightChar);
            tbDescription.RenderControl(output);
            output.WriteEndTag("td");
            output.WriteEndTag("tr");

            //
            // Render OrderNum
            //
            output.WriteFullBeginTag("tr");
            output.WriteBeginTag("td");
            output.WriteAttribute("valign", "top");
            output.Write(HtmlTextWriter.TagRightChar);
            output.Write("OrderNum");
            output.WriteEndTag("td");
            output.WriteBeginTag("td");
            output.Write(HtmlTextWriter.TagRightChar);
            tbOrderNum.RenderControl(output);
            revOrderNum.RenderControl(output);
            output.WriteEndTag("td");
            output.WriteEndTag("tr");

            //
            // Render ParentType
            //
            output.WriteFullBeginTag("tr");
            output.WriteBeginTag("td");
            output.WriteAttribute("valign", "top");
            output.Write(HtmlTextWriter.TagRightChar);
            output.Write("ParentType");
            output.WriteEndTag("td");
            output.WriteBeginTag("td");
            output.Write(HtmlTextWriter.TagRightChar);
            msParentType.RenderControl(output);
            output.WriteEndTag("td");
            output.WriteEndTag("tr");
        }
        private void renderDefaultFolder(HtmlTextWriter output)
        {
            //
            // Render Quantity
            //
            output.WriteFullBeginTag("tr");
            output.WriteBeginTag("td");
            output.WriteAttribute("valign", "top");
            output.Write(HtmlTextWriter.TagRightChar);
            output.Write("Quantity");
            output.WriteEndTag("td");
            output.WriteBeginTag("td");
            output.Write(HtmlTextWriter.TagRightChar);
            tbQuantity.RenderControl(output);
            revQuantity.RenderControl(output);
            output.WriteEndTag("td");
            output.WriteEndTag("tr");

            //
            // Render TotalFee
            //
            output.WriteFullBeginTag("tr");
            output.WriteBeginTag("td");
            output.WriteAttribute("valign", "top");
            output.Write(HtmlTextWriter.TagRightChar);
            output.Write("TotalFee");
            output.WriteEndTag("td");
            output.WriteBeginTag("td");
            output.Write(HtmlTextWriter.TagRightChar);
            tbTotalFee.RenderControl(output);
            output.WriteEndTag("td");
            output.WriteEndTag("tr");

            //
            // Render CostPerItem
            //
            output.WriteFullBeginTag("tr");
            output.WriteBeginTag("td");
            output.WriteAttribute("valign", "top");
            output.Write(HtmlTextWriter.TagRightChar);
            output.Write("CostPerItem");
            output.WriteEndTag("td");
            output.WriteBeginTag("td");
            output.Write(HtmlTextWriter.TagRightChar);
            tbCostPerItem.RenderControl(output);
            output.WriteEndTag("td");
            output.WriteEndTag("tr");

            //
            // Render ParentOption
            //
            output.WriteFullBeginTag("tr");
            output.WriteBeginTag("td");
            output.WriteAttribute("valign", "top");
            output.Write(HtmlTextWriter.TagRightChar);
            output.Write("ParentOption");
            output.WriteEndTag("td");
            output.WriteBeginTag("td");
            output.Write(HtmlTextWriter.TagRightChar);
            msParentOption.RenderControl(output);
            output.WriteEndTag("td");
            output.WriteEndTag("tr");

            //
            // Render ParentRegistration
            //
            output.WriteFullBeginTag("tr");
            output.WriteBeginTag("td");
            output.WriteAttribute("valign", "top");
            output.Write(HtmlTextWriter.TagRightChar);
            output.Write("ParentRegistration");
            output.WriteEndTag("td");
            output.WriteBeginTag("td");
            output.Write(HtmlTextWriter.TagRightChar);
            msParentRegistration.RenderControl(output);
            output.WriteEndTag("td");
            output.WriteEndTag("tr");
        }
예제 #22
0
        private void renderPublishingFolder(HtmlTextWriter output)
        {
            //
            // Render ParentCatalog
            //
            output.WriteFullBeginTag("tr");
            output.WriteBeginTag("td");
            output.WriteAttribute("valign", "top");
            output.Write(HtmlTextWriter.TagRightChar);
            output.Write("Parent Catalog");
            output.WriteEndTag("td");
            output.WriteBeginTag("td");
            output.Write(HtmlTextWriter.TagRightChar);
            msParentCatalog.RenderControl(output);
            output.WriteEndTag("td");
            output.WriteEndTag("tr");

            //
            // Render PublishDate
            //
            output.WriteFullBeginTag("tr");
            output.WriteBeginTag("td");
            output.WriteAttribute("valign", "top");
            output.Write(HtmlTextWriter.TagRightChar);
            output.Write("Publish Date");
            output.WriteEndTag("td");
            output.WriteBeginTag("td");
            output.Write(HtmlTextWriter.TagRightChar);
            dePublishDate.RenderControl(output);
            output.WriteEndTag("td");
            output.WriteEndTag("tr");

            //
            // Render ExpirationDate
            //
            output.WriteFullBeginTag("tr");
            output.WriteBeginTag("td");
            output.WriteAttribute("valign", "top");
            output.Write(HtmlTextWriter.TagRightChar);
            output.Write("Expiration Date");
            output.WriteEndTag("td");
            output.WriteBeginTag("td");
            output.Write(HtmlTextWriter.TagRightChar);
            deExpirationDate.RenderControl(output);
            output.WriteEndTag("td");
            output.WriteEndTag("tr");

            //
            // Render ArchiveDate
            //
            output.WriteFullBeginTag("tr");
            output.WriteBeginTag("td");
            output.WriteAttribute("valign", "top");
            output.Write(HtmlTextWriter.TagRightChar);
            output.Write("Archive Date");
            output.WriteEndTag("td");
            output.WriteBeginTag("td");
            output.Write(HtmlTextWriter.TagRightChar);
            deArchiveDate.RenderControl(output);
            output.WriteEndTag("td");
            output.WriteEndTag("tr");

            //
            // Render Priority
            //
            output.WriteFullBeginTag("tr");
            output.WriteBeginTag("td");
            output.WriteAttribute("valign", "top");
            output.Write(HtmlTextWriter.TagRightChar);
            output.Write("Priority");
            output.WriteEndTag("td");
            output.WriteBeginTag("td");
            output.Write(HtmlTextWriter.TagRightChar);
            tbPriority.RenderControl(output);
            revPriority.RenderControl(output);
            output.WriteEndTag("td");
            output.WriteEndTag("tr");

            //
            // Render SortOrder
            //
            output.WriteFullBeginTag("tr");
            output.WriteBeginTag("td");
            output.WriteAttribute("valign", "top");
            output.Write(HtmlTextWriter.TagRightChar);
            output.Write("SortOrder");
            output.WriteEndTag("td");
            output.WriteBeginTag("td");
            output.Write(HtmlTextWriter.TagRightChar);
            tbSortOrder.RenderControl(output);
            revSortOrder.RenderControl(output);
            output.WriteEndTag("td");
            output.WriteEndTag("tr");

            //
            // Render Rating
            //
            output.WriteFullBeginTag("tr");
            output.WriteBeginTag("td");
            output.WriteAttribute("valign", "top");
            output.Write(HtmlTextWriter.TagRightChar);
            output.Write("Rating");
            output.WriteEndTag("td");
            output.WriteBeginTag("td");
            output.Write(HtmlTextWriter.TagRightChar);
            msRating.RenderControl(output);
            output.WriteEndTag("td");
            output.WriteEndTag("tr");

            //
            // Render References
            //
            output.WriteFullBeginTag("tr");
            output.WriteBeginTag("td");
            output.WriteAttribute("valign", "top");
            output.Write(HtmlTextWriter.TagRightChar);
            output.Write("Cross References");
            output.WriteEndTag("td");
            output.WriteBeginTag("td");
            output.Write(HtmlTextWriter.TagRightChar);
            msReferences.RenderControl(output);
            output.WriteEndTag("td");
            output.WriteEndTag("tr");

            //
            // Render CommentsEnabled
            //
            output.WriteFullBeginTag("tr");
            output.WriteBeginTag("td");
            output.WriteAttribute("valign", "top");
            output.Write(HtmlTextWriter.TagRightChar);
            output.Write("CommentsEnabled");
            output.WriteEndTag("td");
            output.WriteBeginTag("td");
            output.Write(HtmlTextWriter.TagRightChar);
            cbCommentsEnabled.RenderControl(output);
            output.WriteEndTag("td");
            output.WriteEndTag("tr");

            //
            // Render NotifyOnComments
            //
            output.WriteFullBeginTag("tr");
            output.WriteBeginTag("td");
            output.WriteAttribute("valign", "top");
            output.Write(HtmlTextWriter.TagRightChar);
            output.Write("NotifyOnComments");
            output.WriteEndTag("td");
            output.WriteBeginTag("td");
            output.Write(HtmlTextWriter.TagRightChar);
            cbNotifyOnComments.RenderControl(output);
            output.WriteEndTag("td");
            output.WriteEndTag("tr");

            //
            // Render OverrideUrl
            //
            output.WriteFullBeginTag("tr");
            output.WriteBeginTag("td");
            output.WriteAttribute("valign", "top");
            output.Write(HtmlTextWriter.TagRightChar);
            output.Write("OverrideUrl");
            output.WriteEndTag("td");
            output.WriteBeginTag("td");
            output.Write(HtmlTextWriter.TagRightChar);
            tbOverrideUrl.RenderControl(output);
            output.WriteEndTag("td");
            output.WriteEndTag("tr");
        }
예제 #23
0
        private void renderMenuFolder(HtmlTextWriter output)
        {
            //
            // Render MenuLabel
            //
            output.WriteFullBeginTag("tr");
            output.WriteBeginTag("td");
            output.WriteAttribute("valign", "top");
            output.Write(HtmlTextWriter.TagRightChar);
            output.Write("MenuLabel");
            output.WriteEndTag("td");
            output.WriteBeginTag("td");
            output.Write(HtmlTextWriter.TagRightChar);
            tbMenuLabel.RenderControl(output);
            output.WriteEndTag("td");
            output.WriteEndTag("tr");

            //
            // Render MenuTooltip
            //
            output.WriteFullBeginTag("tr");
            output.WriteBeginTag("td");
            output.WriteAttribute("valign", "top");
            output.Write(HtmlTextWriter.TagRightChar);
            output.Write("MenuTooltip");
            output.WriteEndTag("td");
            output.WriteBeginTag("td");
            output.Write(HtmlTextWriter.TagRightChar);
            tbMenuTooltip.RenderControl(output);
            output.WriteEndTag("td");
            output.WriteEndTag("tr");

            //
            // Render MenuEnabled
            //
            output.WriteFullBeginTag("tr");
            output.WriteBeginTag("td");
            output.WriteAttribute("valign", "top");
            output.Write(HtmlTextWriter.TagRightChar);
            output.Write("MenuEnabled");
            output.WriteEndTag("td");
            output.WriteBeginTag("td");
            output.Write(HtmlTextWriter.TagRightChar);
            cbMenuEnabled.RenderControl(output);
            output.WriteEndTag("td");
            output.WriteEndTag("tr");

            //
            // Render MenuOrder
            //
            output.WriteFullBeginTag("tr");
            output.WriteBeginTag("td");
            output.WriteAttribute("valign", "top");
            output.Write(HtmlTextWriter.TagRightChar);
            output.Write("MenuOrder");
            output.WriteEndTag("td");
            output.WriteBeginTag("td");
            output.Write(HtmlTextWriter.TagRightChar);
            tbMenuOrder.RenderControl(output);
            revMenuOrder.RenderControl(output);
            output.WriteEndTag("td");
            output.WriteEndTag("tr");

            //
            // Render MenuLeftIcon
            //
            output.WriteFullBeginTag("tr");
            output.WriteBeginTag("td");
            output.WriteAttribute("valign", "top");
            output.Write(HtmlTextWriter.TagRightChar);
            output.Write("MenuLeftIcon");
            output.WriteEndTag("td");
            output.WriteBeginTag("td");
            output.Write(HtmlTextWriter.TagRightChar);
            tbMenuLeftIcon.RenderControl(output);
            output.WriteEndTag("td");
            output.WriteEndTag("tr");

            //
            // Render MenuLeftIconOver
            //
            output.WriteFullBeginTag("tr");
            output.WriteBeginTag("td");
            output.WriteAttribute("valign", "top");
            output.Write(HtmlTextWriter.TagRightChar);
            output.Write("MenuLeftIconOver");
            output.WriteEndTag("td");
            output.WriteBeginTag("td");
            output.Write(HtmlTextWriter.TagRightChar);
            tbMenuLeftIconOver.RenderControl(output);
            output.WriteEndTag("td");
            output.WriteEndTag("tr");

            //
            // Render MenuRightIcon
            //
            output.WriteFullBeginTag("tr");
            output.WriteBeginTag("td");
            output.WriteAttribute("valign", "top");
            output.Write(HtmlTextWriter.TagRightChar);
            output.Write("MenuRightIcon");
            output.WriteEndTag("td");
            output.WriteBeginTag("td");
            output.Write(HtmlTextWriter.TagRightChar);
            tbMenuRightIcon.RenderControl(output);
            output.WriteEndTag("td");
            output.WriteEndTag("tr");

            //
            // Render MenuRightIconOver
            //
            output.WriteFullBeginTag("tr");
            output.WriteBeginTag("td");
            output.WriteAttribute("valign", "top");
            output.Write(HtmlTextWriter.TagRightChar);
            output.Write("MenuRightIconOver");
            output.WriteEndTag("td");
            output.WriteBeginTag("td");
            output.Write(HtmlTextWriter.TagRightChar);
            tbMenuRightIconOver.RenderControl(output);
            output.WriteEndTag("td");
            output.WriteEndTag("tr");

            //
            // Render MenuBreak
            //
            output.WriteFullBeginTag("tr");
            output.WriteBeginTag("td");
            output.WriteAttribute("valign", "top");
            output.Write(HtmlTextWriter.TagRightChar);
            output.Write("MenuBreak");
            output.WriteEndTag("td");
            output.WriteBeginTag("td");
            output.Write(HtmlTextWriter.TagRightChar);
            cbMenuBreak.RenderControl(output);
            output.WriteEndTag("td");
            output.WriteEndTag("tr");
        }
예제 #24
0
        private void renderDefaultFolder(HtmlTextWriter output)
        {
            //
            // Render Name
            //
            output.WriteFullBeginTag("tr");
            output.WriteBeginTag("td");
            output.WriteAttribute("valign", "top");
            output.Write(HtmlTextWriter.TagRightChar);
            output.Write("Name");
            output.WriteEndTag("td");
            output.WriteBeginTag("td");
            output.Write(HtmlTextWriter.TagRightChar);
            tbName.RenderControl(output);
            output.WriteEndTag("td");
            output.WriteEndTag("tr");

            //
            // Render Description
            //
            output.WriteFullBeginTag("tr");
            output.WriteBeginTag("td");
            output.WriteAttribute("valign", "top");
            output.Write(HtmlTextWriter.TagRightChar);
            output.Write("Description");
            output.WriteEndTag("td");
            output.WriteBeginTag("td");
            output.Write(HtmlTextWriter.TagRightChar);
            tbDescription.RenderControl(output);
            output.WriteEndTag("td");
            output.WriteEndTag("tr");

            //
            // Render Fee
            //
            output.WriteFullBeginTag("tr");
            output.WriteBeginTag("td");
            output.WriteAttribute("valign", "top");
            output.Write(HtmlTextWriter.TagRightChar);
            output.Write("Fee");
            output.WriteEndTag("td");
            output.WriteBeginTag("td");
            output.Write(HtmlTextWriter.TagRightChar);
            tbFee.RenderControl(output);
            output.WriteEndTag("td");
            output.WriteEndTag("tr");

            //
            // Render MaxQuantity
            //
            output.WriteFullBeginTag("tr");
            output.WriteBeginTag("td");
            output.WriteAttribute("valign", "top");
            output.Write(HtmlTextWriter.TagRightChar);
            output.Write("MaxQuantity");
            output.WriteEndTag("td");
            output.WriteBeginTag("td");
            output.Write(HtmlTextWriter.TagRightChar);
            tbMaxQuantity.RenderControl(output);
            revMaxQuantity.RenderControl(output);
            output.WriteEndTag("td");
            output.WriteEndTag("tr");
        }
예제 #25
0
        private void renderDefaultFolder(HtmlTextWriter output)
        {
            //
            // Render EndNoteReferenceID
            //
            output.WriteFullBeginTag("tr");
            output.WriteBeginTag("td");
            output.WriteAttribute("valign", "top");
            output.Write(HtmlTextWriter.TagRightChar);
            output.Write("EndNoteReferenceID");
            output.WriteEndTag("td");
            output.WriteBeginTag("td");
            output.Write(HtmlTextWriter.TagRightChar);
            tbEndNoteReferenceID.RenderControl(output);
            revEndNoteReferenceID.RenderControl(output);
            output.WriteEndTag("td");
            output.WriteEndTag("tr");

            //
            // Render PublishYear
            //
            output.WriteFullBeginTag("tr");
            output.WriteBeginTag("td");
            output.WriteAttribute("valign", "top");
            output.Write(HtmlTextWriter.TagRightChar);
            output.Write("Year");
            output.WriteEndTag("td");
            output.WriteBeginTag("td");
            output.Write(HtmlTextWriter.TagRightChar);
            tbPublishYear.RenderControl(output);
            revPublishYear.RenderControl(output);
            output.WriteEndTag("td");
            output.WriteEndTag("tr");

            //
            // Render Title
            //
            output.WriteFullBeginTag("tr");
            output.WriteBeginTag("td");
            output.WriteAttribute("valign", "top");
            output.Write(HtmlTextWriter.TagRightChar);
            output.Write("Title");
            output.WriteEndTag("td");
            output.WriteBeginTag("td");
            output.Write(HtmlTextWriter.TagRightChar);
            tbTitle.RenderControl(output);
            output.WriteEndTag("td");
            output.WriteEndTag("tr");

            //
            // Render Pages
            //
            output.WriteFullBeginTag("tr");
            output.WriteBeginTag("td");
            output.WriteAttribute("valign", "top");
            output.Write(HtmlTextWriter.TagRightChar);
            output.Write("Page Count");
            output.WriteEndTag("td");
            output.WriteBeginTag("td");
            output.Write(HtmlTextWriter.TagRightChar);
            tbPages.RenderControl(output);
            revPages.RenderControl(output);
            output.WriteEndTag("td");
            output.WriteEndTag("tr");

            //
            // Render Edition
            //
            output.WriteFullBeginTag("tr");
            output.WriteBeginTag("td");
            output.WriteAttribute("valign", "top");
            output.Write(HtmlTextWriter.TagRightChar);
            output.Write("Edition");
            output.WriteEndTag("td");
            output.WriteBeginTag("td");
            output.Write(HtmlTextWriter.TagRightChar);
            tbEdition.RenderControl(output);
            output.WriteEndTag("td");
            output.WriteEndTag("tr");

            //
            // Render Isbn
            //
            output.WriteFullBeginTag("tr");
            output.WriteBeginTag("td");
            output.WriteAttribute("valign", "top");
            output.Write(HtmlTextWriter.TagRightChar);
            output.Write("Isbn");
            output.WriteEndTag("td");
            output.WriteBeginTag("td");
            output.Write(HtmlTextWriter.TagRightChar);
            tbIsbn.RenderControl(output);
            output.WriteEndTag("td");
            output.WriteEndTag("tr");

            //
            // Render Label
            //
            output.WriteFullBeginTag("tr");
            output.WriteBeginTag("td");
            output.WriteAttribute("valign", "top");
            output.Write(HtmlTextWriter.TagRightChar);
            output.Write("Label");
            output.WriteEndTag("td");
            output.WriteBeginTag("td");
            output.Write(HtmlTextWriter.TagRightChar);
            tbLabel.RenderControl(output);
            output.WriteEndTag("td");
            output.WriteEndTag("tr");

            //
            // Render AbstractText
            //
            output.WriteFullBeginTag("tr");
            output.WriteBeginTag("td");
            output.WriteAttribute("valign", "top");
            output.Write(HtmlTextWriter.TagRightChar);
            output.Write("AbstractText");
            output.WriteEndTag("td");
            output.WriteBeginTag("td");
            output.Write(HtmlTextWriter.TagRightChar);
            ftbAbstractText.RenderControl(output);
            output.WriteEndTag("td");
            output.WriteEndTag("tr");

            //
            // Render ContentsText
            //
            output.WriteFullBeginTag("tr");
            output.WriteBeginTag("td");
            output.WriteAttribute("valign", "top");
            output.Write(HtmlTextWriter.TagRightChar);
            output.Write("ContentsText");
            output.WriteEndTag("td");
            output.WriteBeginTag("td");
            output.Write(HtmlTextWriter.TagRightChar);
            ftbContentsText.RenderControl(output);
            output.WriteEndTag("td");
            output.WriteEndTag("tr");

            //
            // Render NotesText
            //
            output.WriteFullBeginTag("tr");
            output.WriteBeginTag("td");
            output.WriteAttribute("valign", "top");
            output.Write(HtmlTextWriter.TagRightChar);
            output.Write("NotesText");
            output.WriteEndTag("td");
            output.WriteBeginTag("td");
            output.Write(HtmlTextWriter.TagRightChar);
            tbNotesText.RenderControl(output);
            output.WriteEndTag("td");
            output.WriteEndTag("tr");

            //
            // Render AmazonFillDate
            //
            output.WriteFullBeginTag("tr");
            output.WriteBeginTag("td");
            output.WriteAttribute("valign", "top");
            output.Write(HtmlTextWriter.TagRightChar);
            output.Write("AmazonFillDate");
            output.WriteEndTag("td");
            output.WriteBeginTag("td");
            output.Write(HtmlTextWriter.TagRightChar);
            deAmazonFillDate.RenderControl(output);
            output.WriteEndTag("td");
            output.WriteEndTag("tr");

            //
            // Render AmazonRefreshDate
            //
            output.WriteFullBeginTag("tr");
            output.WriteBeginTag("td");
            output.WriteAttribute("valign", "top");
            output.Write(HtmlTextWriter.TagRightChar);
            output.Write("AmazonRefreshDate");
            output.WriteEndTag("td");
            output.WriteBeginTag("td");
            output.Write(HtmlTextWriter.TagRightChar);
            deAmazonRefreshDate.RenderControl(output);
            output.WriteEndTag("td");
            output.WriteEndTag("tr");

            //
            // Render ImageUrlSmall
            //
            output.WriteFullBeginTag("tr");
            output.WriteBeginTag("td");
            output.WriteAttribute("valign", "top");
            output.Write(HtmlTextWriter.TagRightChar);
            output.Write("ImageUrlSmall");
            output.WriteEndTag("td");
            output.WriteBeginTag("td");
            output.Write(HtmlTextWriter.TagRightChar);
            tbImageUrlSmall.RenderControl(output);
            output.WriteEndTag("td");
            output.WriteEndTag("tr");

            //
            // Render ImageUrlMedium
            //
            output.WriteFullBeginTag("tr");
            output.WriteBeginTag("td");
            output.WriteAttribute("valign", "top");
            output.Write(HtmlTextWriter.TagRightChar);
            output.Write("ImageUrlMedium");
            output.WriteEndTag("td");
            output.WriteBeginTag("td");
            output.Write(HtmlTextWriter.TagRightChar);
            tbImageUrlMedium.RenderControl(output);
            output.WriteEndTag("td");
            output.WriteEndTag("tr");

            //
            // Render ImageUrlLarge
            //
            output.WriteFullBeginTag("tr");
            output.WriteBeginTag("td");
            output.WriteAttribute("valign", "top");
            output.Write(HtmlTextWriter.TagRightChar);
            output.Write("ImageUrlLarge");
            output.WriteEndTag("td");
            output.WriteBeginTag("td");
            output.Write(HtmlTextWriter.TagRightChar);
            tbImageUrlLarge.RenderControl(output);
            output.WriteEndTag("td");
            output.WriteEndTag("tr");

            //
            // Render AmazonListPrice
            //
            output.WriteFullBeginTag("tr");
            output.WriteBeginTag("td");
            output.WriteAttribute("valign", "top");
            output.Write(HtmlTextWriter.TagRightChar);
            output.Write("AmazonListPrice");
            output.WriteEndTag("td");
            output.WriteBeginTag("td");
            output.Write(HtmlTextWriter.TagRightChar);
            ltAmazonListPrice.RenderControl(output);
            output.WriteEndTag("td");
            output.WriteEndTag("tr");

            //
            // Render AmazonOurPrice
            //
            output.WriteFullBeginTag("tr");
            output.WriteBeginTag("td");
            output.WriteAttribute("valign", "top");
            output.Write(HtmlTextWriter.TagRightChar);
            output.Write("AmazonOurPrice");
            output.WriteEndTag("td");
            output.WriteBeginTag("td");
            output.Write(HtmlTextWriter.TagRightChar);
            ltAmazonOurPrice.RenderControl(output);
            output.WriteEndTag("td");
            output.WriteEndTag("tr");

            //
            // Render AmazonAvailability
            //
            output.WriteFullBeginTag("tr");
            output.WriteBeginTag("td");
            output.WriteAttribute("valign", "top");
            output.Write(HtmlTextWriter.TagRightChar);
            output.Write("AmazonAvailability");
            output.WriteEndTag("td");
            output.WriteBeginTag("td");
            output.Write(HtmlTextWriter.TagRightChar);
            ltAmazonAvailability.RenderControl(output);
            output.WriteEndTag("td");
            output.WriteEndTag("tr");

            //
            // Render AmazonMedia
            //
            output.WriteFullBeginTag("tr");
            output.WriteBeginTag("td");
            output.WriteAttribute("valign", "top");
            output.Write(HtmlTextWriter.TagRightChar);
            output.Write("AmazonMedia");
            output.WriteEndTag("td");
            output.WriteBeginTag("td");
            output.Write(HtmlTextWriter.TagRightChar);
            ltAmazonMedia.RenderControl(output);
            output.WriteEndTag("td");
            output.WriteEndTag("tr");

            //
            // Render AmazonReleaseDate
            //
            output.WriteFullBeginTag("tr");
            output.WriteBeginTag("td");
            output.WriteAttribute("valign", "top");
            output.Write(HtmlTextWriter.TagRightChar);
            output.Write("AmazonReleaseDate");
            output.WriteEndTag("td");
            output.WriteBeginTag("td");
            output.Write(HtmlTextWriter.TagRightChar);
            ltAmazonReleaseDate.RenderControl(output);
            output.WriteEndTag("td");
            output.WriteEndTag("tr");

            //
            // Render AmazonAsin
            //
            output.WriteFullBeginTag("tr");
            output.WriteBeginTag("td");
            output.WriteAttribute("valign", "top");
            output.Write(HtmlTextWriter.TagRightChar);
            output.Write("AmazonAsin");
            output.WriteEndTag("td");
            output.WriteBeginTag("td");
            output.Write(HtmlTextWriter.TagRightChar);
            ltAmazonAsin.RenderControl(output);
            output.WriteEndTag("td");
            output.WriteEndTag("tr");

            //
            // Render AbstractEnabled
            //
            output.WriteFullBeginTag("tr");
            output.WriteBeginTag("td");
            output.WriteAttribute("valign", "top");
            output.Write(HtmlTextWriter.TagRightChar);
            output.Write("Enable Abstract?");
            output.WriteEndTag("td");
            output.WriteBeginTag("td");
            output.Write(HtmlTextWriter.TagRightChar);
            cbAbstractEnabled.RenderControl(output);
            output.WriteEndTag("td");
            output.WriteEndTag("tr");

            //
            // Render ContentsEnabled
            //
            output.WriteFullBeginTag("tr");
            output.WriteBeginTag("td");
            output.WriteAttribute("valign", "top");
            output.Write(HtmlTextWriter.TagRightChar);
            output.Write("Enable Contents?");
            output.WriteEndTag("td");
            output.WriteBeginTag("td");
            output.Write(HtmlTextWriter.TagRightChar);
            cbContentsEnabled.RenderControl(output);
            output.WriteEndTag("td");
            output.WriteEndTag("tr");

            //
            // Render NotesEnabled
            //
            output.WriteFullBeginTag("tr");
            output.WriteBeginTag("td");
            output.WriteAttribute("valign", "top");
            output.Write(HtmlTextWriter.TagRightChar);
            output.Write("Enable Notes?");
            output.WriteEndTag("td");
            output.WriteBeginTag("td");
            output.Write(HtmlTextWriter.TagRightChar);
            cbNotesEnabled.RenderControl(output);
            output.WriteEndTag("td");
            output.WriteEndTag("tr");

            //
            // Render Authors
            //
            output.WriteFullBeginTag("tr");
            output.WriteBeginTag("td");
            output.WriteAttribute("valign", "top");
            output.Write(HtmlTextWriter.TagRightChar);
            output.Write("Authors");
            output.WriteEndTag("td");
            output.WriteBeginTag("td");
            output.Write(HtmlTextWriter.TagRightChar);
            tbAuthors.RenderControl(output);
            output.WriteEndTag("td");
            output.WriteEndTag("tr");

            //
            // Render SecondaryAuthors
            //
            output.WriteFullBeginTag("tr");
            output.WriteBeginTag("td");
            output.WriteAttribute("valign", "top");
            output.Write(HtmlTextWriter.TagRightChar);
            output.Write("Secondary Authors");
            output.WriteEndTag("td");
            output.WriteBeginTag("td");
            output.Write(HtmlTextWriter.TagRightChar);
            tbSecondaryAuthors.RenderControl(output);
            output.WriteEndTag("td");
            output.WriteEndTag("tr");

            //
            // Render Publisher
            //
            output.WriteFullBeginTag("tr");
            output.WriteBeginTag("td");
            output.WriteAttribute("valign", "top");
            output.Write(HtmlTextWriter.TagRightChar);
            output.Write("Publisher");
            output.WriteEndTag("td");
            output.WriteBeginTag("td");
            output.Write(HtmlTextWriter.TagRightChar);
            tbPublisher.RenderControl(output);
            output.WriteEndTag("td");
            output.WriteEndTag("tr");

            //
            // Render MediaType
            //
            output.WriteFullBeginTag("tr");
            output.WriteBeginTag("td");
            output.WriteAttribute("valign", "top");
            output.Write(HtmlTextWriter.TagRightChar);
            output.Write("Reference Type");
            output.WriteEndTag("td");
            output.WriteBeginTag("td");
            output.Write(HtmlTextWriter.TagRightChar);
            msMediaType.RenderControl(output);
            output.WriteEndTag("td");
            output.WriteEndTag("tr");

            //
            // Render Keywords
            //
            output.WriteFullBeginTag("tr");
            output.WriteBeginTag("td");
            output.WriteAttribute("valign", "top");
            output.Write(HtmlTextWriter.TagRightChar);
            output.Write("Keywords");
            output.WriteEndTag("td");
            output.WriteBeginTag("td");
            output.Write(HtmlTextWriter.TagRightChar);
            msKeywords.RenderControl(output);
            output.WriteEndTag("td");
            output.WriteEndTag("tr");
        }
예제 #26
0
        private void renderDefaultFolder(HtmlTextWriter output)
        {
            //
            // Render Type
            //
            output.WriteFullBeginTag("tr");
            output.WriteBeginTag("td");
            output.WriteAttribute("valign", "top");
            output.Write(HtmlTextWriter.TagRightChar);
            output.Write("Type of event.");
            output.WriteEndTag("td");
            output.WriteBeginTag("td");
            output.Write(HtmlTextWriter.TagRightChar);
            tbType.RenderControl(output);
            output.WriteEndTag("td");
            output.WriteEndTag("tr");

            //
            // Render EventDate
            //
            output.WriteFullBeginTag("tr");
            output.WriteBeginTag("td");
            output.WriteAttribute("valign", "top");
            output.Write(HtmlTextWriter.TagRightChar);
            output.Write("EventDate");
            output.WriteEndTag("td");
            output.WriteBeginTag("td");
            output.Write(HtmlTextWriter.TagRightChar);
            tbEventDate.RenderControl(output);
            output.WriteEndTag("td");
            output.WriteEndTag("tr");

            //
            // Render Source
            //
            output.WriteFullBeginTag("tr");
            output.WriteBeginTag("td");
            output.WriteAttribute("valign", "top");
            output.Write(HtmlTextWriter.TagRightChar);
            output.Write("Source");
            output.WriteEndTag("td");
            output.WriteBeginTag("td");
            output.Write(HtmlTextWriter.TagRightChar);
            tbSource.RenderControl(output);
            output.WriteEndTag("td");
            output.WriteEndTag("tr");

            //
            // Render Category
            //
            output.WriteFullBeginTag("tr");
            output.WriteBeginTag("td");
            output.WriteAttribute("valign", "top");
            output.Write(HtmlTextWriter.TagRightChar);
            output.Write("Category");
            output.WriteEndTag("td");
            output.WriteBeginTag("td");
            output.Write(HtmlTextWriter.TagRightChar);
            tbCategory.RenderControl(output);
            output.WriteEndTag("td");
            output.WriteEndTag("tr");

            //
            // Render Description
            //
            output.WriteFullBeginTag("tr");
            output.WriteBeginTag("td");
            output.WriteAttribute("valign", "top");
            output.Write(HtmlTextWriter.TagRightChar);
            output.Write("Description");
            output.WriteEndTag("td");
            output.WriteBeginTag("td");
            output.Write(HtmlTextWriter.TagRightChar);
            tbDescription.RenderControl(output);
            output.WriteEndTag("td");
            output.WriteEndTag("tr");

            //
            // Render EventID
            //
            output.WriteFullBeginTag("tr");
            output.WriteBeginTag("td");
            output.WriteAttribute("valign", "top");
            output.Write(HtmlTextWriter.TagRightChar);
            output.Write("EventID");
            output.WriteEndTag("td");
            output.WriteBeginTag("td");
            output.Write(HtmlTextWriter.TagRightChar);
            tbEventID.RenderControl(output);
            revEventID.RenderControl(output);
            output.WriteEndTag("td");
            output.WriteEndTag("tr");

            //
            // Render User
            //
            output.WriteFullBeginTag("tr");
            output.WriteBeginTag("td");
            output.WriteAttribute("valign", "top");
            output.Write(HtmlTextWriter.TagRightChar);
            output.Write("User");
            output.WriteEndTag("td");
            output.WriteBeginTag("td");
            output.Write(HtmlTextWriter.TagRightChar);
            msUser.RenderControl(output);
            output.WriteEndTag("td");
            output.WriteEndTag("tr");
        }
예제 #27
0
        private void renderRecurrencyFolder(HtmlTextWriter output)
        {
            //
            // Render RecurrenceType
            //
            output.WriteFullBeginTag("tr");
            output.WriteBeginTag("td");
            output.WriteAttribute("valign", "top");
            output.Write(HtmlTextWriter.TagRightChar);
            output.Write("The recurrence type for scheduling.");
            output.WriteEndTag("td");
            output.WriteBeginTag("td");
            output.Write(HtmlTextWriter.TagRightChar);
            tbRecurrenceType.RenderControl(output);
            output.WriteEndTag("td");
            output.WriteEndTag("tr");

            //
            // Render RecurrenceCount
            //
            output.WriteFullBeginTag("tr");
            output.WriteBeginTag("td");
            output.WriteAttribute("valign", "top");
            output.Write(HtmlTextWriter.TagRightChar);
            output.Write("The remaining count for recurrences.");
            output.WriteEndTag("td");
            output.WriteBeginTag("td");
            output.Write(HtmlTextWriter.TagRightChar);
            tbRecurrenceCount.RenderControl(output);
            revRecurrenceCount.RenderControl(output);
            output.WriteEndTag("td");
            output.WriteEndTag("tr");

            //
            // Render RecurrenceEnd
            //
            output.WriteFullBeginTag("tr");
            output.WriteBeginTag("td");
            output.WriteAttribute("valign", "top");
            output.Write(HtmlTextWriter.TagRightChar);
            output.Write("Date to end class definition.");
            output.WriteEndTag("td");
            output.WriteBeginTag("td");
            output.Write(HtmlTextWriter.TagRightChar);
            tbRecurrenceEnd.RenderControl(output);
            output.WriteEndTag("td");
            output.WriteEndTag("tr");

            //
            // Render RecurrenceSpan
            //
            output.WriteFullBeginTag("tr");
            output.WriteBeginTag("td");
            output.WriteAttribute("valign", "top");
            output.Write(HtmlTextWriter.TagRightChar);
            output.Write("Time span to calculate recurring classes.");
            output.WriteEndTag("td");
            output.WriteBeginTag("td");
            output.Write(HtmlTextWriter.TagRightChar);
            tbRecurrenceSpan.RenderControl(output);
            output.WriteEndTag("td");
            output.WriteEndTag("tr");
        }
예제 #28
0
        protected override void RenderContents(HtmlTextWriter writer)
        {
            // Now render the actual textbox and picker UI

            Debug.Assert(_dateTextBox != null);
            Debug.Assert(_pickerImage != null);
            Debug.Assert(_dateValidator != null);

            // First prepare the text box for rendering by applying this control's
            // style and any attributes to it.
            // This is done as part of Render, so any changes made to the textbox
            // are not persisted in view state. The values are already being held
            // as part of this control's view state, so having the textbox also
            // store them would be redundant.
            if (ControlStyleCreated)
            {
                _dateTextBox.ApplyStyle(ControlStyle);
            }
            _dateTextBox.CopyBaseAttributes(this);
            _dateTextBox.RenderControl(writer);

            // Design-mode is determined by the availability of a non-null Site
            // that is itself in design-mode.
            bool designMode = (Site != null) && Site.DesignMode;

            bool showPicker = _renderClientScript;

            if (showPicker == false)
            {
                // In design-mode, we want the picker to be visible, even though
                // OnPreRender is not called, where the determination is made whether
                // or not to show the picker. Therefore, unless the user has
                // explicitely turned off client script, the picker needs to be shown.
                if (EnableClientScript && designMode)
                {
                    showPicker = true;
                }
            }
            if (showPicker)
            {
                string pickerAction;
                if (_renderPopupScript)
                {
                    pickerAction = "dp_showDatePickerPopup(this, document.all['" + _dateTextBox.ClientID + "'], document.all['" + ClientID + "'])";
                }
                else
                {
                    pickerAction = "dp_showDatePickerFrame(this, document.all['" + _dateTextBox.ClientID + "'], document.all['" + ClientID + "'], document.all['" + ClientID + "_frame'], document)";
                }
                _pickerImage.Attributes["onclick"] = pickerAction;
                _pickerImage.RenderControl(writer);

                if (_renderPopupScript == false)
                {
                    // Use an IFRAME instead of a DHTML popup
                    writer.AddAttribute(HtmlTextWriterAttribute.Id, ClientID + "_frame");
                    writer.AddAttribute(HtmlTextWriterAttribute.Src, GetClientFileUrl("CalendarFrame.htm"));
                    writer.AddAttribute("marginheight", "0", false);
                    writer.AddAttribute("marginwidth", "0", false);
                    writer.AddAttribute("noresize", "noresize", false);
                    writer.AddAttribute("frameborder", "0", false);
                    writer.AddAttribute("scrolling", "no", false);
                    writer.AddStyleAttribute("position", "absolute");
                    writer.AddStyleAttribute("z-index", "100");
                    writer.AddStyleAttribute("display", "none");
                    writer.RenderBeginTag(HtmlTextWriterTag.Iframe);
                    writer.RenderEndTag();
                }
            }

            // The designer sets the Visibility of the validator to false,
            // since in design-mode, the control should not show up as invalid.
            // Therefore the extra check.
            // Just the minimal bit of logic to aid the designer...
            if (_dateValidator.Visible)
            {
                _dateValidator.ErrorMessage = ValidationMessage;
                _dateValidator.ToolTip      = ValidationMessage;
                _dateValidator.RenderControl(writer);
            }
        }
예제 #29
0
        private void renderDefaultFolder(HtmlTextWriter output)
        {
            //
            // Render Name
            //
            output.WriteFullBeginTag("tr");
            output.WriteBeginTag("td");
            output.WriteAttribute("valign", "top");
            output.Write(HtmlTextWriter.TagRightChar);
            output.Write("Name");
            output.WriteEndTag("td");
            output.WriteBeginTag("td");
            output.Write(HtmlTextWriter.TagRightChar);
            tbName.RenderControl(output);
            output.WriteEndTag("td");
            output.WriteEndTag("tr");

            //
            // Render PromotionTimeInRank
            //
            output.WriteFullBeginTag("tr");
            output.WriteBeginTag("td");
            output.WriteAttribute("valign", "top");
            output.Write(HtmlTextWriter.TagRightChar);
            output.Write("Promotion Time In Rank");
            output.WriteEndTag("td");
            output.WriteBeginTag("td");
            output.Write(HtmlTextWriter.TagRightChar);
            tbPromotionTimeInRank.RenderControl(output);
            output.WriteEndTag("td");
            output.WriteEndTag("tr");

            //
            // Render PromotionTimeFromLastTest
            //
            output.WriteFullBeginTag("tr");
            output.WriteBeginTag("td");
            output.WriteAttribute("valign", "top");
            output.Write(HtmlTextWriter.TagRightChar);
            output.Write("Promotion Time From Last Test");
            output.WriteEndTag("td");
            output.WriteBeginTag("td");
            output.Write(HtmlTextWriter.TagRightChar);
            tbPromotionTimeFromLastTest.RenderControl(output);
            output.WriteEndTag("td");
            output.WriteEndTag("tr");

            //
            // Render PromotionRequirements
            //
            output.WriteFullBeginTag("tr");
            output.WriteBeginTag("td");
            output.WriteAttribute("valign", "top");
            output.Write(HtmlTextWriter.TagRightChar);
            output.Write("Promotion Requirements");
            output.WriteEndTag("td");
            output.WriteBeginTag("td");
            output.Write(HtmlTextWriter.TagRightChar);
            tbPromotionRequirements.RenderControl(output);
            output.WriteEndTag("td");
            output.WriteEndTag("tr");

            //
            // Render PromotionFee
            //
            output.WriteFullBeginTag("tr");
            output.WriteBeginTag("td");
            output.WriteAttribute("valign", "top");
            output.Write(HtmlTextWriter.TagRightChar);
            output.Write("Promotion Fee");
            output.WriteEndTag("td");
            output.WriteBeginTag("td");
            output.Write(HtmlTextWriter.TagRightChar);
            tbPromotionFee.RenderControl(output);
            output.WriteEndTag("td");
            output.WriteEndTag("tr");

            //
            // Render PromotionRank
            //
            output.WriteFullBeginTag("tr");
            output.WriteBeginTag("td");
            output.WriteAttribute("valign", "top");
            output.Write(HtmlTextWriter.TagRightChar);
            output.Write("PromotionRank");
            output.WriteEndTag("td");
            output.WriteBeginTag("td");
            output.Write(HtmlTextWriter.TagRightChar);
            msPromotionRank.RenderControl(output);
            output.WriteEndTag("td");
            output.WriteEndTag("tr");

            //
            // Render PromotionResetIP
            //
            output.WriteFullBeginTag("tr");
            output.WriteBeginTag("td");
            output.WriteAttribute("valign", "top");
            output.Write(HtmlTextWriter.TagRightChar);
            output.Write("PromotionResetIP");
            output.WriteEndTag("td");
            output.WriteBeginTag("td");
            output.Write(HtmlTextWriter.TagRightChar);
            cbPromotionResetIP.RenderControl(output);
            output.WriteEndTag("td");
            output.WriteEndTag("tr");

            //
            // Render OrderNum
            //
            output.WriteFullBeginTag("tr");
            output.WriteBeginTag("td");
            output.WriteAttribute("valign", "top");
            output.Write(HtmlTextWriter.TagRightChar);
            output.Write("OrderNum");
            output.WriteEndTag("td");
            output.WriteBeginTag("td");
            output.Write(HtmlTextWriter.TagRightChar);
            tbOrderNum.RenderControl(output);
            revOrderNum.RenderControl(output);
            output.WriteEndTag("td");
            output.WriteEndTag("tr");
        }
예제 #30
0
        /// <summary>
        /// render our own custom markup
        /// </summary>
        /// <param name="writer">The <see cref="T:System.Web.UI.HtmlTextWriter"/> object that receives the server control content.</param>
        protected override void Render(HtmlTextWriter writer)
        {
            writer.AddAttribute(HtmlTextWriterAttribute.Class, Constants.ApplicationName);
            writer.RenderBeginTag(HtmlTextWriterTag.Div); //start 'uComponents'

            writer.AddAttribute(HtmlTextWriterAttribute.Class, "row clearfix");
            writer.RenderBeginTag(HtmlTextWriterTag.Div); //start 'row'

            writer.AddAttribute(HtmlTextWriterAttribute.Class, "label");
            writer.RenderBeginTag(HtmlTextWriterTag.Div); //start 'label'
            writer.Write("image alias:");
            writer.RenderEndTag();                        //end 'label'

            writer.AddAttribute(HtmlTextWriterAttribute.Class, "field");
            writer.RenderBeginTag(HtmlTextWriterTag.Div); //start 'field'
            TextControl.RenderControl(writer);
            writer.RenderEndTag();                        //end 'field'
            writer.RenderEndTag();                        //end 'row'

            writer.AddAttribute(HtmlTextWriterAttribute.Class, "row clearfix");
            writer.RenderBeginTag(HtmlTextWriterTag.Div); //start 'row'
            writer.AddAttribute(HtmlTextWriterAttribute.Class, "label");
            writer.RenderBeginTag(HtmlTextWriterTag.Div); //start 'label'
            writer.Write("image file:");
            writer.RenderEndTag();                        //end 'label'

            writer.AddAttribute(HtmlTextWriterAttribute.Class, "field");
            writer.RenderBeginTag(HtmlTextWriterTag.Div);     //start 'field'
            UploadControl.RenderControl(writer);
            UploadRegEx.RenderControl(writer);
            writer.RenderEndTag(); //end 'field'
            writer.RenderEndTag(); //end 'row'

            if (PreValues.GetPreValues(m_DataType.DataTypeDefinitionId).GetValueList().Count > 0)
            {
                writer.RenderBeginTag(HtmlTextWriterTag.Div);
                writer.RenderBeginTag(HtmlTextWriterTag.Table);
                foreach (umbraco.cms.businesslogic.datatype.PreValue val in PreValues.GetPreValues(m_DataType.DataTypeDefinitionId).GetValueList())
                {
                    if (string.IsNullOrEmpty(val.Value))
                    {
                        val.Delete();
                        break;
                    }
                    writer.AddAttribute(HtmlTextWriterAttribute.Valign, "top");
                    writer.RenderBeginTag(HtmlTextWriterTag.Tr);
                    writer.RenderBeginTag(HtmlTextWriterTag.Td);
                    writer.RenderBeginTag(HtmlTextWriterTag.H2);
                    writer.WriteLine(val.Value.Split('|')[0]);
                    writer.RenderEndTag();
                    writer.AddAttribute(HtmlTextWriterAttribute.Href, "?id=" + m_DataType.DataTypeDefinitionId + "&delete=" + val.Id);
                    writer.RenderBeginTag(HtmlTextWriterTag.A);
                    writer.WriteLine(ui.Text("delete"));
                    writer.RenderEndTag();
                    writer.RenderEndTag();
                    writer.RenderBeginTag(HtmlTextWriterTag.Td);
                    writer.AddAttribute(HtmlTextWriterAttribute.Src, val.Value.Split('|')[1]);
                    writer.RenderBeginTag(HtmlTextWriterTag.Img);
                    writer.RenderEndTag();
                    writer.RenderEndTag();
                    writer.RenderEndTag();
                }
                writer.RenderEndTag();
                writer.RenderEndTag();
            }
            writer.RenderEndTag(); //end 'uComponents'
        }