|
Server : Apache/2.4.62 System : FreeBSD fbsdweb2.web.rcn.net 14.1-RELEASE FreeBSD 14.1-RELEASE releng/14.1-n267679-10e31f0946d8 GENERIC amd64 User : www ( 80) PHP Version : 8.3.8 Disable Function : NONE Directory : /domains/logicswapweb/aplicaciones/admon/aplicaciones/ |
Upload File : |
<?php
include('./../fnc/DBConnect.php');
include('./../fnc/componente.php');
include('./../fnc/parametro.php');
include('./../fnc/vinculo.php');
include('./../fnc/UsuarioPanel.php');
include('./../fnc/bitacora.php');
include('./../fnc/aplicacion.php');
include('./../fnc/panel.php');
session_start('PanelAzulDigial');
if(!session_is_registered("panel")){
echo "<div style=\" font-family: Verdana, Arial, Helvetica, sans-serif; color: #ff4455; font-size: 16px;font-weight: bolder;\">Usuario Invalido</div>";
echo "<div style=\" font-family: Verdana, Arial, Helvetica, sans-serif; color: #0066CC; font-size: 16px;font-weight: bolder;\"><a href=\"../../index.php\" target=\"_top\">Iniciar sesión nuevamente</a></div>";
echo "<script>window.open('../../index.php','_top')</script>";
}else{
$ini_line = (array_key_exists('ini_line', $_REQUEST)) ? $_REQUEST['ini_line']: 1;
$panel->aplicativo = new Aplicacion();
$panel->reactivarDB();
$panel->setFilesPanel(2);
$tipo_u=$panel->usuario->tipo;
$user_u=$panel->usuario->id;
$estado_u=$panel->usuario->estado;
$panel->aplicativo->loadAplicacion("Aplicaciones","panel");
$inicio = $panel->inicioPagina($ini_line);
?>
<html>
<head>
<link href="css/panel2.css" rel="stylesheet" type="text/css">
<link href="css/panel2Contenido.css" rel="stylesheet" type="text/css">
<link href="css/scrollbar.css" rel="stylesheet" type="text/css">
<link href="css/scrollbar2.css" rel="stylesheet" type="text/css">
<script>
if (history.forward(1)){location.replace(history.forward(1))}
</script>
<script>
if (history.forward(1)){location.replace(history.forward(1))}
</script>
<script>
/**************listas**************/
function mOvr(src,clrOver) {
var elmts = document.getElementsByTagName("tr");
elmts[src.id].style.cursor = 'hand';
elmts[src.id].bgColor = clrOver;
}
function mOut(src,clrIn) {
var elmts = document.getElementsByTagName("tr");
elmts[src.id].style.cursor = 'default';
elmts[src.id].bgColor = clrIn;
}
function mgOver(obj){
var elm = document.getElementsByTagName("a");
elm[obj.id].setAttribute("class","migasover");
}
function mgOut(obj){
var elm = document.getElementsByTagName("a");
elm[obj.id].setAttribute("class","migas");
}
function getRadioValue() {
var value = null;
with (document.frmAplicacion) {
if (usuario == null) {
return null;
}
var longitud = document.frmAplicacion.length;
if (longitud) {
for (var i=0; i<longitud; i++) {
if (document.frmAplicacion.elements[i].checked && document.frmAplicacion.elements[i].type=="radio") {
value = document.frmAplicacion.elements[i].value;
break;
}
}
} else {
if (usuario.checked) {
value = usuario.value;
}
}
}
return value;
}
function checkRadio(objRadio) {
objRadio.checked = !(objRadio.checked)
}
function fncAgregarUsr(usuario, apli) {
var usr = usuario.value;
var app = apli.value;
if (usr==0) {
alert('Debes seleccionar un administrador !');
return;
}
if(confirm("El usuario sera habilitado como administrador de la aplicacion "+app+", �Desea continuar?")){
_fraUsr.location.href = 'main.php?task=Agregar&Submit=Aceptar&usuario='+usr+'&aplicacion='+app;
}
return;
}
function fncEliminar() {
var usr = getRadioValue();
if (!usr) {
alert('Debes seleccionar una aplicaci�n!');
return;
}
if(confirm("Al eliminar la aplicaci�n ya no se tendr� acceso a la administraci�n de esta en el panel de control, �Desea continuar?")){
document.location.href = '../fnc/main.php?tarea=delAplicacion&seleccion='+usr;
}
return;
}
function fncListar(cate) {
if(cate){
document.location.href = 'vinculos.php?seleccion='+cate;
}else{
cate =getRadioValue();
if (!cate) {
alert('Debes seleccionar una aplicaci�n!');
return;
}else{
document.location.href = 'vinculos.php?seleccion='+cate;
//window.open("vinculos.php?seleccion="+cate,"_blank");
}
}
}
</script>
</head>
<body>
<script src="js/SortTable.js"></script>
<table width="610" border="0" cellspacing="2" cellpadding="2" align="left">
<tr bgcolor="#CCCCCC">
<td colspan="4">
<div align="left" class="migas"><a id="migainicio" href="../contenido.php" class="migas" style="cursor:hand" title="Indice de Aplicaciones" onMouseOver="javascript: mgOver(this);" onMouseOut="javascript: mgOut(this);">Beginning</a>
/ <span class="migasactivo">Applications</span></div>
</td>
</tr>
<tr>
<td colspan="4" class="texto1">
<div align="left"></div> </td>
</tr>
<tr>
<td colspan="4" align="left">
<form name="frmAplicacion" action="<?=$PHP_SELF?>" method="post" id="frmAplicacion">
<table width="610">
<tr class="titular1" bgcolor="#CCCCCC">
<td width="30" align="left"><a onClick="javascript: document.location.href= '../contenido.php'" title="Volver" style="cursor:hand; width:40"><img src="img/atras.gif" style="cursor:hand "></a></td>
<td width="452" align="center"><a class="titular1" href="javascript:SortRows(t,1)" title="Ordenar por Nombre">Name</a></td>
<td width="128" align="center">Selection</td>
</tr>
<?
$total= $panel->aplicativo->listarAplicaciones($tipo_u,$inicio,$panel->limite);
$num_paginas = $panel->paginas($total);
if($tipo_u==1){
?><tr>
<td align="left" colspan="2">
<input name="button" class="boton1" type="button" onClick="javascript: document.location.href='addAplicacion.php';" value="Install Aplication" align="middle">
</td>
<td align="right">
<input name="button22" class="boton1" type="button" onClick="fncEliminar()" value="Un-Install" '.$estado.'>
</td><td> </td></tr>
<?
}else{
?>
<tr>
<td align="left" colspan="2"> </td>
<td align="right"><input name="button23" class="boton1" type="button" onClick="fncListar()" value="Administration"></td></tr>
<? } ?>
</table>
</form>
</td>
</tr>
<tr>
<td colspan="4" valign="top" class="texto1"><form name="form2">
<div align="center"> <img title="Inicio" src="img/inicio1.gif" <? if($ini_line!=1){?>onClick="document.location.href = 'index.php?ini_line=1'" <? }?>>
<img title="Atras" src="img/atras1.gif" <? if($ini_line!=1){?>onClick="document.location.href = 'index.php?ini_line=<? echo $ini_line - 1;?>'" <? }?>>
<span class="usuario">Pág.
<? if($num_paginas == 0) echo "0";else echo $ini_line;?>
from <? echo $num_paginas;?></span> <img title="Siguiente" src="img/adelante1.gif" <? if($ini_line<$num_paginas && $num_paginas>0){?>onClick="document.location.href = 'index.php?ini_line=<? echo $ini_line + 1;?>'" <? }?>>
<img title="Ultimo" src="img/ultimo1.gif" <? if($ini_line<$num_paginas && $num_paginas>0){?>onClick="document.location.href = 'index.php?ini_line=<? echo $num_paginas;?>'" <? }?>>
</div>
</form></td>
</tr>
</table>
<iframe src="" name="_fraUsr" id="_fraUsr" height="0" width="0" frameborder="0"></iframe>
</body>
</html>
<? }?>