<%@ control language="VB" autoeventwireup="false" inherits="samm_controles.controles_generales_menu, App_Web_b4g313ew" %>
<%@ Register Assembly="controles" Namespace="controles" TagPrefix="bti" %>
<%@ Register Assembly='AjaxControlToolkit' Namespace='AjaxControlToolkit' TagPrefix='act' %>
<%@ Register Assembly="controles" Namespace="controles" TagPrefix="cc1" %>
<link href="../../css/menu.css" rel="stylesheet" type="text/css" />
<img id="btninisamm" alt="Inicio" src="../../images/interfaz/logoSamm.jpg" onclick="MM_findObj('divMenu').style.display='';" onmouseover="MM_swapImage(this.id,'','../../images/menu/logoSamm.jpg',1);" onmouseout="MM_swapImgRestore();"
style="cursor: pointer" />
<div id="divMenu" onmouseout="document.onmousedown=ocultarMenu;" onmouseover="document.onmousedown = null;"
style="z-index: 101; left: -1000px; width: 500px; position: absolute; top: 81px;
display: none">
<table cellpadding="0" cellspacing="0">
<tr style="background-color: White;">
<td valign="middle" align="left" style="padding-left: 10px; width: 237px; height: 34px">
<asp:Label ID="lbl_menu" runat="server" Text="<%$ Resources:res_etiquetas,menu %>" CssClass="lbl_menuPrincipal"></asp:Label>
</td>
<td>
<table cellpadding="0" cellspacing="0" style="width: 275px">
<tr>
<td align="center" style="width: 100%; padding-left: 10px; background-image: url(../../images/menu/fondo_home.jpg)"
valign="middle" class="lnk_menu_2">
<asp:HyperLink ID="hyp_home" CssClass="lnk_menu_2" runat="server" Text="<%$ Resources:res_etiquetas,home %>"
NavigateUrl="../../default.aspx"></asp:HyperLink>&nbsp;&nbsp;-&nbsp;&nbsp;
<asp:LinkButton ID="hyp_reportes" CssClass="lnk_menu_2" runat="server" Text="<%$ Resources:res_etiquetas,reportes %>"></asp:LinkButton>
</td>
<td style="width: 25px">
<bti:BotonImagen ID="bti_mostrarAyuda" runat="server" CausesValidation="false" CssClass="imb"
ImageUrl="../../images/botones/menu_mostrarAyuda.jpg" />
</td>
</tr>
</table>
</td>
<td id="tbl_menu_ayuda_1" runat="server">
<table cellpadding="0" cellspacing="0">
<tr>
<td>
<bti:BotonImagen ID="bti_ocultarAyuda" runat="server" CausesValidation="false" 
ImageUrl="../../images/botones/menu_ocultarAyuda.jpg" />


        
       
</td>
<td valign="middle" align="left" style="padding-left: 10px">
 <asp:HyperLink ID="lnk_falla" runat="server" Target="_blank" CssClass="lbl_menuTituloAyuda" 
 NavigateUrl="~/ayuda/indice/ayuda.aspx" Text="<%$ Resources:res_etiquetas,ayudaMenu %>" ToolTip='2,5' Visible='true'></asp:HyperLink>

<%--<asp:Label ID="lbl_ayudaSamm" runat="server" Text="<%$ Resources:res_etiquetas,ayudaMenu %>"
CssClass="lbl_menuTituloAyuda"></asp:Label>
--%>

