<?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>

<script type="text/javascript" src="https://radioshosting.com/recursos/ckeditor/ckeditor.js"></script>
	<script src="https://radioshosting.com/recursos/ckeditor/ckeditor.js"></script>
	<script src="https://radioshosting.com/recursos/ckeditor/sample.js"></script>



    <style type="text/css">
<?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" />
</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';


mysql_connect ("$host", "$usuario", "$contra");


mysql_select_db ("$basedatos");


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


$consulta = mysql_query ($sql);


while ($row = mysql_fetch_array($consulta))


{





$N2 = $N2 + 1;

$m_mensajes = $N2;



}


mysql_free_result($consulta);








  $N = 0;


  include 'concha.php';


mysql_connect ("$host", "$usuario", "$contra");


mysql_select_db ("$basedatos");


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


$consulta = mysql_query ($sql);


while ($row = mysql_fetch_array($consulta))


{





$N = $N + 1;


$m_comentarios = $N;


}


mysql_free_result($consulta);








  $N = 0;


  include 'concha.php';


mysql_connect ("$host", "$usuario", "$contra");


mysql_select_db ("$basedatos");


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


$consulta = mysql_query ($sql);


while ($row = mysql_fetch_array($consulta))


{





$N = $N + 1;

$m_fotos = $N;



}


mysql_free_result($consulta);







  $N = 0;


  include 'concha.php';


mysql_connect ("$host", "$usuario", "$contra");


mysql_select_db ("$basedatos");


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


$consulta = mysql_query ($sql);


while ($row = mysql_fetch_array($consulta))


{





$N = $N + 1;

$m_avisos = $N;



}


mysql_free_result($consulta);

$m_tot = $m_mensajes + $m_comentarios + $m_fotos + $m_avisos;





include('concha.php');


mysql_connect ("$host", "$usuario", "$contra");


mysql_select_db ("$basedatos");





$sql = "SELECT * FROM configuracion";





$consulta = mysql_query ($sql);


while ($row = mysql_fetch_array($consulta))


{


$contacto = $row["contacto"];









}


mysql_free_result($consulta);




?>
<?php 
     $sql45 = "SELECT * FROM `html_inicio` LIMIT 1";
      $consulta45 = mysql_query ($sql45);
      while ($row45 = mysql_fetch_array($consulta45))
      {


      $html_inicio = $row45["texto"];

      }
      mysql_free_result($consulta45);
	  ?>

<form id="form1" name="form1" method="post" action="form_html_inicio.php">
<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'; ?>      
        <p align="left" class="Estilo2">
        
        <p class="Estilo29">Esto se ve al inicio de la pagina (HOME):</p>
          <p>
            <textarea name="html" id="contacto" cols="45" rows="5"  class="ckeditor"><?php echo $html_inicio ?></textarea>
          </p>
          <p>&nbsp;</p>
      <p align="center">
            <input name="button" type="submit" class="Estilo41" id="button" value="Enviar"  />
     </td>
  </tr>
  </table>  </form>
  
  

</body>
</html>
