<?php include 'sesion.php';?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo $nombresitio ?> - Panel de Administracion</title>
<style type="text/css">
<!--


body {
	background-image: url(../fondeux.jpg);
}


-->
</style>


<?php include 'concha.php';?>
</script>

  <script language=javascript>
function ventanaSecundaria (URL){
   window.open(URL,"ventana1","width=550,height=450,scrollbars=NO")
}
  </script>
<style type="text/css">


<!--


.Estilo1 {


	font-family: Verdana, Arial, Helvetica, sans-serif;


	font-size: 14px;


}


.Estilo2 {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 24px; font-weight: bold; }
body {
	background-image: url(../fondeux.jpg);
}


-->


</style>


<link href="../estilo.css" rel="stylesheet" type="text/css" />
  <style type="text/css">
<!--
.Estilo47 {color: #FF0000}
-->
  </style>
</head>

<body>




</script>

  <script language=javascript>
function ventanaSecundaria (URL){
   window.open(URL,"ventana1","width=550,height=450,scrollbars=NO")
}
  </script>



  <?





  $N2 = 0;

  include 'concha.php';





$sql = "SELECT * FROM chat WHERE ver = 'no' ";


$consulta = $conn->query($sql);


while ($row = $consulta->fetch_assoc())


{





$N2 = $N2 + 1;

$m_mensajes = $N2;



}


$consulta->free_result();








  $N = 0;


  include 'concha.php';





$sql = "SELECT * FROM comentarios WHERE ver = 'no' ";


$consulta = $conn->query($sql);


while ($row = $consulta->fetch_assoc())


{





$N = $N + 1;


$m_comentarios = $N;


}


$consulta->free_result();








  $N = 0;


  include 'concha.php';





$sql = "SELECT * FROM fotosoyentes WHERE ver = 'no' ";


$consulta = $conn->query($sql);


while ($row = $consulta->fetch_assoc())


{





$N = $N + 1;

$m_fotos = $N;



}


$consulta->free_result();







  $N = 0;


  include 'concha.php';




$sql = "SELECT * FROM avisos WHERE ver = 'no' ";


$consulta = $conn->query($sql);


while ($row = $consulta->fetch_assoc())


{





$N = $N + 1;

$m_avisos = $N;



}


$consulta->free_result();

$m_tot = $m_mensajes + $m_comentarios + $m_fotos + $m_avisos;
?>
<table width="900" border="0" align="center" cellpadding="4" cellspacing="0">
      <tr>
      <td bgcolor="#F1F2ED"><?php include 'menu.php';?></td>
    </tr>
  
    <tr>
      <td bgcolor="#FFFFFF"><table width="700" border="0" align="center" cellpadding="10" cellspacing="0" bordercolor="#999999">
        <tr>
          <td bordercolor="#C3C3C3"  bgcolor="#FFFFFF" class="Estilo1"><div align="center">
              <p class="Estilo41 Estilo47">FOTONOTICIAS PRINCIPALES</p>
              <hr />
              <p class="Estilo2"><a href="config_fotonoticias.php" class="Estilo2">CONFIGURAR FOTONOTICIAS PRINCIPALES<br />
              CAMBIAR EL TAMAÑO</a></p>
              <form id="form2" name="form1" method="post" action="../cargar_fotonoticia.php">
              <input name="button2" type="submit" class="Estilo41" id="button2" value="CARGAR UNA FOTONOTICIA PRINCIPAL" />
            </form>
            
             <?
      
include('concha.php');


$sql = "SELECT * FROM notas_tapa WHERE cu3er = '0'";

$consulta = $conn->query($sql);
while ($row = $consulta->fetch_assoc())
{
$ID = $row["ID"];
$foto = $row["foto"];
$titulo = $row["titulo"];
$texto = $row["texto"];
$nota = $row["nota"];


?>
            <table width="90%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="73%"><img src="../upload_pic/thumbnail_<?php echo $foto ?>.jpg" width="280"  /></td>
                <td width="12%"><div align="center"><a href="editar_fotonoticias.php?ID=<?php echo $ID ?>">EDITAR</a></div></td>
                <td width="15%"><div align="center"><a href="borrar_fotonoticias.php?ID=<?php echo $ID ?>">BORRAR</a></div></td>
              </tr>
              <tr>
                <td colspan="3"><b><?php echo $titulo ?></b><br />
                <span class="Estilo42"><?php echo $texto ?></span></td>
              </tr>
            </table>
                          <p>
                            <?


}
$consulta->free_result();


?>
                          </p>
                          <p>&nbsp;</p>
                          <p>&nbsp;              </p>
                          <p><span class="Estilo41 Estilo47">FOTO NOTICIAS ROTATIVAS TRIPLES</span></p>
            <hr size="4"  color="#000000" />
         
            <p class="Estilo41">SLIDER Nº 1</p>
            <hr size="4"  color="#000000" />
            <p>UNA VEZ REALIZADOS LOS CAMBIOS HAGA CLIC SINCRONIZAR </p>
            <form id="form3" name="form1" method="post" action="../generar_xml_cu3er1.php" target="_blank">
            </form>
            <form id="form4" name="form1" method="post" action="../cargar_fotonoticia1.php">
              <input name="button3" type="submit" class="Estilo41" id="button4" value="CARGAR UNA FOTONOTICIA SLIDER 1" />
            </form>
            <?
      
include('concha.php');


$sql = "SELECT * FROM notas_tapa WHERE cu3er = '1'";

$consulta = $conn->query($sql);
while ($row = $consulta->fetch_assoc())
{
$ID = $row["ID"];
$foto = $row["foto"];
$titulo = $row["titulo"];
$texto = $row["texto"];
$nota = $row["nota"];


?>
<table width="90%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="73%"><img src="../upload_pic/thumbnail_<?php echo $foto ?>.jpg" width="280"  /></td>
                <td width="12%"><div align="center"><a href="editar_fotonoticias.php?ID=<?php echo $ID ?>">EDITAR</a></div></td>
                <td width="15%"><div align="center"><a href="borrar_fotonoticias.php?ID=<?php echo $ID ?>">BORRAR</a></div></td>
              </tr>
              <tr>
                <td colspan="3"><b><?php echo $titulo ?></b><br />
                    <span class="Estilo42"><?php echo $texto ?></span></td>
              </tr>
            </table>
            <hr />
            <p>
              <?


}
$consulta->free_result();


?>
</p>
            <hr size="4"  color="#000000" />
            <p class="Estilo41">SLIDER Nº 2</p>
            <hr size="4"  color="#000000" />
            <p>UNA VEZ REALIZADOS LOS CAMBIOS HAGA CLIC SINCRONIZAR </p>
            <form id="form6" name="form1" method="post" action="../cargar_fotonoticia2.php">
              <input name="button4" type="submit" class="Estilo41" id="button6" value="CARGAR UNA FOTONOTICIA SLIDER 2" />
            </form>
            <?
      
include('concha.php');


$sql = "SELECT * FROM notas_tapa WHERE cu3er = '2'";

$consulta = $conn->query($sql);
while ($row = $consulta->fetch_assoc())
{
$ID = $row["ID"];
$foto = $row["foto"];
$titulo = $row["titulo"];
$texto = $row["texto"];
$nota = $row["nota"];


?>
            <table width="90%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="73%"><img src="../upload_pic/thumbnail_<?php echo $foto ?>.jpg" width="280"  /></td>
                <td width="12%"><div align="center"><a href="editar_fotonoticias.php?ID=<?php echo $ID ?>">EDITAR</a></div></td>
                <td width="15%"><div align="center"><a href="borrar_fotonoticias.php?ID=<?php echo $ID ?>">BORRAR</a></div></td>
              </tr>
              <tr>
                <td colspan="3"><b><?php echo $titulo ?></b><br />
                    <span class="Estilo42"><?php echo $texto ?></span></td>
              </tr>
            </table>
            <hr />
            <p>
              <?


}
$consulta->free_result();


?>
</p>
            <hr size="4"  color="#000000" />
            <p class="Estilo41">SLIDER Nº 3</p>
            <hr size="4"  color="#000000" />
            <p>UNA VEZ REALIZADOS LOS CAMBIOS HAGA CLIC SINCRONIZAR </p>
            <form id="form8" name="form1" method="post" action="../cargar_fotonoticia3.php">
              <input name="button5" type="submit" class="Estilo41" id="button8" value="CARGAR UNA FOTONOTICIA SLIDER 3" />
            </form>
            <?
      
include('concha.php');


$sql = "SELECT * FROM notas_tapa WHERE cu3er = '3'";

$consulta = $conn->query($sql);
while ($row = $consulta->fetch_assoc())
{
$ID = $row["ID"];
$foto = $row["foto"];
$titulo = $row["titulo"];
$texto = $row["texto"];
$nota = $row["nota"];


?>
            <table width="90%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="73%"><img src="../upload_pic/thumbnail_<?php echo $foto ?>.jpg" width="280"  /></td>
                <td width="12%"><div align="center"><a href="editar_fotonoticias.php?ID=<?php echo $ID ?>">EDITAR</a></div></td>
                <td width="15%"><div align="center"><a href="borrar_fotonoticias.php?ID=<?php echo $ID ?>">BORRAR</a></div></td>
              </tr>
              <tr>
                <td colspan="3"><b><?php echo $titulo ?></b><br />
                    <span class="Estilo42"><?php echo $texto ?></span></td>
              </tr>
            </table>
            <hr />
            <?


}
$consulta->free_result();


?>
<p>&nbsp;            </p>
            <p>&nbsp;            </p>
          </div></td>
        </tr>
      </table></td>
  </tr>
  </table>
<p>&nbsp;</p>
  <p>&nbsp;</p>
</body>
</html>
