<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="frm_AgregarCategoria.aspx.vb" Inherits="SGHweb.frm_AgregarCategoria" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<script>
    function cerrar() {
        ventana = window.self;
        ventana.opener = window.self;
        ventana.close();
    } 
    </script> 
<script language ="javascript" type ="text/javascript" >
    function generate(type, texto) {
        var n = noty({
            text: texto,
            type: 'alert',
            dismissQueue: true,
            modal: true,
            layout: 'center',
            theme: 'defaultTheme',
            buttons: [
                    { addClass: 'btn btn-info', text: 'Ok', onClick: function ($noty) {
                        $noty.close();
                    }
                    },
                  ]
        });
        console.log('html: ' + n.options.id);
        return n;
    }
    function mostrar_mensaje(tipo, texto) {
        $(document).ready(function () {
            ///////////////////////
            // alert             //
            //  information      //
            //   error           //
            //    warning        //
            //     notification  //
            ///////////////////////
            var success = generate(tipo, texto);
            setTimeout(function () {
                $.noty.setText(success.options.id, texto);
            }, 1000);
        });
    }
    function mostrar_mensaje1(type, texto) {
        var n = noty({
            text: texto,
            type: type,
            dismissQueue: true,
            layout: 'center',
            modal: true,
            theme: 'defaultTheme',
            buttons: [
                    { addClass: 'btn btn-info', text: 'Ok', onClick: function ($noty) {
                        $noty.close();
                        Close();
                    }
                    },
                  ]
        });
        console.log(type + ' - ' + n.options.id);
        return n;
    }

    function mensaje() {
        //$find("<%= RadAjaxManager1.ClientID%>").ajaxRequest("envioClaveMail," + idemp + "," + mailV);
        //$find("<%= RadAjaxManager1.ClientID %>");
        var notificacion = generate('Descargando Reporte <br><img src="../Scripts/noty/ajax-loader.gif" />');
        setTimeout(function () {
            $.noty.setText(notificacion.options.id, 'Categoria Agregado <br><img src="Resources/Update.png" />'); // same as alert.setText('Text Override')
        }, 0000);
    }
    function GetRadWindow() {
        var oWindow = null;
        if (window.radWindow)
            oWindow = window.RadWindow; //Will work in Moz in all cases, including clasic dialog     
        else if (window.frameElement.radWindow)
            oWindow = window.frameElement.radWindow; //IE (and Moz as well)     
        return oWindow;
    }
    function Close() {
        GetRadWindow().Close();
    }         
</script>
<head id="Head1" runat="server">
    <title></title>
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js" type="text/javascript"></script>
    <script type="text/javascript" src="../Scripts/noty/jquery.noty.js"></script>
    <script type="text/javascript" src="../Scripts/noty/themes/default.js"></script>
    <script type="text/javascript" src="../Scripts/noty/layouts/center.js"></script>
    <script type="text/javascript" src="../../Scripts/noty/layouts/bottom.js"></script>
    <link rel="stylesheet" type="text/css" href="../Scripts/noty/buttons.css" />
    </head>
<body>
    <form id="form1" runat="server">
    <div style="height: 100%; width: 100%">
    <center>
        <table style="border-radius: 2px; padding: 2px; border:2px solid #1f497d; height:100%; width:100%; font-size: 9pt; color:Black ; width: 100%" border="0px">
        <tr>
        <td align="center" colspan="2">
        <telerik:RadToolBar ID="RadToolBar2" runat="server" Skin="WebBlue" Width="100%">
            <Items>
            <telerik:RadToolBarButton runat="server" Font-Names="Arial" Font-Size="9pt" ForeColor="White"
            ImageUrl="~/SIG/Resources/Update_Popup.png" Text="Guardar Cambios" > </telerik:RadToolBarButton>
            <telerik:RadToolBarButton runat="server" Font-Names="Arial" Font-Size="9pt" ForeColor="White"
            ImageUrl="~/SIG/Resources/Cancel_PopUp.png" Text="Cancelar"> </telerik:RadToolBarButton>
            </Items>
        </telerik:RadToolBar>
        </td>
        </tr>
        <tr>
        <td style="width:30%" align="right"> </td>
        <td style="width:70%" align="left"> </td>
        </tr>
        <tr>
        <td align="right"> Nombre: &nbsp; </td>
        <td align="left">
            <telerik:RadTextBox ID="RadTextBox3" Runat="server" LabelWidth="64px" Width="124px" Height="23px"> </telerik:RadTextBox>
        </td>
        </tr>
        <tr>
        <td align="right"> &nbsp; </td>
        <td align="left"> &nbsp; </td>
        </tr>
        </table>
        <asp:SqlDataSource ID="SqlDataSource_categorias" runat="server" 
        SelectCommand="SELECT [CategoriaID], [NombreCategoria] FROM [Categoria_Coronas]"> </asp:SqlDataSource>
        <a id="enlace_principal" runat="server" class="colorbox" href="img_home/" 
            title=""></a>
        <telerik:RadScriptManager ID="RadScriptManager1" Runat="server">
        </telerik:RadScriptManager>
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        </telerik:RadAjaxManager>
    </center>
    </div>
    </form>
</body>
</html>
