X-Git-Url: https://git.llucax.com/mecon/ai.git/blobdiff_plain/df9d0deaca85d998cd966a75db730202e0f7c993..8485a1e9661ed55cbd522b3a3fce5ac254ab3ba3:/sistema/www/index.php diff --git a/sistema/www/index.php b/sistema/www/index.php index 3389553..5021868 100644 --- a/sistema/www/index.php +++ b/sistema/www/index.php @@ -212,20 +212,20 @@ if ($tipo) { 'tabla' => $tabla, 'id' => $tipo, 'nombre' => 'nombre', - 'prepend_link' => $tipo.'?accion='.AI_MODIF.'&id=' + 'prepend_link' => $tipo.'?accion='.AI_MODIF.'&id=', + 'order' => 'asc', ); if ($tipo == 'grupo' or $tipo == 'servicio') { $dbdata['id_padre'] = $tipo . '_padre'; } elseif ($tipo == 'sistema') { // FIXME - horrible!!! - $dbdata = array( - 'db' => &$db, - 'tabla' => "intranet.$tabla as A, samurai.sistema as S", - 'id' => "A.$tipo", - 'nombre' => 'S.nombre_sistema', - 'prepend_link' => $tipo.'?accion='.AI_MODIF.'&id=', - 'where' => 'S.id_sistema = A.sistema AND S.estado = 1', - 'order' => 'asc', - ); + $dbdata = + array( + 'tabla' => "intranet.$tabla as A, samurai.sistema as S", + 'id' => "A.$tipo", + 'nombre' => 'S.nombre_sistema', + 'where' => 'S.id_sistema = A.sistema AND S.estado = 1', + ) + + $dbdata; } $arbol = new HTML_ArbolDB($dbdata, $arbol); $marco->addMenuVertical($arbol);