Files
Umbraco-CMS/OLD/umbraco.Legacy/umbraco/plugins/tinymce/insertLink.aspx.cs
2012-06-22 20:39:48 +04:00

63 lines
2.0 KiB
C#

using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
namespace umbraco.presentation.tinymce
{
/// <summary>
/// Summary description for insertLink.
/// </summary>
public partial class insertLink : BasePages.UmbracoEnsuredPage
{
protected uicontrols.TabView tbv = new uicontrols.TabView();
protected void Page_Load(object sender, System.EventArgs e)
{
uicontrols.TabPage tp = tbv.NewTabPage(ui.Text("content"));
tp.HasMenu = false;
tp.Controls.Add(new LiteralControl("<iframe frameborder=\"0\" src=\"../../TreeInit.aspx?app=content&isDialog=true&dialogMode=locallink&functionToCall=parent.dialogHandler&contextMenu=false\" style=\"LEFT: 0px; OVERFLOW: auto; WIDTH: 280px; POSITION: relative; TOP: 0px; HEIGHT: 220px; BACKGROUND-COLOR: white; border: none\"></iframe>"));
uicontrols.TabPage tp2 = tbv.NewTabPage(ui.Text("media"));
tp2.HasMenu = false;
tp2.Controls.Add(new LiteralControl("<iframe frameborder=\"0\" src=\"../../TreeInit.aspx?app=media&isDialog=true&dialogMode=fulllink&functionToCall=parent.dialogHandler&contextMenu=false\" style=\"LEFT: 0px; OVERFLOW: auto; WIDTH: 280px; POSITION: relative; TOP: 0px; HEIGHT: 220px; BACKGROUND-COLOR: white; border: none\"></iframe>"));
ph.Controls.Add(tbv);
}
public BusinessLogic.User GetUser()
{
return base.getUser();
}
#region Web Form Designer generated code
override protected void OnInit(EventArgs e)
{
//
// CODEGEN: This call is required by the ASP.NET Web Form Designer.
//
tbv.ID="tabview1";
tbv.Width = 300;
tbv.Height = 320;
InitializeComponent();
base.OnInit(e);
}
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
}
#endregion
}
}