{
    "type": "Ext.app.Controller",
    "reference": {
        "name": "items",
        "type": "array"
    },
    "codeClass": null,
    "userConfig": {
        "designer|userClassName": "RulesetLog"
    },
    "designerId": "1984a7ba-dba0-43c1-9137-2cdce71d95b5",
    "cn": [
        {
            "type": "controllerref",
            "reference": {
                "name": "items",
                "type": "array"
            },
            "codeClass": null,
            "userConfig": {
                "autoCreate": true,
                "ref": "rulesetWindow",
                "selector": "#rulesetWindow",
                "xtype": "RulesetWindow"
            },
            "designerId": "8329b860-fe01-427b-9f40-f10ec22c4128"
        },
        {
            "type": "controllerref",
            "reference": {
                "name": "items",
                "type": "array"
            },
            "codeClass": null,
            "userConfig": {
                "ref": "rulesetEmptyContainer",
                "selector": "#rulesetEmptyContainer"
            },
            "designerId": "d969515c-d305-4ecd-b51d-fa7fc525a3c8"
        },
        {
            "type": "fixedfunction",
            "reference": {
                "name": "items",
                "type": "array"
            },
            "codeClass": null,
            "userConfig": {
                "designer|params": [
                    "application"
                ],
                "fn": "init",
                "implHandler": [
                    "this.control({\r",
                    "    '#rulesetLogBtn': {\r",
                    "        click: this.openWindow\r",
                    "    }\r",
                    "});"
                ]
            },
            "designerId": "35fd5cfc-7197-49c9-b05a-c6eb4b4d5078"
        },
        {
            "type": "basicfunction",
            "reference": {
                "name": "items",
                "type": "array"
            },
            "codeClass": null,
            "userConfig": {
                "designer|params": [
                    "btn"
                ],
                "fn": "openWindow",
                "implHandler": [
                    "//open the window\r",
                    "this.getRulesetWindow().animateTarget = btn;\r",
                    "\r",
                    "var W = Ext.getBody().getViewSize().width;\r",
                    "var H = Ext.getBody().getViewSize().height;\r",
                    "this.getRulesetWindow().setWidth(W-50);\r",
                    "this.getRulesetWindow().setHeight(H-50);\r",
                    "\r",
                    "this.getRulesetWindow().show();\r",
                    "\r",
                    "//create url\r",
                    "var url = \"../viewlog/viewlog.php\";\r",
                    "var params = Ext.Object.fromQueryString(document.location.search);\r",
                    "params.donotshowtabs = true;\r",
                    "var par = Ext.Object.toQueryString(params);\r",
                    "\r",
                    "//open url in the window\r",
                    "this.getRulesetEmptyContainer().update('<iframe src=\"'+url+\"?\"+par+'\" width=\"100%\" height=\"100%\" frameborder=\"0\" style=\"border-color: white;\"></iframe>');\r",
                    "this.getRulesetEmptyContainer().doLayout();"
                ]
            },
            "designerId": "58bf738a-7a51-4bbf-9766-2154e9617d29"
        }
    ]
}