X-Git-Url: https://git.llucax.com/mecon/intranet.git/blobdiff_plain/4b902d520c1d6cae34d5e729da5565c8d290abd7..ba466154033d54821e07ab851bccc42e8e344fe9:/sistema/www/sistemas.php?ds=inline diff --git a/sistema/www/sistemas.php b/sistema/www/sistemas.php index 45b117f..dbc1d37 100644 --- a/sistema/www/sistemas.php +++ b/sistema/www/sistemas.php @@ -13,6 +13,7 @@ require_once 'MECON/HTML/Link.php'; require_once 'MECON/HTML/Image.php'; require_once 'DB.php'; require_once 'AI/Sistema.php'; +require_once 'HTML_Mensaje.php'; define('COLUMNAS', 3); @@ -88,6 +89,10 @@ foreach ($sists as $id => $s) { unset($sists); unset($samurai); +if (!$sistemas) { + $t = new HTML_Mensaje('denegado', + 'No tiene permisos para usar ningĂșn sistema', 370); +} $sistema = @array_shift($sistemas); while ($sistema) { $row = array(); @@ -113,7 +118,7 @@ while ($sistema) { array( 'OnClick' => "javascript:window.open('$url','s{$sistema->sistema}'," - . "'width=790,height=500,scrollbars=yes');return false;", + . "'width=790,height=550,scrollbars=yes,resizable=yes');return false;", 'target' => '_blank', ) ); @@ -125,7 +130,7 @@ while ($sistema) { array( 'OnClick' => "javascript:window.open('$url','s{$sistema->sistema}'," - . "'width=790,height=500,scrollbars=yes');return false;", + . "'width=790,height=550,scrollbars=yes,resizable=yes');return false;", 'target' => '_blank', 'class' => 'intranet_sistemas_txt', ) @@ -145,7 +150,7 @@ while ($sistema) { 'OnClick' => "javascript:window.open('{$sistema->link_ayuda}'," . "'sa{$sistema->sistema}'," - . "'width=790,height=500,scrollbars=yes');return false;", + . "'width=790,height=550,scrollbars=yes,resizable=yes');return false;", 'target' => '_blank', ) );