<%@ Page Language="C#" 
MasterPageFile="~/CITAD.Master" 
AutoEventWireup="true" 
CodeBehind="frmEnv_Control_Detail.aspx.cs" 
Inherits="CITAD.Web.Modules.ThongTinHeThongNganHang.frmEnv_Control_Detail" 
Title="Chi tiết tham số môi trường" 
Culture="auto" 
EnableEventValidation="false"
UICulture="auto"
 meta:resourcekey="PageResource1" %>

<%@ Register Src="../../Controls/MessageBox.ascx" TagName="MessageBox" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<script language="javascript" type="text/javascript" >
	    //Cài đặt sự kiện phím tắt
        window.document.onkeyup=ShortcutKeys;
        function ShortcutKeys()
        {
            if(event.ctrlKey)
            {
                switch (event.keyCode)
                {
                    case 49://Ctrl + 1
                        __doPostBack('ctl00$ContentPlaceHolder1$Menu1','mnuNew');
                        break;
                    case 50://Ctrl + 2
                        __doPostBack('ctl00$ContentPlaceHolder1$Menu1','mnuDetail');
                        break;
                    case 51://Ctrl + 3
                        __doPostBack('ctl00$ContentPlaceHolder1$Menu1','mnuDelete');
                        break;
                    case 52://Ctrl + 4
                        __doPostBack('ctl00$ContentPlaceHolder1$Menu1','mnuQuery');
                        break;                    
                    case 69://Ctrl + E
                        __doPostBack('ctl00$ContentPlaceHolder1$Menu1','mnuClose');
                        break;
                }
            }
        }
    </script>
 <div style="width:770px;">
   <table class="toolbar" cellpadding="0" cellspacing="0" >
        <tr><td class="toolbar-tdleft"></td>
        <td class="toolbar-tdmain">
            <asp:Menu ID="Menu1" runat="server" 
                DynamicHorizontalOffset="2" 
                Font-Names="Verdana"
                Font-Size="11px"                
                Orientation="Horizontal" 
                CssClass="citad-menu" 
                StaticSubMenuIndent="10px"                 
                StaticHoverStyle-CssClass="citad-menu-hover"
                StaticMenuStyle-CssClass="citad-menu"
                StaticSelectedStyle-CssClass="citad-menu-selected"
                StaticMenuItemStyle-HorizontalPadding="5px"
                StaticMenuItemStyle-VerticalPadding="2px" OnMenuItemClick="Menu1_MenuItemClick" meta:resourcekey="Menu1Resource1"
                >
                <Items>
                    <asp:MenuItem Text="Tho&#225;t" Value="mnuClose"  ImageUrl="~/Images/Menu/home.gif" meta:resourcekey="MenuItemResource1" ></asp:MenuItem>
                    <asp:MenuItem Text="Ghi" Value="mnuSave"  ImageUrl="~/Images/Menu/save.gif" meta:resourcekey="MenuItemResource2"></asp:MenuItem>
                </Items>
                <StaticMenuStyle CssClass="citad-menu" />
                <StaticMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" />
                <StaticSelectedStyle CssClass="citad-menu-selected" />
                <StaticHoverStyle CssClass="citad-menu-hover" />
            </asp:Menu>
       </td>
       </tr>
    </table>
     <ajaxToolkit:ToolkitScriptManager runat="Server" ID="ScriptManager1" EnableScriptGlobalization="True"
             EnableScriptLocalization="True" CombineScripts="True" EnablePageMethods="True"  />
             
              <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <Triggers>
            <asp:AsyncPostBackTrigger ControlID="Menu1" EventName="MenuItemClick" />
        </Triggers>
        <ContentTemplate>
         <div style="text-align:center;">
            <fieldset style="width: 400px">
                <table style="margin-top:7px;">
                    <tr>
                        <td style="width: 150px" align="right">
                            <asp:Label ID="lblTenThamSo" runat="server" Text="T&#234;n tham số" meta:resourcekey="lblTenThamSoResource1" ></asp:Label>&nbsp;
                        </td>
                        <td>
                            <asp:TextBox ID="txtTenThamSo" runat="server" Width="250px" CssClass="citad-txt" MaxLength="50" meta:resourcekey="txtTenThamSoResource1" ></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 150px" align="right">
                            <asp:Label ID="lblGiaTri" runat="server" Text="Gi&#225; trị" meta:resourcekey="lblGiaTriResource1" ></asp:Label>&nbsp;</td>
                        <td>
                            <asp:TextBox ID="txtGiaTri" runat="server" Width="250px" CssClass="citad-txt" MaxLength="100" meta:resourcekey="txtGiaTriResource1" ></asp:TextBox></td>
                    </tr>
                      <tr>
                        <td style="width: 150px" align="right">
                            <asp:Label ID="lblMoTa" runat="server" Text="M&#244; tả" meta:resourcekey="lblMoTaResource1" ></asp:Label>&nbsp;</td>
                        <td>
                            <asp:TextBox ID="txtMoTa" runat="server" Width="250px" CssClass="citad-txt" MaxLength="200" meta:resourcekey="txtMoTaResource1" ></asp:TextBox></td>
                    </tr>
                </table>
            </fieldset>
        </div>
        <asp:HiddenField ID="hidType" runat="server" />
            <uc1:MessageBox ID="MessageBox1" runat="server" />
        
        </ContentTemplate>
    </asp:UpdatePanel>
  </div>
</asp:Content>
