Error en PHP
3 seguidores
Hola, no sé mucho o nada de programacion pero un cliente me esta mandando a arreglar un problema con un administrador de contenidos que le hicieron, la cuestion es que dentro del administrador se ven 20 noticias activas, pero ninguna esta cargada realmente en la pagina, alguien me puede dar una idea porfavor..
Gracias.
ehelguero
Al abrir la pagina no muestra ningun error? Puede ser que las noticias tengan alguna otra opcion por la cual no se esten publicando??
tr3al
<body>
<?php $carpeta = $_SERVER['DOCUMENT_ROOT'];
include_once ($carpeta."/_wspanel/_funcion/funcion_mysql.php");
include_once ($carpeta."/_wspanel/_ajax/inc_ajax.php");
$loader_1 = '<div style=padding:100px align=center class=titulo_info>Cargando Eventos<br><img src="/_img/loader_eventos.gif">';
//----------------
$id_seccion = 2;
//----------------
if($_GET['id_noticia_tipo'] != '')
{
$where = "
AND
WS_CONTENIDO.id_noticia_tipo = ".$_GET['id_noticia_tipo']."
";
}
$query = "
SELECT
COUNT(WS_CONTENIDO_CONTENIDO.id_contenido) AS total
FROM
WS_CONTENIDO_CONTENIDO,
WS_CONTENIDO
WHERE
WS_CONTENIDO_CONTENIDO.id_noticia = WS_CONTENIDO.id_noticia
AND
WS_CONTENIDO_CONTENIDO.dt_fecha_salida >= '".date('Y-m-d')."'
".$where."
";
$row_total = select_row($query);
$totales = ($row_total['total']/10);
if (is_int($totales)) {
$totales;
} else {
$totales=(intval($totales)+1);
}
?>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>:::: Viajes Grand Prix ::::</title>
<link href="../_css/styles.css" rel="stylesheet" type="text/css">
<script src="../Scripts/AC_ActiveX.js" type="text/javascript"></script><script src="../Scripts/AC_RunActiveContent.js" type="text/javascript"></script><script language="javascript" type="text/javascript">
<!--
function detalle(id){
window.location = 'evento_detalle.php?id='+id;
}
function imprimir(id){
window.open("evento_indice_popup.php?id_noticia_tipo="+id , "ventana1" , "width=600,height=480,scrollbars=NO");
}
-->
</script><?php include("../_include/cabecero.php"); ?><table width="950" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF"><tr>
<td id="cuerpo_evento">
<div id="seccion_titulo">EVENTOS</div>
<br><table width="100%" border="0" cellspacing="0" cellpadding="0"><tr>
<td width="590" class="resena"> Imprimir</td>
<td align="right" class="resena"><!--<table width="100%" class="resena">
<tr>
<td width="10" align="left" ><a id="primero" style="cursor:pointer;display:none"onclick="manda_ajax('0','10','1');document.getElementById('primero').style.display='none';document.getElementById('anterior').style.display='none';">|<< </a></td>
<td width="10" align="left"><a id="anterior" style="cursor:pointer;display:none" onclick="anterior(parseInt(document.getElementById('pagina').value));document.getElementById('primero').style.display='none';document.getElementById('anterior').style.display='none';">< </a></td>
<td align="center" id="actual" style="visibility:visible">
<?php
for($i=1; $i<=$totales;$i++)
{
?>
<a style="cursor:pointer" onclick="manda_ajax('<?php echo $a = (($i*10)-10);?>','<?php echo $b = ($i*10);?>')"><?php echo $i.' '; ?></a>
<?php
}
?> </td>
<td width="10" align="right" style="visibility:visible"><a id="siguiente" style="cursor:pointer" onclick="siguiente(parseInt(document.getElementById('pagina').value));document.getElementById('primero').style.display='';document.getElementById('anterior').style.display='';">> </a></td>
<td width="10" align="right" style="visibility:visible"><a id="ultimo" style="cursor:pointer" onclick="ultimo('<?php echo $totales;?>');document.getElementById('primero').style.display='';document.getElementById('anterior').style.display='';">>>|</a></td>
</tr>
</table>--></td>
</tr></table>
</td>
<td width="160" valign="top" bgcolor="#FFCCCC">
<?php //<!--/* OpenX Etiqueta en Modo Local v2.6.3 */-->
// The MAX_PATH below should point to the base of your OpenX installation
define('MAX_PATH', '/home/viajesgr/public_html/_wspanel/publicidad/openx-2.6.3');
if (@include_once(MAX_PATH . '/www/delivery/alocal.php')) {
if (!isset($phpAds_context)) {
$phpAds_context = array();
}
// function view_local($what, $zoneid=0, $campaignid=0, $bannerid=0, $target='', $source='', $withtext='', $context='', $charset='')
$phpAds_raw = view_local('', 4, 0, 0, '_blank', '', '0', $phpAds_context, '');
}
echo $phpAds_raw['html'];
?></td>
</tr></table>
<?php include("../_include/footer.php"); ?><script language="javascript">
manda_ajax('0','10','1');
function anterior(c){
//alert(c);
c = (c-1);
a = ((c*10)-10);
b = (c*10);
//validar(c);
manda_ajax(a,b,c);
}
function siguiente(c){
//alert(c);
a = (c*10);
b = ((c*10)+10);
c = (c+1);
//validar(c);
manda_ajax(a,b,c);
}
function ultimo(total){
a = ((total*10)-10);
b = (total*10);
c = total;
//validar(c);
manda_ajax(a,b,c);
}
function manda_ajax(a,b,c){
//validar(c);
cargar_contenido('div_evento','AJAX_evento.php','Get','id_noticia_tipo=<?php echo $_GET['id_noticia_tipo']; ?>&a='+a+'&b='+b+'&c='+c,'<?php echo $loader_1; ?>')
}
</script>
</body>
dwuomo
uff con esa información que nos has dado no puedo ayudarte, podria ser por mogollon de cosas .
Podrias postear el codigo php de la pagina donde se muestran las noticias?