|
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{
$seleccion = (array_key_exists('seleccion', $_REQUEST)) ? $_REQUEST['seleccion']: NULL;
$vec = explode("|",$seleccion);
$panel->reactivarDB();
//$panel->setFilesPanel(2);
//$panel->aplicativo->loadAplicacion($seleccion);
$tipo_u=$panel->usuario->tipo;
$user_u=$panel->usuario->id;
$estado_u=$panel->usuario->estado;
?>
<html>
<head>
<title>Panel Azul Digital</title>
<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>
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 habilitar(){
document.getElementById("apli").style.display = "inline";
document.getElementById("apli").style.visibility = "visible";
}
function deshabilitar(){
document.getElementById("apli").style.visibility = "hidden";
document.getElementById("apli").style.display = "none";
}
function todos(ind,est){
eval("document.frm.admin_"+ind+".checked="+est);
eval("document.frm.adicionar_"+ind+".checked="+est);
eval("document.frm.adicionar_"+ind+".disabled="+est);
eval("document.frm.consultar_"+ind+".checked="+est);
eval("document.frm.consultar_"+ind+".disabled="+est);
eval("document.frm.modificar_"+ind+".checked="+est);
eval("document.frm.modificar_"+ind+".disabled="+est);
eval("document.frm.eliminar_"+ind+".checked="+est);
eval("document.frm.eliminar_"+ind+".disabled="+est);
eval("document.frm.todos_"+ind+".checked="+est);
//eval("document.frm.todos_"+ind+".disabled="+est);
}
function selecciono(){
apl = document.frm.cantidad.value;
sal = 0;
for(i=0;i<apl;i++){
val1 = eval("document.frm.admin_"+i+".checked");
val2 = eval("document.frm.adicionar_"+i+".checked");
val3 = eval("document.frm.consultar_"+i+".checked");
val4 = eval("document.frm.modificar_"+i+".checked");
val5 = eval("document.frm.eliminar_"+i+".checked");
if(val1||val2||val3||val4||val5){
sal++;
}
}
if( sal>0){
document.frm.submit();
}else{
alert("Debe seleccionar un usuario a vincular a la aplicaci�n dando un perfil de trabajo para el mismo sobre la aplicaci�n!");
return false;
}
}
</script>
<script src="js/fncCheckForm.js"></script>
</head>
<body topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0">
<form action="../fnc/main.php?tarea=addVinculo" method="post" enctype="multipart/form-data" name="frm" id="frm">
<table width="610" border="0" cellpadding="2" cellspacing="2" align="left">
<tr bgcolor="#cccccc">
<td colspan="2" align="left"><div align="lleft" 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> / <a id="migaindex" href="index.php" class="migas" onMouseOver="javascript: mgOver(this);" onMouseOut="javascript: mgOut(this);">Aplicaciones</a> / <a id="migavinculo" class="migas" onMouseOver="javascript: mgOver(this);" onMouseOut="javascript: mgOut(this);" href="vinculos.php?seleccion=<?=$seleccion?>">Vínculos con <?=$vec[1]?></a> / <span class="migasactivo">Adicionar vinculos con <?=$vec[1]?></span>
</div></td>
</tr>
<tr>
<td colspan="2" class="texto1">
<div align="left">seleccione por lo menos un valor en el usuario que desea vincular!<br>y de click en vincular!</div>
</td>
</tr>
<tr>
<td align="left" colspan="2" valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="0" id="tablea">
<tr bgcolor="#CCCCCC" class="titular1">
<td width="27%" height="18"><div align="center"><strong>User</strong></div></td>
<td width="15%"><div align="center" class="admin"><strong>To administer</strong></div></td>
<td width="12%"><div align="center" class="add"><strong>To add</strong></div></td>
<td width="12%"><div align="center" class="con"><strong>To consult</strong></div></td>
<td width="12%"><div align="center" class="mod"><strong>To modify</strong></div></td>
<td width="11%"><div align="center" class="eli"><strong>To Delete</strong></div></td>
<td width="9%"><div align="center"><strong>All</strong></div></td>
</tr>
<?
$apli = $panel->aplicativo->vincXaplicacionApli2($vec[0]);?>
</table>
</td>
</tr>
<tr bgcolor="#CCCCCC">
<td colspan="2" class="nombreColum"><input type="hidden" value="<?=$apli?>" name="cantidad"><input type="hidden" value="<?=$seleccion?>" name="valAplicacion"> </td>
</tr>
<tr>
<td width="395">
<div align="left"></div>
</td>
<td width="126"><div align="right">
<input name="button23" type="button" class="boton1" style="width:60 " onClick="javascript:selecciono();" value="Vincular">
<input name="button222" type="button" class="boton1" style="width:60 " onClick="javascript: document.location.href='vinculos.php?seleccion=<?=$seleccion?>';" value="Cancel">
</div></td>
</tr>
</table>
</form>
<iframe src="" name="_fraUsr" id="_fraUsr" height="0" width="0" frameborder="0"></iframe>
</body>
</html>
<? }?>