<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WinServiceLog.aspx.cs" Inherits="GigaTech.CMS.Web.Common.SystemAdmin.Utility.WinServiceLog" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>

        <script src="/Scripts/jquery-1.6.4.min.js"></script>

    <style>
        .x-grid-cell-inner {
    white-space: normal
}

        .custom-grid .x-grid-cell { 
   background-color: #000; 
    color: yellow; 
}

         .x-grid-body { 
   background-color: #000; 
    color: #fff; 
}
    </style>
</head>
        <script language="javascript">
            var forPortlet = "<%=forPortlet%>";
           
            var tryCount = 0;

            Ext.onReady(function () {
                Ext.QuickTips.init();

                var grid = Ext.create('Ext.grid.Panel', {
                    id: 'MsgGrid',
                    hideHeaders: true,
                    border: false,
                    cls: 'custom-grid',
                    rowLines: false,
                    store: Ext.create('Ext.data.Store', {
                        autoLoad: true,
                        fields: ['msg']
                    }),
                    columns: [
                         {
                             //header: 'Log',
                             dataIndex: 'msg',
                             flex: 1
                         }
                    ]
                });

                if (forPortlet == "Y") {
                    Ext.create('Ext.container.Viewport', {
                        layout: {
                            type: 'fit'
                        },
                        items: [grid]
                    });
                }
                else {
                    var w = Ext.create('Ext.window.Window', {
                        title: forPortlet == "Y" ? "" : "Windows Service Log",
                        header: forPortlet != "Y",
                        constrain: true,
                        closable: false,
                        shadow: true,
                        shadowOffset: 50,
                        maximized: true,
                        autoScroll: true,
                        bodyStyle: 'background:white',
                        layout: 'fit',
                        items: [grid]
                    }).show();
                }

            });

    </script>
<body>
    <form id="form1" runat="server">
    <div>
    
    </div>
    </form>
</body>
</html>
