using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Bitrix.UI;
using Bitrix.Services.Js;

public partial class bitrix_admin_AdminSimpleMasterPage : BXAdminMasterPage
{
	protected void Page_Load(object sender, EventArgs e)
	{
		BXPage.RegisterThemeStyle("pubstyles.css");
		BXPage.RegisterThemeStyle("pubstyles_net.css");
		BXPage.RegisterThemeStyle("stylesheet.css");
		BXPage.RegisterThemeStyle("adminstyles.css");

		//if (!Page.ClientScript.IsClientScriptIncludeRegistered("JsBlock"))
		//    Page.ClientScript.RegisterClientScriptInclude("JsBlock", VirtualPathUtility.ToAbsolute("~/bitrix/kernel/js/admin_tools.js") + "?12");
		if (!Page.ClientScript.IsStartupScriptRegistered(this.GetType(), "JsBlock1"))
			Page.ClientScript.RegisterStartupScript(this.GetType(), "JsBlock1", "jsUtils.addEvent(window, \"keypress\", PopupOnKeyPress);", true);

		//if (!Page.ClientScript.IsClientScriptBlockRegistered(this.GetType(), "JsAdminMenuBlock"))
		//    Page.ClientScript.RegisterClientScriptBlock(
		//        this.GetType(),
		//        "JsAdminMenuBlock",
		//        "<script language=javascript>" +
		//        "var phpVars = {" +
		//        "	'CONTROL_CLIENT_ID': '" + this.ClientID + "'," +
		//        "	'ADMIN_THEME_ID': '.default'," +
		//        "	'LANGUAGE_ID': 'ru'," +
		//        "	'FORMAT_DATE': 'DD.MM.YYYY'," +
		//        "	'FORMAT_DATETIME': 'DD.MM.YYYY HH:MI:SS'," +
		//        "	'opt_context_ctrl': false," +
		//        "	'cookiePrefix': 'BITRIX_SM'," +
		//        "	'titlePrefix': 'SERVER_NAME - '," +
		//        string.Format("	'messHideMenu': '{0}', 'messShowMenu': '{1}', 'messHideButtons': '{2}', 'messShowButtons': '{3}', 'messFilterInactive': '{4}', 'messFilterActive': '{5}', 'messFilterLess': '{6}', 'messLoading': '{7}', 'messMenuLoading': '{8}', 'messNoData': '{9}', 'messExpandTabs': '{10}', 'messCollapseTabs': '{11}', 'messPanelFixOn': '{12}', 'messPanelFixOff': '{13}' }};</script>",
		//            BXJSUtility.Encode(GetMessage("MessageHideMenu")),
		//            BXJSUtility.Encode(GetMessage("MessageShowMenu")),
		//            BXJSUtility.Encode(GetMessage("MessageHideButtons")),
		//            BXJSUtility.Encode(GetMessage("MessageShowButtons")),
		//            BXJSUtility.Encode(GetMessage("MessageFilterInactive")),
		//            BXJSUtility.Encode(GetMessage("MessageFilterActive")),
		//            BXJSUtility.Encode(GetMessage("MessageFilterLess")),
		//            BXJSUtility.Encode(GetMessage("MessageLoading")),
		//            BXJSUtility.Encode(GetMessage("MessageMenuLoading")),
		//            BXJSUtility.Encode(GetMessage("MessageNoData")),
		//            BXJSUtility.Encode(GetMessage("MessageExpandTabs")),
		//            BXJSUtility.Encode(GetMessage("MessageCollapseTabs")),
		//            BXJSUtility.Encode(GetMessage("MessagePanelFixOn")),
		//            BXJSUtility.Encode(GetMessage("MessagePanelFixOff"))
		//            )
		//    );
	}
}
