<?php include 'sesion.php'; ?>

<?php $IDS = $_POST['IDS'];

?>



<!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>Documento sin t&iacute;tulo</title>

<style type="text/css">

<!--

.Estilo1 {font-family: "Century Gothic"}

.Estilo3 {font-family: "Century Gothic"; font-size: 9px; }
body {
	background-image: url(fondeux.jpg);
}

-->

</style>
<link href="estilo.css" rel="stylesheet" type="text/css" /></head>



<body>

<table width="900" border="0" align="center">

  <tr>

    <td><?php include 'logo.php';?></td>

  </tr>
  
  <tr>
    <td height="40px" colspan="2" background="menu.png" class="Estilo3">&nbsp;</td>
  </tr>
  <tr>

    <td bgcolor="#FFFFFF" ><p align="center"><br />

    

    

  <?php   if ($IDS == 000) { echo "TIENE QUE ELEGIR UNA CATEGORIA <br> <a href='publicar1.php'>VOLVER</a>";  exit;}; ?>

  <span class="Estilo1">PUBLICAR UN AVISO</span> <br />

      

  

      

      

      <?

include('concha.php');

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

mysql_select_db ("$basedatos");



$sql = "SELECT * FROM subcategorias WHERE ID = '$IDS'";



$consulta = mysql_query ($sql);

while ($row = mysql_fetch_array($consulta))

{

$nombresub = $row["nombresub"];

$IDC = $row["IDC"];





}

mysql_free_result($consulta);

?>





      <?

include('concha.php');

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

mysql_select_db ("$basedatos");



$sql = "SELECT * FROM cla_categorias WHERE ID = '$IDC'";



$consulta = mysql_query ($sql);

while ($row = mysql_fetch_array($consulta))

{

$nombre = $row["nombre"];







}

mysql_free_result($consulta);

?>







      



      <form id="form1" name="form1" method="post" action="publicar3.php">



      <p align="center"><span class="Estilo1"><strong><?php echo $nombre ?></strong> &raquo; <?php echo $nombresub ?></span>

        <input type="hidden" name="IDS" id="IDS" value="<?php echo $IDS ?>" />

         <input type="hidden" name="IDC" id="IDC" value="<?php echo $IDC ?>" />

         <strong> <br />

         <select name="accion" class="Estilo1" id="accion">

           <option>Ofrezco</option>

           <option>Busco</option>

         </select>

         </strong>

      <hr>

    <table width="90%" border="0" align="center">

      <tr>

        <td valign="top" width="37%"><div align="right"><span class="Estilo1"><strong>TITULO</strong>:</span></div></td>

        <td width="63%"><input name="titulo" type="text" class="Estilo1" id="titulo" size="50" maxlength="35" />

          <br /> 

          <span class="Estilo3">(35 car. max.)</span> </td>
      </tr>

      <tr>

        <td>&nbsp;</td>

        <td>&nbsp;</td>
      </tr>

      <tr>

        <td valign="top" class="Estilo1"><div align="right"><strong>CUERPO</strong>:</div></td>

        <td><span class="Estilo3">(80 car. max.)</span></td>
      </tr>

      <tr>

        <td height="21" valign="top" class="Estilo3">&nbsp;</td>

        <td class="Estilo3">No publique telefonos ni datos personales en esta parte, solo describa su anuncio</td>
      </tr>

      <tr>

        <td valign="top" class="Estilo1"><div align="right">Linea 1:</div></td>

        <td><input name="linea1" type="text" class="Estilo1" id="linea1" size="50" maxlength="40" /></td>
      </tr>

      <tr>

        <td height="26" valign="top" class="Estilo1"><div align="right">Linea 2:</div></td>

        <td><input name="linea2" type="text" class="Estilo1" id="linea2" size="50" maxlength="40" /></td>
      </tr>

      <tr>

        <td height="31" valign="top" class="Estilo1">&nbsp;</td>

        <td><label></label></td>
      </tr>
      <tr>
        <td height="26" valign="top" class="Estilo1"><div align="right">Su Nombre:</div></td>
        <td><input name="nombre_u" type="text" class="Estilo1" id="nombre_u" size="50" maxlength="40" />
            <br /></td>
      </tr>
      <tr>
        <td height="26" valign="top" class="Estilo1"><div align="right">Teléfono de contacto:</div></td>
        <td><input name="telefono" type="text" class="Estilo1" id="telefono" size="50" maxlength="40" />
          <br /></td>
      </tr>
      <tr>
        <td height="26" valign="top" class="Estilo1"><div align="right">e-mail:</div></td>
        <td><input name="email" type="text" class="Estilo1" id="email" size="50" maxlength="40" /></td>
      </tr>

      <tr>

        <td height="26" valign="top" class="Estilo1">&nbsp;</td>

        <td><input name="button" type="submit" class="Estilo1" id="button" value="Publicar &raquo;" /></td>
      </tr>
    </table>      

      </form>

    <hr>

    </td>

  </tr>

  

</table>

</body>

</html>

