<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="GestorHTM.aspx.cs" Inherits="GestorHtm.GestorHTM" %>

<!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">
<head runat="server">
    <title>GestorHTM</title>
<telerik:RadStyleSheetManager id="RadStyleSheetManager1" runat="server" CdnSettings-TelerikCdn="Disabled" />

    <script type="text/javascript" id="telerikClientEvents1">
//<![CDATA[
      
        function BeforeClick(sender, args) {
            var node = args.get_node();
            var ruta = node.get_value();
            document.getElementById('Label7').innerText = ruta.toString();
            document.getElementById('TextBox5').value = ruta.toString();

        }
        function BeforeClick2(sender, args) {
            var node = args.get_node();
            var ruta = node.get_value();
            document.getElementById('Label13').innerText = ruta.toString();
            document.getElementById('RadTextBox5').value = ruta.toString();

        }
        function skm_LockScreen() {
            var lock = document.getElementById('skm_LockPane');
            if (lock)
                lock.className = 'LockOn';
        }

        function showPleaseWait() {
            document.getElementById('PleaseWait').style.display = 'block';
        }
        function Clear_Textbox4() { document.getElementById('TextBox4').value = ""; }
//]]>
</script>

    <style type="text/css">
        .style1
        {
            height: 330px;
            width: 303px;
        }
              .LockOff { 
         display: none; 
         visibility: hidden; 
      } 

      .LockOn { 
         display: block; 
         visibility: visible; 
         position: absolute; 
         z-index: 999; 
         top: 0px; 
         left: 0px; 
         width: 105%; 
         height: 105%; 
         background-color: #ccc; 
         text-align: center; 
         padding-top: 10%; 
         filter: alpha(opacity=75); 
         opacity: 0.75; 
      } 
        .style2
        {
            height: 330px;
            width: 310px;
        }
        .style3
        {
            width: 310px;
        }
        </style>
</head>
<body>
    <form id="form1" runat="server">
 <div class="helptext" id="PleaseWait" style="display: none; text-align:right; color:White; vertical-align:top;">
            <table id="MyTable" bgcolor="red">
                <tr>
                    <td>
                        <b><font color="white">Por favor espere unos segundos...</font></b>
                    </td>
                </tr>
            </table>
        </div>
    <div id="skm_LockPane" class="LockOff"> 
    <img alt="cargando"  src="img/cargando.gif" '/>
    <p>La operación que  a solicitado se esta ejecutando, por favor espere....</p>
    </div> 
	<telerik:RadScriptManager ID="RadScriptManager1" runat="server">
		<Scripts>
			<%--Needed for JavaScript IntelliSense in VS2010--%>
			<%--For VS2008 replace RadScriptManager with ScriptManager--%>
			<asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
			<asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
			<asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
		</Scripts>
	</telerik:RadScriptManager>
	<script type="text/javascript">
    //<![CDATA[


	    //]]>
	    //Put your JavaScript code here.
    </script>
	<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
	</telerik:RadAjaxManager>
	<div>
    
    <table>
    <tr >
     <td class="style2"><fieldset style=" width: 300px; height: 350px;">
         <asp:Label ID="Label3" runat="server" Text=" 1º-Marca la casilla de la carpeta de destino."></asp:Label>
                <telerik:RadTreeView ID="RadTreeView1" Runat="server"  
                    AutoResizeHeight="false" 
                    style=" border:2px solid black;" Height="322px" Width="300px" 
                    CheckBoxes="False"  
                    LoadingMessage="Cargando ..." 
                     OnClientNodeClicking="BeforeClick" Skin="Black" BackColor="Black" BorderColor="White"
                    >
                <Nodes>
                    <telerik:RadTreeNode runat="server" ExpandedImageUrl="~/imagens/iconos/folder.gif" 
                     NavigateUrl="~/GestorVideos.aspx" Text="Servidor" Checkable="false" >
                     </telerik:RadTreeNode>
                     </Nodes>
                    </telerik:RadTreeView>
                    
                    </fieldset>
            </td>
 
            <td class="style1">

                <asp:TextBox ID="TextBox1" runat="server" Height="322px" TextMode="MultiLine" 
                    Width="300px"></asp:TextBox >
            <telerik:RadButton ID="RadButton2" runat="server" Text="Limpiar Cuadro de dialogo" 
                    Width="290px" Height="19px" onclick="RadButton2_Click">
            </telerik:RadButton>
            </td>
                            
                         
    </tr>
    <tr>
        <td class="style3"> <asp:Label ID="Label2" runat="server" Text="Seleciona en la lista desplegable la imagen a borrar:"></asp:Label>
            <asp:TextBox ID="TextBox5" runat="server" Width="1px" Height="1px"></asp:TextBox>
            <br />
            <asp:Label ID="Label7" runat="server" Text="Aqui aparecera la ruta selecionada " 
                Width="328px" style="border: 2px solid black"></asp:Label>
            </td>
            <td>
                <br />
            <telerik:RadButton ID="Button3" runat="server" Text="Borrar" Width="70px" 
                onclick="Button3_Click" OnClientClick="showPleaseWait()" Skin="Black" 
                    Height="20px">
            </telerik:RadButton></td>
    </tr>
        <asp:Label ID="Label1" runat="server" Text="Label" Visible="False"></asp:Label>
       
          
       
	       
       
        </table> 
        <br />
        
	</div>
	</form>
</body>
</html>