<?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">
<!--
.Estilo44 {
	color: #000000;
	font-weight: bold;
}
-->
</style>
</head>

<body>




</script>

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



<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'; ?>
&gt; <? if ($lang == 'es') {echo "AGREGAR UNA CATEGORIA NUEVA"; }; ?>
<? if ($lang == 'pt') {echo "ADCIONAR UMA CATEGORIA NOVA"; }; ?>
<? if ($lang == 'en') {echo "ADD NEW CATEGORY"; }; ?><br />
            <br />
        <form id="form1" name="form1" method="post" action="form_agregar_cat.php" enctype="multipart/form-data">
          <table width="85%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td width="50%" class="Estilo42"><? if ($lang == 'es') {echo "NOMBRE DE LA CATEGORIA:"; }; ?>
<? if ($lang == 'pt') {echo "NOME DA CATEGORIA:"; }; ?>
<? if ($lang == 'en') {echo "CATEGORY NAME:"; }; ?></td>
              <td width="50%" class="Estilo42">
              <input type="text" name="nombre" id="nombre" />              </td>
            </tr>
            <tr>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
            </tr>
            <tr>
              <td>&nbsp;</td>
              <td class="Estilo42">
              <input type="submit" name="button" id="button" value="Enviar" />              </td>
            </tr>
          </table>
        </form>
        <p><img src="estilo1.PNG" width="399" height="240" /></p>
        <p>&nbsp;</p>
        <p><br />
        </p>
        <p><img src="estilo2.PNG" width="320" height="240" /></p>
        <p>&nbsp;</p>
        <p>&nbsp;</p>
        <p><img src="estilo3.PNG" width="320" height="240" /></p>
        <p>&nbsp;</p>
        <p><img src="estilo4.PNG" width="320" height="240" /></p>
        <table width="97%" border="0" align="center" cellpadding="10" cellspacing="2">
          <?php include('concha.php');

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

mysql_select_db ("$basedatos");



$sql = "SELECT * FROM categorias ORDER BY nombre";



$consulta = mysql_query ($sql);

while ($row = mysql_fetch_array($consulta))

{

$ID_p = $row["ID"];

$nombre = $row["nombre"];
$color = $row["color"];
$home = $row["home"];


?>
          <tr>
            <td width="80%" bgcolor="#CCCCCC"class="Estilo42"><table width="177" border="0" cellspacing="2" cellpadding="0">
              <tr>
                <td bgcolor="<?php echo $color ?>"><div align="center" class="Estilo44">&nbsp;<?php echo $nombre ?>&nbsp;</div></td>
              </tr>
            </table></td>
            <td width="80%" bgcolor="#CCCCCC"class="Estilo42"><a href="paleta_cat.php?ID=<?php echo $ID_p ?>"><? if ($lang == 'es') {echo "CAMBIAR COLOR"; }; ?>
<? if ($lang == 'pt') {echo "ALTERAR A COR"; }; ?>
<? if ($lang == 'en') {echo "CHANGE COLOR"; }; ?></a></td>
            
             <td width="80%" bgcolor="#CCCCCC"class="Estilo42"><p><a href="poner_cat_en_home.php?ID=<?php echo $ID_p ?>"><? if ($lang == 'es') {echo "PONER SLIDER EN PAGINA PRINCIPAL ABAJO"; }; ?>
<? if ($lang == 'pt') {echo "COLOCAR SLIDER ABAIXO DA PÁGINA PRINCIPAL"; }; ?>
<? if ($lang == 'en') {echo "SLIDER ON MAIN PAGE FOOT"; }; ?></a></p>
               <p><a href="poner_cat_1_en_home.php?ID=<?php echo $ID_p ?>">ESTILO 1</a></p>
               <p><a href="poner_cat_2_en_home.php?ID=<?php echo $ID_p ?>">ESTILO 2</a></p>
               <p><a href="poner_cat_3_en_home.php?ID=<?php echo $ID_p ?>">ESTILO 3</a></p>
               <p><a href="poner_cat_4_en_home.php?ID=<?php echo $ID_p ?>">ESTILO 4<br />
                   <B> <?php echo $home ?> </B></a> <br />
(<a href="quitar_cat_en_home.php?ID=<?php echo $ID_p ?>"> <? if ($lang == 'es') {echo "QUITAR"; }; ?>
<? if ($lang == 'pt') {echo "SAIR"; }; ?>
<? if ($lang == 'en') {echo "QUIT"; }; ?> </a>)</p></td>
            <td width="20%" bgcolor="#CCCCCC"><a href="borrar_cat.php?ID=<?php echo $ID_p ?>"><? if ($lang == 'es') {echo "BORRAR"; }; ?>
<? if ($lang == 'pt') {echo "APAGAR"; }; ?>
<? if ($lang == 'en') {echo "DELETE"; }; ?></a></td>
          </tr>
          <?



}

mysql_free_result($consulta);





?>
        </table>
      <p align="left" class="Estilo42"><br />      </td>
  </tr>
  </table>
<p>&nbsp;</p>
  <p>&nbsp;</p>
</body>
</html>
