|
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{
$seleccion = (array_key_exists('seleccion', $_REQUEST)) ? $_REQUEST['seleccion']: NULL;
$newsletter = (array_key_exists('newsletter', $_REQUEST)) ? $_REQUEST['newsletter']: NULL;
$close = (array_key_exists('close', $_REQUEST)) ? $_REQUEST['close']: NULL;
$vec=explode("|",$newsletter);
$panel->reactivarDB();
$panel->setFilesPanel(2);
$r = $panel->aplicativo->getNewsletter($vec[0]);
?>
<html>
<head>
<script src="js/url.js"></script>
<script src="js/validaciones.js"></script>
<script>
if (history.forward(1)){location.replace(history.forward(1))}
function checkEnlace(){
var url = document.frmPpal.enlace.value;
var mas = document.frmPpal.mascara.value;
if(lengSpaceNess(url)){
if( !checkUrl(url) ){
document.frmPpal.enlace.focus();
document.frmPpal.enlace.select();
return false;
}
if(lengSpaceNess(mas)){
if(specialChar(mas,true,true,true,true) ){
alert("Si ingresa una etiqueta para el enlace, no debe de empezar o terminar con espacios en blanco, o contener caracteres diferentes a los imprimibles directamente por el teclado!");
document.frmPpal.mascara.focus();
document.frmPpal.mascara.select();
return false;
}
}
}else{
alert("Debe de ingresar una direcci�n web en el campo enlace!");
document.frmPpal.enlace.focus();
return false;
}
return true;
}
function cerrar(st){
if(st){
window.close();
return true;
}
return true;
}
</script>
<title>Adicionar Enlace - <?=$r['titulo']?></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">
</head>
<body leftmargin="0" onLoad="javascript: cerrar(<?=$close?>)">
<table width="100%" align="left">
<tr bgcolor="#000099">
<td class="titular1"><div align="center">Datos del enlace</div></td>
</tr>
<tr bgcolor="#000099">
<td><form name="frmPpal" action="fnc/main.php?tarea=addEnlace&redireccion=addNews" method="post" onSubmit="return checkEnlace();" target="_fraUsr">
<table width="100%" bgcolor="#FFFFFF">
<tr>
<td> </td>
<td class="texto1"> </td>
<td> </td>
</tr>
<tr><td width="35"> </td><td width="65" class="texto1">Enlace</td>
<td width="656"><input type="text" class="listado" style="width:30px; border-right:0" value="http://" readonly><input name="enlace" type="text" class="listado" style="width:370px; border-left:0">
*</td>
</tr>
<tr>
<td> </td>
<td class="texto1">Etiqueta</td>
<td><input name="mascara" class="listado" type="text" style="width:400px ">
<input type="hidden" name="newsletter" value="<?=$newsletter?>"><input type="hidden" name="seleccion" value="<?=$seleccion?>"></td>
</tr>
<tr>
<td colspan="3"><div align="center">
<input name="Submit" type="submit" class="boton1" value="Adicionar">
<input name="Submit2" type="button" onClick="window.close()" class="boton1" value="Cancel">
</div></td>
</tr>
<tr><td> </td>
<td colspan="2" class="texto1"> </td>
</tr>
</table>
</form>
</td>
</tr>
</table>
<iframe name="_fraUsr" src="" width="0" height="0"></iframe>
</body>
</html>
<? }?>