private void add_upload_controls(PlaceHolder MainPlaceHolder, Custom_Tracer Tracer)
        {
            Tracer.Add_Trace("File_Managament_MySobekViewer.add_upload_controls", String.Empty);

            StringBuilder filesBuilder = new StringBuilder(2000);

            filesBuilder.AppendLine("<script src=\"" + Static_Resources_Gateway.Sobekcm_Metadata_Js + "\" type=\"text/javascript\"></script>");
            filesBuilder.AppendLine("Add a new file for this package:");
            filesBuilder.AppendLine("<blockquote>");

            LiteralControl filesLiteral2 = new LiteralControl(filesBuilder.ToString());

            MainPlaceHolder.Controls.Add(filesLiteral2);
            filesBuilder.Remove(0, filesBuilder.Length);

            UploadiFiveControl uploadControl = new UploadiFiveControl();

            uploadControl.UploadPath               = digitalResourceDirectory;
            uploadControl.UploadScript             = RequestSpecificValues.Current_Mode.Base_URL + "UploadiFiveFileHandler.ashx";
            uploadControl.SubmitWhenQueueCompletes = true;
            uploadControl.RemoveCompleted          = true;
            uploadControl.Swf = Static_Resources_Gateway.Uploadify_Swf;
            uploadControl.RevertToFlashVersion  = true;
            uploadControl.AllowedFileExtensions = UI_ApplicationCache_Gateway.Settings.Resources.Upload_File_Types;
            MainPlaceHolder.Controls.Add(uploadControl);


            filesBuilder.AppendLine("</blockquote><br />");

            LiteralControl literal1 = new LiteralControl(filesBuilder.ToString());

            MainPlaceHolder.Controls.Add(literal1);
        }
        private void add_upload_controls(PlaceHolder MainPlaceHolder, Custom_Tracer Tracer)
        {
            Tracer.Add_Trace("File_Managament_MySobekViewer.add_upload_controls", String.Empty);

            StringBuilder filesBuilder = new StringBuilder(2000);

            filesBuilder.AppendLine("<script src=\"" + currentMode.Base_URL + "default/scripts/sobekcm_metadata.js\" type=\"text/javascript\"></script>");
            filesBuilder.AppendLine("Add a new file for this package:");
            filesBuilder.AppendLine("<blockquote>");

            LiteralControl filesLiteral2 = new LiteralControl(filesBuilder.ToString());

            MainPlaceHolder.Controls.Add(filesLiteral2);
            filesBuilder.Remove(0, filesBuilder.Length);

            UploadiFiveControl uploadControl = new UploadiFiveControl();

            uploadControl.UploadPath               = digitalResourceDirectory;
            uploadControl.UploadScript             = currentMode.Base_URL + "UploadiFiveFileHandler.ashx";
            uploadControl.SubmitWhenQueueCompletes = true;
            uploadControl.RemoveCompleted          = true;
            uploadControl.Swf = currentMode.Base_URL + "default/scripts/uploadify/uploadify.swf";
            uploadControl.RevertToFlashVersion  = true;
            uploadControl.AllowedFileExtensions = SobekCM_Library_Settings.Upload_File_Types;
            MainPlaceHolder.Controls.Add(uploadControl);


            filesBuilder.AppendLine("</blockquote><br />");

            LiteralControl literal1 = new LiteralControl(filesBuilder.ToString());

            MainPlaceHolder.Controls.Add(literal1);
        }
示例#3
0
        private void add_upload_controls(PlaceHolder MainPlaceHolder, Custom_Tracer Tracer)
        {
            Tracer.Add_Trace("Import_Spreadsheet_MySobekViewer.add_upload_controls", String.Empty);

            StringBuilder filesBuilder = new StringBuilder(2000);

            filesBuilder.AppendLine("<script src=\"" + Static_Resources_Gateway.Sobekcm_Metadata_Js + "\" type=\"text/javascript\"></script>");
            filesBuilder.AppendLine("Upload an Excel spreadsheet or CSV file:");
            filesBuilder.AppendLine("<blockquote>");

            LiteralControl filesLiteral2 = new LiteralControl(filesBuilder.ToString());

            MainPlaceHolder.Controls.Add(filesLiteral2);
            filesBuilder.Remove(0, filesBuilder.Length);

            UploadiFiveControl uploadControl = new UploadiFiveControl();

            uploadControl.UploadPath               = taskDirectory;
            uploadControl.UploadScript             = RequestSpecificValues.Current_Mode.Base_URL + "UploadiFiveFileHandler.ashx";
            uploadControl.SubmitWhenQueueCompletes = true;
            uploadControl.RemoveCompleted          = true;
            uploadControl.Swf = Static_Resources_Gateway.Uploadify_Swf;
            uploadControl.RevertToFlashVersion  = true;
            uploadControl.AllowedFileExtensions = ".xls|.xlsx|.csv";
            MainPlaceHolder.Controls.Add(uploadControl);


            filesBuilder.AppendLine("</blockquote><br />");

            LiteralControl literal1 = new LiteralControl(filesBuilder.ToString());

            MainPlaceHolder.Controls.Add(literal1);
        }
        private void add_upload_controls(PlaceHolder UploadFilesPlaceHolder, Custom_Tracer Tracer)
        {
            Tracer.Add_Trace("File_Managament_MySobekViewer.add_upload_controls", String.Empty);

            StringBuilder filesBuilder = new StringBuilder(2000);

            LiteralControl filesLiteral2 = new LiteralControl(filesBuilder.ToString());

            UploadFilesPlaceHolder.Controls.Add(filesLiteral2);
            filesBuilder.Remove(0, filesBuilder.Length);

            UploadiFiveControl uploadControl = new UploadiFiveControl();

            uploadControl.UploadPath               = wordmarkDirectory;
            uploadControl.UploadScript             = currentMode.Base_URL + "UploadiFiveFileHandler.ashx";
            uploadControl.AllowedFileExtensions    = ".jpg,.png,.gif,.bmp,.jpeg";
            uploadControl.RemoveCompleted          = true;
            uploadControl.SubmitWhenQueueCompletes = true;
            uploadControl.Multi = false;
            UploadFilesPlaceHolder.Controls.Add(uploadControl);

            LiteralControl literal1 = new LiteralControl(filesBuilder.ToString());

            UploadFilesPlaceHolder.Controls.Add(literal1);
        }