</td>
</tr>
</table>
</td>
</tr>
<tr style="background-color: #AABED6; background-image: url(../../images/menu/fondo_degradado.png);">
<td valign="top" style="background-repeat: repeat-x;">
<table style="height: 100%; width: 237px; padding: 10px;">
<tr>
<td valign="top">
<table id="tbl_moduloRecientes" runat="server" cellpadding="0" cellspacing="0" class="lbl_menuPrincipal"
border="0" onmouseover="mouseover(this)" onmouseout="mouseout(this)" style="width: 100%;">
<tr>
<td class="td_imgMod">
<asp:Image ID="img_modulo" runat="server" ImageUrl="~/images/menu/icono_seg.png" />
</td>
<td>
<asp:Label ID="lbl_recientes" runat="server" CssClass="lbl_menuPrincipal_1" Text="<%$ Resources:res_etiquetas,menusRecientes %>"></asp:Label>
</td>
</tr>
</table>
<asp:GridView ID="grd_menu" runat="server" AutoGenerateColumns="false" ShowFooter="false"
ShowHeader="false" BorderColor="#cccccc" GridLines="Both" Width="100%" CellSpacing="0" CellPadding="0">
<Columns>
<asp:TemplateField>
<ItemTemplate>
<table id="tbl_modulo" runat="server" cellpadding="0" cellspacing="0" class="lbl_menuPrincipal"
border="0" onmouseover="mouseover(this)" onmouseout="mouseout(this)" style="width: 100%">
<tr>
<td id="td_fondo" runat="server" colspan="2">
<img alt="" src="../../images/interfaz/spacer.gif" height="2px" /></td>
</tr>
<tr>
<td class="td_imgMod" id="td_imgModulo" runat="server">
<asp:Image ID="img_modulo" runat="server" />
</td>
<td>
<asp:Label ID="lbl_modulo" runat="server" CssClass="lbl_menuPrincipal_1"></asp:Label>
</td>
</tr>
</table>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
</td>
</tr>
</table>
</td>
<td style="width: 247px; padding: 12px;" valign="top">
<table style="width: 247px;" border="0" cellpadding="0" cellspacing="0">
<tr>
<td style="width: 247px;" valign="top">
<div id="divMenusRecientes" class="div_subMenu" style="display: block;">
<div id="divFondoSubMenu" runat="server" class="div_fondosubmenu" style="background-color: Gray;">
<table style="width: 100%; height: 100%;" cellpadding="0" cellspacing="0">
<tr valign="top">
<td style="width: 100%">
<table cellpadding="0" cellspacing="0">
<tr>
<td>
<asp:Image ID="img_titulo" runat="server" ImageUrl="~/images/menu/titulo_gui.png" />
</td>
<td class="td_tituloSubMenu">
<asp:Label ID="lbl_hijos" runat="server" CssClass="lbl_titulosubMenu" Text="<%$ Resources:res_etiquetas,menusRecientes %>"></asp:Label>
</td>
</tr>
</table>
</td>
</tr>
<tr valign="top" align="center">
<td class="td_subMenu">
<div class="div_itemsSubMenu">
<asp:DataList ID="dtl_menusRecientes" runat="server" Width="190px" CellPadding="3">
<ItemTemplate>
<table cellpadding="0" cellspacing="0" border="0">
<tr style="height:29px;">
<td valign="middle" align="left" style='background-color: <%# eval("modulo") %>; width: 17px; padding-left: 6px;'>
</td>
<td align='center' valign="middle" style='padding-left: 3px; width: 100%; background-color: <%# eval("modulo") %>'>
<asp:HyperLink ID="hyp_reciente" runat="server" CssClass="lnk_menu_2" NavigateUrl='<%# eval("url") %>'
Text='<%# eval("nombre") %>' onmouseover="mouseover(this)" onmouseout="mouseout(this)"></asp:HyperLink>
</td>
<td valign="middle" align="right" style='width: 17px; padding-right: 6px; background-color: <%# eval("modulo") %>'>
<asp:HyperLink ID="hyp_boton" runat="server" ImageUrl="~/images/menu/hyp.png" NavigateUrl='<%# eval("url") %>'
></asp:HyperLink>
</td>
</tr>
</table>
</ItemTemplate>
</asp:DataList>
</div>
</td>
</tr>
</table>
</div>
</div>
<asp:GridView ID="grd_submenu" runat="server" AutoGenerateColumns="false" ShowFooter="false"
ShowHeader="false" BorderColor="transparent" GridLines="None" Width="100%" CellPadding="0"
CellSpacing="0">
<Columns>
<asp:TemplateField>
<ItemTemplate>
<div id="divSubMenu" runat="server" class="div_subMenu">
<div id="divFondoSubMenu" runat="server" class="div_fondosubmenu">
<table style="width: 100%; height: 100%;" cellpadding="0" cellspacing="0">
<tr valign="top">
<td style="width: 100%">
<table cellpadding="0" cellspacing="0">
<tr>
<td>
<asp:Image ID="img_titulo" runat="server" ImageUrl="~/images/menu/titulo_gui.png" />
</td>
<td class="td_tituloSubMenu">
<asp:Label ID="lbl_hijos" runat="server" CssClass="lbl_titulosubMenu"></asp:Label>
</td>
</tr>
</table>
</td>
</tr>
<tr valign="top" align="center">
<td class="td_subMenu">
<div class="div_itemsSubMenu">
<asp:GridView ID="grd_link" runat="server" Width="190px" AutoGenerateColumns="False"
ShowHeader="false" BorderColor="Transparent" BorderStyle="Double" GridLines="None"
CellPadding="3">
<Columns>
<asp:TemplateField ItemStyle-CssClass="invisible" HeaderStyle-CssClass="invisible">
<ItemTemplate>
<asp:Label ID="lbl_id" runat="server" Text='<%# eval("id") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField ShowHeader="False">
<ItemTemplate>
<table id="tbl_link" runat="server" cellpadding="0" cellspacing="0" class='lnk_menu'
onmouseout='<%# "mouseoutLNK(this," & chr(34) & eval("tieneHijos") & chr(34) & ")" %>'
onmouseover='<%# "mouseoverLNK(this," & chr(34) & eval("gui_funcionalidad_padre_nombrecontrol") & chr(34) & "," & chr(34) & eval("tieneHijos") & chr(34) & ")" %>'>
<tr id="tr" runat="server">
<td valign="middle" align="left" style="width: 17px; padding-left: 6px;">
<img alt="" id="imb_ext" src="../../images/menu/lnk_mas.png" runat="server" visible='<%# eval("tieneHijos") %>' />
</td>
<td align='center' class='lnk_menu_1' style="padding-left: 3px;" valign="middle">
<asp:LinkButton ID="lnk" runat="server" CssClass="lnk_menu" Text='<%#eval ("funcionalidad") %>'
Visible='<%# eval("tieneHijos") %>' CausesValidation="false" OnClientClick="return false" />
<asp:HyperLink ID="hyp" runat="server" CssClass="lnk_menu_1" Text='<%# eval ("funcionalidad") %>'
 Visible='<%# IIF( eval("tieneHijos"),false,true) %>'
