<?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; }
.Estilo3 {font-weight: bold}
body {
	background-image: url(../fondeux.jpg);
}


-->


</style>


<link href="../estilo.css" rel="stylesheet" type="text/css" />
  <style type="text/css">
<!--
.Estilo44 {font-size: 16px}
-->
  </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"><p align="left" class="Estilo2"><?php include 'tiny.php'; ?>





<?php $ID = (int)$_GET['ID'];

?>

<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; }





-->





</style>









      <span class="Estilo42">&gt; PONER PUBLICIDADES ENTRE LAS NOTAS</span>
        <table width="899" border="0" align="center">





  <tr>





    <td width="357" valign="top"  bgcolor="#C3C3C3" class="Estilo1"><br>      
    <p><img src="publicidades_sitio.png" width="357" height="990" /></p></td>





    <td bgcolor="#DDDDDD" width="532" valign="top"><p align="center" class="Estilo1">Seleccione en que lugar de la pagina desea poner la publicidad.</p>

      <form id="form1" name="form1" method="GET" action="../upload_crop_publicidades_sitio.php" target="_blank">

        <div align="center">

          <select name="ID" class="Estilo2" id="ID">

            <option value="1000">0</option>

            <option>1</option>

            <option>2</option>

            <option>3</option>

            <option>4</option>

            <option>5</option>

            <option>6</option>

            <option>7</option>
          </select>

          <br />

          <br />

          <input name="button" type="submit" class="Estilo2" id="button" value="CARGAR PUBLICIDAD" />
        </div>
    </form>      
      <?





  





  include 'concha.php';











$sql = "SELECT * FROM publicidades_sitio ORDER BY ID desc";





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





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





{





$ID = $row["ID"];





$img = $row["img"];



$url = $row["url"];



















?>      <a href="borrarpublicidad_sitio.php?ID=<?php echo $ID ?>" class="Estilo1"><img title="ELIMINAR IMAGEN" border="0" src="elimi.jpg" width="49" height="45" /></a><img src="../upload_pic/resize_<?php echo $img ?>.jpg" />      <br />
      LUGAR: <?php if ($ID == 1000) {$ID = 0;}; echo $ID ?>
      <form id="form1" name="form1" method="post" action="poner_link_imagen_publicidad_sitio.php">

       <input name="ID" type="hidden" value="<?php if ($ID == 0) {$ID = 1000;} echo $ID ?>" />

          <span class="Estilo1">AGREGAR UN LINK A ESTA IMAGEN</span>: 

          <input name="url" type="text" id="url" value="<?php if ($url == NULL) { ?>http://www.<?php } else {echo $url; };?>" size="30" />

          <label>

          <input type="submit" name="button" id="button" value="Enviar" />
          </label>
      </form>

      <hr />





      <?php }





$consulta->free_result();





?>
      <br /></td>
  </tr>
</table>





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