|
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/newsletter/ |
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');
include('./../fnc/utileria.php');
include('./../usuariosWeb/fnc/usuarioWeb.php');
include('./fnc/newsletter.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;
$tipo = (array_key_exists('tipo', $_REQUEST)) ? $_REQUEST['tipo']: NULL;
$seleccion = (array_key_exists('seleccion', $_REQUEST)) ? $_REQUEST['seleccion']: NULL;
$continuar = (array_key_exists('continuar', $_REQUEST)) ? $_REQUEST['continuar']: NULL;
$panel->setFilesPanel(2);
$panel->reactivarDB();
$tipo_u=$panel->usuario->tipo;
$user_u=$panel->usuario->id;
$estado_u=$panel->usuario->estado;
$inicio = $panel->inicioPagina($ini_line);
$nbol = $panel->aplicativo->cantBoletines($seleccion);
$nbol = $panel->aplicativo->parametros['numero_boletines'] - $nbol;
if($tipo=="evento"){$ms="Se ingresar�n los Eventos seleccionados";}
if($tipo=="noticia"){$ms="Se ingresar�n las Noticias seleccionadas";}
if($tipo=="producto"){$ms="Se ingresar�n los Productos seleccionados";}
?>
<html>
<head>
<title><?=ucfirst($tipo)?>s Disponibles</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))}
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 fncAccion(ac,id) {
var sel = concatChecked(document.frmNewsletter,'usuario_');
var cn =numChecked(document.frmNewsletter,'usuario_');
if(ac=="adicionar"){
if(cn<=<?=$nbol?>){
if(sel){
if(confirm("<?=$ms?>, desea continuar?")){
document.frmNewsletter.valores.value=sel;
document.frmNewsletter.tipo.value="<?=$tipo?>";
document.frmNewsletter.seleccion.value="<?=$seleccion?>";
document.frmNewsletter.submit();
}
}else{
alert('Se debe hacer una seleccion!');
return;
}
}else{
alert("Ha seleccionado m�s elementos de los que puede adicionar. \nSolo puede adicionar <?=$nbol?> elementos!");
return false;
}
}
}
function continuar(st){
if(st){
if(!confirm("Desea realizar otra adici�n?")){
window.close();
}
return true;
}
}
</script>
</head>
<body onLoad="javascript: continuar(<?=$continuar?>)">
<script src="js/SortTable.js"></script>
<script src="js/validaciones.js"></script>
<table width="545" border="0" cellspacing="2" cellpadding="2" align="left">
<tr>
<td colspan="4" class="texto1">Seleccione el elemento que desea y de click en adicionar.</td>
</tr>
<tr>
<td colspan="4" align="left">
<form name="frmNewsletter" action="fnc/main.php" method="post" id="frmNewsletter">
<?
$total = $panel->aplicativo->listarBoletines($tipo,$inicio,$panel->limite,$panel->aplicativo->nombre,'class="texto1"','bgcolor="#000099"','class="titular1"','#faff95');
$num_paginas = $panel->paginas($total);
?>
</form>
</td>
</tr>
<tr>
<td width="246" valign="top" class="texto1">
<div align="left">nota: una vez termine cierre esta ventana.</div></td>
<td width="285" colspan="3" align="right" valign="top" class="textos">
<input name="button23" type="button" class="boton1" onClick="fncAccion('adicionar',false)" value="Adicionar">
<input name="button22" type="button" class="boton1" onClick="javascript: window.close()" value="Cancel"></td></tr>
<tr>
<td colspan="4" valign="top" class="textos"><form name="form2">
<div align="center">
<img title="Inicio" src="img/inicio1.gif" <? if($ini_line>1) {?>onClick="document.location.href = 'listBoletines.php?ini_line=1'" <? }?>>
<img title="Atras" src="img/atras1.gif" <? if($ini_line>1) {?>onClick="document.location.href = 'listBoletines.php?ini_line=<? echo $ini_line - 1;?>'"<? }?>>
<span class="usuario">Pág.
<? if($num_paginas == 0) echo "0";else echo $ini_line;?>
de <? echo $num_paginas;?></span>
<img title="Siguiente" src="img/adelante1.gif" <? if($ini_line<$num_paginas && $num_paginas>0){?>onClick="document.location.href = 'listBoletines.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 = 'listBoletines.php?ini_line=<? echo $num_paginas;?>'" <? }?>>
</div>
</form></td>
</tr>
</table>
<script language="javascript1.2">
var alto = 330+(<?=$nbol?>*20);
var ancho = 640;
window.resizeTo(ancho,alto);
</script>
<iframe src="" name="_fraUsr" id="_fraUsr" width="0" height="0"></iframe>
</body>
</html>
<? }?>