onclick='<%# "crearPreferenciaMenu(" & chr(34) & "samm_menuReciente" & chr(34) & "," & chr(34) & eval ("funcionalidad") & chr(34) & "," & chr(34) & eval("gui_funcionalidad_padre_nombrecontrol") & chr(34) & "," & chr(34) & "../.."  & eval("url") & chr(34) & "," & chr(34) & samm_web.web.f_int_usuarioActual() & chr(34) & ")"%> '></asp:HyperLink>
</td>
<td valign="middle" align="right" style="width: 17px; padding-right: 6px;">
<asp:HyperLink ID="hpr_img" runat="server" ImageUrl="~/images/menu/hyp.png" CssClass="lnk"
ToolTip='<%#eval ("funcionalidad") %>' Visible='<%# IIF( eval("tieneHijos"),false,true) %>' 
onclick='<%# "crearPreferenciaMenu(" & chr(34) & "samm_menuReciente" & chr(34) & "," & chr(34) & eval ("funcionalidad") & chr(34) & "," & chr(34) & eval("gui_funcionalidad_padre_nombrecontrol") & chr(34) & "," & chr(34) & "../.."  & eval("url") & chr(34) & "," & chr(34) & samm_web.web.f_int_usuarioActual() & chr(34) & ")"%> '></asp:HyperLink>
</td>
</tr>
<tr>
<td colspan="4" style="padding-top: 5px">
<asp:Panel ID="pnl_link" runat="server" Visible='<%# eval("tieneHijos") %>' BorderStyle="None"
BorderWidth="0px">
<asp:DataList ID="dtl_link" runat="server" Width="100%">
<ItemTemplate>
<table cellpadding="0" cellspacing="0" style='width: 100%; background-color: <%# eval("gui_funcionalidad_padre_nombrecontrol") %>;'>
<tr>
<td valign="middle" align="right" style="width: 15px">
</td>
<td align="center" valign="middle">
<asp:HyperLink ID="hyp" runat="server" Style='color: white' CssClass="lnk_menu_2"
Text='<%#eval ("funcionalidad") %>'
onclick='<%# "crearPreferenciaMenu(" & chr(34) & "samm_menuReciente" & chr(34) & "," & chr(34) & eval ("funcionalidad") & chr(34) & "," & chr(34) & eval("gui_funcionalidad_padre_nombrecontrol") & chr(34) & "," & chr(34) & "../.."  & eval("url") & chr(34) & "," & chr(34) & samm_web.web.f_int_usuarioActual() & chr(34) & ")"%> '></asp:HyperLink>
</td>
<td valign="middle" align="right" style="width: 17px; padding-right: 6px;">
<asp:HyperLink ID="hpr_boton" runat="server" ImageUrl="~/images/menu/hyp.png" CssClass='lnk_menu_2'
onclick='<%# "crearPreferenciaMenu(" & chr(34) & "samm_menuReciente" & chr(34) & "," & chr(34) & eval ("funcionalidad") & chr(34) & "," & chr(34) & eval("gui_funcionalidad_padre_nombrecontrol") & chr(34) & "," & chr(34) & "../.."  & eval("url") & chr(34) & "," & chr(34) & samm_web.web.f_int_usuarioActual() & chr(34) & ")"%> '></asp:HyperLink>
</td>
</tr>
</table>
</ItemTemplate>
</asp:DataList>
</asp:Panel>
<act:CollapsiblePanelExtender ID="clp_lnk" runat="server" TargetControlID="pnl_link"
CollapsedSize="0" Collapsed="True" ExpandControlID="tr" CollapseControlID="tr"
AutoCollapse="False" AutoExpand="False" ScrollContents="false" ExpandedImage="../../images/menu/lnk_menos.png"
CollapsedImage="../../images/menu/lnk_mas.png" ImageControlID="imb_ext" ExpandDirection="Vertical"
Enabled='<%# eval("tieneHijos") %>' />
</td>
</tr>
</table>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
</div>
</td>
</tr>
</table>
</div>
</div>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
</td>
</tr>
</table>
</td>
<td id="tbl_menu_ayuda_2" runat="server" valign="top" style="height: 100%; width: 100%;
padding: 10px;">
<div style="padding: 10px; background-color: White;">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td colspan="3" style="background-image: url(../../images/menu/ayuda_sup.jpg)">
<img alt="" src="../../images/interfaz/spacer.gif" height="15px" />
</td>
<td rowspan="4" valign="top"><cc1:BotonImagen ID="btn_help" Height="25px" runat="server" ImageUrl="../../images/botones/buscarBA.gif"/></td>
</tr>
<tr>
<td align="left" style="width: 17px; background-image: url(../../images/menu/ayuda_izq.jpg);
background-repeat: repeat-y;">
<asp:Image ID="ayuda_izq" runat="server" ImageUrl="../../images/menu/ayuda_izq.jpg" />
</td>
<td>
<div style="overflow: auto; width: 156px; background-color: #336799;">
<asp:TextBox ID="txb_ayuda"  name="lbl_ayuda" runat="server" 
        CssClass="lbl_ayudaMenu" BackColor="#366799" Font-Bold="True" Font-Size="X-Small" 
        ForeColor="White" BorderWidth="0" BorderStyle="None"></asp:TextBox> </div>
</td>
<td style="width: 17px; background-image: url(../../images/menu/ayuda_der.jpg); background-repeat: repeat-y;">
<asp:Image ID="ayuda_der" runat="server" ImageUrl="../../images/menu/ayuda_der.jpg" />
<td>

</td>
</td>
</tr>
<tr>
 
<td colspan="3" style="background-image: url(../../images/menu/ayuda_inf.jpg)">
<img alt="" src="../../images/interfaz/spacer.gif" height="15px" />
</td>
</tr>
<tr>
<td colspan="3" style="background-image: url(../../images/menu/samm.jpg)">
<img alt="" src="../../images/interfaz/spacer.gif" style="width: 1px; height: 320px" />
</td>
</tr>

</table>
</div>

</td>
</tr>
</table>
</div>
<script type="text/javascript">
document.getElementById("divMenu").style.left="40px"
</script>