var tpressedFontColor = \"#65ccff\"; var tpathPrefix_img = \"../img/\"; var tlevelDX = 5; var ttoggleMode = 2; var texpanded = 0; var tcloseExpanded = 0; var tcloseExpandedXP = 0; var tblankImage = \"../img/blank.gif\"; var tmenuWidth = 200; var tmenuHeight = 0; var tabsolute = 1; var tleft = 5; var ttop = 5 var tfloatable = 0; var tfloatIterations = 1; var tmoveable = 0; var tmoveImage = \"../img/movepic.gif\"; var tmoveImageHeight = 12; var tfontStyle = \"normal 8pt trebuchet MS\"; var tfontColor = [\"#ffffff\",\"#65ccff\"]; var tfontDecoration = [\"none\",\"none\"]; var titemBackColor = [\"#319dd3\",\"#65acda\"]; var titemAlign = \"left\"; var titemBackImage = [\"\",\"\"]; var titemCursor = \"pointer\"; var titemHeight = 20; var titemTarget = \"_blank\"; var ticonWidth = 20; var ticonHeight = 15; var ticonAlign = \"left\"; var tmenuBackImage = \"\"; var tmenuBackColor = \"\"; var tmenuBorderColor = \"#FFFFFF\"; var tmenuBorderStyle = \"solid\"; var tmenuBorderWidth = 0; var texpandBtn =[\"expandbtn2.gif\",\"expandbtn2.gif\",\"collapsebtn2.gif\"]; var texpandBtnW = 9; var texpandBtnH = 9; var texpandBtnAlign = \"left\" var tpoints = 0; var tpointsImage = \"\"; var tpointsVImage = \"\"; var tpointsCImage = \"\"; // XP-Style Parameters var tXPStyle = 1; var tXPIterations = 5; // expand/collapse speed var tXPTitleBackColor = \"#265BCC\"; var tXPExpandBtn = [\"xpexpand1.png\",\"xpexpand2.png\",\"xpcollapse1.png\",\"xpcollapse2.png\"]; var tXPTitleBackImg = \"titulomenu.png\"; var tXPTitleLeft = \"borde1.png\"; var tXPTitleLeftWidth = 20; var tXPBtnWidth = 20; var tXPBtnHeight = 25; var tXPIconWidth = 20; var tXPIconHeight = 27; var tXPFilter=1; var tXPBorderWidth = 1; var tXPBorderColor = '#FFFFFF'; var tstyles = [ [\"tfontStyle=bold 8pt Tahoma\",\"titemBackColor=#265BCC,#265BCC\",\"tfontColor=#FFFFFF,#428EFF\", \"tfontDecoration=none,none\"], [\"tfontStyle=bold 8pt Tahoma\",\"titemBackColor=#265BCC,#265BCC\",\"tfontColor=#215DC6,#428EFF\", \"tfontDecoration=none,none\"], [\"tfontDecoration=none,none\"], [\"tfontStyle=bold 8pt Tahoma\",\"tfontColor=#444444,#5555FF\"], ]; var tXPStyles = [ [\"tXPTitleBackColor=#D0DAF8\", \"tXPExpandBtn=xpexpand3.png,xpexpand4.png,xpcollapse3.png,xpcollapse4.png\", \"barrath.jpg\"] ]; "; $Menu = $Menu."var tmenuItems =["; //$Menu = $Menu."[\"".$title."\", \"\", \"xpicon1.gif\",\"\",\"\", \"XP Title Tip\",,\"0\"],"; /* ["TITULO", "LINK", "ICONO1","ICONOONMOUSE","ICONOSELECT", "TOOLTIP",,"COLORTEXTO"], */ /***** SELECCION DE MODULO ****/ $qryModulo=$ln->query("select a.idmodulo, a.descripcion, a.muneco from sys_modulo a, sys_accion_usuario b , sys_pagina c where c.idpagina=b.idpagina and b.idusuario='$idusuario' and a.idmodulo = c.idmodulo and a.activo = 'SI' and c.activo = 'SI' group by 1 order by a.orden;"); if($ln->num_rows($qryModulo)){ while ($row=$ln->fetch($qryModulo)){ $Menu = $Menu."[\"".$row["descripcion"]."\", \"\", \"".$row["muneco"]."\",\"\",\"\", \"".$row["descripcion"]."\",\"1\",,\"0\"],"; /***** SELECCION DE SUBMENU ****/ $qrySubMenu=$ln->query("select a.* from sys_pagina a, sys_accion_usuario b where a.idpagina=b.idpagina and idusuario='$idusuario' and activo = 'SI' and a.idmodulo= '".$row["idmodulo"]."' order by a.orden"); if($ln->num_rows($qrySubMenu)){ while ($rowx=$ln->fetch($qrySubMenu)){ if($rowx["descripcion"]!="User Manual"){ $Menu = $Menu."[\"|".$rowx["descripcion"]."\", \"".$rowx["link"]."&idpagina=".$rowx["idpagina"]."\", \"".$rowx["icono"]."\", \"".$rowx["iconomouse"]."\", \"".$rowx["iconoselect"]."\", \"".$rowx["tooltip"]."\"],"; }else{ $Menu = $Menu."[\"|".$rowx["descripcion"]."\", \"".$rowx["link"]."\", \"".$rowx["icono"]."\", \"".$rowx["iconomouse"]."\", \"".$rowx["iconoselect"]."\", \"".$rowx["tooltip"]."\"],"; } } } } } $ln->free_result($Consulta); $Menu = $Menu."[\"DESCONECTAR\", \"\", \"salir.png\",\"\",\"\", \"Salir\",\"1\",,\"0\"],"; $Menu = $Menu."[\"|Confirme Salir\", \"salir.php?login=$_SESSION[login]&idusuario=$_SESSION[idusuario]\", \"icon1.gif\", \"icon2.gif\", \"\", \"Salir\"],"; $Menu = $Menu."];"; $Menu = $Menu." dtree_init(); "; $ln->desconectar(); $smarty->assign('titulo',$title); $smarty->assign('Menu',$Menu); $smarty->assign('SubMenu',$SubMenu); $smarty->display('menu.html'); ?>