예제 #1
0
 private void RenderFileUploadBar(HtmlTextWriter writer)
 {
     AddressBarStyle.AddAttributesToRender(writer);
     writer.AddAttribute(HtmlTextWriterAttribute.Id, ClientID + "_UploadBar");
     writer.RenderBeginTag(HtmlTextWriterTag.Div);
     writer.RenderBeginTag(HtmlTextWriterTag.Table);
     writer.RenderBeginTag(HtmlTextWriterTag.Tr);
     writer.AddStyleAttribute(HtmlTextWriterStyle.WhiteSpace, "nowrap");
     writer.RenderBeginTag(HtmlTextWriterTag.Td);
     writer.Write(HttpUtility.HtmlEncode(Controller.GetResourceString("Upload_File", "Upload File")));
     writer.RenderEndTag();
     writer.AddStyleAttribute(HtmlTextWriterStyle.Width, "100%");
     writer.RenderBeginTag(HtmlTextWriterTag.Td);
     writer.AddAttribute(HtmlTextWriterAttribute.Id, ClientID + "_Upload");
     writer.AddAttribute(HtmlTextWriterAttribute.Name, ClientID + "_Upload");
     writer.AddAttribute(HtmlTextWriterAttribute.Type, "file");
     writer.AddStyleAttribute(HtmlTextWriterStyle.Width, "100%");
     writer.RenderBeginTag(HtmlTextWriterTag.Input);
     writer.RenderEndTag();
     writer.RenderEndTag();
     writer.RenderBeginTag(HtmlTextWriterTag.Td);
     writer.AddAttribute(HtmlTextWriterAttribute.Type, "button");
     writer.AddAttribute(HtmlTextWriterAttribute.Onclick, Page.ClientScript.GetPostBackEventReference(this, "Upload"));
     writer.AddAttribute(HtmlTextWriterAttribute.Value, Controller.GetResourceString("Submit", "Submit"));
     writer.RenderBeginTag(HtmlTextWriterTag.Input);
     writer.RenderEndTag();
     writer.RenderEndTag();
     writer.RenderEndTag();
     writer.RenderEndTag();
     writer.RenderEndTag();
 }
예제 #2
0
        private void RenderSelectBar(HtmlTextWriter writer)
        {
            AddressBarStyle.AddAttributesToRender(writer);
            writer.AddAttribute(HtmlTextWriterAttribute.Id, ClientID + "_SelectBar");
            writer.RenderBeginTag(HtmlTextWriterTag.Div);
            writer.RenderBeginTag(HtmlTextWriterTag.Table);
            writer.RenderBeginTag(HtmlTextWriterTag.Tr);

            writer.RenderBeginTag(HtmlTextWriterTag.Td);
            writer.AddAttribute(HtmlTextWriterAttribute.Type, "button");
            writer.AddAttribute(HtmlTextWriterAttribute.Onclick, Page.ClientScript.GetPostBackEventReference(this, "Select"));
            writer.AddAttribute(HtmlTextWriterAttribute.Value, Controller.GetResourceString("Select", "Select"));
            writer.RenderBeginTag(HtmlTextWriterTag.Input);
            writer.RenderEndTag();
            writer.RenderEndTag();

            writer.RenderBeginTag(HtmlTextWriterTag.Td);
            writer.AddAttribute(HtmlTextWriterAttribute.Type, "button");
            writer.AddAttribute(HtmlTextWriterAttribute.Onclick, Page.ClientScript.GetPostBackEventReference(this, "Cancel"));
            writer.AddAttribute(HtmlTextWriterAttribute.Value, Controller.GetResourceString("Cancel", "Cancel"));
            writer.RenderBeginTag(HtmlTextWriterTag.Input);
            writer.RenderEndTag();
            writer.RenderEndTag();

            writer.RenderEndTag();
            writer.RenderEndTag();
            writer.RenderEndTag();
        }
예제 #3
0
        private void RenderAddressBar(HtmlTextWriter writer)
        {
            AddressBarStyle.AddAttributesToRender(writer);
            writer.AddAttribute(HtmlTextWriterAttribute.Id, ClientID + "_AddressBar");
            writer.RenderBeginTag(HtmlTextWriterTag.Div);

            writer.AddAttribute(HtmlTextWriterAttribute.Cellspacing, "0");
            writer.AddAttribute(HtmlTextWriterAttribute.Cellpadding, "0");
            writer.AddAttribute(HtmlTextWriterAttribute.Border, "0");
            writer.AddStyleAttribute(HtmlTextWriterStyle.Width, "100%");
            writer.RenderBeginTag(HtmlTextWriterTag.Table);
            writer.RenderBeginTag(HtmlTextWriterTag.Tr);


            writer.RenderBeginTag(HtmlTextWriterTag.Td);

            writer.AddAttribute(HtmlTextWriterAttribute.Id, _fileView.ClientID + "_Address");
            writer.AddAttribute(HtmlTextWriterAttribute.Value, CurrentDirectory.FileManagerPath, true);
            AddressTextBoxStyle.AddAttributesToRender(writer);
            //writer.AddAttribute(HtmlTextWriterAttribute.ReadOnly, "readonly");
            writer.RenderBeginTag(HtmlTextWriterTag.Input);
            writer.RenderEndTag();


            writer.RenderEndTag();
            writer.AddStyleAttribute(HtmlTextWriterStyle.Width, "16px");
            writer.RenderBeginTag(HtmlTextWriterTag.Td);
            writer.AddAttribute(HtmlTextWriterAttribute.Alt, "");
            writer.AddAttribute(HtmlTextWriterAttribute.Src, Controller.GetToolbarImage(ToolbarImages.Process));
            writer.AddAttribute(HtmlTextWriterAttribute.Id, _fileView.ClientID + "_ProgressImg");
            writer.AddStyleAttribute(HtmlTextWriterStyle.Visibility, "hidden");
            writer.RenderBeginTag(HtmlTextWriterTag.Img);
            writer.RenderEndTag();
            writer.RenderEndTag();
            writer.RenderEndTag();
            writer.RenderEndTag();

            writer.RenderEndTag();
        }