<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="frm_editarProducto.aspx.vb" Inherits="SGHweb.EliminarProducto" %>

<!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 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();
                        close();
                    }
                    },
                  ]
            });
            console.log('html: ' + n.options.id);
            return n;
        }
        function mensaje(texto) {
            $(document).ready(function () {
                var success = generate(texto);
                setTimeout(function () {
                    $.noty.setText(success.options.id, texto);
                }, 1000);
            });
        }
        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>
<center>
    <table cellpadding="0" cellspacing="0" border="0"
        style="border-right: #578533 1px solid; border-top: #578533 1px solid;
        border-left: #578533 1px solid; border-bottom: #578533 1px solid; width: 100%" >
    <tr>
        <td style="background-color: #cccccc; height: 1%;" width="100%"> </td>
    </tr>
    <tr>
        <td style="height: 100%; ">
            <table style="font-weight: bold; font-size: 9pt; color: black; height:100%; width: 100%" border="0">
                <tr>
                <td align="center" colspan="2">
                <table cellpadding="0" cellspacing="0" width="100%" style="border-radius: 1px; padding: 1px; border:1px solid #1f497d; width:100%; font-size: 9pt; color:Black ; width: 100%" border="0px">
                <tr>
                <td align="center">
                    <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>
                    <table style="font-weight: bold; font-size: 9pt; color: black; width: 100%" border="0">
                        <tr>
                            <td align="left" style="width: 30%" > </td>
                            <td align="right" style="width: 40%"> </td>
                            <td align="center" style="width: 28%" rowspan="6"> 
                                <table style="border-radius: 1px; padding: 1px; border:1px solid #1f497d; width:100%; font-size: 9pt; color:Black ; width: 100%" border="0px">
                                    <tr>
                                    <td align="center" style="width: 100% ; height:100%">
                                        <a id="enlace_principal" runat="server" class="colorbox" href="img_home/" 
                                         title="">
                                        <img id="imagen_principal" runat="server" alt="" class="product-image-zoom" 
                                        data-zoom-image="image/product1.jpg" src="" title="Servicio" style="width: 80%;"/></a>
                                    </td>
                                    </tr>
                                    <tr>
                                    <td>
                                        <telerik:RadAsyncUpload ID="AsyncUpload1" runat="server" 
                                        MultipleFileSelection="Automatic" Skin="WebBlue" 
                                        TargetFolder="img_home" ChunkSize="0" Culture="es-ES" 
                                        AllowedFileExtensions="jpg" Width="40%" InputSize="6">
                                            <localization remove="Borrar" select="Seleccionar" />
                                        </telerik:RadAsyncUpload>
                                    </td>
                                    </tr>
                                </table>
                            </td>
                            <td align="center" style="width: 2%" rowspan="6"> 
                        </tr>

                        <tr>
                            <td align="right"> Nombre del Consumo:&nbsp; </td>
                            <td align="left">
                                <telerik:RadTextBox ID="RadTextBox1" Runat="server" Height="30%" 
                                    Skin="Windows7" TextMode="MultiLine" Width="95%"> </telerik:RadTextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" > Politica:&nbsp;  </td>
                            <td align="left" >
                                <telerik:RadTextBox ID="rad_Politica" Runat="server" Height="30%" 
                                Skin="Windows7" TextMode="MultiLine" Width="95%"> </telerik:RadTextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" > Detalle:&nbsp;  </td>
                            <td align="left">
                                <telerik:RadTextBox ID="rad_Detalle" Runat="server" Height="30%" 
                                Skin="Windows7" TextMode="MultiLine" Width="95%"> </telerik:RadTextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" > Cantidad de puntos:&nbsp;  </td>
                            <td align="left" >
                                <telerik:RadTextBox ID="RadTextBox3" Runat="server" Width="50%"> </telerik:RadTextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" > Categoria:&nbsp;  </td>
                            <td align="left" >
                                <telerik:RadComboBox ID="RadComboBox1" runat="server" Culture="es-ES" 
                                DataSourceID="SqlDataSource_categorias" DataTextField="NombreCategoria" 
                                DataValueField="CategoriaID" Skin="WebBlue" Width="95%"> </telerik:RadComboBox>
                                <%--ConnectionString="<%$ ConnectionStrings:SHIOL_WEB %>" --%>
                            </td>
                        </tr>
                        </table>
                </td>
            </tr>
        </table> 
        </tr>
        </table>
        </td>
        </tr>
        <tr>
            <td style="background-color: #cccccc; height: 1%;"> </td>
        </tr>
        </table>
            <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"> </telerik:RadAjaxManager>
            <asp:SqlDataSource ID="SqlDataSource_Hoteles" runat="server" SelectCommand="SELECT [idHotelCloud], [NombreHotel] FROM [Hoteles]"></asp:SqlDataSource>
                                <telerik:RadScriptManager ID="RadScriptManager1" Runat="server"> </telerik:RadScriptManager>
                                <asp:SqlDataSource ID="SqlDataSource_categorias" runat="server" 
                                SelectCommand="SELECT [CategoriaID], [NombreCategoria] FROM [Categoria_Coronas]">
                            </asp:SqlDataSource>
    </center>
    </div>
    </form>
</body>
</html>
